-
What happened?While migrating to the latest 4.x, we discovered some TypeScript type definitions are no longer exported. We using your library in a context where we're working with many trusted authorization servers. Mainly, we've created a higher order keyRetriever typed Previously we were relying on:
And it seems Would you be open to a PullRequest exporting those? Version4.1.0 RuntimeNode.js Runtime Detailsv14.18.0 Code to reproduceNot really applicable.
|
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 4 replies
-
https://github.com/panva/jose/releases/tag/v4.0.0 Migration GuideMigrating from v3.x to v4.x is very straight forward.
// before (v3.x)
import { jwtVerify } from 'jose/jwt/verify'
import { SignJWT } from 'jose/jwt/sign'
import * as errors from 'jose/util/errors'
// after (v4.x)
import { jwtVerify, SignJWT, errors } from 'jose' Furthermore, all types are exported from the actual main https://github.com/panva/jose/blob/v4.1.0/src/index.ts base64url is also exported. |
Beta Was this translation helpful? Give feedback.
-
@panva That last paragraph was the missing link from https://github.com/panva/jose/releases/tag/v4.0.0 Awesome feedback! Thanks a lot. |
Beta Was this translation helpful? Give feedback.
https://github.com/panva/jose/releases/tag/v4.0.0
Migration Guide
Migrating from v3.x to v4.x is very straight forward.
import
statements,require()
, orimport()
invocations should be changed to use just'jose'
as the target.jose
dist files for jest, typescript, or other tooling should be removed