@wordpress/babel-plugin-makepot 6.57.0 → 7.0.0

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.
Files changed (2) hide show
  1. package/index.js +1 -1
  2. package/package.json +3 -3
package/index.js CHANGED
@@ -190,7 +190,7 @@ function isSameTranslation( a, b ) {
190
190
  * @return {Array} Sorted translations.
191
191
  */
192
192
  function sortByReference( translations = [] ) {
193
- return [ ...translations ].sort( ( a, b ) =>
193
+ return translations.toSorted( ( a, b ) =>
194
194
  a.comments.reference.localeCompare( b.comments.reference )
195
195
  );
196
196
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wordpress/babel-plugin-makepot",
3
- "version": "6.57.0",
3
+ "version": "7.0.0",
4
4
  "description": "WordPress Babel internationalization (i18n) plugin.",
5
5
  "author": "The WordPress Contributors",
6
6
  "license": "GPL-2.0-or-later",
@@ -21,7 +21,7 @@
21
21
  "url": "https://github.com/WordPress/gutenberg/issues"
22
22
  },
23
23
  "engines": {
24
- "node": ">=18.12.0"
24
+ "node": ">=22.13.0"
25
25
  },
26
26
  "files": [
27
27
  "index.js"
@@ -46,5 +46,5 @@
46
46
  "publishConfig": {
47
47
  "access": "public"
48
48
  },
49
- "gitHead": "12441e2520c78b2254a792a8cba40c34110be060"
49
+ "gitHead": "8d30f92cbbde3ddf781c8799443c649befbbcb88"
50
50
  }