Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bump esbuild from 0.20.2 to 0.21.3 #12339

Closed
wants to merge 1 commit into from

Conversation

dependabot[bot]
Copy link
Contributor

@dependabot dependabot bot commented on behalf of github May 15, 2024

Bumps esbuild from 0.20.2 to 0.21.3.

Release notes

Sourced from [esbuild's releases](https://github.com/evanw/esbuild/releases).

v0.21.3

  • Implement the decorator metadata proposal ([PNI homepage/categories: only show products with review date within one year #3760](https://redirect.github.com/Feature request: Implement the Decorator Metadata proposal evanw/esbuild#3760))

    This release implements the [decorator metadata proposal](https://github.com/tc39/proposal-decorator-metadata), which is a sub-proposal of the [decorators proposal](https://github.com/tc39/proposal-decorators). Microsoft shipped the decorators proposal in [TypeScript 5.0](https://devblogs.microsoft.com/typescript/announcing-typescript-5-0/#decorators) and the decorator metadata proposal in [TypeScript 5.2](https://devblogs.microsoft.com/typescript/announcing-typescript-5-2/#decorator-metadata), 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')
    const track = (_, context) => {
    (context.metadata.names ||= []).push(context.name)
    }
    class Foo {
    @​track foo = 1
    @​track bar = 2
    }
    // 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.

  • Fix bundled decorators in derived classes ([Fix lang reset #3768](https://redirect.github.com/ES decorators bug with inheritance and --bundle evanw/esbuild#3768))

    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:

    class Foo extends Object {
      @(x => x) foo() {
        return Foo
      }
    }
    console.log(new Foo().foo())
  • Fix tsconfig.json files inside symlinked directories ([PNI: update badge #3767](https://redirect.github.com/compilerOptions.paths not resolved when tsconfig extends from another package evanw/esbuild#3767))

    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.

v0.21.2

  • Correct this in field and accessor decorators ([YouTube mobile newsletter sign up  #3761](https://redirect.github.com/ES Decorators no binding to this evanw/esbuild#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 }

... (truncated)

Changelog

Sourced from [esbuild's changelog](https://github.com/evanw/esbuild/blob/main/CHANGELOG.md).

0.21.3

  • Implement the decorator metadata proposal ([PNI homepage/categories: only show products with review date within one year #3760](https://redirect.github.com/Feature request: Implement the Decorator Metadata proposal evanw/esbuild#3760))

    This release implements the [decorator metadata proposal](https://github.com/tc39/proposal-decorator-metadata), which is a sub-proposal of the [decorators proposal](https://github.com/tc39/proposal-decorators). Microsoft shipped the decorators proposal in [TypeScript 5.0](https://devblogs.microsoft.com/typescript/announcing-typescript-5-0/#decorators) and the decorator metadata proposal in [TypeScript 5.2](https://devblogs.microsoft.com/typescript/announcing-typescript-5-2/#decorator-metadata), 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')
    const track = (_, context) => {
    (context.metadata.names ||= []).push(context.name)
    }
    class Foo {
    @​track foo = 1
    @​track bar = 2
    }
    // 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.

  • Fix bundled decorators in derived classes ([Fix lang reset #3768](https://redirect.github.com/ES decorators bug with inheritance and --bundle evanw/esbuild#3768))

    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:

    class Foo extends Object {
      @(x => x) foo() {
        return Foo
      }
    }
    console.log(new Foo().foo())
  • Fix tsconfig.json files inside symlinked directories ([PNI: update badge #3767](https://redirect.github.com/compilerOptions.paths not resolved when tsconfig extends from another package evanw/esbuild#3767))

    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.

0.21.2

  • Correct this in field and accessor decorators ([YouTube mobile newsletter sign up  #3761](https://redirect.github.com/ES Decorators no binding to this evanw/esbuild#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:

... (truncated)

Commits

Dependabot compatibility score

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)

┆Issue is synchronized with this Jira Story

@dependabot dependabot bot added dependencies Pull requests that update a dependency file engineering frontend npm Used for dependabot PR's having to do with NPM labels May 15, 2024
@dependabot dependabot bot force-pushed the dependabot/npm_and_yarn/esbuild-0.21.3 branch 4 times, most recently from 3eb5be0 to c2e369a Compare May 22, 2024 05:38
Bumps [esbuild](https://github.com/evanw/esbuild) from 0.20.2 to 0.21.3.
- [Release notes](https://github.com/evanw/esbuild/releases)
- [Changelog](https://github.com/evanw/esbuild/blob/main/CHANGELOG.md)
- [Commits](evanw/esbuild@v0.20.2...v0.21.3)

---
updated-dependencies:
- dependency-name: esbuild
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot dependabot bot force-pushed the dependabot/npm_and_yarn/esbuild-0.21.3 branch from c2e369a to 2a7d8d7 Compare May 22, 2024 06:12
Copy link
Contributor Author

dependabot bot commented on behalf of github May 27, 2024

Superseded by #12378.

@dependabot dependabot bot closed this May 27, 2024
@dependabot dependabot bot deleted the dependabot/npm_and_yarn/esbuild-0.21.3 branch May 27, 2024 06:24
@data-sync-user
Copy link
Collaborator

➤ Simon Acosta Torres commented:

PR has been closed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dependencies Pull requests that update a dependency file engineering frontend npm Used for dependabot PR's having to do with NPM
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant