terser 1.2.6 → 1.2.7

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 3ca73d3ec028b047462195bf3673d54b37d036ce19c4c446b4cf0e89aaf6b53c
4
- data.tar.gz: 926f6398fc03df897589f2f0b9bbe00e9ea087302aadf8eb483c16acf0bab406
3
+ metadata.gz: a07350d62a203340e8926357c2759dec74d1761d93ef1cb7af86c23c7e46a7e0
4
+ data.tar.gz: 7af83b6a4d487b12faf15b0da32a21b050fa630b50387389c6419c861345fed3
5
5
  SHA512:
6
- metadata.gz: 7843c9d6a5cba66bb60f87afd14d8b8f0d35d153c8dd6655b1cc5de960ca3219cb24e5bee107eeadc06a40424820fb58f96edf88ef08c37935eadd7373bccb83
7
- data.tar.gz: 23a6c5471293eecc838e163937208c1eb05e24c63477917e8f89325bf692ddbcf6754cf9dbc2d20325ee03fbb431fae4ae040f1a272af53adfa803687c8104dc
6
+ metadata.gz: 766ebe8ed2964232e38ab7b964697f87d672bff4e788d71a7a4a136d948101338c9107f19a30826ef7f0d45ec0e2118137a449ad240be11dc0a579ce617c7306
7
+ data.tar.gz: bbe05c07b2f328fee8c74f2663c64a471ab9a0b202024db09fc8cdbf8c7503b9418b809c4823e658452da64d2d25a506a70206b10d019d7ef5a6ab14fe206ecd
data/CHANGELOG.md CHANGED
@@ -1,6 +1,10 @@
1
1
  Behavioural changes in TerserJS are listed [here](https://github.com/terser/terser/blob/master/CHANGELOG.md).
2
2
 
3
3
  ## Unreleased
4
+ ## 1.2.7 (23 March 2026)
5
+ - added a new module option to enable minification of ES6 modules (default is false)
6
+ - update TerserJS to [5.46.1]
7
+
4
8
  ## 1.2.6 (19 June 2025)
5
9
  - update TerserJS to [5.43.1]
6
10
  - remove base64 for compatibility with Ruby 3.4
data/README.md CHANGED
@@ -163,6 +163,7 @@ Available options and their defaults are
163
163
  :input_source_map => nil # The contents of the source map describing the input
164
164
  },
165
165
  :error_context_lines => 8, # How many context lines surrounding the error line. Env var ERROR_CONTEXT_LINES overrides this option
166
+ :module => false # Use when minifying an ES6 module. "use strict" is implied and names can be mangled on the top scope
166
167
  }
167
168
  ```
168
169
 
@@ -2,5 +2,5 @@
2
2
 
3
3
  class Terser
4
4
  # Current version of Terser.
5
- VERSION = "1.2.6"
5
+ VERSION = "1.2.7"
6
6
  end