This package parses and stringifies comma-separated tokens according to the WHATWG spec, providing `parse(value)` to turn a string into an array of strings and `stringify(values, options)` to serialize them back. It is useful for working with HTML token lists, especially when working with `hast`.
Project status
- The repository appears to be in maintenance mode, with the most recent activity being an update on 2022-11-14 (version 2.0.3), and earlier updates in 2021 (2.0.2 and 2.0.1).
- Update cadence looks low, roughly once per year across the visible history (2.0.1 to 2.0.2, then 2.0.3), and there is no evidence of ongoing frequent updates beyond that.
AI summary generated Today
Recent updates
2.0.3
11/14/2022Release 2.0.3 focuses on documentation and stricter TypeScript typing. The code diff also includes broader project tooling updates (CI, build, tests, and TypeScript config) and some type-signature documentation changes around the stringify options.
2.0.2
4/26/2021Release 2.0.2 updates the documented input types for the comma-separated token stringification API to support numbers. The release notes claim this is a fix to add numbers to the types, and the code diff shows a corresponding type annotation change.
2.0.1
4/26/2021Release 2.0.1 appears to be a types-focused maintenance update. The diff only changes package.json metadata and development tool versions, with the most notable change being packaging configuration for index.d.ts.
2.0.0
3/28/2021Release 2.0.0 converts the package to ESM and adds JSDoc-based type annotations. The public API is now provided via named ESM exports for `parse` and `stringify`, and the build/test tooling was modernized to generate TypeScript declaration files.
BreakingFeatures1.0.8
1/23/2020The release notes only mention a prose refactor. The code diff shows documentation wording/formatting changes plus package metadata and development tool dependency bumps, none of which are documented in the release notes.
1.0.7
5/15/2019Release 1.0.7 is described as a documentation-only update: adding more README badges and switching URLs from HTTP to HTTPS. The code diff shows no functional changes to the library logic, but it does include several undocumented development and build pipeline changes.
1.0.6
4/16/2019Version 1.0.6 removes the external `trim` dependency and replaces its usage with `String.prototype.trim()` in the core parsing and stringifying logic. The release notes only mention the dependency removal, but the code change also alters how trimming is performed.
1.0.5
4/14/2018Release 1.0.5 only documents a code-style refactor. The diff, however, includes substantial tooling and dependency updates, plus a small but real behavior change in stringify option handling for non-boolean values.
1.0.4
6/25/2017Release 1.0.4 is primarily documented as a README refactor and an example fix. The code diff shows no library logic changes, but it does include CI configuration changes and devDependency bumps in package.json.
1.0.3
4/16/2017Release 1.0.3 focuses on documentation updates, including adding a “Related” section and simplifying the API docs text. The runtime code changes are limited to removing/reducing comment blocks and metadata, with no clear functional logic changes detected. Several development and CI tooling configurations were also updated but were not mentioned in the release notes.
Features