terser 1.1.19 → 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: 7185d1e264312605c30f6a7db59bdabd6c89381127b6ac8828ad644fe197cd10
4
- data.tar.gz: cabd1e6d541a5ea97c3cc06fa9bb0310fb2a8379cd4049b1e02bafeab5b321b7
3
+ metadata.gz: fc7ea335ee1b8cf714e03ce07cae9c120bad43ae20b28f0c761930e2f414a5ec
4
+ data.tar.gz: adeb58507ce7965b330f0c8e65d70034ff5636d7d04477d49ff22818c5eb426c
5
5
  SHA512:
6
- metadata.gz: d341f559c2453e97b8815ecbdfd976607e7ff6aaa94f2cedbdbbb9b9b253cc92481370233d178600becdb1c1b452fa16890de3b88c62d2a5f6f30fa3064c3ff5
7
- data.tar.gz: 75eb897e01aae9f0613b59abc4c09c8c17b75b134ca8cbf829cd36629e792643263683526e1513069027bb0efb6bdf9e0cf20ac928540240ca374bbcb840ee68
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,15 @@
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
+
9
+ ## 1.1.20 (27 November 2023)
10
+ - update TerserJS to [5.24.0]
11
+ - fix mangle properties, thanks @khaitu!
12
+
2
13
  ## 1.1.19 (19 October 2023)
3
14
  - update TerserJS to [5.22.0]
4
15
  - enable passing terser options with Rails directly
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.19"
5
+ VERSION = "1.2.0"
6
6
  end