Packages

@esbuild/linux-x64

0.28.2 · 8 Aug 2026MIT396.1M / weekRepositoryHomepagenpmAtom feed

Your version

0.21.2

12 May 2024Where it was published

0.28.2 is the newest release of 0.21.x.

In short

1 new1 fixed

Release note

  • Correct this in field and accessor decorators

    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"
  • Allow es2023 as a target environment

    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.

A whole project to check? Paste its package.json in the dependency check: every deprecated, outdated or vulnerable dependency, with what to upgrade to. Free, no account.