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, @vitejs/plugin-react and vite-plugin-svgr #2492

Conversation

dependabot[bot]
Copy link
Contributor

@dependabot dependabot bot commented on behalf of github Dec 10, 2022

Bumps vite, @vitejs/plugin-react and vite-plugin-svgr. These dependencies needed to be updated together.
Updates vite from 3.0.9 to 4.0.0

Release notes

Sourced from vite's releases.

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.

create-vite@3.2.1

Please refer to CHANGELOG.md for details.

create-vite@3.2.0

Please refer to CHANGELOG.md for details.

create-vite@3.1.0

Please refer to CHANGELOG.md for details.

Changelog

Sourced from vite's changelog.

4.0.0 (2022-12-09)

Vite 4 Announcement Cover Image

Read the announcement blog post: Announcing Vite 4

Quick links:

Docs in other languages:

Main Changes

This major is smaller in scope compared to Vite 3, with the main objective of upgrading to Rollup 3. We've worked with the ecosystem to ensure a smooth upgrade path for this new major.

Rollup 3

Vite is now using Rollup 3, which allowed us to simplify Vite's internal asset handling and has many improvements. See the Rollup 3 release notes here.

Framework Plugins out of the Vite core monorepo

@vitejs/plugin-vue and @vitejs/plugin-react have been part of Vite core monorepo since the first versions of Vite. This helped us to get a close feedback loop when making changes as we were getting both Core and the plugins tested and released together. With vite-ecosystem-ci we can get this feedback with these plugins developed on independent repositories, so from Vite 4, they have been moved out of the Vite core monorepo. This is meaningful for Vite's framework-agnostic story, and will allow us to build independent teams to maintain each of the plugins. If you have bugs to report or features to request, please create issues on the new repositories moving forward: vitejs/vite-plugin-vue and vitejs/vite-plugin-react.

New React plugin using SWC during development

SWC is now a mature replacement for Babel, especially in the context of React projects. SWC's React Fast Refresh implementation is a lot faster than Babel, and for some projects, it is now a better alternative. From Vite 4, two plugins are available for React projects with different tradeoffs. We believe that both approaches are worth supporting at this point, and we'll continue to explore improvements to both plugins in the future.

@​vitejs/plugin-react

@​vitejs/plugin-react is a plugin that uses esbuild and Babel, achieving fast HMR with a small package footprint and the flexibility of being able to use the babel transform pipeline.

@​vitejs/plugin-react-swc (new)

@​vitejs/plugin-react-swc is a new plugin that uses esbuild during build, but replaces Babel with SWC during development. For big projects that don't require non-standard React extensions, cold start and Hot Module Replacement (HMR) can be significantly faster.

Compatibility

