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 #805

Conversation

dependabot[bot]
Copy link
Contributor

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

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

Release notes

Sourced from vite's releases.

create-vite@4.4.1

Please refer to CHANGELOG.md for details.

create-vite@4.4.0

Please refer to CHANGELOG.md for details.

create-vite@4.3.2

Please refer to CHANGELOG.md for details.

create-vite@4.3.1

Please refer to CHANGELOG.md for details.

create-vite@4.3.0

Please refer to CHANGELOG.md for details.

create-vite@4.3.0-beta.0

Please refer to CHANGELOG.md for details.

create-vite@4.2.0

Please refer to CHANGELOG.md for details.

create-vite@4.2.0-beta.1

Please refer to CHANGELOG.md for details.

create-vite@4.2.0-beta.0

Please refer to CHANGELOG.md for details.

create-vite@4.1.0

Please refer to CHANGELOG.md for details.

create-vite@4.1.0-beta.0

Please refer to CHANGELOG.md for details.

create-vite@4.0.0

Please refer to CHANGELOG.md for details.

create-vite@4.0.0-beta.0

Please refer to CHANGELOG.md for details.

Changelog

Sourced from vite's changelog.

4.4.7 (2023-07-24)

4.4.6 (2023-07-21)

4.4.5 (2023-07-20)

4.4.4 (2023-07-14)

4.4.3 (2023-07-11)

... (truncated)

Commits

Updates @vitejs/plugin-react from 2.2.0 to 4.0.4

Release notes

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

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)

plugin-react@4.0.1

plugin-react@4.0.0

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

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

  • Cache plugin load (#141)
  • Wrap dynamic import to speedup analysis (#143)

Other notable changes

... (truncated)

Changelog

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

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:

  • Cache plugin load (#141)
  • Wrap dynamic import to speedup analysis (#143)

Other notable changes:

  • Silence "use client" warning (#144, fix #137)
  • Fast Refresh is applied on JS files using automatic runtime (#122, fix #83)

... (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 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 Aug 1, 2023
@netlify
Copy link

netlify bot commented Aug 1, 2023

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

Name Link
🔨 Latest commit f8a637b
🔍 Latest deploy log https://app.netlify.com/sites/react-hotkey-tooltip-storybook/deploys/64c8fb0e7c42d20008578a0c
😎 Deploy Preview https://deploy-preview-805--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.

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.4.7
- [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.4.7/packages/vite)

Updates `@vitejs/plugin-react` from 2.2.0 to 4.0.4
- [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.0.4/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] <support@github.com>
@dependabot dependabot bot force-pushed the dependabot/npm_and_yarn/vite-and-vitejs/plugin-react-4.4.7 branch from 3c72c27 to f8a637b Compare August 1, 2023 12:31
@dependabot @github
Copy link
Contributor Author

dependabot bot commented on behalf of github Sep 1, 2023

Superseded by #814.

@dependabot dependabot bot closed this Sep 1, 2023
@dependabot dependabot bot deleted the dependabot/npm_and_yarn/vite-and-vitejs/plugin-react-4.4.7 branch September 1, 2023 12:15
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