terser 5.36.0 → 5.38.0

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 CHANGED
@@ -1,5 +1,15 @@
1
1
  # Changelog
2
2
 
3
+ ## v5.38.0
4
+
5
+ - Remove `console` method-of-method calls (eg `console.log.apply()`) when `drop_console` option is used (#1585)
6
+ - Remove more object spreads, such as `{ ...void !0 }` (#1142)
7
+
8
+ ## v5.37.0
9
+
10
+ - Reserved object properties from chrome extensions (domprops)
11
+ - Fix semicolon insertion between a class property without a semicolon `a` and a computed class property `["prop"]`
12
+
3
13
  ## v5.36.0
4
14
 
5
15
  - Support import attributes `with` syntax
package/README.md CHANGED
@@ -647,7 +647,7 @@ console.log(result.map); // source map
647
647
  Note that the source map is not saved in a file, it's just returned in
648
648
  `result.map`. The value passed for `sourceMap.url` is only used to set
649
649
  `//# sourceMappingURL=out.js.map` in `result.code`. The value of
650
- `filename` is only used to set `file` attribute (see [the spec][sm-spec])
650
+ `filename` is only used to set `file` attribute (see [the spec](https://docs.google.com/document/d/1U1RGAehQwRypUTovF1KRlpiOFze0b-_2gc6fAH0KY0k))
651
651
  in source map file.
652
652
 
653
653
  You can set option `sourceMap.url` to be `"inline"` and source map will
@@ -1233,7 +1233,7 @@ Terser has its own abstract syntax tree format; for
1233
1233
  we can't easily change to using the SpiderMonkey AST internally. However,
1234
1234
  Terser now has a converter which can import a SpiderMonkey AST.
1235
1235
 
1236
- For example [Acorn][acorn] is a super-fast parser that produces a
1236
+ For example [Acorn](https://github.com/acornjs/acorn) is a super-fast parser that produces a
1237
1237
  SpiderMonkey AST. It has a small CLI utility that parses one file and dumps
1238
1238
  the AST in JSON on the standard output. To use Terser to mangle and
1239
1239
  compress that:
@@ -1257,9 +1257,6 @@ Acorn is really fast (e.g. 250ms instead of 380ms on some 650K code), but
1257
1257
  converting the SpiderMonkey tree that Acorn produces takes another 150ms so
1258
1258
  in total it's a bit more than just using Terser's own parser.
1259
1259
 
1260
- [acorn]: https://github.com/ternjs/acorn
1261
- [sm-spec]: https://docs.google.com/document/d/1U1RGAehQwRypUTovF1KRlpiOFze0b-_2gc6fAH0KY0k
1262
-
1263
1260
  ### Terser Fast Minify Mode
1264
1261
 
1265
1262
  It's not well known, but whitespace removal and symbol mangling accounts