terser 4.6.13 → 4.8.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +16 -0
- package/README.md +1 -0
- package/bin/terser +1 -0
- package/dist/bundle.min.js +1 -1
- package/dist/bundle.min.js.map +1 -1
- package/package.json +2 -2
- package/tools/postinstall.js +0 -7
package/CHANGELOG.md
CHANGED
@@ -1,5 +1,21 @@
|
|
1
1
|
# Changelog
|
2
2
|
|
3
|
+
## v4.8.1
|
4
|
+
|
5
|
+
- Security fix for RegExps that should not be evaluated (regexp DDOS)
|
6
|
+
|
7
|
+
## v4.8.0
|
8
|
+
|
9
|
+
- Support for numeric separators (`million = 1_000_000`) was added.
|
10
|
+
- Assigning properties to a class is now assumed to be pure.
|
11
|
+
- Fixed bug where `yield` wasn't considered a valid property key in generators.
|
12
|
+
|
13
|
+
## v4.7.0
|
14
|
+
|
15
|
+
- A bug was fixed where an arrow function would have the wrong size
|
16
|
+
- `arguments` object is now considered safe to retrieve properties from (useful for `length`, or `0`) even when `pure_getters` is not set.
|
17
|
+
- Fixed erroneous `const` declarations without value (which is invalid) in some corner cases when using `collapse_vars`.
|
18
|
+
|
3
19
|
## v4.6.13
|
4
20
|
|
5
21
|
- Fixed issue where ES5 object properties were being turned into ES6 object properties due to more lax unicode rules.
|
package/README.md
CHANGED
@@ -1317,6 +1317,7 @@ To allow for better optimizations, the compiler makes various assumptions:
|
|
1317
1317
|
`Object.defineProperty()`, `Object.defineProperties()`, `Object.freeze()`,
|
1318
1318
|
`Object.preventExtensions()` or `Object.seal()`).
|
1319
1319
|
- `document.all` is not `== null`
|
1320
|
+
- Assigning properties to a class doesn't have side effects and does not throw.
|
1320
1321
|
|
1321
1322
|
### Build Tools and Adaptors using Terser
|
1322
1323
|
|