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

build(deps-dev): bump vite and @vitejs/plugin-react #258

Conversation

dependabot[bot]
Copy link
Contributor

@dependabot dependabot bot commented on behalf of github Nov 6, 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.1

Release notes

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

v4.1.1

  • Enable retainLines to get correct line numbers for jsxDev (fix #235)

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.

... (truncated)

Changelog

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

4.1.1 (2023-11-02)

  • Enable retainLines to get correct line numbers for jsxDev (fix #235)

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)

... (truncated)

Commits

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually 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)

@dependabot dependabot bot requested a review from Jonghakseo as a code owner November 6, 2023 06:07
@dependabot dependabot bot added the dependencies Pull requests that update a dependency file label Nov 6, 2023
@PatrykKuniczak
Copy link
Collaborator

PatrykKuniczak commented Nov 6, 2023

We can't do it, before vite give back, the absolute origin path to the folders, for more read description on #251

@PatrykKuniczak PatrykKuniczak mentioned this pull request Nov 6, 2023
@dependabot dependabot bot force-pushed the dependabot/npm_and_yarn/vite-and-vitejs/plugin-react-4.5.0 branch from 7d62dce to 90c7482 Compare November 9, 2023 22:26
@Jonghakseo Jonghakseo added the invalid This doesn't seem right label Nov 9, 2023
@PatrykKuniczak
Copy link
Collaborator

@Jonghakseo @wonkyDD We're probably lucky :)

vitejs/vite#12072 (comment)

@Jonghakseo
Copy link
Owner

@Jonghakseo @wonkyDD We're probably lucky :)

vitejs/vite#12072 (comment)

Wow, it's insane.

@PatrykKuniczak
Copy link
Collaborator

@Jonghakseo You're able to check it, a let us know?

@Jonghakseo
Copy link
Owner

@PatrykKuniczak

Sadly, the pull request is stuck in 5.0.0beta-18, so it'll be a while before it gets implemented :(

@PatrykKuniczak
Copy link
Collaborator

@Jonghakseo We'll check it in the near future :)

@dependabot dependabot bot force-pushed the dependabot/npm_and_yarn/vite-and-vitejs/plugin-react-4.5.0 branch from 90c7482 to 3bbd2a1 Compare November 11, 2023 20:06
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.1
- [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.1/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 3bbd2a1 to 62df21e Compare November 11, 2023 20:07
@wonkyDD
Copy link
Contributor

wonkyDD commented Nov 12, 2023

@PatrykKuniczak @Jonghakseo Thanks to both of you 👏

Copy link
Contributor Author

dependabot bot commented on behalf of github Nov 18, 2023

Superseded by #279.

@dependabot dependabot bot closed this Nov 18, 2023
@dependabot dependabot bot deleted the dependabot/npm_and_yarn/vite-and-vitejs/plugin-react-4.5.0 branch November 18, 2023 07:19
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 invalid This doesn't seem right
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants