Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Snyk] Upgrade jwt-decode from 3.1.2 to 4.0.0 #1480

Merged
merged 2 commits into from
Jan 31, 2024

Conversation

mo-auto
Copy link
Member

@mo-auto mo-auto commented Nov 27, 2023

This PR was automatically created by Snyk using the credentials of a real user.


Snyk has created this PR to upgrade jwt-decode from 3.1.2 to 4.0.0.

ℹ️ Keep your dependencies up-to-date. This makes it easier to fix existing vulnerabilities and to more quickly identify and fix newly disclosed vulnerabilities when they affect your project.


Warning: This is a major version upgrade, and may be a breaking change.

  • The recommended version is 6 versions ahead of your current version.
  • The recommended version was released a month ago, on 2023-10-27.
Release notes
Package name: jwt-decode
  • 4.0.0 - 2023-10-27

    A new version of the library, including a couple of improvements:

    • No longer include a polyfill for atob, as this is supported in all major browsers (and node environments > 14).
    • Compile to ES2017, dropping support for anything that does not support ES2017 (which should be very limited according to caniuse)
    • Use Node's atob when running on node.
    • Drop support for Node 14 and 16, add support for Node 20.
    • Add support for package.json's exports field, for better CJS/ESM support
    • Reorganize build artifacts for better CJS/ESM support (cjs and esm needs to be their own directory with a cjs specific package.json file)
    • Drop manual UMD bundle creation in index.standalone.ts, but rely on rollup instead.
    • Infer JwtPayload and JwtHeader default types from the header argument by using overloads.

    Even though some users might experience breaking changes, mostly because of the exports field, the majority should be able to update without making any changes, assuming the SDK is used in environments with support for atob.

    Migration to v4.0.0

    The jwtDecode function is now no longer the default export, and is instead provided as a named export. Make sure to update your code in places where you are importing this function:

    -import jwtDecodefrom "jwt-decode";
    +import { jwtDecode } from "jwt-decode";
  • 4.0.0-beta.4 - 2023-09-05

    Breaking changes

    Fixed

  • 4.0.0-beta.3 - 2023-08-16

    Breaking changes

    Changed

  • 4.0.0-beta.2 - 2023-08-04

    Changed

    Fixed

    • Ensure types are bundled and correctly linked #174 (jonkoops)
  • 4.0.0-beta.1 - 2023-07-29

    Fixed

  • 4.0.0-beta.0 - 2023-07-28

    A new version of the library, including a couple of improvements:

    • No longer include a polyfill for atob, as this is supported in all major browsers (and node environments > 14).
    • Compile to ES2017, dropping support for anything that does not support ES2017 (which should be very limited according to caniuse)
    • Use Node's atob when running on node.
    • Drop support for Node 14, add support for Node 20.
    • Add support for package.json's exports field, for better CJS/ESM support
    • Reorganize build artifacts for better CJS/ESM support (cjs and esm needs to be their own directory with a cjs specific package.json file)
    • Drop manual UMD bundle creation in index.standalone.ts, but rely on rollup instead.
    • Infer JwtPayload and JwtHeader default types from the header argument by using overloads.

    Additionally, this PR ensures the file size is decreased:

    • ESM and CJS decreased by 22%
    • UMD decreased by 37%

    Even though some users might experience breaking changes, mostly because of the exports field, the majority should be able to update without making any changes, assuming the SDK is used in environments with support for atob.

  • 3.1.2 - 2020-11-16

    3.1.2

from jwt-decode GitHub release notes
Commit messages
Package name: jwt-decode

Compare


Note: You are seeing this because you or someone else with access to this repository has authorized Snyk to open upgrade PRs.

For more information:

🧐 View latest project report

🛠 Adjust upgrade PR settings

🔕 Ignore this dependency or unsubscribe from future upgrade PRs

@mo-auto mo-auto added comp-admin-ui Component affected by issue or PR kind-dependencies Pull requests that update a dependency file labels Nov 27, 2023
Copy link

sonarcloud bot commented Nov 27, 2023

[flex_admin_ui] Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
0.0% 0.0% Duplication

Signed-off-by: Jeet Viramgama <jviramgama5@gmail.com>
Copy link

sonarcloud bot commented Jan 31, 2024

Quality Gate Passed Quality Gate passed for 'flex_admin_ui'

Kudos, no new issues were introduced!

0 New issues
0 Security Hotspots
0.0% Coverage on New Code
0.0% Duplication on New Code

See analysis details on SonarCloud

@jv18creator
Copy link
Contributor

Ref: Migration to v4.0.0

@duttarnab duttarnab merged commit 9fd7776 into main Jan 31, 2024
3 checks passed
@duttarnab duttarnab deleted the snyk-upgrade-b43603af1973c2f140d4531b1a61564d branch January 31, 2024 13:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
comp-admin-ui Component affected by issue or PR kind-dependencies Pull requests that update a dependency file
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants