Skip to content

Releases: stefanmaric/simpletoc

v2.0.0

Choose a tag to compare

@stefanmaric stefanmaric released this 18 May 10:23
3b77841

Modernize the package and redesign the TOC APIs

  • Rewrite the package in TypeScript, ship ESM-only output, and replace the legacy build/test/lint/CI stack with tsdown, Vitest, oxlint/oxfmt, pnpm, and GitHub Actions.
  • Rename the DOM heading query option from selector to headings, and allow DOM inputs such as root, headings, and target to accept either CSS selectors or real DOM nodes.
  • Add domItems() and mdItems() as first-class APIs that return normalized TocItem[] data.
  • Change domList() and mdList() to render normalized TocItem[] input instead of the old tree tuple structure.
  • Simplify DOM rendering customization by supporting render on both domList() and domToc(), and remove the old class-based and anchor/id renderer hooks.
  • Keep domToc() and mdToc() as public named exports, publish explicit simpletoc, simpletoc/dom, and simpletoc/md entry points, and move tree() behind the item-based APIs.

Full Changelog: v1.0.3...v2.0.0

v1.0.3

Choose a tag to compare

@stefanmaric stefanmaric released this 10 Nov 17:39
  • Remove Greenkeeper integration
  • Upgrade all dev-dependencies

v1.0.2

Choose a tag to compare

@stefanmaric stefanmaric released this 02 Aug 12:09
  • Update build matrix to skip EOL v6 and include v10 and v12
  • Upgrade all dev-dependencies to shut down security alerts

v1.0.1

Choose a tag to compare

@stefanmaric stefanmaric released this 25 May 10:41
  • Upgrade all dev-dependencies

v1.0.0

Choose a tag to compare

@stefanmaric stefanmaric released this 09 Jan 19:39
  • Mark module as side-effects free
  • Upgrade all dev-dependencies
  • Add browserlist config file
  • Add missing domToc tests
  • Configure project to build before pack/publish

v0.8.0

Choose a tag to compare

@stefanmaric stefanmaric released this 14 Dec 13:06
  • Upgrade dev-dependencies
    • Upgrade documentation to 9.0.0 to support babel7
    • Upgrade all other dependencies
  • Use minified build for the browsers via the browser field
  • Fix eslint errors introduced with recent dep upgrade
  • Add note about using CDNs to README
  • Add files field to package.json to reduce module size

v0.7.0

Choose a tag to compare

@stefanmaric stefanmaric released this 04 Oct 14:15
  • Upgrade build stack
  • Replace standard with prettier
  • Build only UMD files
  • Remove dist files from repo
    • jsdelivr.com and unpkg.com are good enough
    • TODO: update README after release
  • Format code with prettier
  • Add CHANGELOG