This repository has been archived by the owner on Jul 22, 2022. It is now read-only.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR contains the following updates:
^4.0.0
->^5.0.0
Release Notes
terser/terser
v5.14.2
Compare Source
v5.14.1
Compare Source
v5.14.0
Compare Source
v5.13.1
Compare Source
varname=varname
) (closes #1081)var
destructuring (egvar { a, a } = x
) (#1176)v5.13.0
Compare Source
source-map
was updated to 0.8.0-beta.0 (#1164)v5.12.1
Compare Source
new
in some situations (closes #1159)v5.12.0
Compare Source
TERSER_DEBUG_DIR
environment variablev5.11.0
Compare Source
\u{abcde}
) are not emitted inside RegExp literals anymore (#1147)v5.10.0
Compare Source
delete optional?.property
get
return someVariable = (async () => { ... })()
(#1073)v5.9.0
Compare Source
{ ...obj }
(#1071)v5.8.0
Compare Source
v5.7.2
Compare Source
global_defs
option (#1036)??
and?.
(#1045)package
no longer require you to disable strict mode to be used as names.in
operator in some for loops (it breaks parsing because of for..in loops)v5.7.1
Compare Source
a?.b = c
){ ...void 0 }
->{}
)v5.7.0
Compare Source
reduce_funcs
to be disabled again.spidermonkey
options to parse and format (#974){get = "default val"}
and{set = "default val"}
in destructuring arguments.export default
of an anonymous class withextends
v5.6.1
Compare Source
.prototype
of a class as pureawait
on the left of**
(while accepting legacy non-parenthesised input)exports
to domprops (#939)...this
v5.6.0
Compare Source
v5.5.1
Compare Source
v5.5.0
Compare Source
v5.4.0
Compare Source
let x = undefined
to justlet x
unsafe
options. Reason: adding strings is not equivalent to template strings, due to valueOf differences.v5.3.8
Compare Source
v5.3.7
Compare Source
Hotfix release, fixes package.json "engines" syntax
v5.3.6
Compare Source
??
mixed with||
and&&
v5.3.5
Compare Source
v5.3.4
Compare Source
hoist_vars
) a destructuring variable declarationv5.3.3
Compare Source
source-map
library has been updated, bringing memory usage and CPU time improvements when reading input source maps (the SourceMapConsumer is now WASM based).wrap_func_args
option now also wraps arrow functions, as opposed to only function expressions.v5.3.2
Compare Source
+
operations.v5.3.1
Compare Source
pure_getters
is enabled has been fixedv5.3.0
Compare Source
v5.2.1
Compare Source
ecma
option, so that all ES code is accepted.foo?.default
)v5.2.0
Compare Source
v5.1.0
Compare Source
import.meta
is now supportedv5.0.0
Compare Source
in
operator now taken into account during property mangle.v4.8.1
Compare Source
v4.8.0
Compare Source
million = 1_000_000
) was added.yield
wasn't considered a valid property key in generators.v4.7.0
Compare Source
arguments
object is now considered safe to retrieve properties from (useful forlength
, or0
) even whenpure_getters
is not set.const
declarations without value (which is invalid) in some corner cases when usingcollapse_vars
.v4.6.13
Compare Source
e
in them.v4.6.12
Compare Source
[1,[2, 3]]
is different from[1, 2, [3]]
v4.6.11
Compare Source
this
in function calls.x ?? y
), plus basic optimization for it.+
have been further optimizedv4.6.10
Compare Source
v4.6.9
Compare Source
v4.6.8
Compare Source
v4.6.7
Compare Source
AST_Node.size()
method which measures a node's source code length without printing it to a string first.--comments
tofalse
in the CLI has been fixed.unsafe_symbols
compress option was added, which turnsSymbol("name")
into justSymbol()
AST_Node.equivalent_to(other)
method (which was reverted in v4.6.6).v4.6.6
Compare Source
(hotfix release)
v4.6.5
Compare Source
v4.6.4
Compare Source
"some"
value in thecomments
output option now preserves@lic
and other important comments when using//
</script>
is now better escaped in regex, and in comments, when using theinline_script
output optionnew RegExp
into/.../
when slashes are included in the sourceAST_Node.prototype.constructor
now exists, allowing for easier debugging of crashesv4.6.3
Compare Source
/*#__NOINLINE__*/
and/*#__PURE__*/
may now be preserved using thepreserve_annotations
output optionkeep_quoted
output option.v4.6.2
Compare Source
/*#__NOINLINE__*/
annotation fixed for more use cases where inlining happens.v4.6.1
Compare Source
e
in them.v4.6.0
Compare Source
v4.5.1
Compare Source
(hotfix release)
() => ({})[something]
was not parenthesised correctly.v4.5.0
Compare Source
keep_numbers
has been added, which prevents Terser from turning1000
into1e3
and suchv4.4.3
Compare Source
/*#__INLINE__*/
annotation fixed for arrow functions with non-block bodies.v4.4.2
Compare Source
v4.4.1
Compare Source
note: This introduced a feature, therefore it should have been a minor release.
unsafe
was enabled.let
statements might be collapsed out of their scope.v4.4.0
Compare Source
/*#__INLINE__*/
and/*#__NOINLINE__*/
annotations for calls. If a call has one of these, it either forces or forbids inlining.v4.3.11
Compare Source
window
was considered safe to access, even though there are situations where it isn't (Node.js, workers...)++
and--
were considered side-effect freeNumber(x)
now needs bothunsafe
and andunsafe_math
to be compressed into+x
becausex
might be aBigInt
keep_fnames
now correctly supports regexes when the function is in a variable declarationv4.3.10
Compare Source
v4.3.9
Compare Source
keep_fnames
option, introduced when adding code to keep variable names of anonymous functionsv4.3.8
Compare Source
v4.3.7
Compare Source
v4.3.6
Compare Source
(crash hotfix)
v4.3.5
Compare Source
\
and a new line.const x = () => { ... }
orvar func = function () {...}
) are now preserved when keep_fnames is true.v4.3.4
Compare Source
@preserve
,@license
,@cc_on
as well as comments starting with/*!
and/**!
are now preserved by default.v4.3.3
Compare Source
async
in destructuring arguments with default value.extends
clauses.v4.3.2
Compare Source
v4.3.1
Compare Source
window
was considered safe to access, even though there are situations where it isn't (Node.js, workers...)++
and--
were considered side-effect freeNumber(x)
now needs bothunsafe
and andunsafe_math
to be compressed into+x
becausex
might be aBigInt
keep_fnames
now correctly supports regexes when the function is in a variable declarationv4.3.0
Compare Source
try
andswitch
v4.2.1
Compare Source
v4.2.0
Compare Source
inline
, don't write it to a file.mangle.properties.undeclared
option was added. This enables the property mangler to mangle properties of variables which can be found in the name cache, but whose properties are not known to this Terser run.RegExp("\\\n")
includes an actual newline is now fixed.v4.1.4
Compare Source
v4.1.3
Compare Source
reduce_vars
option were fixed.v4.1.2
Compare Source
v4.1.1
Compare Source
v4.1.0
Compare Source
Object.assign
,Array.prototype.some
,Array.prototype.find
andArray.prototype.every
.v4.0.2
Compare Source
(Hotfix release. Reverts unmapped segments PR #342, which will be put back on Terser when the upstream issue is resolved)
v4.0.1
Compare Source
collapse_vars
when functions are created with the same name as a variable which already existsMutationObserverInit
(Object with options for initialising a mutation observer) properties to the DOM property listError
subclasses are now internally used instead of old-school Error inheritance hacks.Configuration
📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).
🚦 Automerge: Disabled due to failing status checks.
♻ 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 Mend Renovate. View repository job log here.