@automattic/i18n-check-webpack-plugin 1.0.10 → 1.0.13
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 +18 -0
- package/package.json +4 -4
- package/src/GettextExtractor.js +2 -2
- package/src/I18nCheckPlugin.js +5 -6
package/CHANGELOG.md
CHANGED
|
@@ -5,6 +5,21 @@ 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.13] - 2022-06-08
|
|
9
|
+
### Changed
|
|
10
|
+
- Reorder JS imports for `import/order` eslint rule. [#24601]
|
|
11
|
+
|
|
12
|
+
## [1.0.12] - 2022-05-18
|
|
13
|
+
### Changed
|
|
14
|
+
- Updated package dependencies [#24372]
|
|
15
|
+
|
|
16
|
+
## [1.0.11] - 2022-05-10
|
|
17
|
+
### Changed
|
|
18
|
+
- Updated package dependencies [#24276]
|
|
19
|
+
|
|
20
|
+
### Fixed
|
|
21
|
+
- Update test snapshot. [#24302]
|
|
22
|
+
|
|
8
23
|
## [1.0.10] - 2022-05-04
|
|
9
24
|
### Added
|
|
10
25
|
- Add missing JavaScript dependencies. [#24096]
|
|
@@ -59,6 +74,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
59
74
|
### Added
|
|
60
75
|
- Initial release.
|
|
61
76
|
|
|
77
|
+
[1.0.13]: https://github.com/Automattic/i18n-check-webpack-plugin/compare/v1.0.12...v1.0.13
|
|
78
|
+
[1.0.12]: https://github.com/Automattic/i18n-check-webpack-plugin/compare/v1.0.11...v1.0.12
|
|
79
|
+
[1.0.11]: https://github.com/Automattic/i18n-check-webpack-plugin/compare/v1.0.10...v1.0.11
|
|
62
80
|
[1.0.10]: https://github.com/Automattic/i18n-check-webpack-plugin/compare/v1.0.9...v1.0.10
|
|
63
81
|
[1.0.9]: https://github.com/Automattic/i18n-check-webpack-plugin/compare/v1.0.8...v1.0.9
|
|
64
82
|
[1.0.8]: https://github.com/Automattic/i18n-check-webpack-plugin/compare/v1.0.7...v1.0.8
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@automattic/i18n-check-webpack-plugin",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.13",
|
|
4
4
|
"description": "A Webpack plugin to check that WordPress i18n hasn't been mangled by Webpack optimizations.",
|
|
5
5
|
"homepage": "https://github.com/Automattic/jetpack/tree/HEAD/projects/js-packages/i18n-check-webpack-plugin/#readme",
|
|
6
6
|
"bugs": {
|
|
@@ -21,9 +21,9 @@
|
|
|
21
21
|
"debug": "^4.3.2"
|
|
22
22
|
},
|
|
23
23
|
"devDependencies": {
|
|
24
|
-
"@babel/core": "7.17.
|
|
25
|
-
"jest": "
|
|
26
|
-
"webpack": "5.
|
|
24
|
+
"@babel/core": "7.17.10",
|
|
25
|
+
"jest": "28.1.0",
|
|
26
|
+
"webpack": "5.72.1",
|
|
27
27
|
"webpack-cli": "4.9.1"
|
|
28
28
|
},
|
|
29
29
|
"peerDependencies": {
|
package/src/GettextExtractor.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
const fs = require( 'fs/promises' );
|
|
2
2
|
const babel = require( '@babel/core' );
|
|
3
|
-
const PLUGIN_NAME = require( './plugin-name.js' );
|
|
4
3
|
const GettextEntries = require( './GettextEntries' );
|
|
5
4
|
const GettextEntry = require( './GettextEntry' );
|
|
5
|
+
const PLUGIN_NAME = require( './plugin-name.js' );
|
|
6
|
+
const debug = require( 'debug' )( `${ PLUGIN_NAME }:gettext` ); // eslint-disable-line import/order
|
|
6
7
|
|
|
7
8
|
const { parseAsync, parseSync, traverse, types: t } = babel;
|
|
8
|
-
const debug = require( 'debug' )( `${ PLUGIN_NAME }:gettext` );
|
|
9
9
|
|
|
10
10
|
// Some typedefs for jsdoc. Babel doesn't export the actual constructors for us.
|
|
11
11
|
/** @typedef babel.Node */
|
package/src/I18nCheckPlugin.js
CHANGED
|
@@ -1,13 +1,12 @@
|
|
|
1
|
-
const babel = require( '@babel/core' );
|
|
2
1
|
const npath = require( 'path' );
|
|
2
|
+
const babel = require( '@babel/core' );
|
|
3
3
|
const webpack = require( 'webpack' );
|
|
4
|
-
const PLUGIN_NAME = require( './plugin-name.js' );
|
|
5
|
-
const GettextEntry = require( './GettextEntry.js' );
|
|
6
4
|
const GettextEntries = require( './GettextEntries.js' );
|
|
5
|
+
const GettextEntry = require( './GettextEntry.js' );
|
|
7
6
|
const GettextExtractor = require( './GettextExtractor.js' );
|
|
8
|
-
|
|
9
|
-
const debug = require( 'debug' )( PLUGIN_NAME + ':plugin' );
|
|
10
|
-
const debugtiming = require( 'debug' )( PLUGIN_NAME + ':timing' );
|
|
7
|
+
const PLUGIN_NAME = require( './plugin-name.js' );
|
|
8
|
+
const debug = require( 'debug' )( PLUGIN_NAME + ':plugin' ); // eslint-disable-line import/order
|
|
9
|
+
const debugtiming = require( 'debug' )( PLUGIN_NAME + ':timing' ); // eslint-disable-line import/order
|
|
11
10
|
|
|
12
11
|
const schema = {
|
|
13
12
|
title: `${ PLUGIN_NAME } plugin options`,
|