Repository navigation
Releases
v0.1.0
What's Changed
This is a packaging release - the API is unchanged. The npm package now ships
both ES modules and CommonJS, and depends on @nats-io/nkeys 2.1.0, which
ships the same dual build.
Until now the npm package was CommonJS only. Bundlers (esbuild, webpack, Vite,
Metro) can't tree-shake CommonJS, and ESM apps loaded jwt through a CommonJS
compatibility layer. Shipping an ES module build lets bundlers keep only what an
app uses and lets import load native ESM. The CommonJS build stays, so
existing require users, older TypeScript module settings and tools that
don't understand ESM keep working unchanged. Use one or the other within an
application: mixing import and require loads two copies.
The package now declares an exports map, so only @nats-io/jwt (and
@nats-io/jwt/package.json) can be imported. Imports of internal paths such
as @nats-io/jwt/lib/jwt no longer resolve; import from the package root
instead. Node 18 or later is required.
- Update Node.js, Deno versions, and dependencies by @aricart in #48
- build: npm module enhancements, ci, 0.1.0-0 by @aricart in #52
- ci: publish to jsr with the runner's deno by @aricart in #53
- chore: bump version to 0.1.0-1 by @aricart in #54
Full Changelog: v0.0.11...v0.1.0
v0.1.0-1
What's Changed
This is a packaging release - the API and behavior are unchanged. The npm
package now ships both ES modules and CommonJS, and depends on the nkeys
pre-release that does the same.
This is a pre-release: npm publishes it under the next tag and JSR serves it
only when asked for by exact version (npm install @nats-io/jwt@next,
jsr:@nats-io/jwt@0.1.0-0).
Until now the npm package was CommonJS only. Bundlers (esbuild, webpack, Vite,
Metro) can't tree-shake CommonJS, and ESM apps loaded jwt through a CommonJS
compatibility layer. Shipping an ES module build lets bundlers keep only what an
app uses and lets import load native ESM. The CommonJS build stays, so
existing require users, older TypeScript module settings and tools that
don't understand ESM keep working unchanged. Use one or the other within an
application: mixing import and require loads two copies.
- build: npm module enhancements, ci, 0.1.0-0 by @aricart in #52
importloads an ES module build (lib/esm/),requirethe CommonJS build (lib/), each with its own typessideEffects: false, so bundlers drop jwt when it's imported but unused- depends on
@nats-io/nkeys2.1.0-0 - the build compiles
src/directly; the import-rewriting script is retired - CI on current actions, Deno 2.9, and Node 22, 24 and 26
- releases: pre-releases publish to
nextand final versions tolatest
(every release used to go tonext), via npm trusted publishing
- Update Node.js, Deno versions, and dependencies by @aricart in #48
Full Changelog: v0.0.11...v0.1.0-1
v0.1.0-0
What's Changed
This is a packaging release - the API and behavior are unchanged. The npm
package now ships both ES modules and CommonJS, and depends on the nkeys
pre-release that does the same.
This is a pre-release: npm publishes it under the next tag and JSR serves it
only when asked for by exact version (npm install @nats-io/jwt@next,
jsr:@nats-io/jwt@0.1.0-0).
Until now the npm package was CommonJS only. Bundlers (esbuild, webpack, Vite,
Metro) can't tree-shake CommonJS, and ESM apps loaded jwt through a CommonJS
compatibility layer. Shipping an ES module build lets bundlers keep only what an
app uses and lets import load native ESM. The CommonJS build stays, so
existing require users, older TypeScript module settings and tools that
don't understand ESM keep working unchanged. Use one or the other within an
application: mixing import and require loads two copies.
- build: npm module enhancements, ci, 0.1.0-0 by @aricart in #52
importloads an ES module build (lib/esm/),requirethe CommonJS build (lib/), each with its own typessideEffects: false, so bundlers drop jwt when it's imported but unused- depends on
@nats-io/nkeys2.1.0-0 - the build compiles
src/directly; the import-rewriting script is retired - CI on current actions, Deno 2.9, and Node 22, 24 and 26
- releases: pre-releases publish to
nextand final versions tolatest
(every release used to go tonext), via npm trusted publishing
- Update Node.js, Deno versions, and dependencies by @aricart in #48
Full Changelog: v0.0.11...v0.1.0-0
v0.0.11
What's Changed
- JSR changes by @aricart in #38
- [FIX] pin version until a released jsr version is available by @aricart in #39
- [CI] jsr publish option --allow-dirty by @aricart in #40
- ci release debug by @aricart in #41
- Remove CommonJS and ESM files, update dependencies. by @aricart in #44
- v0.0.11 by @aricart in #46
Full Changelog: v0.0.9...v0.0.11
v0.0.10-9
v0.0.10-5
v0.0.9
v0.0.8
What's Changed
- Add types to exports by @jonaskello in #33
- [BUMP] version by @aricart in #34
New Contributors
- @jonaskello made their first contribution in #33
Full Changelog: v0.0.7...v0.0.8
v0.0.7
What's Changed
- Add issue forms by @bruth in #23
- Fix issue config discussions link by @bruth in #24
- [TEST] fixed change in labels parsed from nsc by @aricart in #28
- [LIC] added dependencies.md by @aricart in #27
- [BUMP] CI dependencies/version by @aricart in #30
- [BUMP] release version by @aricart in #31
New Contributors
Full Changelog: v0.0.6...v0.0.7