@automattic/i18n-loader-webpack-plugin 2.0.9 → 2.0.12

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,18 @@ 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
+ ## [2.0.12] - 2022-06-21
9
+ ### Changed
10
+ - Renaming `master` references to `trunk`
11
+
12
+ ## [2.0.11] - 2022-06-14
13
+ ### Changed
14
+ - Updated package dependencies. [#24722]
15
+
16
+ ## [2.0.10] - 2022-06-08
17
+ ### Changed
18
+ - Reorder JS imports for `import/order` eslint rule. [#24601]
19
+
8
20
  ## [2.0.9] - 2022-05-30
9
21
  ### Changed
10
22
  - Updated package dependencies
@@ -64,6 +76,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
64
76
  ### Added
65
77
  - Initial release.
66
78
 
79
+ [2.0.12]: https://github.com/Automattic/i18n-loader-webpack-plugin/compare/v2.0.11...v2.0.12
80
+ [2.0.11]: https://github.com/Automattic/i18n-loader-webpack-plugin/compare/v2.0.10...v2.0.11
81
+ [2.0.10]: https://github.com/Automattic/i18n-loader-webpack-plugin/compare/v2.0.9...v2.0.10
67
82
  [2.0.9]: https://github.com/Automattic/i18n-loader-webpack-plugin/compare/v2.0.8...v2.0.9
68
83
  [2.0.8]: https://github.com/Automattic/i18n-loader-webpack-plugin/compare/v2.0.7...v2.0.8
69
84
  [2.0.7]: https://github.com/Automattic/i18n-loader-webpack-plugin/compare/v2.0.6...v2.0.7
package/README.md CHANGED
@@ -88,7 +88,7 @@ If you're having Webpack minify your bundle, you'll likely also want to do the f
88
88
  * Configure Terser to not mangle `__`, `_n`, `_nx`, and `_x`.
89
89
  * Use [@automattic/babel-plugin-preserve-i18n](https://www.npmjs.com/package/@automattic/babel-plugin-preserve-i18n) to help further preserve those method names.
90
90
  * Configure Terser to preserve comments starting with "Translators" or "translators" in the output.
91
- * Check your code to avoid [certain constructs](https://github.com/Automattic/jetpack/tree/master/projects/js-packages/webpack-config#minification-and-i18n-translator-comments) that will dissociate translator comments from the i18n method calls when the minifier rearranges the code.
91
+ * Check your code to avoid [certain constructs](https://github.com/Automattic/jetpack/blob/trunk/projects/js-packages/i18n-check-webpack-plugin/README.md#known-problematic-code-patterns) that will dissociate translator comments from the i18n method calls when the minifier rearranges the code.
92
92
 
93
93
  ### Use in Composer packages
94
94
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@automattic/i18n-loader-webpack-plugin",
3
- "version": "2.0.9",
3
+ "version": "2.0.12",
4
4
  "description": "A Webpack plugin to load WordPress i18n when Webpack lazy-loads a bundle.",
5
5
  "homepage": "https://github.com/Automattic/jetpack/tree/HEAD/projects/js-packages/i18n-loader-webpack-plugin/#readme",
6
6
  "bugs": {
@@ -22,7 +22,7 @@
22
22
  },
23
23
  "devDependencies": {
24
24
  "@wordpress/dependency-extraction-webpack-plugin": "3.5.0",
25
- "@wordpress/i18n": "4.9.0",
25
+ "@wordpress/i18n": "4.10.0",
26
26
  "jest": "28.1.0",
27
27
  "webpack": "5.72.1",
28
28
  "webpack-cli": "4.9.1"
@@ -1,11 +1,11 @@
1
1
  const path = require( 'path' );
2
2
  const webpack = require( 'webpack' );
3
- const { RuntimeGlobals } = webpack;
4
-
5
- const PLUGIN_NAME = require( './plugin-name' );
6
- const debug = require( 'debug' )( PLUGIN_NAME );
7
3
  const I18nLoaderModuleDependency = require( './I18nLoaderModuleDependency' );
8
4
  const I18nLoaderRuntimeModule = require( './I18nLoaderRuntimeModule' );
5
+ const PLUGIN_NAME = require( './plugin-name' );
6
+ const debug = require( 'debug' )( PLUGIN_NAME ); // eslint-disable-line import/order
7
+
8
+ const { RuntimeGlobals } = webpack;
9
9
 
10
10
  const schema = {
11
11
  title: `${ PLUGIN_NAME } plugin options`,
@@ -1,9 +1,8 @@
1
1
  const path = require( 'path' );
2
2
  const webpack = require( 'webpack' );
3
3
  const { Template, RuntimeGlobals } = webpack;
4
-
5
4
  const PLUGIN_NAME = require( './plugin-name' );
6
- const debug = require( 'debug' )( PLUGIN_NAME );
5
+ const debug = require( 'debug' )( PLUGIN_NAME ); // eslint-disable-line import/order
7
6
 
8
7
  /**
9
8
  * Webpack RuntimeModule for the i18n loader.