From cbf4b0fe32aee84ab0aedbee60243625c958071c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?F=C3=A1bio=20Santos?= Date: Sat, 1 Aug 2020 13:47:48 +0100 Subject: [PATCH] rename bundle, update changelog --- CHANGELOG.md | 13 ++++++++++--- README.md | 2 +- dist/package.json | 2 +- package.json | 4 ++-- rollup.config.js | 2 +- 5 files changed, 15 insertions(+), 8 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index b02f9cc7d..7536e5845 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,10 +1,17 @@ # Changelog +## v5.0.0 + + - `in` operator now taken into account during property mangle. + - Fixed infinite loop in face of a reference loop in some situations. + - Kept exports and imports around even if there's something which will throw before them. + - BREAKING: the main exported bundle for commonjs, dist/bundle.min.js is now dist/bundle.js (and it's no longer minified). + ## v5.0.0-beta.0 - - `minify()` is now async and rejects a promise instead of returning an error. - - Internal AST is no longer exposed, so that it can be improved without releasing breaking changes. - - Lowest supported node version is 10 + - BREAKING: `minify()` is now async and rejects a promise instead of returning an error. + - BREAKING: Internal AST is no longer exposed, so that it can be improved without releasing breaking changes. + - BREAKING: Lowest supported node version is 10 - Module is now distributed as a dual package - You can `import` and `require()` too. - Inline improvements were made diff --git a/README.md b/README.md index 944a61f49..e30e7f1ab 100644 --- a/README.md +++ b/README.md @@ -406,7 +406,7 @@ import { minify } from "terser"; Browser loading is also supported: ```html - + ``` There is a single async high level function, **`async minify(code, options)`**, diff --git a/dist/package.json b/dist/package.json index a4cb7d126..1bfe3d452 100644 --- a/dist/package.json +++ b/dist/package.json @@ -2,7 +2,7 @@ "name": "dist", "private": true, "version": "1.0.0", - "main": "bundle.min.js", + "main": "bundle.js", "type": "commonjs", "author": "", "license": "BSD-2-Clause", diff --git a/package.json b/package.json index ff0af0972..1bb27f199 100644 --- a/package.json +++ b/package.json @@ -12,12 +12,12 @@ "Fábio Santos " ], "repository": "https://github.com/terser/terser", - "main": "dist/bundle.min.js", + "main": "dist/bundle.js", "type": "module", "exports": { ".": { "import": "./main.js", - "require": "./dist/bundle.min.js" + "require": "./dist/bundle.js" }, "./package": { "default": "./package.json" diff --git a/rollup.config.js b/rollup.config.js index 08e360596..10a732388 100644 --- a/rollup.config.js +++ b/rollup.config.js @@ -2,7 +2,7 @@ export default () => { return { input: "main.js", output: { - file: "dist/bundle.min.js", + file: "dist/bundle.js", format: "umd", globals: { "source-map": "sourceMap",