Skip to content

Releases: sanity-io/jsonwebtoken-esm

v2.0.1

02 Feb 02:45
Compare
Choose a tag to compare

2.0.1 (2023-02-02)

Bug Fixes

  • deps: update devdependencies (non-major) (#10) (7331024)

This release is also available on:

v2.0.0

26 Jan 22:20
Compare
Choose a tag to compare

2.0.0 (2023-01-26)

⚠ BREAKING CHANGES

Bug Fixes

  • deps: update dependency jsonwebtoken to v9 (#8) (52daca8), closes #3

This release is also available on:

v1.0.5

26 Jan 22:13
Compare
Choose a tag to compare

1.0.5 (2023-01-26)

Bug Fixes

  • deps: update devdependencies (non-major) (#7) (be01d09)
  • deps: use newest esbuild deps that compiles (9a5f9f0)

This release is also available on:

v1.0.3

04 May 23:55
Compare
Choose a tag to compare

Fixes

  • Set target in esbuild.config.js to es2018.

v1.0.2

27 Apr 18:48
Compare
Choose a tag to compare

Fixes

  • Enabled minification in esbuild.

v1.0.1

27 Apr 18:33
Compare
Choose a tag to compare

Add types to the other entrypoints.

The /sign, /verify and /decode entrypoints have TypeScript definitions now.

Allowing you to do clever optimizations like this, without loosing typechecking:

const {default: sign} = await import('jsonwebtoken-esm/sign')
sign(...) // I'm still typechecked!

v1.0.0

27 Apr 17:42
Compare
Choose a tag to compare

jsonwebtoken-esm

A wrapper that rebundles jsonwebtoken into ESM, so you can use it in your vite, skypack, or wherever you need ESM.

Install

$ npm install jsonwebtoken-esm

Usage

Same as before, but now with ESM imports.
To see which version of jsonwebtoken is used in the bundle:

import { version } from 'jsonwebtoken-esm'

console.log(version) // "8.5.1"