Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore(deps): bump @vitejs/plugin-react from 3.1.0 to 4.2.1 (#907)
Bumps [@vitejs/plugin-react](https://github.com/vitejs/vite-plugin-react/tree/HEAD/packages/plugin-react) from 3.1.0 to 4.2.1. <details> <summary>Release notes</summary> <p><em>Sourced from <a href="https://github.com/vitejs/vite-plugin-react/releases"><code>@vitejs/plugin-react</code>'s releases</a>.</em></p> <blockquote> <h2>v4.2.1</h2> <p>Remove generic parameter on <code>Plugin</code> to avoid type error with Rollup 4/Vite 5 and <code>skipLibCheck: false</code>.</p> <p>I expect very few people to currently use this feature, but if you are extending the React plugin via <code>api</code> object, you can get back the typing of the hook by importing <code>ViteReactPluginApi</code>:</p> <pre lang="ts"><code>import type { Plugin } from 'vite' import type { ViteReactPluginApi } from '@vitejs/plugin-react' <p>export const somePlugin: Plugin = { name: 'some-plugin', api: { reactBabel: (babelConfig) => { babelConfig.plugins.push('some-babel-plugin') }, } satisfies ViteReactPluginApi, } </code></pre></p> <h2>v4.2.0</h2> <h3>Update peer dependency range to target Vite 5</h3> <p>There were no breaking change that impacted this plugin, so any combination of React plugins and Vite core version will work.</p> <h3>Align jsx runtime for optimized dependencies</h3> <p>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 <code>React</code> in the scope.</p> <p>Reminder: While being partially supported in Vite, publishing TS & JSX outside of internal libraries is highly discouraged.</p> <h2>v4.1.1</h2> <ul> <li>Enable retainLines to get correct line numbers for jsxDev (fix <a href="https://redirect.github.com/vitejs/vite-plugin-react/issues/235">#235</a>)</li> </ul> <h2>v4.1.0</h2> <ul> <li>Add <code>@types/babel__cores</code> to dependencies (fix <a href="https://redirect.github.com/vitejs/vite-plugin-react/issues/211">#211</a>)</li> <li>Improve build perf when not using Babel plugins by lazy loading <code>@babel/core</code> <a href="https://redirect.github.com/vitejs/vite-plugin-react/pull/212">#212</a></li> <li>Better invalidation message when an export is added & fix HMR for export of nullish values <a href="https://redirect.github.com/vitejs/vite-plugin-react/pull/215">#215</a></li> <li>Include non-dev jsx runtime in optimizeDeps & support HMR for JS files using the non dev runtime <a href="https://redirect.github.com/vitejs/vite-plugin-react/pull/224">#224</a></li> <li>The build output now contains a <code>index.d.cts</code> file so you don't get types errors when setting <code>moduleResolution</code> to <code>node16</code> or <code>nodenext</code> in your tsconfig (we recommend using <code>bundler</code> which is more close to how Vite works)</li> </ul> <h2>v4.0.4</h2> <ul> <li>Fix <a href="https://github.com/vitejs/vite-plugin-react/discussions/198">#198</a>: Enable Babel if presets list is not empty</li> </ul> <h2>v4.0.3</h2> <ul> <li>Revert <a href="https://redirect.github.com/vitejs/vite-plugin-react/pull/108">#108</a>: 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.</li> </ul> <h2>v4.0.2</h2> <ul> <li>Fix fast-refresh for files that are transformed into jsx (<a href="https://redirect.github.com/vitejs/vite-plugin-react/pull/188">#188</a>)</li> </ul> <h2>plugin-react@4.0.1</h2> <!-- raw HTML omitted --> </blockquote> <p>... (truncated)</p> </details> <details> <summary>Changelog</summary> <p><em>Sourced from <a href="https://github.com/vitejs/vite-plugin-react/blob/main/packages/plugin-react/CHANGELOG.md"><code>@vitejs/plugin-react</code>'s changelog</a>.</em></p> <blockquote> <h2>4.2.1 (2023-12-04)</h2> <p>Remove generic parameter on <code>Plugin</code> to avoid type error with Rollup 4/Vite 5 and <code>skipLibCheck: false</code>.</p> <p>I expect very few people to currently use this feature, but if you are extending the React plugin via <code>api</code> object, you can get back the typing of the hook by importing <code>ViteReactPluginApi</code>:</p> <pre lang="ts"><code>import type { Plugin } from 'vite' import type { ViteReactPluginApi } from '@vitejs/plugin-react' <p>export const somePlugin: Plugin = { name: 'some-plugin', api: { reactBabel: (babelConfig) => { babelConfig.plugins.push('some-babel-plugin') }, } satisfies ViteReactPluginApi, } </code></pre></p> <h2>4.2.0 (2023-11-16)</h2> <h3>Update peer dependency range to target Vite 5</h3> <p>There were no breaking change that impacted this plugin, so any combination of React plugins and Vite core version will work.</p> <h3>Align jsx runtime for optimized dependencies</h3> <p>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 <code>React</code> in the scope.</p> <p>Reminder: While being partially supported in Vite, publishing TS & JSX outside of internal libraries is highly discouraged.</p> <h2>4.1.1 (2023-11-02)</h2> <ul> <li>Enable retainLines to get correct line numbers for jsxDev (fix <a href="https://redirect.github.com/vitejs/vite-plugin-react/issues/235">#235</a>)</li> </ul> <h2>4.1.0 (2023-09-24)</h2> <ul> <li>Add <code>@types/babel__cores</code> to dependencies (fix <a href="https://redirect.github.com/vitejs/vite-plugin-react/issues/211">#211</a>)</li> <li>Improve build perf when not using Babel plugins by lazy loading <code>@babel/core</code> <a href="https://redirect.github.com/vitejs/vite-plugin-react/pull/212">#212</a></li> <li>Better invalidation message when an export is added & fix HMR for export of nullish values <a href="https://redirect.github.com/vitejs/vite-plugin-react/pull/215">#215</a></li> <li>Include non-dev jsx runtime in optimizeDeps & support HMR for JS files using the non dev runtime <a href="https://redirect.github.com/vitejs/vite-plugin-react/pull/224">#224</a></li> <li>The build output now contains a <code>index.d.cts</code> file so you don't get types errors when setting <code>moduleResolution</code> to <code>node16</code> or <code>nodenext</code> in your tsconfig (we recommend using <code>bundler</code> which is more close to how Vite works)</li> </ul> <h2>4.0.4 (2023-07-31)</h2> <ul> <li>Fix <a href="https://github.com/vitejs/vite-plugin-react/discussions/198">#198</a>: Enable Babel if presets list is not empty</li> </ul> <h2>4.0.3 (2023-07-10)</h2> <!-- raw HTML omitted --> </blockquote> <p>... (truncated)</p> </details> <details> <summary>Commits</summary> <ul> <li><a href="https://github.com/vitejs/vite-plugin-react/commit/8b5354741a173ce02892ff021c8bdfba4c9f0d11"><code>8b53547</code></a> release: plugin-react@4.2.1</li> <li><a href="https://github.com/vitejs/vite-plugin-react/commit/ec630663b59e2eaaab0360c0087ac23cbb0ee5bc"><code>ec63066</code></a> chore(deps): update dependency vite to v5 (<a href="https://github.com/vitejs/vite-plugin-react/tree/HEAD/packages/plugin-react/issues/263">#263</a>)</li> <li><a href="https://github.com/vitejs/vite-plugin-react/commit/8512995c552a25e9c6f901c00874d63f7638a499"><code>8512995</code></a> fix(deps): update all non-major dependencies (<a href="https://github.com/vitejs/vite-plugin-react/tree/HEAD/packages/plugin-react/issues/259">#259</a>)</li> <li><a href="https://github.com/vitejs/vite-plugin-react/commit/7f53c63fd2dc51d712426099645907aada6657ec"><code>7f53c63</code></a> fix: remove plugin type extension (<a href="https://github.com/vitejs/vite-plugin-react/tree/HEAD/packages/plugin-react/issues/269">#269</a>)</li> <li><a href="https://github.com/vitejs/vite-plugin-react/commit/3748fc7493cf0a07a2ae275fbd1ae035f01010cc"><code>3748fc7</code></a> release: plugin-react@4.2.0</li> <li><a href="https://github.com/vitejs/vite-plugin-react/commit/fb2b735f534ab8743e4e790e1e45178a24dc717e"><code>fb2b735</code></a> fix(deps): update all non-major dependencies (<a href="https://github.com/vitejs/vite-plugin-react/tree/HEAD/packages/plugin-react/issues/254">#254</a>)</li> <li><a href="https://github.com/vitejs/vite-plugin-react/commit/96b66ed5e75cfc325a661e0d13b700cc275cfa60"><code>96b66ed</code></a> fix: align jsx runtime for optimized dependencies (<a href="https://github.com/vitejs/vite-plugin-react/tree/HEAD/packages/plugin-react/issues/256">#256</a>)</li> <li><a href="https://github.com/vitejs/vite-plugin-react/commit/f10a57773269bb09c656b29247a5f55bd008cc52"><code>f10a577</code></a> feat: update peer dep for vite 5 (<a href="https://github.com/vitejs/vite-plugin-react/tree/HEAD/packages/plugin-react/issues/257">#257</a>)</li> <li><a href="https://github.com/vitejs/vite-plugin-react/commit/9956fb56c8fd0bb0625828648475e9963304df90"><code>9956fb5</code></a> refactor: shorten react import regex pattern (<a href="https://github.com/vitejs/vite-plugin-react/tree/HEAD/packages/plugin-react/issues/250">#250</a>)</li> <li><a href="https://github.com/vitejs/vite-plugin-react/commit/b255776f75ced38e9ae8d0ba2f9113e697159a73"><code>b255776</code></a> release: plugin-react@4.1.1</li> <li>Additional commits viewable in <a href="https://github.com/vitejs/vite-plugin-react/commits/v4.2.1/packages/plugin-react">compare view</a></li> </ul> </details> <br /> [](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores) 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-automerge-start) [//]: # (dependabot-automerge-end) --- <details> <summary>Dependabot commands and options</summary> <br /> 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) </details> Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
- Loading branch information