Skip to content

Commit

Permalink
chore: prepare 4.0.0 release
Browse files Browse the repository at this point in the history
  • Loading branch information
alexander-akait committed Nov 13, 2018
1 parent d45fde2 commit cc52555
Show file tree
Hide file tree
Showing 28 changed files with 8,165 additions and 11,766 deletions.
15 changes: 9 additions & 6 deletions .travis.yml
Expand Up @@ -17,21 +17,24 @@ cache:

matrix:
include:
- node_js: '9'
- node_js: "11"
script: npm run pretest
env: CI=pretest
- node_js: '9'
- node_js: "11"
script: npm run test-only
env: CI=tests 9
- node_js: '8'
env: CI=tests 11
- node_js: "10"
script: npm run test-only
env: CI=tests 10
- node_js: "8"
script: npm run test-only
env: CI=tests 8
- node_js: '6'
- node_js: "6"
script: npm run test-only
env: CI=tests 6

before_install:
- npm install -g npm@5
- npm install -g npm@latest
- sudo apt-get install nasm
- nvm --version
- node --version
Expand Down
55 changes: 34 additions & 21 deletions CHANGELOG.md
Expand Up @@ -4,44 +4,57 @@ All notable changes to this project will be documented in this file.

This project adheres to [Semantic Versioning](http://semver.org).

## HEAD

- Changed: rename class `ImageminWebpackPlugin` to `ImageminPlugin`.
- Changed: change export `ImageminPlugin` and `imageminLoader` (Look on [Usage](https://github.com/itgalaxy/imagemin-webpack#usage)).
- Changed: plugin compresses all images with `loader: false` (previous version of plugin compresses only `emit` images)
- Changed: plugin auto includes `loader` as `pre` loader by default .
- Changed: drop support `webpack@3`.
- Chore: switch from `imagemin@5` to `imagemin@6`.
- Fixed: plugin auto include `loader` with `test`, `include` and `exclude` options.
- Fixed: `maxConcurrency` have right value on two core system.
- Fixed: default `maxConcurrency` value on system where `os.cpus()` is unavailable.
- Fixed: performance in some cases.

## 3.0.0 - 2018-04-17

* Added: `cache` options (i.e. persistent cache), by default is `false` (because it is good practice to disable `cache` by default).
* Changed: `imagemin-loader` now dynamically added in loaders list as `pre` loader (i.e. no need setup `imagemin-loader` in `webpack.config.js`).
* Changed: use `webpack` errors and warnings `api`.
* Changed: `imagemin` plugins for `loader` should be placed in `imageminOptions` options (look example in `README.md`).
* Chore: refactor all plugin code (all source code now in `src` directory).
* Deleted: `excludeChunksAssets` options (use `loader` options for plugin instead).
* Fixed: use `maxConcurrency`, use `os.cpus().length - 1` for multi core systems and `1` for single core system.
* Fixed: don't add same file paths in `manifest`.
- Added: `cache` options (i.e. persistent cache), by default is `false` (because it is good practice to disable `cache` by default).
- Changed: `imagemin-loader` now dynamically added in loaders list as `pre` loader (i.e. no need setup `imagemin-loader` in `webpack.config.js`).
- Changed: use `webpack` errors and warnings `api`.
- Changed: `imagemin` plugins for `loader` should be placed in `imageminOptions` options (look example in `README.md`).
- Chore: refactor all plugin code (all source code now in `src` directory).
- Deleted: `excludeChunksAssets` options (use `loader` options for plugin instead).
- Fixed: use `maxConcurrency`, use `os.cpus().length - 1` for multi core systems and `1` for single core system.
- Fixed: don't add same file paths in `manifest`.

## 2.0.0 - 2018-02-28

* Changed: use `ModuleFilenameHelpers.matchObject` for `test` option (only `regex` now allowed).
* Changed: Drop support for `node` v4.
* Changed: emit original file in plugin when image corrupted.
* Feature: `include` and `exclude` option for plugin.
* Fixed: compatibility with `webpack > 4.0.0`.
* Fixed: don't override `bail` from `compiler`.
* Fixed: use `callback` loader for handle `No plugins` error.
* Fixed: don't convert `Buffer` to `utf8` when `asset` is not `Buffer`.
- Changed: use `ModuleFilenameHelpers.matchObject` for `test` option (only `regex` now allowed).
- Changed: Drop support for `node` v4.
- Changed: emit original file in plugin when image corrupted.
- Feature: `include` and `exclude` option for plugin.
- Fixed: compatibility with `webpack > 4.0.0`.
- Fixed: don't override `bail` from `compiler`.
- Fixed: use `callback` loader for handle `No plugins` error.
- Fixed: don't convert `Buffer` to `utf8` when `asset` is not `Buffer`.

## 1.1.2 - 2017-06-20

* Chore: support `webpack` v3.
- Chore: support `webpack` v3.

## 1.1.1 - 2017-06-07

* Chore: minimum required `webpack-sources` version is now `^1.0.0`.
- Chore: minimum required `webpack-sources` version is now `^1.0.0`.

## 1.1.0 - 2017-03-15

* Added: supported `manifest` plugin option for export source and interpolated filenames.
- Added: supported `manifest` plugin option for export source and interpolated filenames.

## 1.0.1 - 2017-03-15

* Fixed: don't duplicate excluded assets, less memory usage.
- Fixed: don't duplicate excluded assets, less memory usage.

## 1.0.0 - 2017-03-14

* Initial public release.
- Initial public release.
2 changes: 1 addition & 1 deletion LICENSE
@@ -1,6 +1,6 @@
MIT License

Copyright (c) 2017-2018 itgalaxy inc.
Copyright (c) 2017-present itgalaxy inc.

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down

0 comments on commit cc52555

Please sign in to comment.