Bumpsesbuild to 0.25.5 and updates ancestor dependencyvitest. These dependencies need to be updated together.
Updatesesbuild
from 0.21.5 to 0.25.5
Release notes
Sourced fromesbuild's releases.
v0.25.5
Fix a regression withbrowser
inpackage.json
(#4187)
The fix to#4144 in version 0.25.3 introduced a regression that causedbrowser
overrides specified inpackage.json
to fail to override relative path names that end in a trailing slash. That behavior change affected theaxios@0.30.0
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:
typeFoo=[value:any,readonly?:boolean,// This is now parsed correctly]
Add CSS prefixes for thestretch
sizing value (#4184)
This release adds support for prefixing CSS declarations such asdiv { 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 fromlocalhost
where the esbuild development server is running.
To enable this use case, esbuild is adding a feature to allowCross-Origin Resource Sharing (a.k.a. CORS) forsimple requests. Specifically, passing your origin to the newcors
option will now set theAccess-Control-Allow-Origin
response header when the request has a matchingOrigin
header. Note that this currently only works for requests that don't send a preflightOPTIONS
request, as esbuild's development server doesn't currently supportOPTIONS
requests.
Some examples:
CLI:
esbuild --servedir=. --cors-origin=https://example.com
JS:
constctx=awaitesbuild.context({})awaitctx.serve({servedir:'.',cors:{
... (truncated)
Changelog
Sourced fromesbuild's changelog.
Changelog: 2024
This changelog documents all esbuild versions published in the year 2024 (versions 0.19.12 through 0.24.2).
0.24.2
Fix regression with--define
andimport.meta
(#4010,#4012,#4013)
The previous change in version 0.24.1 to use a more expression-like parser fordefine
values to allow quoted property names introduced a regression that removed the ability to use--define:import.meta=...
. Even thoughimport
is normally a keyword that can't be used as an identifier, ES modules special-case theimport.meta
expression to behave like an identifier anyway. This change fixes the regression.
This fix was contributed by@sapphi-red
.
0.24.1
Allowes2024
as a target intsconfig.json
(#4004)
TypeScript recentlyaddedes2024
as a compilation target, so esbuild now supports this in thetarget
field oftsconfig.json
files, such as in the following configuration file:
{"compilerOptions": {"target":"ES2024" }}
As a reminder, the only thing that esbuild uses this field for is determining whether or not to use legacy TypeScript behavior for class fields. You can read more inthe documentation.
This fix was contributed by@billyjanitsch
.
Allow automatic semicolon insertion afterget
/set
This change fixes a grammar bug in the parser that incorrectly treated the following code as a syntax error:
classFoo{get*x(){}set*y(){}}
The above code will be considered valid starting with this release. This change to esbuild follows asimilar change to TypeScript which will allow this syntax starting with TypeScript 5.7.
Allow quoted property names in--define
and--pure
(#4008)
Thedefine
andpure
API options now accept identifier expressions containing quoted property names. Previously all identifiers in the identifier expression had to be bare identifiers. This change now makes--define
and--pure
consistent with--global-name
, which already supported quoted property names. For example, the following is now possible:
... (truncated)
Commits
Updatesvitest
from 1.6.1 to 3.2.3
Release notes
Sourced fromvitest's releases.
v3.2.3
🚀 Features
🐞 Bug Fixes
v3.2.2
🚀 Features
🐞 Bug Fixes
v3.2.1
🐞 Bug Fixes
v3.2.0
... (truncated)
Commits
b87ee3e
chore: release v3.2.383862d4
fix: run only the name plugin last, not all config plugins (#8130)dc469f2
fix(runner): comments between fixture destructures (#8127)1d8ebf9
feat(browser): use base url instead ofvitest (#8126)dfe81a6
fix(pool): throw if user's tests useprocess.send()
(#8125)0f33506
fix: rerun tests when project's setup file is changed (#8097)7ddcd33
chore: release v3.2.233f7120
Revert "fix(browser): optimize build output and always prebundle vitest"00a3916
fix(browser): optimize build output and always prebundle vitest142c735
fix(browser): calculate prepare time fromcreateTesters
call on the main th...- Additional commits viewable incompare view
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)
You can disable automated security fix PRs for this repo from theSecurity Alerts page.
Bumpsesbuild to 0.25.5 and updates ancestor dependencyvitest. These dependencies need to be updated together.
Updates
esbuild
from 0.21.5 to 0.25.5Release notes
Sourced fromesbuild's releases.
... (truncated)
Changelog
Sourced fromesbuild's changelog.
... (truncated)
Commits
ea453bf
publish 0.25.5 to npm223ddc6
fix#4187: browserpackage.json
regressionb2c8251
fix#4192: typescript tuple label parser edge case28cf2f3
fix#4184: css prefixes forstretch
bee1b09
fix comment indents9ddfe5f
runmake update-compat-table
c339f34
fix a misplaced comment218d29e
publish 0.25.4 to npme66cd0b
dev server: simple support for CORS requests (#4171)8bf3368
js api: validate some options as arrays of stringsUpdates
vitest
from 1.6.1 to 3.2.3Release notes
Sourced fromvitest's releases.
... (truncated)
Commits
b87ee3e
chore: release v3.2.383862d4
fix: run only the name plugin last, not all config plugins (#8130)dc469f2
fix(runner): comments between fixture destructures (#8127)1d8ebf9
feat(browser): use base url instead ofvitest (#8126)dfe81a6
fix(pool): throw if user's tests useprocess.send()
(#8125)0f33506
fix: rerun tests when project's setup file is changed (#8097)7ddcd33
chore: release v3.2.233f7120
Revert "fix(browser): optimize build output and always prebundle vitest"00a3916
fix(browser): optimize build output and always prebundle vitest142c735
fix(browser): calculate prepare time fromcreateTesters
call on the main th...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)You can disable automated security fix PRs for this repo from theSecurity Alerts page.