Update dependency terser to ^5.26.0 (main) (#173226)

[![Mend
Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com)

This PR contains the following updates:

| Package | Change | Age | Adoption | Passing | Confidence |
|---|---|---|---|---|---|
| [terser](https://terser.org)
([source](https://togithub.com/terser/terser)) | [`^5.16.5` ->
`^5.26.0`](https://renovatebot.com/diffs/npm/terser/5.16.5/5.26.0) |
[![age](https://developer.mend.io/api/mc/badges/age/npm/terser/5.26.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![adoption](https://developer.mend.io/api/mc/badges/adoption/npm/terser/5.26.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![passing](https://developer.mend.io/api/mc/badges/compatibility/npm/terser/5.16.5/5.26.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/terser/5.16.5/5.26.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|

---

### Release Notes

<details>
<summary>terser/terser (terser)</summary>

###
[`v5.26.0`](https://togithub.com/terser/terser/blob/HEAD/CHANGELOG.md#v5260)

[Compare
Source](https://togithub.com/terser/terser/compare/v5.25.0...v5.26.0)

- Do not take the `/*#__PURE__*/` annotation into account when the
`side_effects` compress option is off.
- The `preserve_annotations` option now automatically opts annotation
comments in, instead of requiring the `comments` option to be configured
for this.
-   Refuse to parse empty parenthesized expressions (`()`)

###
[`v5.25.0`](https://togithub.com/terser/terser/blob/HEAD/CHANGELOG.md#v5250)

[Compare
Source](https://togithub.com/terser/terser/compare/v5.24.0...v5.25.0)

- Regex properties added to reserved property mangler
([#&#8203;1471](https://togithub.com/terser/terser/issues/1471))
-   `pure_new` option added to drop unused `new` expressions.

###
[`v5.24.0`](https://togithub.com/terser/terser/blob/HEAD/CHANGELOG.md#v5240)

[Compare
Source](https://togithub.com/terser/terser/compare/v5.23.0...v5.24.0)

- Improve formatting performance in V8 by keeping a small work string
and a large output string

###
[`v5.23.0`](https://togithub.com/terser/terser/blob/HEAD/CHANGELOG.md#v5230)

[Compare
Source](https://togithub.com/terser/terser/compare/v5.22.0...v5.23.0)

- When top_retain will keep a variable assignment around, inline the
assignee when it's shorter than the name
([#&#8203;1434](https://togithub.com/terser/terser/issues/1434))
-   Remove empty class `static {}` blocks.

###
[`v5.22.0`](https://togithub.com/terser/terser/blob/HEAD/CHANGELOG.md#v5220)

[Compare
Source](https://togithub.com/terser/terser/compare/v5.21.0...v5.22.0)

- Do not `unsafe`ly shorten expressions like a?.toString() when they're
conditional.
- Avoid running drop_unused in nodes that aren't scopes. Fixes a rare
crash.
- When 'module' is enabled, assume strict mode when figuring out scopes.

###
[`v5.21.0`](https://togithub.com/terser/terser/blob/HEAD/CHANGELOG.md#v5210)

[Compare
Source](https://togithub.com/terser/terser/compare/v5.20.0...v5.21.0)

- Do not inline functions that would be retained in the toplevel (as
this would cause code duplication).
- Fix precedence of arrow function and ternary operator when formatting
output.

###
[`v5.20.0`](https://togithub.com/terser/terser/blob/HEAD/CHANGELOG.md#v5200)

[Compare
Source](https://togithub.com/terser/terser/compare/v5.19.4...v5.20.0)

- Passing `minify()` zero files will now throw a clean exception
([#&#8203;1450](https://togithub.com/terser/terser/issues/1450))
- `drop_console` supports passing in an array of `console.*` method
names ([#&#8203;1445](https://togithub.com/terser/terser/issues/1445))
- New DOM properties from the WebGPU API have been added for use in the
property mangler
([#&#8203;1436](https://togithub.com/terser/terser/issues/1436))
- Internal code simplification
([#&#8203;1437](https://togithub.com/terser/terser/issues/1437))

###
[`v5.19.4`](https://togithub.com/terser/terser/blob/HEAD/CHANGELOG.md#v5194)

[Compare
Source](https://togithub.com/terser/terser/compare/v5.19.3...v5.19.4)

- Prevent creating very deeply nested ternaries from a long list of
`if..return`
- Prevent inlining classes into other functions, to avoid constructors
being compared.

###
[`v5.19.3`](https://togithub.com/terser/terser/blob/HEAD/CHANGELOG.md#v5193)

[Compare
Source](https://togithub.com/terser/terser/compare/v5.19.2...v5.19.3)

-   Fix side effect detection of `optional?.chains`.
- Add roundRect to domprops.js
([#&#8203;1426](https://togithub.com/terser/terser/issues/1426))

###
[`v5.19.2`](https://togithub.com/terser/terser/blob/HEAD/CHANGELOG.md#v5192)

[Compare
Source](https://togithub.com/terser/terser/compare/v5.19.1...v5.19.2)

-   fix performance hit from avoiding HTML comments in the output

###
[`v5.19.1`](https://togithub.com/terser/terser/blob/HEAD/CHANGELOG.md#v5191)

[Compare
Source](https://togithub.com/terser/terser/compare/v5.19.0...v5.19.1)

-   Better avoid outputting `</script>` and HTML comments.
- Fix unused variables in class static blocks not being dropped
correctly.
-   Fix sourcemap names of methods that are `async` or `static`

###
[`v5.19.0`](https://togithub.com/terser/terser/blob/HEAD/CHANGELOG.md#v5190)

[Compare
Source](https://togithub.com/terser/terser/compare/v5.18.2...v5.19.0)

- Allow `/*@&#8203;__MANGLE_PROP__*/` annotation in `object.property`,
in addition to property declarations.

###
[`v5.18.2`](https://togithub.com/terser/terser/blob/HEAD/CHANGELOG.md#v5182)

[Compare
Source](https://togithub.com/terser/terser/compare/v5.18.1...v5.18.2)

-   Stop using recursion in hoisted defuns fix.

###
[`v5.18.1`](https://togithub.com/terser/terser/blob/HEAD/CHANGELOG.md#v5181)

[Compare
Source](https://togithub.com/terser/terser/compare/v5.18.0...v5.18.1)

-   Fix major performance issue caused by hoisted defuns' scopes bugfix.

###
[`v5.18.0`](https://togithub.com/terser/terser/blob/HEAD/CHANGELOG.md#v5180)

[Compare
Source](https://togithub.com/terser/terser/compare/v5.17.7...v5.18.0)

- Add new `/*@&#8203;__MANGLE_PROP__*/` annotation, to mark properties
that should be mangled.

###
[`v5.17.7`](https://togithub.com/terser/terser/blob/HEAD/CHANGELOG.md#v5177)

[Compare
Source](https://togithub.com/terser/terser/compare/v5.17.6...v5.17.7)

-   Update some dependencies
-   Add consistent sorting for `v` RegExp flag
-   Add `inert` DOM attribute to domprops

###
[`v5.17.6`](https://togithub.com/terser/terser/blob/HEAD/CHANGELOG.md#v5176)

[Compare
Source](https://togithub.com/terser/terser/compare/v5.17.5...v5.17.6)

- Fixes to mozilla AST input and output, for class properties, private
properties and static blocks
- Fix outputting a shorthand property in quotes when safari10 and
ecma=2015 options are enabled
- `configurable` and `enumerable`, used in Object.defineProperty, added
to domprops
([#&#8203;1393](https://togithub.com/terser/terser/issues/1393))

###
[`v5.17.5`](https://togithub.com/terser/terser/blob/HEAD/CHANGELOG.md#v5175)

[Compare
Source](https://togithub.com/terser/terser/compare/v5.17.4...v5.17.5)

- Take into account the non-deferred bits of a class, such as static
properties, while dropping unused code.

###
[`v5.17.4`](https://togithub.com/terser/terser/blob/HEAD/CHANGELOG.md#v5174)

[Compare
Source](https://togithub.com/terser/terser/compare/v5.17.3...v5.17.4)

-   Fix crash when trying to negate a class (`!class{}`)
-   Avoid outputting comments between `yield`/`await` and its argument
- Fix detection of left-hand-side of assignment, to avoid optimizing it
like any other expression in some edge cases

###
[`v5.17.3`](https://togithub.com/terser/terser/blob/HEAD/CHANGELOG.md#v5173)

[Compare
Source](https://togithub.com/terser/terser/compare/v5.17.2...v5.17.3)

- Fix issue with trimming a static class property's contents accessing
the class as `this`.

###
[`v5.17.2`](https://togithub.com/terser/terser/blob/HEAD/CHANGELOG.md#v5172)

[Compare
Source](https://togithub.com/terser/terser/compare/v5.17.1...v5.17.2)

- Be less conservative when detecting use-before-definition of `var` in
hoisted functions.
- Support unusual (but perfectly valid) initializers of for-in and
for-of loops.
- Fix issue where hoisted function would be dropped if it was after a
`continue` statement

###
[`v5.17.1`](https://togithub.com/terser/terser/blob/HEAD/CHANGELOG.md#v5171)

[Compare
Source](https://togithub.com/terser/terser/compare/v5.17.0...v5.17.1)

-   Fix evaluating `.length` when the source array might've been mutated

###
[`v5.17.0`](https://togithub.com/terser/terser/blob/HEAD/CHANGELOG.md#v5170)

[Compare
Source](https://togithub.com/terser/terser/compare/v5.16.9...v5.17.0)

- Drop vestigial `= undefined` default argument in IIFE calls
([#&#8203;1366](https://togithub.com/terser/terser/issues/1366))
- Evaluate known arrays' `.length` property when statically determinable
- Add `@__KEY__` annotation to mangle string literals
([#&#8203;1365](https://togithub.com/terser/terser/issues/1365))

###
[`v5.16.9`](https://togithub.com/terser/terser/blob/HEAD/CHANGELOG.md#v5169)

[Compare
Source](https://togithub.com/terser/terser/compare/v5.16.8...v5.16.9)

- Fix parentheses in output of optional chains (`a?.b`)
([#&#8203;1374](https://togithub.com/terser/terser/issues/1374))
- More documentation on source maps
([#&#8203;1368](https://togithub.com/terser/terser/issues/1368))
- New `lhs_constants` option, allowing to stop Terser from swapping
comparison operands
([#&#8203;1361](https://togithub.com/terser/terser/issues/1361))

###
[`v5.16.8`](https://togithub.com/terser/terser/blob/HEAD/CHANGELOG.md#v5168)

[Compare
Source](https://togithub.com/terser/terser/compare/v5.16.6...v5.16.8)

- Become even less conservative around function definitions for
`reduce_vars`
- Fix parsing context of `import.meta` expressions such that method
calls are allowed

###
[`v5.16.6`](https://togithub.com/terser/terser/blob/HEAD/CHANGELOG.md#v5166)

[Compare
Source](https://togithub.com/terser/terser/compare/v5.16.5...v5.16.6)

- Become less conservative with analyzing function definitions for
`reduce_vars`
-   Parse `import.meta` as a real AST node and not an `object.property`

</details>

---

### Configuration

📅 **Schedule**: Branch creation - At any time (no schedule defined),
Automerge - 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.

---

- [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check
this box

---

This PR has been generated by [Mend
Renovate](https://www.mend.io/free-developer-tools/renovate/). View
repository job log
[here](https://developer.mend.io/github/elastic/kibana).

<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNy44Ny4yIiwidXBkYXRlZEluVmVyIjoiMzcuOTMuMSIsInRhcmdldEJyYW5jaCI6Im1haW4ifQ==-->

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Jonathan Budzenski <jon@elastic.co>
This commit is contained in:
renovate[bot] 2023-12-18 14:26:55 -06:00 committed by GitHub
parent 47614ec675
commit edfb2d9481
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 12 additions and 12 deletions

View file

@ -1644,7 +1644,7 @@
"table": "^6.8.1",
"tape": "^5.0.1",
"tempy": "^0.3.0",
"terser": "^5.16.5",
"terser": "^5.26.0",
"terser-webpack-plugin": "^4.2.3",
"tough-cookie": "^4.1.2",
"tree-kill": "^1.2.2",

View file

@ -2897,10 +2897,10 @@
resolved "https://registry.yarnpkg.com/@jridgewell/set-array/-/set-array-1.1.2.tgz#7c6cf998d6d20b914c0a55a91ae928ff25965e72"
integrity sha512-xnkseuNADM0gt2bs+BvhO0p78Mk762YnZdsuzFV018NoG1Sj1SCQvpSqa7XUaTam5vAGasABV9qXASMKnFMwMw==
"@jridgewell/source-map@^0.3.2":
version "0.3.2"
resolved "https://registry.yarnpkg.com/@jridgewell/source-map/-/source-map-0.3.2.tgz#f45351aaed4527a298512ec72f81040c998580fb"
integrity sha512-m7O9o2uR8k2ObDysZYzdfhb08VuEml5oWGiosa1VdaPZ/A6QyPkAJuwN0Q1lhULOf6B7MtQmHENS743hWtCrgw==
"@jridgewell/source-map@^0.3.3":
version "0.3.5"
resolved "https://registry.yarnpkg.com/@jridgewell/source-map/-/source-map-0.3.5.tgz#a3bb4d5c6825aab0d281268f47f6ad5853431e91"
integrity sha512-UTYAUj/wviwdsMfzoSJspJxbkH5o1snzwX0//0ENX1u/55kkZZkcTZP6u9bwKGkv+dkk9at4m1Cpt0uY80kcpQ==
dependencies:
"@jridgewell/gen-mapping" "^0.3.0"
"@jridgewell/trace-mapping" "^0.3.9"
@ -10872,7 +10872,7 @@ acorn@^7.0.0, acorn@^7.4.1:
resolved "https://registry.yarnpkg.com/acorn/-/acorn-7.4.1.tgz#feaed255973d2e77555b83dbc08851a6c63520fa"
integrity sha512-nQyp0o1/mNdbTO1PO6kHkwSrmgZ0MT/jCCpNiwbUjGoRN4dlBhqJtoQuCnEOKzgTVwg0ZWiCoQy6SxMebQVh8A==
acorn@^8.0.4, acorn@^8.1.0, acorn@^8.4.1, acorn@^8.5.0, acorn@^8.7.1, acorn@^8.8.0, acorn@^8.8.2, acorn@^8.9.0:
acorn@^8.0.4, acorn@^8.1.0, acorn@^8.4.1, acorn@^8.7.1, acorn@^8.8.0, acorn@^8.8.2, acorn@^8.9.0:
version "8.10.0"
resolved "https://registry.yarnpkg.com/acorn/-/acorn-8.10.0.tgz#8be5b3907a67221a81ab23c7889c4c5526b62ec5"
integrity sha512-F0SAmZ8iUtS//m8DmCTA0jlh6TDKkHQyK6xc6V4KDTyZKA9dnvX9/3sRTVQrWm79glUAZbnmmNcdYwUIHWVybw==
@ -28862,13 +28862,13 @@ terser@^4.1.2, terser@^4.6.3:
source-map "~0.6.1"
source-map-support "~0.5.12"
terser@^5.14.1, terser@^5.16.5, terser@^5.3.4, terser@^5.9.0:
version "5.16.5"
resolved "https://registry.yarnpkg.com/terser/-/terser-5.16.5.tgz#1c285ca0655f467f92af1bbab46ab72d1cb08e5a"
integrity sha512-qcwfg4+RZa3YvlFh0qjifnzBHjKGNbtDo9yivMqMFDy9Q6FSaQWSB/j1xKhsoUFJIqDOM3TsN6D5xbrMrFcHbg==
terser@^5.14.1, terser@^5.26.0, terser@^5.3.4, terser@^5.9.0:
version "5.26.0"
resolved "https://registry.yarnpkg.com/terser/-/terser-5.26.0.tgz#ee9f05d929f4189a9c28a0feb889d96d50126fe1"
integrity sha512-dytTGoE2oHgbNV9nTzgBEPaqAWvcJNl66VZ0BkJqlvp71IjO8CxdBx/ykCNb47cLnCmCvRZ6ZR0tLkqvZCdVBQ==
dependencies:
"@jridgewell/source-map" "^0.3.2"
acorn "^8.5.0"
"@jridgewell/source-map" "^0.3.3"
acorn "^8.8.2"
commander "^2.20.0"
source-map-support "~0.5.20"