Bump esbuild, @angular-devkit/build-angular and ng-packagr
Bumps esbuild to 0.25.5 and updates ancestor dependencies esbuild, @angular-devkit/build-angular and ng-packagr. These dependencies need to be updated together.
Updates esbuild from 0.17.18 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 @angular-devkit/build-angular from 16.0.2 to 20.0.2
Release notes
Sourced from @angular-devkit/build-angular's releases.
20.0.2
@schematics/angular
Commit Description add lessas a devDependency when selected as the style preprocessorcorrectly detect modules using new file extension format
@angular/build
Commit Description do not consider internal Angular files as external imports 20.0.1
@schematics/angular
Commit Description only overwrite JSON file if actually changed remove karma config devkit package usages during application migration skip zone.js dependency for zoneless applications
@angular/cli
Commit Description improve Node.js version check and error messages
@angular/build
Commit Description also disable outputMode in vitest unit-tests resolve junit karma reporter output to workspace root 20.0.0
@angular/cli
Commit Description add Node.js 24 as supported version remove Node.js v18 support update min Node.js support to 20.19, 22.12, and 24.0 update minimum supported Node.js 22 version to 22.11.0
@schematics/angular
... (truncated)
Changelog
Sourced from @angular-devkit/build-angular's changelog.
20.0.2 (2025-06-11)
@schematics/angular
Commit Type Description bf64a0f2d fix add lessas a devDependency when selected as the style preprocessorcb258a3e1 fix correctly detect modules using new file extension format
@angular/build
Commit Type Description 424f1cbbf fix do not consider internal Angular files as external imports 19.2.15 (2025-06-11)
@angular-devkit/build-angular
Commit Type Description b120e1411 fix update dependency webpack-dev-server to v5.2.2 18.2.20 (2025-06-11)
@angular-devkit/build-angular
Commit Type Description f048078 fix update dependency webpack-dev-server to v5.2.2 20.1.0-next.0 (2025-06-05)
@schematics/angular
Commit Type Description 0b7d48c7c fix correctly detect modules using new file extension format
... (truncated)
Commits
e89245drelease: cut the v20.0.2 releasebf64a0ffix(@schematics/angular): addlessas a devDependency when selected as the ...424f1cbfix(@angular/build): do not consider internal Angular files as external imports631ac7eci: use new pull-request-labeling actionfa25385build: fix perf workflows1db861cbuild: improve globbing of jasmine test filescb258a3fix(@schematics/angular): correctly detect modules using new file extension f...19dc7ddbuild: simplify unit test target namesd513e58build: simplify unit test target names4e7e0b0release: cut the v20.0.1 release- Additional commits viewable in compare view
Updates ng-packagr from 16.0.1 to 20.0.0
Release notes
Sourced from ng-packagr's releases.
20.0.0
⚠ BREAKING CHANGES
- Node.js versions from 22.0 to 22.10 are no longer supported
- Node.js v18 is no longer supported
- TypeScript versions less than 5.8 are no longer supported.
Features
- expand browser support to widely available Baseline (94f7fbe)
- add DTS bundles for entry-points (ca9d568), closes #139
- support Angular version 20 (cebe060)
- drop support for TypeScript older than 5.8 (a8255ce)
- support Sass package importers (f767d3c)
Bug Fixes
- correctly resolve SCSS resources from nested paths (f34a73d), closes #3006
- correctly update reference to bin (e73db8e), closes #3062
- update min Node.js support to 20.19, 22.12, and 24.0 (5a7eac4)
- ensure in package
.browserslistrcis correctly resolved (14ed50d)- prevent nested CSS in components (e2d9ef0)
- disable TypeScript
compositeoption with Angular compiler (5dfbdba)- disable emitting empty chunk warning (638c107)
- remove Node.js v18 support (69d9d9e)
- update minimum supported Node.js 22 version to 22.11.0 (a836a71)
Performance
- optimize node deletion using
Set(a99785c)- prevent redundant entry-point builds in watch mode (2f2668b), closes #2936
20.0.0-rc.2
Bug Fixes
20.0.0-rc.1
Bug Fixes
- update min Node.js support to 20.19, 22.12, and 24.0 (5a7eac4)
20.0.0-next.8
Bug Fixes
- ensure in package
.browserslistrcis correctly resolved (14ed50d)
... (truncated)
Changelog
Sourced from ng-packagr's changelog.
20.0.0 (2025-05-28)
⚠ BREAKING CHANGES
- Node.js versions from 22.0 to 22.11 are no longer supported
- Node.js v18 is no longer supported
- TypeScript versions less than 5.8 are no longer supported.
Features
- expand browser support to widely available Baseline (94f7fbe)
- add DTS bundles for entry-points (ca9d568), closes #139
- support Angular version 20 (cebe060)
- drop support for TypeScript older than 5.8 (a8255ce)
- support Sass package importers (f767d3c)
Bug Fixes
- correctly resolve SCSS resources from nested paths (f34a73d), closes #3006
- correctly update reference to bin (e73db8e), closes #3062
- update min Node.js support to 20.19, 22.12, and 24.0 (5a7eac4)
- ensure in package
.browserslistrcis correctly resolved (14ed50d)- prevent nested CSS in components (e2d9ef0)
- disable TypeScript
compositeoption with Angular compiler (5dfbdba)- disable emitting empty chunk warning (638c107)
- remove Node.js v18 support (69d9d9e)
- update minimum supported Node.js 22 version to 22.11.0 (a836a71)
Performance
- optimize node deletion using
Set(a99785c)- prevent redundant entry-point builds in watch mode (2f2668b), closes #2936
20.0.0-rc.2 (2025-05-27)
Bug Fixes
20.0.0-rc.1 (2025-05-21)
Bug Fixes
- update min Node.js support to 20.19, 22.12, and 24.0 (5a7eac4)
20.0.0-rc.0 (2025-04-30)
20.0.0-next.8 (2025-04-23)
... (truncated)
Commits
bc9ef06docs: update changelogc47c6afrelease: cut 20.0.046a4345build: update all non-major dependencies to v8.33.0322173crelease: cut 20.0.0-rc.222a7ba1build: update typescript-eslint monorepo to v8e9aa810Update discover-packages.ts0d0711cUpdate .eslintrc.json4d11154build: remove unused@types/chokidardependency916f585build: remove unused@types/read-pkg-updependencye73db8efix: correctly update reference to bin- Additional commits viewable in compare 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 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.