Releases: stefanmaric/simpletoc
Releases · stefanmaric/simpletoc
Release list
v2.0.0
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
selectortoheadings, and allow DOM inputs such asroot,headings, andtargetto accept either CSS selectors or real DOM nodes. - Add
domItems()andmdItems()as first-class APIs that return normalizedTocItem[]data. - Change
domList()andmdList()to render normalizedTocItem[]input instead of the old tree tuple structure. - Simplify DOM rendering customization by supporting
renderon bothdomList()anddomToc(), and remove the old class-based and anchor/id renderer hooks. - Keep
domToc()andmdToc()as public named exports, publish explicitsimpletoc,simpletoc/dom, andsimpletoc/mdentry points, and movetree()behind the item-based APIs.
Full Changelog: v1.0.3...v2.0.0
v1.0.3
- Remove Greenkeeper integration
- Upgrade all dev-dependencies
v1.0.2
- Update build matrix to skip EOL v6 and include v10 and v12
- Upgrade all dev-dependencies to shut down security alerts
v1.0.1
v1.0.0
- 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
- Upgrade dev-dependencies
- Upgrade
documentationto 9.0.0 to support babel7 - Upgrade all other dependencies
- Upgrade
- Use minified build for the browsers via the
browserfield - 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
- 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