uglifier 3.1.0 → 3.1.1

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
  SHA1:
3
- metadata.gz: 6decdd2a7bdabdcd76beab2a0318c714a7f16f55
4
- data.tar.gz: 0fed039be6621dbd76ec0d4a07d1cf017859d41b
3
+ metadata.gz: 350284c42a560eafc499f0a68248176ef718b893
4
+ data.tar.gz: 4c74efe756df3503abd158dd69d4c69acbd9ee50
5
5
  SHA512:
6
- metadata.gz: 3d717794b6768b78b5a72f550eaa9988b10c8a7edb1529f0ac127efa6cacc776e8bfc31798fb238debd1a61c4106b3a404ac8b56d8d1ce92eec447d5d3c0cae0
7
- data.tar.gz: ac66394e7480b1066665c793ef1a3535d9c5e26eb6c7f2e612b8593932824696afbc3e9c2aadcf26f70c266a27dc35e5e6f7ae578f7da5dc454cd006a8e80dba
6
+ metadata.gz: 9606692e319d099217729d2a4daf72d00a470940cca06a8b09d719d1adc3916dc697c1a59a65f2bf5aa403a9ea753456d86802d69d079163a5f6d620e8db5197
7
+ data.tar.gz: c201a37adbf81c2280c6dcc7fea05ac4dd7442525974f4870f0e5c79a880e6ce433e2f775ad5a10555c3a13a7c5f6bc20b6232d2ff3e92b6379dd92943b2d4c9
data/CHANGELOG.md CHANGED
@@ -1,3 +1,7 @@
1
+ ## 3.1.1 (27 February 2017)
2
+
3
+ - disable `reduce_vars` by default as it causes JS errors (#110)
4
+
1
5
  ## 3.1.0 (27 February 2017)
2
6
 
3
7
  - update UglifyJS to 2.8.0
data/README.md CHANGED
@@ -98,8 +98,8 @@ Available options and their defaults are
98
98
  :if_return => true, # Optimizations for if/return and if/continue
99
99
  :join_vars => true, # Join consecutive var statements
100
100
  :cascade => true, # Cascade sequences
101
- :collapse_vars => true, # Collapse single-use var and const definitions when possible.
102
- :reduce_vars => true, # Collapse variables assigned with and used as constant values.
101
+ :collapse_vars => false, # Collapse single-use var and const definitions when possible.
102
+ :reduce_vars => false, # Collapse variables assigned with and used as constant values.
103
103
  :negate_iife => true, # Negate immediately invoked function expressions to avoid extra parens
104
104
  :pure_getters => false, # Assume that object property access does not have any side-effects
105
105
  :pure_funcs => nil, # List of functions without side-effects. Can safely discard function calls when the result value is not used
@@ -1,4 +1,4 @@
1
1
  class Uglifier
2
2
  # Current version of Uglifier.
3
- VERSION = "3.1.0"
3
+ VERSION = "3.1.1"
4
4
  end
data/lib/uglifier.rb CHANGED
@@ -72,7 +72,7 @@ class Uglifier
72
72
  :join_vars => true, # Join consecutive var statements
73
73
  :cascade => true, # Cascade sequences
74
74
  :collapse_vars => true, # Collapse single-use var and const definitions when possible.
75
- :reduce_vars => true, # Collapse variables assigned with and used as constant values.
75
+ :reduce_vars => false, # Collapse variables assigned with and used as constant values.
76
76
  :negate_iife => true, # Negate immediately invoked function expressions to avoid extra parens
77
77
  :pure_getters => false, # Assume that object property access does not have any side-effects
78
78
  :pure_funcs => nil, # List of functions without side-effects. Can safely discard function calls when the result value is not used
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: uglifier
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.1.0
4
+ version: 3.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ville Lautanala