Debian Codegraph @

MIGRATION_GUIDE.md

raw
1 ## Migration Guide (v4.0.0)
2
3 Starting from [v4.0.0](https://github.com/golang-jwt/jwt/releases/tag/v4.0.0), the import path will be:
4
5 "github.com/golang-jwt/jwt/v4"
6
7 The `/v4` version will be backwards compatible with existing `v3.x.y` tags in this repo, as well as
8 `github.com/dgrijalva/jwt-go`. For most users this should be a drop-in replacement, if you're having
9 troubles migrating, please open an issue.
10
11 You can replace all occurrences of `github.com/dgrijalva/jwt-go` or `github.com/golang-jwt/jwt` with `github.com/golang-jwt/jwt/v4`, either manually or by using tools such as `sed` or `gofmt`.
12
13 And then you'd typically run:
14
15 ```
16 go get github.com/golang-jwt/jwt/v4
17 go mod tidy
18 ```
19
20 ## Older releases (before v3.2.0)
21
22 The original migration guide for older releases can be found at https://github.com/dgrijalva/jwt-go/blob/master/MIGRATION_GUIDE.md.