@automattic/remove-asset-webpack-plugin 0.1.0 → 1.0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -5,6 +5,27 @@ All notable changes to this project will be documented in this file.
5
5
  The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/)
6
6
  and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
7
7
 
8
+ ## [1.0.2] - 2022-01-18
9
+ ### Changed
10
+ - General: update required node version to v16.13.2
11
+
12
+ ## [1.0.1] - 2022-01-04
13
+ ### Changed
14
+ - Updated package dependencies
15
+
16
+ ## [1.0.0] - 2021-12-22
17
+
18
+ - Initial stable release.
19
+
20
+ ## [0.1.1] - 2021-12-14
21
+ ### Changed
22
+ - Use Webpack's provided `validateSchema` instead of requiring `schema-utils` ourself.
23
+
8
24
  ## 0.1.0 - 2021-11-30
9
25
  ### Added
10
26
  - Initial release.
27
+
28
+ [1.0.2]: https://github.com/Automattic/remove-asset-webpack-plugin/compare/v1.0.1...v1.0.2
29
+ [1.0.1]: https://github.com/Automattic/remove-asset-webpack-plugin/compare/v1.0.0...v1.0.1
30
+ [1.0.0]: https://github.com/Automattic/remove-asset-webpack-plugin/compare/v0.1.1...v1.0.0
31
+ [0.1.1]: https://github.com/Automattic/remove-asset-webpack-plugin/compare/v0.1.0...v0.1.1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@automattic/remove-asset-webpack-plugin",
3
- "version": "0.1.0",
3
+ "version": "1.0.2",
4
4
  "description": "A Webpack plugin to remove assets from the build.",
5
5
  "homepage": "https://github.com/Automattic/jetpack/tree/HEAD/projects/js-packages/remove-asset-webpack-plugin/README.md#readme",
6
6
  "bugs": {
@@ -17,12 +17,11 @@
17
17
  "test-coverage": "jest tests --coverage --collectCoverageFrom='src/**/*.js' --coverageDirectory=\"$COVERAGE_DIR\" --coverageReporters=clover"
18
18
  },
19
19
  "dependencies": {
20
- "debug": "^4.3.2",
21
- "schema-utils": "3.1.1"
20
+ "debug": "^4.3.2"
22
21
  },
23
22
  "devDependencies": {
24
23
  "jest": "27.3.1",
25
- "webpack": "5.64.1"
24
+ "webpack": "5.65.0"
26
25
  },
27
26
  "peerDependencies": {
28
27
  "webpack": "^5.8.0"
package/src/index.js CHANGED
@@ -1,7 +1,6 @@
1
1
  /**
2
2
  * Webpack plugin to avoid emitting certain assets.
3
3
  */
4
- const { validate } = require( 'schema-utils' );
5
4
  const webpack = require( 'webpack' );
6
5
  const PLUGIN_NAME = 'RemoveAsset';
7
6
 
@@ -50,7 +49,7 @@ const schema = {
50
49
 
51
50
  module.exports = class RemoveAssetPlugin {
52
51
  constructor( options = {} ) {
53
- validate( schema, options, {
52
+ webpack.validateSchema( schema, options, {
54
53
  name: 'RemoveAsset plugin',
55
54
  baseDataPath: 'options',
56
55
  } );