terser 1.1.20 → 1.2.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 5d777d8166a7f751e18d241f116de9a7036f23879f4771cc4aa08fed42fcc8ac
4
- data.tar.gz: acdda2846f802cf5d280dae3ba1308ec49dbd9e630141923a5655c61098d2d6c
3
+ metadata.gz: fc7ea335ee1b8cf714e03ce07cae9c120bad43ae20b28f0c761930e2f414a5ec
4
+ data.tar.gz: adeb58507ce7965b330f0c8e65d70034ff5636d7d04477d49ff22818c5eb426c
5
5
  SHA512:
6
- metadata.gz: a22e3a47a38b2407120f975c9123df23a99eb17ef3619aeecb238d316e2adf2dfd5979812ce8a550fd48b2f385014ec4cadb8410ab18515d996df954337ca1ac
7
- data.tar.gz: 94cd1508d80ef1e4f55f16e074329140968e3ce58bfd52b72d8cc1ab071171204a4997a420da0fef340d1a774581817bc9ef99934a5a213dcf2358a3341a0bbb
6
+ metadata.gz: d924fe98c209cc390555039dfd585b4c2d223fa552b50a2dbcf1f1a7fc69c714cd10e4046d35e7d7a4a096525c229a18cb481c09b7348cd9a99452813c4fbf57
7
+ data.tar.gz: 683b212501939ed33cb9a3696a22f75239f74baf9368199457e87ea4e3af68b399ceca3c00e67caa633ca3c815345dee3e217c123298a30bac3d1447b16fda38
data/.rubocop.yml CHANGED
@@ -310,6 +310,48 @@ Style/RedundantStringEscape: # new in 1.37
310
310
  Enabled: true
311
311
  Style/SelectByRegexp: # new in 1.22
312
312
  Enabled: true
313
+ Lint/DuplicateMatchPattern: # new in 1.50
314
+ Enabled: true
315
+ Lint/ItWithoutArgumentsInBlock: # new in 1.59
316
+ Enabled: true
317
+ Lint/LiteralAssignmentInCondition: # new in 1.58
318
+ Enabled: true
319
+ Lint/MixedCaseRange: # new in 1.53
320
+ Enabled: true
321
+ Lint/RedundantRegexpQuantifiers: # new in 1.53
322
+ Enabled: true
323
+ Metrics/CollectionLiteralLength: # new in 1.47
324
+ Enabled: true
325
+ Style/DataInheritance: # new in 1.49
326
+ Enabled: true
327
+ Style/DirEmpty: # new in 1.48
328
+ Enabled: true
329
+ Style/ExactRegexpMatch: # new in 1.51
330
+ Enabled: true
331
+ Style/FileEmpty: # new in 1.48
332
+ Enabled: true
333
+ Style/RedundantArrayConstructor: # new in 1.52
334
+ Enabled: true
335
+ Style/RedundantCurrentDirectoryInPath: # new in 1.53
336
+ Enabled: true
337
+ Style/RedundantFilterChain: # new in 1.52
338
+ Enabled: true
339
+ Style/RedundantLineContinuation: # new in 1.49
340
+ Enabled: true
341
+ Style/RedundantRegexpArgument: # new in 1.53
342
+ Enabled: true
343
+ Style/RedundantRegexpConstructor: # new in 1.52
344
+ Enabled: true
345
+ Style/ReturnNilInPredicateMethodDefinition: # new in 1.53
346
+ Enabled: true
347
+ Style/SingleLineDoEndBlock: # new in 1.57
348
+ Enabled: true
349
+ Style/SuperWithArgsParentheses: # new in 1.58
350
+ Enabled: true
351
+ Style/YAMLFileRead: # new in 1.53
352
+ Enabled: true
353
+ Performance/MapMethodChain: # new in 1.19
354
+ Enabled: true
313
355
 
314
356
  Performance/AncestorsInclude:
315
357
  Enabled: true
data/CHANGELOG.md CHANGED
@@ -1,4 +1,11 @@
1
1
  ## Unreleased
2
+ ## 1.2.0 (22 January 2024)
3
+ - update TerserJS to [5.27.0]
4
+ - remove sourcemap patches
5
+ - `pure_new` option added
6
+ - EOL rubies are no longer tested
7
+ - update rubocop
8
+
2
9
  ## 1.1.20 (27 November 2023)
3
10
  - update TerserJS to [5.24.0]
4
11
  - fix mangle properties, thanks @khaitu!
data/Gemfile CHANGED
@@ -4,9 +4,9 @@ source "https://rubygems.org"
4
4
 
5
5
  gemspec
6
6
 
7
- unless RUBY_VERSION < '2.6'
7
+ unless RUBY_VERSION < '2.7'
8
8
  group :development do
9
- gem 'rubocop', '~> 1.46.0'
10
- gem 'rubocop-performance', '~> 1.16.0', :require => false
9
+ gem 'rubocop', '~> 1.60.1'
10
+ gem 'rubocop-performance', '~> 1.20.2', :require => false
11
11
  end
12
12
  end
data/Rakefile CHANGED
@@ -54,8 +54,6 @@ namespace :terser do
54
54
 
55
55
  cd 'vendor/terser/' do
56
56
  FileUtils.rm_rf("package-lock.json")
57
- `patch -p1 -i ../../patches/terser-sync.patch`
58
- `patch -p1 -i ../../patches/revert-source-maps.patch`
59
57
  `npm install --no-package-lock --no-save`
60
58
  end
61
59
 
@@ -2,5 +2,5 @@
2
2
 
3
3
  class Terser
4
4
  # Current version of Terser.
5
- VERSION = "1.1.20"
5
+ VERSION = "1.2.0"
6
6
  end