Skip to content

Releases: Danetag/ntc-ts

v0.2.1

Choose a tag to compare

@Danetag Danetag released this 09 Sep 01:50

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

Choose a tag to compare

@Danetag Danetag released this 06 Sep 19:26

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: false and deterministic maxCacheSize FIFO eviction.
  • Migrated package builds from tsup to 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, and cachedColors exports 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

  • #41 Harden package contract and release checks
  • #42 Migrate bundling from tsup to Rollup
  • #40 Add isolated color matcher API

v0.0.16

Choose a tag to compare

@Danetag Danetag released this 01 Jan 19:47
6d46871
[fix] uses npm publish (#36)

v0.0.15

Choose a tag to compare

@Danetag Danetag released this 01 Jan 19:44
bc08813
[fix] Use Github secret + registry (#35)

v0.0.14

Choose a tag to compare

@Danetag Danetag released this 01 Jan 19:26
ceeded5
fix: update secret (#34)

v0.0.13

Choose a tag to compare

@Danetag Danetag released this 01 Jan 19:17
198f7eb

...

v0.0.12

Choose a tag to compare

@Danetag Danetag released this 01 Jan 19:15
8fa0548

Release package to Github packages

v0.0.11

Choose a tag to compare

@Danetag Danetag released this 01 Jan 19:12
9469d5b

Includes new Github workflow to publish as a Github package

v0.0.8

Choose a tag to compare

@Danetag Danetag released this 31 Dec 03:58
1ec585e

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 microbundle version
    • add types key to point to generated dist/ntc-ts.d.ts types
    • use type: module for Node JS to properly use ES modules
  • update tsconfig.json + rollup config
  • update way of importing/exporting in src/index.ts
  • re-build dist/ folder
  • re-build example/

v0.0.7

Choose a tag to compare

@Danetag Danetag released this 21 May 17:53
7637820
  • removed "npm-force-resolutions" package
  • updated packages
  • update packages in example/
  • added code analysis in workflow