Back to Explore

wooorm/comma-separated-tokens

GitHub
2 watchersOpen source

Last release:

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 quiet, with no upstream or package updates since 2022-11-14, so it is not actively maintained as of today (2026-06-09).
  • Update cadence is sparse, clustered around major version changes in 2017 to 2022, with multi-year gaps (for example, 2.0.1 to 2.0.2 spans about a year, and then another gap of over 3 years after 2.0.3).

AI summary generated

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

Recent updates

  • 2.0.3

    Release 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

    Release 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

    Release 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

    Release 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.

    BreakingFeatures
  • 1.0.8

    The 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

    Release 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

    Version 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

    Release 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

    Release 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

    Release 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