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 iron-session from 8.0.0-beta.5 to 8.0.2 #2

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

Carment14tham
Copy link
Owner

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


![snyk-top-banner](https://github.com/andygongea/OWASP-Benchmark/assets/818805/c518c423-16fe-447e-b67f-ad5a49b5d123)

Snyk has created this PR to upgrade iron-session from 8.0.0-beta.5 to 8.0.2.

ℹ️ 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.


  • The recommended version is 4 versions ahead of your current version.

  • The recommended version was released on a month ago.

Release notes
Package name: iron-session
  • 8.0.2 - 2024-06-14
  • 8.0.1 - 2023-11-21

    We've updated the types and examples for destroy from session.destroy() => Promise<void> to session.destroy() => void. Destroy is not asynchronous, it only removes the session cookie.

  • 8.0.0 - 2023-11-20

    The v8 of iron-session focuses on reducing its API surface and bringing compatibility with the Next.js App Router.

    As long as you make the required code changes, this upgrade will not disconnect your customers once deployed.

    Instead of multiple opinionated wrappers (withIronSess..) There's now a single method to get sessions: getIronSession().
    Use it like this:

    import { getIronSession } from "iron-session";

    const session = getIronSession(req, res, { password: "...", cookieName: "..." });

    // or, in App Router:
    const session = getIronSession(cookies(), { password: "...", cookieName: "..." });

    Read more in the README: https://github.com/vvo/iron-session#usage.
    Have a look at our new examples:

    New features:

    • App Router compatibility
    • updateConfig method to change a session configuration for the next save() or destroy()
    • Single entry point, no more /next, /edge, ..

    BREAKING CHANGES:

    • We've removed support for Node.js < 18
    • We've removed withIronSessionApiRoute, withIronSessionSsr, ironSession
    • added support

    Gigantic thanks to:

    DALL·E 2023-11-20 08 43 30 - A black and white banner with a background resembling a millimetric paper sheet, similar to a blueprint  The word v8 is prominently written in the c

  • 8.0.0-beta.6 - 2023-11-18
  • 8.0.0-beta.5 - 2023-11-15
from iron-session GitHub release notes

Important

  • Check the changes in this PR to ensure they won't cause issues with your project.
  • This PR was automatically created by Snyk using the credentials of a real user.

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:

Snyk has created this PR to upgrade iron-session from 8.0.0-beta.5 to 8.0.2.

See this package in npm:
iron-session

See this project in Snyk:
https://app.snyk.io/org/kotonezq/project/9a47ce2d-bfce-4fe4-af8d-82e3f6a1b14e?utm_source=github&utm_medium=referral&page=upgrade-pr
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants