@wordpress/i18n
Advanced tools
Comparing version 1.2.3 to 2.0.0
@@ -1,4 +0,1 @@ | ||
import "core-js/modules/es6.regexp.to-string"; | ||
import _Object$assign from "@babel/runtime-corejs2/core-js/object/assign"; | ||
/** | ||
@@ -45,3 +42,3 @@ * External dependencies | ||
i18n.options.locale_data[domain] = _Object$assign({}, i18n.options.locale_data[domain], localeData); | ||
i18n.options.locale_data[domain] = Object.assign({}, i18n.options.locale_data[domain], localeData); | ||
} | ||
@@ -48,0 +45,0 @@ /** |
"use strict"; | ||
var _interopRequireDefault = require("@babel/runtime-corejs2/helpers/interopRequireDefault"); | ||
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault"); | ||
@@ -17,6 +17,2 @@ Object.defineProperty(exports, "__esModule", { | ||
require("core-js/modules/es6.regexp.to-string"); | ||
var _assign = _interopRequireDefault(require("@babel/runtime-corejs2/core-js/object/assign")); | ||
var _jed = _interopRequireDefault(require("jed")); | ||
@@ -65,3 +61,3 @@ | ||
i18n.options.locale_data[domain] = (0, _assign.default)({}, i18n.options.locale_data[domain], localeData); | ||
i18n.options.locale_data[domain] = Object.assign({}, i18n.options.locale_data[domain], localeData); | ||
} | ||
@@ -68,0 +64,0 @@ /** |
@@ -0,4 +1,15 @@ | ||
## 2.0.0 (Unreleased) | ||
### Breaking Change | ||
- Change how required built-ins are polyfilled with Babel 7 ([#9171](https://github.com/WordPress/gutenberg/pull/9171)). If you're using an environment that has limited or no support for ES2015+ such as lower versions of IE then using [core-js](https://github.com/zloirock/core-js) or [@babel/polyfill](https://babeljs.io/docs/en/next/babel-polyfill) will add support for these methods. | ||
## 1.2.0 (2018-07-12) | ||
### New Feature | ||
- Updated build to work with Babel 7 ([#7832](https://github.com/WordPress/gutenberg/pull/7832)) | ||
### Internal | ||
- Moved `@WordPress/packages` repository to `@WordPress/gutenberg` ([#7805](https://github.com/WordPress/gutenberg/pull/7805)) | ||
@@ -8,2 +19,4 @@ | ||
### Polish | ||
- Fix: Standardized `package.json` format ([#119](https://github.com/WordPress/packages/pull/119)) |
{ | ||
"name": "@wordpress/i18n", | ||
"version": "1.2.3", | ||
"version": "2.0.0", | ||
"description": "WordPress internationalization (i18n) library.", | ||
@@ -25,3 +25,3 @@ "author": "The WordPress Contributors", | ||
"dependencies": { | ||
"@babel/runtime-corejs2": "7.0.0-beta.56", | ||
"@babel/runtime": "^7.0.0", | ||
"gettext-parser": "^1.3.1", | ||
@@ -38,3 +38,3 @@ "jed": "^1.1.1", | ||
}, | ||
"gitHead": "f02064f12a148df60b8d79801858ce3699bdfb89" | ||
"gitHead": "df6f8da7b557894e4364c17db2dd4af0d1e20252" | ||
} |
@@ -7,3 +7,2 @@ # Internationalization (i18n) | ||
## Installation | ||
@@ -17,2 +16,6 @@ | ||
_This package assumes that your code will run in an **ES2015+** environment. If you're using an environment that has limited or no support for ES2015+ such as lower versions of IE then using [core-js](https://github.com/zloirock/core-js) or [@babel/polyfill](https://babeljs.io/docs/en/next/babel-polyfill) will add support for these methods. Learn more about it in [Babel docs](https://babeljs.io/docs/en/next/caveats)._ | ||
## Usage | ||
```js | ||
@@ -19,0 +22,0 @@ import { sprintf, _n } from '@wordpress/i18n'; |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
63567
81
693
+ Added@babel/runtime@^7.0.0
+ Added@babel/runtime@7.25.6(transitive)
+ Addedregenerator-runtime@0.14.1(transitive)
- Removed@babel/runtime-corejs2@7.0.0-beta.56
- Removed@babel/runtime-corejs2@7.0.0-beta.56(transitive)
- Removedcore-js@2.6.12(transitive)
- Removedregenerator-runtime@0.12.1(transitive)