Skip to content

Commit

Permalink
rename bundle, update changelog
Browse files Browse the repository at this point in the history
  • Loading branch information
fabiosantoscode committed Aug 1, 2020
1 parent 9dab78c commit cbf4b0f
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 8 deletions.
13 changes: 10 additions & 3 deletions 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

Expand Down
2 changes: 1 addition & 1 deletion README.md
Expand Up @@ -406,7 +406,7 @@ import { minify } from "terser";
Browser loading is also supported:
```html
<script src="node_modules/source-map/dist/source-map.min.js"></script>
<script src="dist/bundle.min.js"></script>
<script src="dist/bundle.js"></script>
```

There is a single async high level function, **`async minify(code, options)`**,
Expand Down
2 changes: 1 addition & 1 deletion dist/package.json
Expand Up @@ -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",
Expand Down
4 changes: 2 additions & 2 deletions package.json
Expand Up @@ -12,12 +12,12 @@
"F谩bio Santos <fabiosantosart@gmail.com>"
],
"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"
Expand Down
2 changes: 1 addition & 1 deletion rollup.config.js
Expand Up @@ -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",
Expand Down

0 comments on commit cbf4b0f

Please sign in to comment.