Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: webpack-contrib/copy-webpack-plugin
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: 40e6ae58bd836699d6a9cb9abba3bd1733a955ce
Choose a base ref
...
head repository: webpack-contrib/copy-webpack-plugin
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: 46af20a94e66115d551fed65fd745e4cd8d42aee
Choose a head ref

Commits on Aug 27, 2020

  1. Copy the full SHA
    13cebc1 View commit details

Commits on Aug 29, 2020

  1. Copy the full SHA
    714af2f View commit details
  2. chore(release): 6.0.4

    alexander-akait committed Aug 29, 2020
    Copy the full SHA
    d8b4a72 View commit details

Commits on Aug 31, 2020

  1. Copy the full SHA
    09b1dc9 View commit details
  2. Copy the full SHA
    1496f85 View commit details
  3. Copy the full SHA
    a1989d5 View commit details
  4. chore(release): 6.1.0

    alexander-akait committed Aug 31, 2020
    Copy the full SHA
    d8f8fce View commit details

Commits on Sep 18, 2020

  1. Copy the full SHA
    808c10a View commit details
  2. chore(release): 6.1.1

    alexander-akait committed Sep 18, 2020
    Copy the full SHA
    fd03615 View commit details
  3. test: cache (#529)

    evilebottnawi authored Sep 18, 2020
    Copy the full SHA
    58a574b View commit details

Commits on Sep 21, 2020

  1. refactor: code

    evilebottnawi authored Sep 21, 2020
    Copy the full SHA
    f2ac763 View commit details

Commits on Oct 2, 2020

  1. Copy the full SHA
    6f2f455 View commit details
  2. Copy the full SHA
    9151610 View commit details
  3. Copy the full SHA
    4699111 View commit details

Commits on Oct 9, 2020

  1. Copy the full SHA
    dcb5b29 View commit details
  2. Copy the full SHA
    892a21e View commit details
  3. Copy the full SHA
    fb60b9b View commit details

Commits on Oct 13, 2020

  1. Copy the full SHA
    bd09a24 View commit details
  2. Copy the full SHA
    36ff46a View commit details

Commits on Oct 21, 2020

  1. Copy the full SHA
    93936a0 View commit details

Commits on Oct 22, 2020

  1. Copy the full SHA
    c892451 View commit details
  2. Copy the full SHA
    db2e3bf View commit details
  3. refactor: code (#543)

    evilebottnawi authored Oct 22, 2020
    Copy the full SHA
    b971374 View commit details
  4. Copy the full SHA
    f98be10 View commit details

Commits on Oct 23, 2020

  1. Copy the full SHA
    b827c6e View commit details

Commits on Oct 28, 2020

  1. Copy the full SHA
    87a8486 View commit details

Commits on Nov 3, 2020

  1. Copy the full SHA
    bc2833e View commit details
  2. Copy the full SHA
    fa5aa1b View commit details

Commits on Nov 13, 2020

  1. fix: watching (#555)

    evilebottnawi authored Nov 13, 2020
    Copy the full SHA
    b996923 View commit details
  2. Copy the full SHA
    c92b5ee View commit details
  3. chore(release): 6.3.1

    alexander-akait committed Nov 13, 2020
    Copy the full SHA
    5215721 View commit details

Commits on Nov 19, 2020

  1. Copy the full SHA
    7b58fd9 View commit details
  2. chore(release): 6.3.2

    alexander-akait committed Nov 19, 2020
    Copy the full SHA
    7167645 View commit details

Commits on Dec 7, 2020

  1. Copy the full SHA
    9bc5416 View commit details
  2. Copy the full SHA
    db53937 View commit details
  3. Copy the full SHA
    6c11e21 View commit details

Commits on Dec 9, 2020

  1. refactor: next

    BREAKING CHANGE: yes
    cap-Bernardito authored Dec 9, 2020
    Copy the full SHA
    4cea28b View commit details

Commits on Dec 10, 2020

  1. refactor: code

    cap-Bernardito authored Dec 10, 2020
    Copy the full SHA
    c6f68a5 View commit details
  2. Copy the full SHA
    5d5635f View commit details
  3. chore(release): 7.0.0

    alexander-akait committed Dec 10, 2020
    Copy the full SHA
    46af20a View commit details
Showing with 7,298 additions and 7,682 deletions.
  1. +1 −1 .eslintrc.js
  2. +3 −3 .github/workflows/nodejs.yml
  3. +2 −1 .gitignore
  4. +0 −1 .prettierrc.js
  5. +79 −1 CHANGELOG.md
  6. +326 −188 README.md
  7. +2 −2 babel.config.js
  8. +1 −1 commitlint.config.js
  9. +8 −8 globalSetup.js
  10. +2 −2 husky.config.js
  11. +2 −2 jest.config.js
  12. +2 −2 lint-staged.config.js
  13. +3,384 −4,963 package-lock.json
  14. +22 −25 package.json
  15. +1 −1 src/cjs.js
  16. +639 −67 src/index.js
  17. +40 −17 src/options.json
  18. +0 −132 src/postProcessPattern.js
  19. +0 −69 src/preProcessPattern.js
  20. +0 −62 src/processPattern.js
  21. +0 −82 src/utils/createPatternGlob.js
  22. +0 −4 src/utils/isTemplateLike.js
  23. +759 −190 test/CopyPlugin.test.js
  24. +394 −46 test/__snapshots__/CopyPlugin.test.js.snap
  25. +56 −34 test/__snapshots__/validate-options.test.js.snap
  26. +0 −486 test/cacheTransform-option.test.js
  27. +4 −4 test/cjs.test.js
  28. +55 −55 test/context-option.test.js
  29. +56 −0 test/filter-option.test.js
  30. +0 −147 test/flatten-option.test.js
  31. +99 −90 test/force-option.test.js
  32. +177 −178 test/from-option.test.js
  33. +119 −92 test/globOptions-option.test.js
  34. +4 −4 test/helpers/ChildCompiler.js
  35. +7 −9 test/helpers/PreCopyPlugin.js
  36. +2 −3 test/helpers/compile.js
  37. +3 −0 test/helpers/enter-with-asset-modules.js
  38. +19 −16 test/helpers/getCompiler.js
  39. +4 −4 test/helpers/index.js
  40. +3 −3 test/helpers/readAsset.js
  41. +2 −2 test/helpers/readAssets.js
  42. +1 −1 test/helpers/removeIllegalCharacterForWindows.js
  43. +23 −19 test/helpers/run.js
  44. +112 −0 test/info-option.test.js
  45. +11 −11 test/noErrorOnMissing.test.js
  46. +565 −129 test/to-option.test.js
  47. +36 −34 test/toType-option.test.js
  48. +142 −82 test/transform-option.test.js
  49. +0 −273 test/transformPath-option.test.js
  50. +131 −136 test/validate-options.test.js
2 changes: 1 addition & 1 deletion .eslintrc.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
module.exports = {
root: true,
extends: ['@webpack-contrib/eslint-config-webpack', 'prettier'],
extends: ["@webpack-contrib/eslint-config-webpack", "prettier"],
};
6 changes: 3 additions & 3 deletions .github/workflows/nodejs.yml
Original file line number Diff line number Diff line change
@@ -43,8 +43,8 @@ jobs:
- name: Lint
run: npm run lint

# - name: Security audit
# run: npm run security
- name: Security audit
run: npm run security

- name: Check commit message
uses: wagoid/commitlint-github-action@v1
@@ -56,7 +56,7 @@ jobs:
matrix:
os: [ubuntu-latest, windows-latest, macos-latest]
node-version: [10.x, 12.x, 14.x]
webpack-version: [latest, next]
webpack-version: [latest]

runs-on: ${{ matrix.os }}

3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -8,7 +8,8 @@ npm-debug.log*
/local
/reports
/node_modules
/test/fixtures/\[special\?directory\]
/test/fixtures/\[special\$directory\]
/test/outputs

.DS_Store
Thumbs.db
1 change: 0 additions & 1 deletion .prettierrc.js

This file was deleted.

80 changes: 79 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -2,6 +2,84 @@

All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.

## [7.0.0](https://github.com/webpack-contrib/copy-webpack-plugin/compare/v6.4.0...v7.0.0) (2020-12-10)


### ⚠ BREAKING CHANGES

* minimum supported webpack version is `5`
* the `flatten` option was removed in favor `[name].[ext]` value for the `to` option,
* the `transformPath` option was removed in favor `Function` type of the `to` option, look at [examples](https://github.com/webpack-contrib/copy-webpack-plugin#function)
* the `cacheTransform` option was removed in favor `Object` type of the `transform` option, look at [examples](https://github.com/webpack-contrib/copy-webpack-plugin#transform)
* migration on the `compilation.hooks.processAssets` hook
* empty filtered paths throw an error, you can disable this behaviour using the `noErrorOnMissing` option

## [6.4.0](https://github.com/webpack-contrib/copy-webpack-plugin/compare/v6.3.2...v6.4.0) (2020-12-07)


### Features

* added the `info` option ([db53937](https://github.com/webpack-contrib/copy-webpack-plugin/commit/db53937016b7dbf494bc728f00242cd26541f6a3))
* added type `Function` for the `to` option ([#563](https://github.com/webpack-contrib/copy-webpack-plugin/issues/563)) ([9bc5416](https://github.com/webpack-contrib/copy-webpack-plugin/commit/9bc541694c0d0975c59586cedfea4a51d11f5278))

### [6.3.2](https://github.com/webpack-contrib/copy-webpack-plugin/compare/v6.3.1...v6.3.2) (2020-11-19)


### Bug Fixes

* watching directories ([#558](https://github.com/webpack-contrib/copy-webpack-plugin/issues/558)) ([7b58fd9](https://github.com/webpack-contrib/copy-webpack-plugin/commit/7b58fd9a89e9b29578b30cb3119453e78e036ec2))

### [6.3.1](https://github.com/webpack-contrib/copy-webpack-plugin/compare/v6.3.0...v6.3.1) (2020-11-13)


### Bug Fixes

* watching ([#555](https://github.com/webpack-contrib/copy-webpack-plugin/issues/555)) ([b996923](https://github.com/webpack-contrib/copy-webpack-plugin/commit/b9969230321df68ed235ed1861729837f234750e))

## [6.3.0](https://github.com/webpack-contrib/copy-webpack-plugin/compare/v6.2.1...v6.3.0) (2020-11-03)


### Features

* added the `sourceFilename` info (original source filename) to assets info ([#542](https://github.com/webpack-contrib/copy-webpack-plugin/issues/542)) ([db2e3bf](https://github.com/webpack-contrib/copy-webpack-plugin/commit/db2e3bfae9322592c3a9af1e45d25df165b6b4e0))
* persistent cache between compilations (webpack@5 only) ([#541](https://github.com/webpack-contrib/copy-webpack-plugin/issues/541)) ([c892451](https://github.com/webpack-contrib/copy-webpack-plugin/commit/c8924512a34391ce92715a2b61fc4b0b91a9e10f))

### [6.2.1](https://github.com/webpack-contrib/copy-webpack-plugin/compare/v6.2.0...v6.2.1) (2020-10-09)

### Chore

* update `schema-utils`

## [6.2.0](https://github.com/webpack-contrib/copy-webpack-plugin/compare/v6.1.1...v6.2.0) (2020-10-02)


### Features

* use webpack input filesystem (only webpack@5) ([#531](https://github.com/webpack-contrib/copy-webpack-plugin/issues/531)) ([6f2f455](https://github.com/webpack-contrib/copy-webpack-plugin/commit/6f2f455b9411ac69ef6aa3b953474f1d7fa23808))

### [6.1.1](https://github.com/webpack-contrib/copy-webpack-plugin/compare/v6.1.0...v6.1.1) (2020-09-18)

### Chore

* updated `serialize-javascript`

## [6.1.0](https://github.com/webpack-contrib/copy-webpack-plugin/compare/v6.0.4...v6.1.0) (2020-08-31)


### Features

* added `filter` option ([#524](https://github.com/webpack-contrib/copy-webpack-plugin/issues/524)) ([1496f85](https://github.com/webpack-contrib/copy-webpack-plugin/commit/1496f85d2fa5e87dccd0cda92b1343c649f3e5bd))
* added the `copied` flag to asset info ([09b1dc9](https://github.com/webpack-contrib/copy-webpack-plugin/commit/09b1dc995e476bb7090ebb2c2cbd4b5ebedeaa79))
* added the `immutable` flag to asset info with hash in name ([#525](https://github.com/webpack-contrib/copy-webpack-plugin/issues/525)) ([a1989d5](https://github.com/webpack-contrib/copy-webpack-plugin/commit/a1989d59b8b0a8caf0b826016e20c82a9ac38aa1))
* **webpack@5:** improve stats output for `copied` files

### [6.0.4](https://github.com/webpack-contrib/copy-webpack-plugin/compare/v6.0.3...v6.0.4) (2020-08-29)


### Bug Fixes

* compatibility with webpack@5 ([#522](https://github.com/webpack-contrib/copy-webpack-plugin/issues/522)) ([714af2f](https://github.com/webpack-contrib/copy-webpack-plugin/commit/714af2ff72da168ec7456ac9a93ef4f4486be21e))

### [6.0.3](https://github.com/webpack-contrib/copy-webpack-plugin/compare/v6.0.2...v6.0.3) (2020-06-30)


@@ -33,7 +111,7 @@ All notable changes to this project will be documented in this file. See [standa
* minimum supported Node.js version is `10.13`,
* the plugin now accepts an object, you should change `new CopyPlugin(patterns, options)` to `new CopyPlugin({ patterns, options })`
* migrate on `compilation.additionalAssets` hook
* the `ignore` option was removed in favor `globOptions.ignore`
* the `ignore` option (which accepted [micromatch](https://github.com/micromatch/micromatch) syntax) was removed in favor `globOptions.ignore` (which accepts [fast-glob pattern-syntax](https://github.com/mrmlnc/fast-glob#pattern-syntax))
* the `test` option was removed in favor the `transformPath` option
* the `cache` option was renamed to the `cacheTransform` option, `cacheTransform` option should have only `directory` and `keys` properties when it is an object
* global `context` and `ignore` options were removed in favor `patten.context` and `pattern.globOptions.ignore` options
Loading