use-intl 3.11.3 → 3.12.1
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/dist/development/core.js
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
var initializeConfig = require('./initializeConfig-c503e215.js');
|
|
6
|
-
var createFormatter = require('./createFormatter-
|
|
6
|
+
var createFormatter = require('./createFormatter-bb03b6dc.js');
|
|
7
7
|
require('intl-messageformat');
|
|
8
8
|
require('react');
|
|
9
9
|
|
|
@@ -199,7 +199,9 @@ function createBaseTranslatorImpl(_ref) {
|
|
|
199
199
|
}, timeZone), {
|
|
200
200
|
formatters: {
|
|
201
201
|
getNumberFormat(locales, options) {
|
|
202
|
-
return new Intl.NumberFormat(locales,
|
|
202
|
+
return new Intl.NumberFormat(locales,
|
|
203
|
+
// `useGrouping` was changed from a boolean later to a string enum or boolean, the type definition is outdated (https://tc39.es/proposal-intl-numberformat-v3/#grouping-enum-ecma-402-367)
|
|
204
|
+
options);
|
|
203
205
|
},
|
|
204
206
|
getDateTimeFormat(locales, options) {
|
|
205
207
|
// Workaround for https://github.com/formatjs/formatjs/issues/4279
|
|
@@ -4,7 +4,7 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
4
4
|
|
|
5
5
|
var initializeConfig = require('./initializeConfig-c503e215.js');
|
|
6
6
|
var core = require('./core.js');
|
|
7
|
-
var createFormatter = require('./createFormatter-
|
|
7
|
+
var createFormatter = require('./createFormatter-bb03b6dc.js');
|
|
8
8
|
var _IntlProvider = require('./_IntlProvider.js');
|
|
9
9
|
var react = require('./react.js');
|
|
10
10
|
var _useLocale = require('./_useLocale-321e619f.js');
|
|
@@ -5,7 +5,7 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
5
5
|
var _IntlProvider = require('./_IntlProvider.js');
|
|
6
6
|
var _useLocale = require('./_useLocale-321e619f.js');
|
|
7
7
|
var React = require('react');
|
|
8
|
-
var createFormatter = require('./createFormatter-
|
|
8
|
+
var createFormatter = require('./createFormatter-bb03b6dc.js');
|
|
9
9
|
var initializeConfig = require('./initializeConfig-c503e215.js');
|
|
10
10
|
require('./IntlContext-b5cc6be8.js');
|
|
11
11
|
require('intl-messageformat');
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "use-intl",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.12.1",
|
|
4
4
|
"sideEffects": false,
|
|
5
5
|
"author": "Jan Amann <jan@amann.work>",
|
|
6
6
|
"description": "Minimal, but complete solution for managing internationalization in React apps.",
|
|
@@ -64,7 +64,7 @@
|
|
|
64
64
|
],
|
|
65
65
|
"dependencies": {
|
|
66
66
|
"@formatjs/ecma402-abstract": "^1.11.4",
|
|
67
|
-
"intl-messageformat": "^
|
|
67
|
+
"intl-messageformat": "^10.5.11"
|
|
68
68
|
},
|
|
69
69
|
"peerDependencies": {
|
|
70
70
|
"react": "^16.8.0 || ^17.0.0 || ^18.0.0"
|
|
@@ -74,14 +74,14 @@
|
|
|
74
74
|
"@size-limit/preset-big-lib": "^8.2.6",
|
|
75
75
|
"@testing-library/react": "^13.0.0",
|
|
76
76
|
"@types/node": "^20.1.2",
|
|
77
|
-
"@types/react": "^18.
|
|
78
|
-
"@types/react-dom": "^18.
|
|
77
|
+
"@types/react": "^18.3.0",
|
|
78
|
+
"@types/react-dom": "^18.3.0",
|
|
79
79
|
"date-fns": "^2.16.1",
|
|
80
80
|
"eslint": "^8.54.0",
|
|
81
81
|
"eslint-config-molindo": "^7.0.0",
|
|
82
82
|
"publint": "^0.2.7",
|
|
83
|
-
"react": "^18.
|
|
84
|
-
"react-dom": "^18.
|
|
83
|
+
"react": "^18.3.0",
|
|
84
|
+
"react-dom": "^18.3.0",
|
|
85
85
|
"rollup": "^3.28.1",
|
|
86
86
|
"size-limit": "^8.2.6",
|
|
87
87
|
"typescript": "^5.2.2",
|
|
@@ -90,8 +90,8 @@
|
|
|
90
90
|
"size-limit": [
|
|
91
91
|
{
|
|
92
92
|
"path": "dist/production/index.js",
|
|
93
|
-
"limit": "
|
|
93
|
+
"limit": "15.235 kB"
|
|
94
94
|
}
|
|
95
95
|
],
|
|
96
|
-
"gitHead": "
|
|
96
|
+
"gitHead": "35f327e201596aba228da2aefaeeef71e7fe3e44"
|
|
97
97
|
}
|