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

fix: bump vite and @vitejs/plugin-react #840

Conversation

dependabot[bot]
Copy link
Contributor

@dependabot dependabot bot commented on behalf of github Nov 1, 2023

Bumps vite and @vitejs/plugin-react. These dependencies needed to be updated together.
Updates vite from 3.2.7 to 4.5.0

Release notes

Sourced from vite's releases.

[email protected]

Please refer to CHANGELOG.md for details.

[email protected]

Please refer to CHANGELOG.md for details.

[email protected]

Please refer to CHANGELOG.md for details.

[email protected]

Please refer to CHANGELOG.md for details.

[email protected]

Please refer to CHANGELOG.md for details.

[email protected]

Please refer to CHANGELOG.md for details.

[email protected]

Please refer to CHANGELOG.md for details.

[email protected]

Please refer to CHANGELOG.md for details.

[email protected]

Please refer to CHANGELOG.md for details.

[email protected]

Please refer to CHANGELOG.md for details.

[email protected]

Please refer to CHANGELOG.md for details.

Changelog

Sourced from vite's changelog.

4.5.0 (2023-10-18)

4.4.11 (2023-10-05)

  • revert: "fix: use string manipulation instead of regex to inject esbuild helpers (54e1275), closes #14094

4.4.10 (2023-10-03)

4.4.9 (2023-08-07)

... (truncated)

