hexo-theme-inside
hexo-theme-inside copied to clipboard
chore(deps): update dependency terser to v5
This PR contains the following updates:
Package | Change | Age | Adoption | Passing | Confidence |
---|---|---|---|---|---|
terser (source) | 4.8.0 -> 5.14.1 |
Release Notes
terser/terser
v5.14.1
- keep_numbers option added to TypeScript defs (#β1208)
- Fixed parsing of nested template strings (#β1204)
v5.14.0
- Switched to @βjridgewell/source-map for sourcemap generation (#β1190, #β1181)
- Fixed source maps with non-terminated segments (#β1106)
- Enabled typescript types to be imported from the package (#β1194)
- Extra DOM props have been added (#β1191)
- Delete the AST while generating code, as a means to save RAM
v5.13.1
- Removed self-assignments (
varname=varname
) (closes #β1081) - Separated inlining code (for inlining things into references, or removing IIFEs)
- Allow multiple identifiers with the same name in
var
destructuring (egvar { a, a } = x
) (#β1176)
v5.13.0
- All calls to eval() were removed (#β1171, #β1184)
-
source-map
was updated to 0.8.0-beta.0 (#β1164) - NavigatorUAData was added to domprops to avoid property mangling (#β1166)
v5.12.1
- Fixed an issue with function definitions inside blocks (#β1155)
- Fixed parens of
new
in some situations (closes #β1159)
v5.12.0
-
TERSER_DEBUG_DIR
environment variable - @βcopyright comments are now preserved with the comments="some" option (#β1153)
v5.11.0
- Unicode code point escapes (
\u{abcde}
) are not emitted inside RegExp literals anymore (#β1147) - acorn is now a regular dependency
v5.10.0
- Massive optimization to max_line_len (#β1109)
- Basic support for import assertions
- Marked ES2022 Object.hasOwn as a pure function
- Fix
delete optional?.property
- New CI/CD pipeline with github actions (#β1057)
- Fix reordering of switch branches (#β1092), (#β1084)
- Fix error when creating a class property called
get
- Acorn dependency is now an optional peerDependency
- Fix mangling collision with exported variables (#β1072)
- Fix an issue with
return someVariable = (async () => { ... })()
(#β1073)
v5.9.0
- Collapsing switch cases with the same bodies (even if they're not next to each other) (#β1070).
- Fix evaluation of optional chain expressions (#β1062)
- Fix mangling collision in ESM exports (#β1063)
- Fix issue with mutating function objects after a second pass (#β1047)
- Fix for inlining object spread
{ ...obj }
(#β1071) - Typescript typings fix (#β1069)
v5.8.0
- Fixed shadowing variables while moving code in some cases (#β1065)
- Stop mangling computed & quoted properties when keep_quoted is enabled.
- Fix for mangling private getter/setter and .#private access (#β1060, #β1068)
- Array.from has a new optimization when the unsafe option is set (#β737)
- Mangle/propmangle let you generate your own identifiers through the nth_identifier option (#β1061)
- More optimizations to switch statements (#β1044)
v5.7.2
- Fixed issues with compressing functions defined in
global_defs
option (#β1036) - New recipe for using Terser in gulp was added to RECIPES.md (#β1035)
- Fixed issues with
??
and?.
(#β1045) - Future reserved words such as
package
no longer require you to disable strict mode to be used as names. - Refactored huge compressor file into multiple more focused files.
- Avoided unparenthesized
in
operator in some for loops (it breaks parsing because of for..in loops) - Improved documentation (#β1021, #β1025)
- More type definitions (#β1021)
v5.7.1
- Avoided collapsing assignments together if it would place a chain assignment on the left hand side, which is invalid syntax (
a?.b = c
) - Removed undefined from object expansions (
{ ...void 0 }
->{}
) - Fix crash when checking if something is nullish or undefined (#β1009)
- Fixed comparison of private class properties (#β1015)
- Minor performance improvements (#β993)
- Fixed scope of function defs in strict mode (they are block scoped)
v5.7.0
- Several compile-time evaluation and inlining fixes
- Allow
reduce_funcs
to be disabled again. - Add
spidermonkey
options to parse and format (#β974) - Accept
{get = "default val"}
and{set = "default val"}
in destructuring arguments. - Change package.json export map to help require.resolve (#β971)
- Improve docs
- Fix
export default
of an anonymous class withextends
v5.6.1
- Mark assignments to the
.prototype
of a class as pure - Parenthesize
await
on the left of**
(while accepting legacy non-parenthesised input) - Avoided outputting NUL bytes in optimized RegExps, to stop the output from breaking other tools
- Added
exports
to domprops (#β939) - Fixed a crash when spreading
...this
- Fixed the computed size of arrow functions, which improves their inlining
v5.6.0
- Added top-level await
- Beautify option has been removed in #β895
- Private properties, getters and setters have been added in #β913 and some more commits
- Docs improvements: #β896, #β903, #β916
v5.5.1
- Fixed object properties with unicode surrogates on safari.
v5.5.0
- Fixed crash when inlining uninitialized variable into template string.
- The sourcemap for dist was removed for being too large.
v5.4.0
- Logical assignment
- Change
let x = undefined
to justlet x
- Removed some optimizations for template strings, placing them behind
unsafe
options. Reason: adding strings is not equivalent to template strings, due to valueOf differences. - The AST_Token class was slimmed down in order to use less memory.
v5.3.8
- Restore node 13 support
v5.3.7
Hotfix release, fixes package.json "engines" syntax
v5.3.6
- Fixed parentheses when outputting
??
mixed with||
and&&
- Improved hygiene of the symbol generator
v5.3.5
- Avoid moving named functions into default exports.
- Enabled transform() for chain expressions. This allows AST transformers to reach inside chain expressions.
v5.3.4
- Fixed a crash when hoisting (with
hoist_vars
) a destructuring variable declaration
v5.3.3
-
source-map
library has been updated, bringing memory usage and CPU time improvements when reading input source maps (the SourceMapConsumer is now WASM based). - The
wrap_func_args
option now also wraps arrow functions, as opposed to only function expressions.
v5.3.2
- Prevented spread operations from being expanded when the expanded array/object contains getters, setters, or array holes.
- Fixed very slow self-recursion in some cases of removing extraneous parentheses from
+
operations.
v5.3.1
- An issue with destructuring declarations when
pure_getters
is enabled has been fixed - Fixed a crash when chain expressions need to be shallowly compared
- Made inlining functions more conservative to make sure a function that contains a reference to itself isn't moved into a place that can create multiple instances of itself.
v5.3.0
- Fixed a crash when compressing object spreads in some cases
- Fixed compiletime evaluation of optional chains (caused typeof a?.b to always return "object")
- domprops has been updated to contain every single possible prop
v5.2.1
- The parse step now doesn't accept an
ecma
option, so that all ES code is accepted. - Optional dotted chains now accept keywords, just like dotted expressions (
foo?.default
)
v5.2.0
- Optional chaining syntax is now supported.
- Consecutive await expressions don't have unnecessary parens
- Taking the variable name's length (after mangling) into consideration when deciding to inline
v5.1.0
-
import.meta
is now supported - Typescript typings have been improved
v5.0.0
-
in
operator now taken into account during property mangle. - Fixed infinite loop in face of a reference loop in some situations.
- Kept exports and imports around even if there's something which will throw before them.
- The main exported bundle for commonjs, dist/bundle.min.js is no longer minified.
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.
- [ ] If you want to rebase/retry this PR, click this checkbox.
This PR has been generated by Mend Renovate. View repository job log here.