terser 5.15.1 → 5.16.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 +14 -0
- package/PATRONS.md +1 -1
- package/README.md +2 -2
- package/dist/bundle.min.js +3223 -3060
- package/lib/ast.js +42 -2
- package/lib/compress/drop-unused.js +482 -0
- package/lib/compress/evaluate.js +7 -0
- package/lib/compress/index.js +7 -403
- package/lib/compress/inference.js +1 -2
- package/lib/compress/inline.js +1 -19
- package/lib/compress/tighten-body.js +29 -28
- package/lib/mozilla-ast.js +26 -1
- package/lib/output.js +16 -1
- package/lib/parse.js +42 -4
- package/lib/propmangle.js +2 -0
- package/lib/scope.js +30 -8
- package/lib/size.js +11 -8
- package/lib/transform.js +6 -0
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
@@ -1,5 +1,19 @@
|
|
1
1
|
# Changelog
|
2
2
|
|
3
|
+
## v5.16.1
|
4
|
+
|
5
|
+
- Properly handle references in destructurings (`const { [reference]: val } = ...`)
|
6
|
+
- Allow parsing of `.#privatefield` in nested classes
|
7
|
+
- Do not evaluate operations that return large strings if that would make the output code larger
|
8
|
+
- Make `collapse_vars` handle block scope correctly
|
9
|
+
- Internal improvements: Typos (#1311), more tests, small-scale refactoring
|
10
|
+
|
11
|
+
## v5.16.0
|
12
|
+
|
13
|
+
- Disallow private fields in object bodies (#1011)
|
14
|
+
- Parse `#privatefield in object` (#1279)
|
15
|
+
- Compress `#privatefield in object`
|
16
|
+
|
3
17
|
## v5.15.1
|
4
18
|
|
5
19
|
- Fixed missing parentheses around optional chains
|
package/PATRONS.md
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
# Our patrons
|
2
2
|
|
3
|
-
These are the first-tier patrons from
|
3
|
+
These are the first-tier patrons from Patreon (notice: **The Terser Patreon is shutting down in favor of opencollective**). My appreciation goes to everyone on this list for supporting the project!
|
4
4
|
|
5
5
|
* 38elements
|
6
6
|
* Alan Orozco
|
package/README.md
CHANGED
@@ -7,7 +7,7 @@
|
|
7
7
|
|
8
8
|
A JavaScript mangler/compressor toolkit for ES6+.
|
9
9
|
|
10
|
-
*note*: You can support this project on patreon:
|
10
|
+
*note*: <s>You can support this project on patreon: [link]</s> **The Terser Patreon is shutting down in favor of opencollective**. Check out [PATRONS.md](https://github.com/terser/terser/blob/master/PATRONS.md) for our first-tier patrons.
|
11
11
|
|
12
12
|
Terser recommends you use RollupJS to bundle your modules, as that produces smaller code overall.
|
13
13
|
|
@@ -1336,7 +1336,7 @@ If you're not sure how to set an environment variable on your shell (the above e
|
|
1336
1336
|
|
1337
1337
|
# README.md Patrons:
|
1338
1338
|
|
1339
|
-
*note*: You can support this project on patreon:
|
1339
|
+
*note*: <s>You can support this project on patreon: [link]</s> **The Terser Patreon is shutting down in favor of opencollective**. Check out [PATRONS.md](https://github.com/terser/terser/blob/master/PATRONS.md) for our first-tier patrons.
|
1340
1340
|
|
1341
1341
|
These are the second-tier patrons. Great thanks for your support!
|
1342
1342
|
|