Commits
  • 055d2b8 release: v4.5.0
  • ed7bdc5 feat: scan .marko files (#14669)
  • 45595ef feat: backport mdx as known js source (#14560) (#14670)
  • 520139c feat(ssr): backport ssr.resolve.conditions and ssr.resolve.externalConditions...
  • b50db04 release: v4.4.11
  • 54e1275 revert: "fix: use string manipulation instead of regex to inject esbuild helpers
  • f3a3e77 release: v4.4.10
  • f8b9adb fix: restore builtins list
  • 104971d fix(resolve): support submodules of optional peer deps (#14489)
  • 0c6d289 fix(analysis): warnings for dynamic imports that use static template literals...
  • Additional commits viewable in compare view

Updates @vitejs/plugin-react from 2.2.0 to 4.1.0

Release notes

Sourced from @​vitejs/plugin-react's releases.

v4.1.0

  • Add @types/babel__cores to dependencies (fix #211)
  • Improve build perf when not using Babel plugins by lazy loading @babel/core #212
  • Better invalidation message when an export is added & fix HMR for export of nullish values #215
  • Include non-dev jsx runtime in optimizeDeps & support HMR for JS files using the non dev runtime #224
  • The build output now contains a index.d.cts file so you don't get types errors when setting moduleResolution to node16 or nodenext in your tsconfig (we recommend using bundler which is more close to how Vite works)

v4.0.4

  • Fix #198: Enable Babel if presets list is not empty

v4.0.3

  • Revert #108: Remove throw when refresh runtime is loaded twice to enable usage in micro frontend apps. This was added to help fix setup usage, and this is not worth an annoying warning for others or a config parameter.

v4.0.2

  • Fix fast-refresh for files that are transformed into jsx (#188)

[email protected]

[email protected]

Options changes

include/exclude

These options now allow to completely override the files processed by the plugin (#122). This is more in line with other Rollup/Vite plugins and simplify the setup of enabling Fast Refresh for .mdx files. This can be done like this:

export default defineConfig({
  plugins: [
    { enforce: 'pre', ...mdx() },
    react({ include: /\.(mdx|js|jsx|ts|tsx)$/ }),
  ],
})

These changes also allow to apply Babel plugins on files outside Vite root (expect in node_modules), which improve support for monorepo (fix #16).

With these changes, only the file extensions is used for filtering processed files and the query param fallback is removed.

jsxRuntime

The support for React auto import when using classic runtime is removed. This was prone to errors and added complexity for no good reason given the very wide support of automatic runtime nowadays. This migration path should be as simple as removing the runtime option from the config.

Removed options

  • fastRefresh (#122) This should be correctly activated by plugin without configuration.
  • jsxPure (#129) This is a niche use case that was just passing down the boolean to esbuild.jsxSideEffects.

Perf

... (truncated)

Changelog

Sourced from @​vitejs/plugin-react's changelog.

4.1.0 (2023-09-24)

  • Add @types/babel__cores to dependencies (fix #211)
  • Improve build perf when not using Babel plugins by lazy loading @babel/core #212
  • Better invalidation message when an export is added & fix HMR for export of nullish values #215
  • Include non-dev jsx runtime in optimizeDeps & support HMR for JS files using the non dev runtime #224
  • The build output now contains a index.d.cts file so you don't get types errors when setting moduleResolution to node16 or nodenext in your tsconfig (we recommend using bundler which is more close to how Vite works)

4.0.4 (2023-07-31)

  • Fix #198: Enable Babel if presets list is not empty

4.0.3 (2023-07-10)

  • Revert #108: Remove throw when refresh runtime is loaded twice to enable usage in micro frontend apps. This was added to help fix setup usage, and this is not worth an annoying warning for others or a config parameter.

4.0.2 (2023-07-06)

  • Fix fast-refresh for files that are transformed into jsx (#188)

4.0.1 (2023-06-19)

4.0.0 (2023-04-20)

This major version include a revamp of options:

  • include/exclude now allow to completely override the files processed by the plugin (#122). This is more in line with other Rollup/Vite plugins and simplify the setup of enabling Fast Refresh for .mdx files. This can be done like this:
export default defineConfig({
  plugins: [
    { enforce: 'pre', ...mdx() },
    react({ include: /\.(mdx|js|jsx|ts|tsx)$/ }),
  ],
})

These changes also allow to apply Babel plugins on files outside Vite root (expect in node_modules), which improve support for monorepo (fix #16).

With these changes, only the file extensions is used for filtering processed files and the query param fallback is removed.

  • fastRefresh is removed (#122). This should be correctly activated by plugin without configuration.
  • jsxPure is removed. This is a niche use case that was just passing down the boolean to esbuild.jsxSideEffects. (#129)

The support for React auto import whe using classic runtime is removed. This was prone to errors and added complexity for no good reason given the very wide support of automatic runtime nowadays. This migration path should be as simple as removing the runtime option from the config.

This release goes in hand with the upcoming Vite 4.3 release focusing on performances:

... (truncated)

Commits

You can trigger a rebase of this PR by commenting @dependabot rebase.


Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot merge will merge this PR after your CI passes on it
  • @dependabot squash and merge will squash and merge this PR after your CI passes on it
  • @dependabot cancel merge will cancel a previously requested merge and block automerging
  • @dependabot reopen will reopen this PR if it is closed
  • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
  • @dependabot show <dependency name> ignore conditions will show all of the ignore conditions of the specified dependency
  • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)

Note
Automatic rebases have been disabled on this pull request as it has been open for over 30 days.

@dependabot dependabot bot added the dependencies Pull requests that update a dependency file label Nov 1, 2023
Copy link

netlify bot commented Nov 1, 2023

Deploy Preview for react-hotkey-tooltip-storybook ready!

Name Link
🔨 Latest commit 424efc0
🔍 Latest deploy log https://app.netlify.com/sites/react-hotkey-tooltip-storybook/deploys/654b47115078b600086f8d66
😎 Deploy Preview https://deploy-preview-840--react-hotkey-tooltip-storybook.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@EmaSuriano
Copy link
Owner

@dependabot rebase

Bumps [vite](https://github.com/vitejs/vite/tree/HEAD/packages/vite) and [@vitejs/plugin-react](https://github.com/vitejs/vite-plugin-react/tree/HEAD/packages/plugin-react). These dependencies needed to be updated together.

Updates `vite` from 3.2.7 to 4.5.0
- [Release notes](https://github.com/vitejs/vite/releases)
- [Changelog](https://github.com/vitejs/vite/blob/main/packages/vite/CHANGELOG.md)
- [Commits](https://github.com/vitejs/vite/commits/v4.5.0/packages/vite)

Updates `@vitejs/plugin-react` from 2.2.0 to 4.1.0
- [Release notes](https://github.com/vitejs/vite-plugin-react/releases)
- [Changelog](https://github.com/vitejs/vite-plugin-react/blob/main/packages/plugin-react/CHANGELOG.md)
- [Commits](https://github.com/vitejs/vite-plugin-react/commits/v4.1.0/packages/plugin-react)

---
updated-dependencies:
- dependency-name: vite
  dependency-type: direct:development
  update-type: version-update:semver-major
- dependency-name: "@vitejs/plugin-react"
  dependency-type: direct:development
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <[email protected]>
@dependabot dependabot bot force-pushed the dependabot/npm_and_yarn/vite-and-vitejs/plugin-react-4.5.0 branch from 898db6d to 424efc0 Compare November 8, 2023 08:30
Copy link
Contributor Author

dependabot bot commented on behalf of github Apr 1, 2024

Superseded by #902.

@dependabot dependabot bot closed this Apr 1, 2024
@dependabot dependabot bot deleted the dependabot/npm_and_yarn/vite-and-vitejs/plugin-react-4.5.0 branch April 1, 2024 12:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dependencies Pull requests that update a dependency file
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant