Bump esbuild, @size-limit/preset-small-lib, @vitejs/plugin-react, @vitest/ui, vite and vitest
Bumps esbuild to 0.25.5 and updates ancestor dependencies esbuild, @size-limit/preset-small-lib, @vitejs/plugin-react, @vitest/ui, vite and vitest. These dependencies need to be updated together.
Updates esbuild from 0.18.10 to 0.25.5
Release notes
Sourced from esbuild's releases.
v0.25.5
Fix a regression with
browserinpackage.json(#4187)The fix to #4144 in version 0.25.3 introduced a regression that caused
browseroverrides specified inpackage.jsonto fail to override relative path names that end in a trailing slash. That behavior change affected the[email protected]package. This regression has been fixed, and now has test coverage.Add support for certain keywords as TypeScript tuple labels (#4192)
Previously esbuild could incorrectly fail to parse certain keywords as TypeScript tuple labels that are parsed by the official TypeScript compiler if they were followed by a
?modifier. These labels includedfunction,import,infer,new,readonly, andtypeof. With this release, these keywords will now be parsed correctly. Here's an example of some affected code:type Foo = [ value: any, readonly?: boolean, // This is now parsed correctly ]Add CSS prefixes for the
stretchsizing value (#4184)This release adds support for prefixing CSS declarations such as
div { width: stretch }. That CSS is now transformed into this depending on what the--target=setting includes:div { width: -webkit-fill-available; width: -moz-available; width: stretch; }v0.25.4
Add simple support for CORS to esbuild's development server (#4125)
Starting with version 0.25.0, esbuild's development server is no longer configured to serve cross-origin requests. This was a deliberate change to prevent any website you visit from accessing your running esbuild development server. However, this change prevented (by design) certain use cases such as "debugging in production" by having your production website load code from
localhostwhere the esbuild development server is running.To enable this use case, esbuild is adding a feature to allow Cross-Origin Resource Sharing (a.k.a. CORS) for simple requests. Specifically, passing your origin to the new
corsoption will now set theAccess-Control-Allow-Originresponse header when the request has a matchingOriginheader. Note that this currently only works for requests that don't send a preflightOPTIONSrequest, as esbuild's development server doesn't currently supportOPTIONSrequests.Some examples:
CLI:
esbuild --servedir=. --cors-origin=https://example.comJS:
const ctx = await esbuild.context({}) await ctx.serve({ servedir: '.', cors: {
... (truncated)
Changelog
Sourced from esbuild's changelog.
Changelog: 2023
This changelog documents all esbuild versions published in the year 2023 (versions 0.16.13 through 0.19.11).
0.19.11
Fix TypeScript-specific class transform edge case (#3559)
The previous release introduced an optimization that avoided transforming
super()in the class constructor for TypeScript code compiled withuseDefineForClassFieldsset tofalseif all class instance fields have no initializers. The rationale was that in this case, all class instance fields are omitted in the output so no changes to the constructor are needed. However, if all of this is the case and there are#privateinstance fields with initializers, those private instance field initializers were still being moved into the constructor. This was problematic because they were being inserted before the call tosuper()(sincesuper()is now no longer transformed in that case). This release introduces an additional optimization that avoids moving the private instance field initializers into the constructor in this edge case, which generates smaller code, matches the TypeScript compiler's output more closely, and avoids this bug:// Original code class Foo extends Bar { #private = 1; public: any; constructor() { super(); } }// Old output (with esbuild v0.19.9)
class Foo extends Bar {
constructor() {
super();
this.#private = 1;
}
#private;
}// Old output (with esbuild v0.19.10)
class Foo extends Bar {
constructor() {
this.#private = 1;
super();
}
#private;
}// New output
class Foo extends Bar {
#private = 1;
constructor() {
super();
}
}
Minifier: allow reording a primitive past a side-effect (#3568)
The minifier previously allowed reordering a side-effect past a primitive, but didn't handle the case of reordering a primitive past a side-effect. This additional case is now handled:
... (truncated)
Commits
ea453bfpublish 0.25.5 to npm223ddc6fix #4187: browserpackage.jsonregressionb2c8251fix #4192: typescript tuple label parser edge case28cf2f3fix #4184: css prefixes forstretchbee1b09fix comment indents9ddfe5frunmake update-compat-tablec339f34fix a misplaced comment218d29epublish 0.25.4 to npme66cd0bdev server: simple support for CORS requests (#4171)8bf3368js api: validate some options as arrays of strings- Additional commits viewable in compare view
Updates @size-limit/preset-small-lib from 8.2.6 to 11.2.0
Release notes
Sourced from @size-limit/preset-small-lib's releases.
11.2.0
- Added
--configargument (by@EvgenyWas).- Added top-level
awaitsupport to config (by@aryaemami59).- Added
timeoption to config (by@EvgenyWas).- Added
messageoption to config (by@dartess).- Updated
esbuild.11.1.6
- Updated
chokidar.- Updated
esbuild.- Updated
jiti.11.1.5
- Reduced dependencies (by
@ziebam).- Updated
esbuild.11.1.4
- Fixed types (by
@aryaemami59).11.1.3
- Updated
esbuild.- Updated CSS loaders for webpack.
11.1.2
- Fixed CSS support in esbuild plugin (by
@just-boris).11.1.1
- Fixed Windows support (by
@aryaemami59).11.1.0
- Added TypeScript support for config (by
@aryaemami59).- Fixed
webpack-whyregression (by@hoo00nn).11.0.3
- Fixed
.mjsconfig support (by@aryaemami59).- Updated
esbuild.
Changelog
Sourced from @size-limit/preset-small-lib's changelog.
11.2.0
- Added
--configargument (by@EvgenyWas).- Added top-level
awaitsupport to config (by@aryaemami59).- Added
timeoption to config (by@EvgenyWas).- Added
messageoption to config (by@dartess).- Updated
esbuild.11.1.6
- Updated
chokidar.- Updated
esbuild.- Updated
jiti.11.1.5
- Reduced dependencies (by
@ziebam).- Updated
esbuild.11.1.4
- Fixed types (by
@aryaemami59).11.1.3
- Updated
esbuild.- Updated CSS loaders for webpack.
11.1.2
- Fixed CSS support in esbuild plugin (by
@just-boris).11.1.1
- Fixed Windows support (by
@aryaemami59).11.1.0
- Added TypeScript support for config (by
@aryaemami59).- Fixed
webpack-whyregression (by@hoo00nn).11.0.3
- Fixed
.mjsconfig support (by Arya Emami).- Updated
esbuild.11.0.2
- Fixed
require is not definedregression.- Updated
esbuild-visualizer.11.0.1
- Updated
estimo.- Updated
lilconfig.11.0
- Moved to Brotli as default compression. Use
gzip: truefor old behavior.10.0.3
- Fixed third-party plugins support (by
@JounQin).
... (truncated)
Commits
896eee2Release 11.2.0 version69fab9cUpdate Vitest15a4c46Update dependenciesedda423feat: add time options to set loading network speed, latency and message (#384)6f44d9bAvoid patterns in simple example549350afeat: implement new --config arg to specify a custom path to configuration fi...3542c73fix: remove extra blank line in terminal when output is empty (#383)5b831e1Fix pnpm version7b56b53Update dependencies7a0c618Bump cross-spawn from 7.0.3 to 7.0.5 (#381)- Additional commits viewable in compare view
Updates @vitejs/plugin-react from 4.0.1 to 4.5.1
Release notes
Sourced from @vitejs/plugin-react's releases.
[email protected]
Add explicit semicolon in preambleCode #485
This fixes an edge case when using HTML minifiers that strips line breaks aggressively.
[email protected]
Add
filterfor rolldown-vite #470Added
filterso that it is more performant when running this plugin with rolldown-powered version of Vite.Skip HMR for JSX files with hooks #480
This removes the HMR warning for hooks with JSX.
[email protected]
Fix type issue when using
moduleResolution: "node"in tsconfig #462[email protected]
Make compatible with rolldown-vite
This plugin is now compatible with rolldown-powered version of Vite. Note that currently the
__sourceproperty value position might be incorrect. This will be fixed in the near future.[email protected]
Add
reactRefreshHostoptionAdd
reactRefreshHostoption to set a React Fast Refresh runtime URL prefix. This is useful in a module federation context to enable HMR by specifying the host application URL in the Vite config of a remote application. See full discussion here: module-federation/vite#183export default defineConfig({ plugins: [react({ reactRefreshHost: 'http://localhost:3000' })], })[email protected]
No release notes provided.
[email protected]
Add Vite 6 to peerDependencies range
Vite 6 is highly backward compatible, not much to add!
Force Babel to output spec compliant import attributes #386
The default was an old spec (
with type: "json"). We now enforce spec compliant (with { type: "json" })[email protected]
React Compiler runtimeModule option removed
... (truncated)
Changelog
Sourced from @vitejs/plugin-react's changelog.
4.5.1 (2025-06-03)
Add explicit semicolon in preambleCode #485
This fixes an edge case when using HTML minifiers that strips line breaks aggressively.
4.5.0 (2025-05-23)
Add
filterfor rolldown-vite #470Added
filterso that it is more performant when running this plugin with rolldown-powered version of Vite.Skip HMR for JSX files with hooks #480
This removes the HMR warning for hooks with JSX.
4.4.1 (2025-04-19)
Fix type issue when using
moduleResolution: "node"in tsconfig #4624.4.0 (2025-04-15)
Make compatible with rolldown-vite
This plugin is now compatible with rolldown-powered version of Vite. Note that currently the
__sourceproperty value position might be incorrect. This will be fixed in the near future.4.4.0-beta.2 (2025-04-15)
Add
reactRefreshHostoptionAdd
reactRefreshHostoption to set a React Fast Refresh runtime URL prefix. This is useful in a module federation context to enable HMR by specifying the host application URL in the Vite config of a remote application. See full discussion here: module-federation/vite#183export default defineConfig({ plugins: [react({ reactRefreshHost: 'http://localhost:3000' })], })4.4.0-beta.1 (2025-04-09)
4.4.0-beta.0 (2025-04-09)
4.3.4 (2024-11-26)
Add Vite 6 to peerDependencies range
Vite 6 is highly backward compatible, not much to add!
... (truncated)
Commits
2f32052release: [email protected]88585dbfix: add explicit semicolon in preambleCode (#485)476e705release: [email protected]02b1edefix(hmr): skip HMR for JSX files with hooks (#480)5a94bd7feat: add filter (#470)7517103fix(react): inject__selfand__sourceby babel for rolldown-vite (#467)ec1dfb3chore: fix link in changelog (#463)57cc398release: [email protected]a62bdd6fix(react): fix package.jsontypes(#462)8beda4frelease: [email protected]- Additional commits viewable in compare view
Updates @vitest/ui from 0.32.2 to 3.2.2
Release notes
Sourced from @vitest/ui's releases.
v3.2.2
🚀 Features
- Support rolldown-vite - by
@sheremet-vaand@hi-ogawain vitest-dev/vitest#7509 (c8d62)🐞 Bug Fixes
- browser:
- Calculate prepare time from
createTesterscall on the main thread - by@sheremet-vain vitest-dev/vitest#8101 (142c7)- Optimize build output and always prebundle vitest - by
@sheremet-va(00a39)- Make custom locators available in
vitest-browser-*packages - by@sheremet-vain vitest-dev/vitest#8103 (247ef)- expect:
- Ensure we can always self
toEqual- by@dubzzzin vitest-dev/vitest#8094 (02ec8)- reporter:
- Allow
dotreporter to work in non interactive terminals - by@bstephen1and@AriPerkkioin vitest-dev/vitest#7994 (6db9f)View changes on GitHub
v3.2.1
🐞 Bug Fixes
- Use sha1 instead of md5 for hashing - by
@sheremet-va(e4c73)- expect:
- Fix chai import in dts - by
@hi-ogawain vitest-dev/vitest#8077 (a7593)- Export
DeeplyAllowMatchers- by@sheremet-vain vitest-dev/vitest#8078 (30ab4)View changes on GitHub
v3.2.0
🚀 Features
- Provide
ctx.signal- by@sheremet-vain vitest-dev/vitest#7878 (e761f)- Support custom colors for
test.name- by@AriPerkkioin vitest-dev/vitest#7809 (4af5d)- Add
vi.mockObjectto automock any object - by@hi-ogawaand@sheremet-vain vitest-dev/vitest#7761 (465bd)- Introduce
watchTriggerPatternsoption - by@sheremet-vain vitest-dev/vitest#7778 (a0675)- Deprecate
workspacein favor ofprojects- by@sheremet-vaand@AriPerkkioin vitest-dev/vitest#7923 (41beb)- Explicit Resource Management support in mocked functions - by
@EskiMojo14in vitest-dev/vitest#7927 (b67d3)- Add
sequence.groupOrderoption - by@sheremet-vain vitest-dev/vitest#7852 (d1a1d)- Initial support for Temporal equality - by
@dirkluijkin vitest-dev/vitest#8007 (52bd7)- Support Vite 7 - by
@sheremet-vain vitest-dev/vitest#8003 (1716b)- Track module execution totalTime and selfTime - by
@abrennekein vitest-dev/vitest#8027 (95961)- Annotation API - by
@sheremet-vain vitest-dev/vitest#7953 (b03f2)- browser:
- Implement
connectoption forplaywrightbrowser provider - by@egfx-notificationsand@sheremet-vain vitest-dev/vitest#7915 (029c0)- Add
screenshot.saveoption - by@sheremet-vain vitest-dev/vitest#7777 (d9f51)- Custom locators API - by
@sheremet-vain vitest-dev/vitest#7993 (e6fbd)- coverage:
- V8 experimental AST-aware remapping - by
@AriPerkkioin vitest-dev/vitest#7736 (78a3d)- reporter:
- Add
onWritePathoption togithub-actions- by@nwalters512and@AriPerkkioin vitest-dev/vitest#8015 (abd3b)
... (truncated)
Commits
7ddcd33chore: release v3.2.2f858f3bchore: release v3.2.159200aechore: release v3.2.0cce98d3chore(deps): update all non-major dependencies (#8067)b03f209feat: annotation API (#7953)3bdf05dfix: ensure errors keep their message and stack aftertoJSONserialisation ...910892echore: simplify working with UI package in dev (#8044)ba87a62chore: release v3.2.0-beta.3c23b0f7fix(wdio): don't scale browser in headless mode (#8033)c2106b3chore(deps): update all non-major dependencies (#8029)- Additional commits viewable in compare view
Maintainer changes
This version was pushed to npm by vitestbot, a new releaser for @vitest/ui since your current version.
Updates vite from 4.3.9 to 6.3.5
Release notes
Sourced from vite's releases.
v6.3.5
Please refer to CHANGELOG.md for details.
v6.3.4
Please refer to CHANGELOG.md for details.
v6.3.3
Please refer to CHANGELOG.md for details.
v6.3.2
Please refer to CHANGELOG.md for details.
[email protected]
Please refer to CHANGELOG.md for details.
v6.3.1
Please refer to CHANGELOG.md for details.
[email protected]
Please refer to CHANGELOG.md for details.
v6.3.0
Please refer to CHANGELOG.md for details.
v6.3.0-beta.2
Please refer to CHANGELOG.md for details.
v6.3.0-beta.1
Please refer to CHANGELOG.md for details.
v6.3.0-beta.0
Please refer to CHANGELOG.md for details.
v6.2.7
Please refer to CHANGELOG.md for details.
v6.2.6
Please refer to CHANGELOG.md for details.
v6.2.5
Please refer to CHANGELOG.md for details.
v6.2.4
Please refer to CHANGELOG.md for details.
v6.2.3
Please refer to CHANGELOG.md for details.
v6.2.2
Please refer to CHANGELOG.md for details.
... (truncated)
Changelog
Sourced from vite's changelog.
6.3.5 (2025-05-05)
6.3.4 (2025-04-30)
- fix: check static serve file inside sirv (#19965) (c22c43d), closes #19965
- fix(optimizer): return plain object when using
requireto import externals in optimized dependenci (efc5eab), closes #19940- refactor: remove duplicate plugin context type (#19935) (d6d01c2), closes #19935
6.3.3 (2025-04-24)
- fix: ignore malformed uris in tranform middleware (#19853) (e4d5201), closes #19853
- fix(assets): ensure ?no-inline is not included in the asset url in the production environment (#1949 (16a73c0), closes #19496
- fix(css): resolve relative imports in sass properly on Windows (#19920) (ffab442), closes #19920
- fix(deps): update all non-major dependencies (#19899) (a4b500e), closes #19899
- fix(ssr): fix execution order of re-export (#19841) (ed29dee), closes #19841
- fix(ssr): fix live binding of default export declaration and hoist exports getter (#19842) (80a91ff), closes #19842
- perf: skip sourcemap generation for renderChunk hook of import-analysis-build plugin (#19921) (55cfd04), closes #19921
- test(ssr): test
ssrTransformre-export deps and test stacktrace with first line (#19629) (9399cda), closes #196296.3.2 (2025-04-18)
- fix: match default asserts case insensitive (#19852) (cbdab1d), closes #19852
- fix: open first url if host does not match any urls (#19886) (6abbdce), closes #19886
- fix(css): respect
css.lightningcssoption in css minification process (#19879) (b5055e0), closes #19879- fix(deps): update all non-major dependencies (#19698) (bab4cb9), closes #19698
- feat(css): improve lightningcss messages (#19880) (c713f79), closes #19880
6.3.1 (2025-04-17)
- fix: avoid using
Promise.allSettledin preload function (#19805) (35c7f35), closes #19805- fix: backward compat for internal plugin
transformcalls (#19878) (a152b7c), closes #198786.3.0 (2025-04-16)
... (truncated)
Commits
84e4647release: v6.3.5fd38d07fix(ssr): handle uninitialized export access as undefined (#19959)b040d54release: v6.3.4c22c43dfix: check static serve file inside sirv (#19965)efc5eabfix(optimizer): return plain object when usingrequireto import externals ...d6d01c2refactor: remove duplicate plugin context type (#19935)db9eb97release: v6.3.3e4d5201fix: ignore malformed uris in tranform middleware (#19853)55cfd04perf: skip sourcemap generation for renderChunk hook of import-analysis-build...ffab442fix(css): resolve relative imports in sass properly on Windows (#19920)- Additional commits viewable in compare view
Updates vitest from 0.32.2 to 3.2.2
Release notes
Sourced from vitest's releases.
v3.2.2
🚀 Features
- Support rolldown-vite - by
@sheremet-vaand@hi-ogawain vitest-dev/vitest#7509 (c8d62)🐞 Bug Fixes
- browser:
- Calculate prepare time from
createTesterscall on the main thread - by@sheremet-vain vitest-dev/vitest#8101 (142c7)- Optimize build output and always prebundle vitest - by
@sheremet-va(00a39)- Make custom locators available in
vitest-browser-*packages - by@sheremet-vain vitest-dev/vitest#8103 (247ef)- expect:
- Ensure we can always self
toEqual- by@dubzzzin vitest-dev/vitest#8094 (02ec8)- reporter:
- Allow
dotreporter to work in non interactive terminals - by@bstephen1and@AriPerkkioin vitest-dev/vitest#7994 (6db9f)View changes on GitHub
v3.2.1
🐞 Bug Fixes
- Use sha1 instead of md5 for hashing - by
@sheremet-va(e4c73)- expect:
- Fix chai import in dts - by
@hi-ogawain vitest-dev/vitest#8077 (a7593)- Export
DeeplyAllowMatchers- by@sheremet-vain vitest-dev/vitest#8078 (30ab4)View changes on GitHub
v3.2.0
🚀 Features
- Provide
ctx.signal- by@sheremet-vain vitest-dev/vitest#7878 (e761f)- Support custom colors for
test.name- by@AriPerkkioin vitest-dev/vitest#7809 (4af5d)- Add
vi.mockObjectto automock any object - by@hi-ogawaand@sheremet-vain vitest-dev/vitest#7761 (465bd)- Introduce
watchTriggerPatternsoption - by@sheremet-vain vitest-dev/vitest#7778 (a0675)- Deprecate
workspacein favor ofprojects- by@sheremet-vaand@AriPerkkioin vitest-dev/vitest#7923 (41beb)- Explicit Resource Management support in mocked functions - by
@EskiMojo14in vitest-dev/vitest#7927 (b67d3)- Add
sequence.groupOrderoption - by@sheremet-vain vitest-dev/vitest#7852 (d1a1d)- Initial support for Temporal equality - by
@dirkluijkin vitest-dev/vitest#8007 (52bd7)- Support Vite 7 - by
@sheremet-vain vitest-dev/vitest#8003 (1716b)- Track module execution totalTime and selfTime - by
@abrennekein vitest-dev/vitest#8027 (95961)- Annotation API - by
@sheremet-vain vitest-dev/vitest#7953 (b03f2)- browser:
- Implement
connectoption forplaywrightbrowser provider - by@egfx-notificationsand@sheremet-vain vitest-dev/vitest#7915 (029c0)- Add
screenshot.saveoption - by@sheremet-vain vitest-dev/vitest#7777 (d9f51)- Custom locators API - by
@sheremet-vain vitest-dev/vitest#7993 (e6fbd)- coverage:
- V8 experimental AST-aware remapping - by
@AriPerkkioin vitest-dev/vitest#7736 (78a3d)- reporter:
- Add
onWritePathoption togithub-actions- by@nwalters512and@AriPerkkioin vitest-dev/vitest#8015 (abd3b)
... (truncated)
Commits
7ddcd33chore: release v3.2.233f7120Revert "fix(browser): optimize build output and always prebundle vitest"00a3916fix(browser): optimize build output and always prebundle vitest142c735fix(browser): calculate prepare time fromcreateTesterscall on the main th...c8d6264feat: support rolldown-vite (#7509)6db9f52fix(reporter): allowdotreporter to work in non interactive terminals (#7994)f858f3bchore: release v3.2.1e4c7350fix: use sha1 instead of md5 for hashing30ab42cfix(expect): exportDeeplyAllowMatchers(#8078)59200aechore: release v3.2.0- Additional commits viewable in compare view
Maintainer changes
This version was pushed to npm by vitestbot, a new releaser for vitest since your current version.
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 rebasewill rebase this PR@dependabot recreatewill recreate this PR, overwriting any edits that have been made to it@dependabot mergewill merge this PR after your CI passes on it@dependabot squash and mergewill squash and merge this PR after your CI passes on it@dependabot cancel mergewill cancel a previously requested merge and block automerging@dependabot reopenwill reopen this PR if it is closed@dependabot closewill close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually@dependabot show <dependency name> ignore conditionswill show all of the ignore conditions of the specified dependency@dependabot ignore this major versionwill 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 versionwill 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 dependencywill close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself) You can disable automated security fix PRs for this repo from the Security Alerts page.