Skip to content

Missing types while migrating from 3.x to 4.x #293

Answered by panva
nulltoken asked this question in Q&A
Discussion options

You must be logged in to vote

https://github.com/panva/jose/releases/tag/v4.0.0

Migration Guide

Migrating from v3.x to v4.x is very straight forward.

  1. All import statements, require(), or import() invocations should be changed to use just 'jose' as the target.
  2. There are no more default exports. Everything was converted to a named export.
  3. Refer to the documentation if you're not sure how a given module should be imported / required.
  4. any custom resolvers targeting jose dist files for jest, typescript, or other tooling should be removed
// 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,

Replies: 2 comments 4 replies

Comment options

You must be logged in to vote
4 replies
@gproanomsft
Comment options

@panva
Comment options

panva Nov 2, 2021
Maintainer

@gproanomsft
Comment options

@panva
Comment options

panva Nov 2, 2021
Maintainer

Answer selected by nulltoken
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants
Converted from issue

This discussion was converted from issue #292 on October 19, 2021 09:42.