Skip to content

Releases

v0.1.0

Choose a tag to compare

@aricart aricart released this 16 Nov 19:43
fda3a1f

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

v0.1.0-1 Pre-release
Pre-release

Choose a tag to compare

@aricart aricart released this 04 Nov 21:47
82c9f32

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
    • import loads an ES module build (lib/esm/), require the CommonJS build (lib/), each with its own types
    • sideEffects: false, so bundlers drop jwt when it's imported but unused
    • depends on @nats-io/nkeys 2.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 next and final versions to latest
      (every release used to go to next), 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

v0.1.0-0 Pre-release
Pre-release

Choose a tag to compare

@aricart aricart released this 04 Nov 21:30
c4734b3

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
    • import loads an ES module build (lib/esm/), require the CommonJS build (lib/), each with its own types
    • sideEffects: false, so bundlers drop jwt when it's imported but unused
    • depends on @nats-io/nkeys 2.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 next and final versions to latest
      (every release used to go to next), 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

Choose a tag to compare

@aricart aricart released this 20 Mar 21:26
b7b6d72

What's Changed

Full Changelog: v0.0.9...v0.0.11

v0.0.10-9

Choose a tag to compare

@aricart aricart released this 05 Dec 23:00
06260b1

What's Changed

  • Remove CommonJS and ESM files, update dependencies. by @aricart in #44

Full Changelog: v0.0.10-5...v0.0.10-9

v0.0.10-5

v0.0.10-5 Pre-release
Pre-release

Choose a tag to compare

@aricart aricart released this 11 Jun 19:20
b261d50

What's Changed

Full Changelog: v0.0.9...v0.0.10-5

v0.0.9

Choose a tag to compare

@aricart aricart released this 04 Mar 17:41

What's Changed

Full Changelog: v0.0.8...v0.0.9

v0.0.8

Choose a tag to compare

@aricart aricart released this 14 Nov 20:18
44dc6b4

What's Changed

New Contributors

Full Changelog: v0.0.7...v0.0.8

v0.0.7

Choose a tag to compare

@aricart aricart released this 10 Nov 15:31
4390626

What's Changed

New Contributors

  • @bruth made their first contribution in #23

Full Changelog: v0.0.6...v0.0.7

v0.0.6

Choose a tag to compare

@aricart aricart released this 20 Mar 19:36
41b87a7

What's Changed

  • added authentication response jwt, added generic fields to users (tags, etc), added ability so set issuer account on generic claims, etc @aricart in #22

Full Changelog: v0.0.5...v0.0.6