Skip to content

chore(deps): update dependency esbuild to v0.19.8

HTML-validate requested to merge renovate/esbuild-0.x into master

This MR contains the following updates:

Package Type Update Change
esbuild devDependencies patch 0.19.7 -> 0.19.8

Release Notes

evanw/esbuild (esbuild)

v0.19.8

Compare Source

  • Add a treemap chart to esbuild's bundle analyzer (#​2848)

    The bundler analyzer on esbuild's website (https://esbuild.github.io/analyze/) now has a treemap chart type in addition to the two existing chart types (sunburst and flame). This should be more familiar for people coming from other similar tools, as well as make better use of large screens.

  • Allow decorators after the export keyword (#​104)

    Previously esbuild's decorator parser followed the original behavior of TypeScript's experimental decorators feature, which only allowed decorators to come before the export keyword. However, the upcoming JavaScript decorators feature also allows decorators to come after the export keyword. And with TypeScript 5.0, TypeScript now also allows experimental decorators to come after the export keyword too. So esbuild now allows this as well:

    // This old syntax has always been permitted:
    @​decorator export class Foo {}
    @​decorator export default class Foo {}
    
    // This new syntax is now permitted too:
    export @​decorator class Foo {}
    export default @​decorator class Foo {}

    In addition, esbuild's decorator parser has been rewritten to fix several subtle and likely unimportant edge cases with esbuild's parsing of exports and decorators in TypeScript (e.g. TypeScript apparently does automatic semicolon insertion after interface and export interface but not after export default interface).

  • Pretty-print decorators using the same whitespace as the original

    When printing code containing decorators, esbuild will now try to respect whether the original code contained newlines after the decorator or not. This can make generated code containing many decorators much more compact to read:

    // Original code
    class Foo {
      @​a @​b @​c abc
      @​x @​y @​z xyz
    }
    
    // Old output
    class Foo {
      @​a
      @​b
      @​c
      abc;
      @​x
      @​y
      @​z
      xyz;
    }
    
    // New output
    class Foo {
      @​a @​b @​c abc;
      @​x @​y @​z xyz;
    }

Configuration

📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).

🚦 Automerge: Enabled.

Rebasing: Whenever MR is behind base branch, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this MR and you won't be reminded about this update again.


  • If you want to rebase/retry this MR, check this box

This MR has been generated by Renovate Bot.

Merge request reports