chore(deps): update dependency esbuild to v0.12.24 #688
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
1 Participants
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: vikunja/frontend#688
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.12.23
->0.12.24
Release Notes
evanw/esbuild
v0.12.24
Compare Source
Fix an edge case with direct
eval
and variable renamingUse of the direct
eval
construct causes all variable names in the scope containing the directeval
and all of its parent scopes to become "pinned" and unable to be renamed. This is because the dynamically-evaluated code is allowed to reference any of those variables by name. When this happens esbuild avoids renaming any of these variables, which effectively disables minification for most of the file, and avoids renaming any non-pinned variables to the name of a pinned variable.However, there was previously a bug where the pinned variable name avoidance only worked for pinned variables in the top-level scope but not in nested scopes. This could result in a non-pinned variable being incorrectly renamed to the name of a pinned variable in certain cases. For example:
When this code is minified with
--minify-identifiers
, the non-pinned variablearg
is incorrectly transformed into$
resulting in a name collision with the nested pinned variable$
:This is because the non-pinned variable
arg
is renamed to the top character in the character frequency histogram$
(esbuild uses a character frequency histogram for smaller gzipped output sizes) and the pinned variable$
was incorrectly not present in the list of variable names to avoid. With this release, the output is now correct:Note that even when esbuild handles direct
eval
correctly, using directeval
is not recommended because it disables minification for the file and likely won't work correctly in the presence of scope hoisting optimizations. See https://esbuild.github.io/link/direct-eval for more details.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.