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 @vitejs/plugin-react from 4.1.1 to 4.2.1 #16

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

Conversation

armisnyk
Copy link
Owner

@armisnyk armisnyk commented May 7, 2024

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


Snyk has created this PR to upgrade @vitejs/plugin-react from 4.1.1 to 4.2.1.

ℹ️ 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 2 versions ahead of your current version.
  • The recommended version was released 5 months ago, on 2023-12-04.
Release notes
Package name: @vitejs/plugin-react
  • 4.2.1 - 2023-12-04

    Remove generic parameter on Plugin to avoid type error with Rollup 4/Vite 5 and skipLibCheck: false.

    I expect very few people to currently use this feature, but if you are extending the React plugin via api object, you can get back the typing of the hook by importing ViteReactPluginApi:

    import type { Plugin } from 'vite'
    import type { ViteReactPluginApi } from '@ vitejs/plugin-react'

    export const somePlugin: Plugin = {
    name: 'some-plugin',
    api: {
    reactBabel: (babelConfig) => {
    babelConfig.plugins.push('some-babel-plugin')
    },
    } satisfies ViteReactPluginApi,
    }




  • 4.2.0 - 2023-11-16

    Update peer dependency range to target Vite 5

    There were no breaking change that impacted this plugin, so any combination of React plugins and Vite core version will work.

    Align jsx runtime for optimized dependencies

    This will only affect people using internal libraries that contains untranspiled JSX. This change aligns the optimizer with the source code and avoid issues when the published source don't have React in the scope.

    Reminder: While being partially supported in Vite, publishing TS & JSX outside of internal libraries is highly discouraged.

  • 4.1.1 - 2023-11-02
    • Enable retainLines to get correct line numbers for jsxDev (fix #235)
from @vitejs/plugin-react GitHub release notes
Commit messages
Package name: @vitejs/plugin-react

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants