chore(deps): update dependency esbuild to v0.13.11 #916
No reviewers
Labels
No Label
area/internal-code
changes requested
confirmed
dependencies
duplicate
good first issue
help wanted
hosting
invalid
kind/bug
kind/feature
question
wontfix
No Milestone
No project
No Assignees
2 Participants
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: vikunja/frontend#916
Loading…
Reference in New Issue
No description provided.
Delete Branch "renovate/esbuild-0.x"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
This PR contains the following updates:
0.13.10
->0.13.11
Release Notes
evanw/esbuild
v0.13.11
Compare Source
Implement class static blocks (#1558)
This release adds support for a new upcoming JavaScript feature called class static blocks that lets you evaluate code inside of a class body. It looks like this:
This can be useful when you want to use
try
/catch
or access private#name
fields during class initialization. Doing that without this feature is quite hacky and basically involves creating temporary static fields containing immediately-invoked functions and then deleting the fields after class initialization. Static blocks are much more ergonomic and avoid performance loss due todelete
changing the object shape.Static blocks are transformed for older browsers by moving the static block outside of the class body and into an immediately invoked arrow function after the class definition:
In case you're wondering, the additional
let
variable is to guard against the potential reassignment ofFoo
during evaluation such as what happens below. The value ofthis
must be bound to the original class, not to the current value ofFoo
:Fix issues with
super
property accessesCode containing
super
property accesses may need to be transformed even when they are supported. For example, in ES6async
methods are unsupported whilesuper
properties are supported. Anasync
method containingsuper
property accesses requires those uses ofsuper
to be transformed (theasync
function is transformed into a nested generator function and thesuper
keyword cannot be used inside nested functions).Previously esbuild transformed
super
property accesses into a function call that returned the corresponding property. However, this was incorrect for uses ofsuper
that write to the inherited setter since a function call is not a valid assignment target. This release fixes writing to asuper
property:All known edge cases for assignment to a
super
property should now be covered including destructuring assignment and using the unary assignment operators with BigInts.In addition, this release also fixes a bug where a
static
class field containing asuper
property access was not transformed when it was moved outside of the class body, which can happen whenstatic
class fields aren't supported.All known edge cases for
super
insidestatic
class fields should be handled including accessingsuper
after prototype reassignment of the enclosing class object.Configuration
📅 Schedule: At any time (no schedule defined).
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR has been generated by Renovate Bot.