Releases: sanity-io/jsonwebtoken-esm
Releases · sanity-io/jsonwebtoken-esm
v2.0.1
v2.0.0
v1.0.5
v1.0.3
v1.0.2
v1.0.1
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
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"