Releases: Danetag/ntc-ts
Releases · Danetag/ntc-ts
Release list
v0.2.1
Summary
- Publishes ntc-ts 0.2.1 to npm.
- Includes the merged Dependabot security maintenance from PR #43.
- Keeps the package runtime verified on Node 18+.
Verification
- npm ci
- npm run lint
- npm run typecheck
- npm test
- npm run build
- npm run check:package
- npm run smoke
v0.2.0
Summary
Modernizes ntc-ts packaging, build tooling, and the color-matching API while preserving the existing singleton API.
Highlights
- Added
createColorMatcher()for isolated palettes and caches. - Added readonly/as-const palette support.
- Added cache controls with
cache: falseand deterministicmaxCacheSizeFIFO eviction. - Migrated package builds from
tsupto Rollup while preserving ESM, CommonJS, browser global/IIFE, declaration, source map, and compatibility artifacts. - Added packed-package contract checks for ESM, CommonJS, browser global, TypeScript consumers, and Node 18 runtime.
- Hardened CI/release workflows with pinned GitHub Actions, minimal permissions, timeouts, strict dist checks, and release tag/version validation.
- Fixed and expanded README package usage, cache/global state documentation, and migration notes.
Compatibility
- Existing
getColorName,initColors,flushCachedColors,colors, andcachedColorsexports are preserved. - Runtime support remains Node
>=18. - The package still has zero runtime dependencies.
Verification
- Unit tests: 40 passing.
- Package checks: packed ESM, CommonJS, browser IIFE, and TypeScript consumer checks passing.
- Runtime checks: packed ESM/CommonJS runtime checks passing.
- GitHub CI: Node 18 package runtime, Node 20/22/24, Analyze JavaScript, and CodeQL all passed before release.
Merged PRs
v0.0.16
v0.0.15
v0.0.14
v0.0.13
v0.0.12
v0.0.11
v0.0.8
Goal of this release is to fix the use of this lib in a Node JS env, specifically latest versions with ES modules.
- In
package.json:- update
microbundleversion - add
typeskey to point to generateddist/ntc-ts.d.tstypes - use
type: modulefor Node JS to properly use ES modules
- update
- update
tsconfig.json+rollupconfig - update way of importing/exporting in
src/index.ts - re-build
dist/folder - re-build
example/