This release implements the decorator metadata proposal, which is a sub-proposal of the decorators proposal. Microsoft shipped the decorators proposal in TypeScript 5.0 and the decorator metadata proposal in TypeScript 5.2, so it's important that esbuild also supports both of these features. Here's a quick example:
// Shim the "Symbol.metadata" symbol
Symbol.metadata ??= Symbol('Symbol.metadata')
// Prints ["foo", "bar"]
console.log(Foo[Symbol.metadata].names)
⚠️ WARNING ⚠️
This proposal has been marked as "stage 3" which means "recommended for implementation". However, it's still a work in progress and isn't a part of JavaScript yet, so keep in mind that any code that uses JavaScript decorator metadata may need to be updated as the feature continues to evolve. If/when that happens, I will update esbuild's implementation to match the specification. I will not be supporting old versions of the specification.
In certain cases, bundling code that uses decorators in a derived class with a class body that references its own class name could previously generate code that crashes at run-time due to an incorrect variable name. This problem has been fixed. Here is an example of code that was compiled incorrectly before this fix:
This release fixes an issue with a scenario involving a tsconfig.json file that extends another file from within a symlinked directory that uses the paths feature. In that case, the implicit baseURL value should be based on the real path (i.e. after expanding all symbolic links) instead of the original path. This was already done for other files that esbuild resolves but was not yet done for tsconfig.json because it's special-cased (the regular path resolver can't be used because the information inside tsconfig.json is involved in path resolution). Note that this fix no longer applies if the --preserve-symlinks setting is enabled.
This release implements the decorator metadata proposal, which is a sub-proposal of the decorators proposal. Microsoft shipped the decorators proposal in TypeScript 5.0 and the decorator metadata proposal in TypeScript 5.2, so it's important that esbuild also supports both of these features. Here's a quick example:
// Shim the "Symbol.metadata" symbol
Symbol.metadata ??= Symbol('Symbol.metadata')
// Prints ["foo", "bar"]
console.log(Foo[Symbol.metadata].names)
⚠️ WARNING ⚠️
This proposal has been marked as "stage 3" which means "recommended for implementation". However, it's still a work in progress and isn't a part of JavaScript yet, so keep in mind that any code that uses JavaScript decorator metadata may need to be updated as the feature continues to evolve. If/when that happens, I will update esbuild's implementation to match the specification. I will not be supporting old versions of the specification.
In certain cases, bundling code that uses decorators in a derived class with a class body that references its own class name could previously generate code that crashes at run-time due to an incorrect variable name. This problem has been fixed. Here is an example of code that was compiled incorrectly before this fix:
This release fixes an issue with a scenario involving a tsconfig.json file that extends another file from within a symlinked directory that uses the paths feature. In that case, the implicit baseURL value should be based on the real path (i.e. after expanding all symbolic links) instead of the original path. This was already done for other files that esbuild resolves but was not yet done for tsconfig.json because it's special-cased (the regular path resolver can't be used because the information inside tsconfig.json is involved in path resolution). Note that this fix no longer applies if the --preserve-symlinks setting is enabled.
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 ignore conditions` will show all of the ignore conditions of the specified dependency
- `@dependabot ignore major version` will close this group update PR and stop Dependabot creating any more for the specific dependency's major version (unless you unignore this specific dependency's major version or upgrade to it yourself)
- `@dependabot ignore minor version` will close this group update PR and stop Dependabot creating any more for the specific dependency's minor version (unless you unignore this specific dependency's minor version or upgrade to it yourself)
- `@dependabot ignore ` will close this group update PR and stop Dependabot creating any more for the specific dependency (unless you unignore this specific dependency or upgrade to it yourself)
- `@dependabot unignore ` will remove all of the ignore conditions of the specified dependency
- `@dependabot unignore ` will remove the ignore condition of the specified dependency and ignore conditions
Bumps the dependencies group with 7 updates:
2.27.1
2.27.2
9.2.0
9.3.0
20.12.11
20.12.12
0.21.2
0.21.3
9.2.0
9.3.0
1.6.10
1.6.12
7.8.0
7.9.0
Updates
@changesets/cli
from 2.27.1 to 2.27.2Release notes
Sourced from
@changesets/cli
's releases.Commits
4b60580
Version Packages (#1355)69be7dc
Fixedchangeset status
combined with ignored and non-versionable private pa...c6da182
Fix an issue with not applying a custom.prettierrc
configuration with `pre...0bf89b3
Use node 20.x in release flow (#1333)4185510
Fix incorrect plural (#1310)93ee679
AddSECURITY.md
Updates
@eslint/js
from 9.2.0 to 9.3.0Release notes
Sourced from
@eslint/js
's releases.Changelog
Sourced from
@eslint/js
's changelog.Commits
b681ecb
chore: package.json update for@eslint/js
release05ef92d
feat: deprecatemultiline-comment-style
&line-comment-position
(#18435)Updates
@types/node
from 20.12.11 to 20.12.12Commits
Updates
esbuild
from 0.21.2 to 0.21.3Release notes
Sourced from esbuild's releases.
Changelog
Sourced from esbuild's changelog.
Commits
efa3dd2
publish 0.21.3 to npm5e7cf25
fix #3760: implement decorator metadata proposalbd0b13b
lowering: always propagate class expression names90acd14
explicit bitwise operators for initializer flagsba548df
move decorator initializer list to after the class66b7c6d
fix #3768: bundled decorators in derived classes6e6f15f
fix #3767:tsconfig.json
files inside symlinksb7dcb95
transform: reuselowerField
for auto-accessorsUpdates
eslint
from 9.2.0 to 9.3.0Release notes
Sourced from eslint's releases.
Changelog
Sourced from eslint's changelog.
Commits
41a871c
9.3.0463a2e3
Build: changelog update for 9.3.058e2719
chore: update dependencies for v9.3.0 release (#18469)b681ecb
chore: package.json update for@eslint/js
release8db0eff
fix: Improve config error messages (#18457)ceada8c
docs: explain how to use "tsc waiting" label (#18466)b32153c
feat: addoverrides.namedExports
tofunc-style
rule (#18444)06f1d1c
chore: update dependency@humanwhocodes/retry
to ^0.3.0 (#18463)5c28d9a
fix: don't remove comments between key and value in object-shorthand (#18442)62e686c
docs: Add troubleshooting info for plugin compatibility (#18451)Updates
lefthook
from 1.6.10 to 1.6.12Release notes
Sourced from lefthook's releases.
Changelog
Sourced from lefthook's changelog.
Commits
e87cc77
1.6.12: fix interactive mode for scriptsce8d4f2
fix: more verbose error on versions mismatch (#721)e42043f
fix: enable interactive scripts (#720)fd407ef
1.6.11: fix partially staged logic and add --no-auto-install flag6965783
feat: add run --no-auto-install flag (#716)5c6d8ae
fix: add--porcelain
togit status --short
(#711)1d100c6
chore: bump go to 1.22 (#701)Updates
typescript-eslint
from 7.8.0 to 7.9.0Release notes
Sourced from typescript-eslint's releases.
Changelog
Sourced from typescript-eslint's changelog.
Commits
77fc366
chore(release): publish 7.9.0f53fece
chore: add knip (#8192)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