Back to Explore

isaacs/sax-js

GitHub
1 updates · last 90 days1 watchersOpen source

Last release:

Sax-js is a SAX-style XML and HTML parser for JavaScript, designed to parse XML strings with event callbacks like open tags, text, attributes, and errors. It supports both Node.js and browser or CommonJS use, and can also be used as a streaming parser (useful for cases like RSS and other imperfect XML documents).

Project status

  • Actively maintained, with a recent upstream push on 2026-07-24 and subsequent updates as late as that date (2026-07-24 for v1.6.1).
  • Update cadence appears moderately steady, with releases in March 2026 (v1.5.0, v1.6.0) followed by another update in July 2026 (v1.6.1), suggesting ongoing work rather than dormancy.

AI summary generated

AI-generated from public sources. May be inaccurate. Report

Recent updates

  • v1.6.1

    Release v1.6.1 contains a small set of internal parser changes and a new test for invalid character entities. There are no provided release notes, so key behavioral changes must be inferred from the code diff.

    Breaking
  • v1.6.0

    Release v1.6.0 does not include any publisher release notes. The code diff shows a significant internal update to how the streaming SAX parser detects and decodes input encodings, including new strict-mode validation around the XML prolog encoding declaration.

    BreakingFeatures
  • v1.5.0

    Release v1.5.0 was published on 2026-03-01. The publisher provided no release notes, so there is no documented information about new features, fixes, breaking changes, security issues, or migrations in this release.

  • v1.4.4

    Version v1.4.4 makes a small internal change to how the stream decoder handles Buffer input, and includes a logic tweak related to parsing script contents. No release notes were provided, so the behavioral and compatibility implications below are inferred directly from the code diff.

    Breaking
  • v1.4.3

    v1.4.3 includes a behavior change in the SAX parser’s handling of numeric character entities, adding stricter validation for values outside the Unicode scalar range. The rest of the diff is primarily formatting, tooling configuration, and test additions, plus a package version bump.

  • v1.4.2

    Release v1.4.2 (no release notes provided) contains a large internal update to lib/sax.js plus developer tooling and CI workflow refreshes. Most visible changes in the provided diff are refactoring and formatting updates, but the size of the lib/sax.js diff and the addition of a large CDATA memory test suggest behavior-sensitive work occurred without any accompanying release documentation.

    Breaking
  • v1.4.1

    v1.4.1 bumps the sax package version and modifies internal doctype parsing behavior in lib/sax.js. The diff also updates the test suite for doctype handling (comment, entity, empty internal subset), but the publisher provided no release notes for this change set.

  • v1.4.0

    v1.4.0 introduces new XML parsing behavior in lib/sax.js, including handling for unquoted attribute values and changes to how unparsed entities are processed. It also adds targeted state-machine tweaks around SGML/DOCTYPE parsing, with accompanying tests and a README update describing the new option.

    Features
  • v1.3.0

    Release v1.3.0 has no publisher-provided release notes. The code diff shows a notable behavior change in lib/sax.js related to the opt.unparsedEntities option, along with modernization of the test suite (Buffer.from) and CI/dev tooling updates.

    Features
  • v1.2.4

    Release v1.2.4 was published, but no release notes were provided by the publisher. No specific changes, fixes, breaking changes, or dependency updates are documented in the provided information.