Skip to content

Commit

Permalink
Merge pull request #56 from ahorek/terser5302
Browse files Browse the repository at this point in the history
terser 5.30.2
  • Loading branch information
ahorek authored Apr 2, 2024
2 parents 4d9d757 + 2bdc3d0 commit 34c2af6
Show file tree
Hide file tree
Showing 6 changed files with 34,983 additions and 9 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
Behavioural changes in TerserJS are listed [here](https://github.com/terser/terser/blob/master/CHANGELOG.md).

## Unreleased
## 1.2.2 (2 April 2024)
- update TerserJS to [5.30.2]
- build an unminified version to make security reviews easier

## 1.2.1 (28 March 2024)
- update TerserJS to [5.30.0]

Expand Down
11 changes: 7 additions & 4 deletions Rakefile
Original file line number Diff line number Diff line change
Expand Up @@ -57,11 +57,14 @@ namespace :terser do
`npm install --no-package-lock --no-save`
end

FileUtils.cp("vendor/source-map/dist/source-map.min.js", "lib/source-map.js")
# FileUtils.cp("vendor/source-map/dist/source-map.min.js", "lib/source-map.js")

# FileUtils.cp("vendor/terser/dist/bundle.min.js", "lib/terser.js")
minified_source = `node ./vendor/terser/bin/terser vendor/terser/dist/bundle.min.js`
File.write("lib/terser.js", minified_source)
FileUtils.cp("vendor/source-map/dist/source-map.js", "lib/source-map.js")

FileUtils.cp("vendor/terser/dist/bundle.min.js", "lib/terser.js")

# minified_source = `node ./vendor/terser/bin/terser vendor/terser/dist/bundle.min.js`
# File.write("lib/terser.js", minified_source)

FileUtils.cp("vendor/split/split.js", "lib/split.js")
`patch -p1 -i patches/es5-string-split.patch`
Expand Down
3,235 changes: 3,233 additions & 2 deletions lib/source-map.js

Large diffs are not rendered by default.

31,738 changes: 31,737 additions & 1 deletion lib/terser.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion lib/terser/version.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@

class Terser
# Current version of Terser.
VERSION = "1.2.1"
VERSION = "1.2.2"
end

0 comments on commit 34c2af6

Please sign in to comment.