The modern browser build now targets safari14 by default for wider ES2020 compatibility (vitejs/vite#9063). This means that modern builds can now use BigInt and that the nullish coallessing operator isn't transpiled anymore. If you need to support older browsers, you can add @vitejs/plugin-legacy as usual.

Importing CSS as a string

In Vite 3, importing the default export of a .css file could introduce a double loading of CSS.

</tr></table> 

... (truncated)

Commits

Updates @vitejs/plugin-react from 2.0.1 to 3.0.0

Release notes

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

plugin-react@3.0.0

Please refer to CHANGELOG.md for details.

plugin-react@3.0.0-beta.0

Please refer to CHANGELOG.md for details.

Changelog

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

3.0.0 (2022-12-09)

3.0.0-beta.0 (2022-12-05)

  • chore: clean some leftovers from Vite core (#44) (d2a3931), closes #44
  • chore: enable prettier trailing commas (#35) (b647e74), closes #35
  • chore: more package name fixes (fixes #37) (#42) (9094c8b), closes #37 #42
  • chore: package setup (ced7860)
  • chore: remove unused babel automatic runtime plugins (#41) (1464a8f), closes #41
  • chore(deps): update all non-major dependencies (#47) (0cfe83a), closes #47

3.0.0-alpha.2 (2022-11-30)

3.0.0-alpha.1 (2022-11-15)

  • fix(plugin-react): jsxDev is not a function when is set NODE_ENV in env files (#10861) (be1ba4a), closes #10861
  • perf: regexp perf issues, refactor regexp stylistic issues (#10905) (fc007df), closes #10905

3.0.0-alpha.0 (2022-11-08)

2.2.0 (2022-10-26)

2.2.0-beta.0 (2022-10-05)

... (truncated)

Commits

Updates vite-plugin-svgr from 2.2.2 to 2.3.0

Release notes

Sourced from vite-plugin-svgr's releases.

v2.3.0

   🚀 Features

    View changes on GitHub
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 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)

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

Updates `vite` from 3.0.9 to 4.0.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/create-vite@4.0.0/packages/vite)

Updates `@vitejs/plugin-react` from 2.0.1 to 3.0.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/plugin-react@3.0.0/packages/plugin-react)

Updates `vite-plugin-svgr` from 2.2.2 to 2.3.0
- [Release notes](https://github.com/pd4d10/vite-plugin-svgr/releases)
- [Commits](pd4d10/vite-plugin-svgr@v2.2.2...v2.3.0)

---
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
- dependency-name: vite-plugin-svgr
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot dependabot bot added the dependencies Pull requests that update a dependency file label Dec 10, 2022
@dependabot dependabot bot requested a review from a team December 10, 2022 11:38
@github-actions
Copy link

Coverage report

St.
Category Percentage Covered / Total
🟢 Statements
89.24% (-0.07% 🔻)
45898/51432
🟢 Branches
80.49% (+0.12% 🔼)
1675/2081
🟡 Functions
62.04% (+1.16% 🔼)
814/1312
🟢 Lines
89.24% (-0.07% 🔻)
45898/51432
Show files with reduced coverage 🔻
St.
File Statements Branches Functions Lines
🟢
... / ExpandedChart.tsx
91.23% (-0.88% 🔻)
71.43% 50%
91.23% (-0.88% 🔻)
🟡
... / MigrationModal.tsx
78.53% (-1.47% 🔻)
65.63% 25%
78.53% (-1.47% 🔻)
🔴
... / MigrationModalSingle.tsx
57.46% (-0.95% 🔻)
54.55% 33.33%
57.46% (-0.95% 🔻)
🟡
... / NavContent.tsx
72.4% (-0.52% 🔻)
66.67% 100%
72.4% (-0.52% 🔻)
🟢
... / Balances.tsx
85.71% (-1.59% 🔻)
33.33% 100%
85.71% (-1.59% 🔻)
🔴
... / index.tsx
33.78% (-1.35% 🔻)
100% 0%
33.78% (-1.35% 🔻)
🔴 lib/covalent.ts
45.26% (-2.11% 🔻)
100%
12.5% (-1.79% 🔻)
45.26% (-2.11% 🔻)
🟢 views/Bond/Bond.tsx
86.24% (-0.92% 🔻)
88.89% 75%
86.24% (-0.92% 🔻)
🟢
... / BondInputArea.tsx
85.14% (-0.4% 🔻)
80.49% 62.5%
85.14% (-0.4% 🔻)
🟡
... / ClaimBonds.tsx
72.04% (-0.54% 🔻)
50% (-2% 🔻)
40%
72.04% (-0.54% 🔻)
🔴
... / ClaimBondsV3.tsx
26.09% (-0.72% 🔻)
44.44% 100%
26.09% (-0.72% 🔻)
🔴
... / RangeChart.tsx
34.43% (-0.37% 🔻)
75% 20%
34.43% (-0.37% 🔻)
🟢
... / RangeConfirmationModal.tsx
97.91% (-1.05% 🔻)
82.05% 71.43%
97.91% (-1.05% 🔻)
🟢
... / mockRangeCalls.tsx
99.28% (-0.72% 🔻)
100% 75%
99.28% (-0.72% 🔻)
🟡
... / ExternalStakePools.tsx
79% (-0.31% 🔻)
79.17% 85.71%
79% (-0.31% 🔻)
🟢
... / RebaseTimer.tsx
87.5% (-4.17% 🔻)
50% 100%
87.5% (-4.17% 🔻)
🟡
... / V1-Stake.jsx
72.56% (-1.06% 🔻)
53.57% 18.18%
72.56% (-1.06% 🔻)

Test suite run success

150 tests passing in 87 suites.

Report generated by 🧪jest coverage report action from 6e854c7

Copy link
Contributor

@appleseed-iii appleseed-iii left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nothing in vite 4 migration affects us https://vitejs.dev/guide/migration.html

@appleseed-iii appleseed-iii merged commit 663a081 into develop Dec 11, 2022
@appleseed-iii appleseed-iii deleted the dependabot/npm_and_yarn/develop/vite-and-vitejs/plugin-react-and-vite-plugin-svgr-4.0.0 branch December 11, 2022 03:53
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