Correct this in field and accessor decorators (#3761)
This release changes the value of this in initializers for class field and accessor decorators from the module-level this value to the appropriate this value for the decorated element (either the class or the instance). It was previously incorrect due to lack of test coverage. Here's an example of a decorator that doesn't work without this change:
const dec = () => function() { this.bar = true }
class Foo { @dec static foo }
console.log(Foo.bar) // Should be "true"
TypeScript recently added es2023 as a compilation target, so esbuild now supports this too. There is no difference between a target of es2022 and es2023 as far as esbuild is concerned since the 2023 edition of JavaScript doesn't introduce any new syntax features.
Correct this in field and accessor decorators (#3761)
This release changes the value of this in initializers for class field and accessor decorators from the module-level this value to the appropriate this value for the decorated element (either the class or the instance). It was previously incorrect due to lack of test coverage. Here's an example of a decorator that doesn't work without this change:
const dec = () => function() { this.bar = true }
class Foo { @dec static foo }
console.log(Foo.bar) // Should be "true"
TypeScript recently added es2023 as a compilation target, so esbuild now supports this too. There is no difference between a target of es2022 and es2023 as far as esbuild is concerned since the 2023 edition of JavaScript doesn't introduce any new syntax features.
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 all-dependencies group with 4 updates in the / directory: @typescript-eslint/eslint-plugin, @typescript-eslint/parser, @vscode/test-electron and esbuild.
Updates
@typescript-eslint/eslint-plugin
from 7.8.0 to 7.9.0Release notes
Sourced from
@typescript-eslint/eslint-plugin
's releases.Changelog
Sourced from
@typescript-eslint/eslint-plugin
's changelog.Commits
77fc366
chore(release): publish 7.9.0f53fece
chore: add knip (#8192)8acb8d4
fix(eslint-plugin): [explicit-function-return-types] fix false positive on de...d696ea2
docs(eslint-plugin): fix several 404 URLs (#9064)37a41d9
docs: fix broken link toimport/no-duplicates
onno-duplicate-imports
pag...ab92621
docs: correct its/it's spelling (#9048)f248e68
docs: [no-floating-promises] remove ugly commas (#9034)6e1241b
docs: fix no-unnecessary-boolean-literal-compare example (#8981)Updates
@typescript-eslint/parser
from 7.8.0 to 7.9.0Release notes
Sourced from
@typescript-eslint/parser
's releases.Changelog
Sourced from
@typescript-eslint/parser
's changelog.Commits
77fc366
chore(release): publish 7.9.0f53fece
chore: add knip (#8192)Updates
@vscode/test-electron
from 2.3.9 to 2.3.10Changelog
Sourced from
@vscode/test-electron
's changelog.Commits
68fb5fb
2.3.103f7a3cc
feat: runVSCodeCommand as workaround for CVE-2024-2798040ecedf
Merge pull request #263 from microsoft/dependabot/npm_and_yarn/vite-2.9.18e7b5d61
chore(deps): bump vite from 2.9.17 to 2.9.181305af5
chore(deps): updateglob
and remove@types/glob
(#262)bc400a2
Merge pull request #256 from microsoft/connor4312/fix-windows-first-run92c0591
Merge pull request #257 from microsoft/dependabot/npm_and_yarn/vite-2.9.171caf111
chore(deps): bump vite from 2.9.16 to 2.9.17Updates
esbuild
from 0.21.1 to 0.21.2Release notes
Sourced from esbuild's releases.
Changelog
Sourced from esbuild's changelog.
Commits
b24180e
publish 0.21.2 to npmf82e0ad
fix #3761:this
in field and accessor decorators46ea596
fix #3762: addes2023
as an alias fores2022
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