react-intl 6.6.1 → 6.6.2

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/package.json +6 -6
  2. package/react-intl.iife.js +27 -2
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-intl",
3
- "version": "6.6.1",
3
+ "version": "6.6.2",
4
4
  "description": "Internationalize React apps. This library provides React components and an API to format dates, numbers, and strings, including pluralization and handling translations.",
5
5
  "keywords": [
6
6
  "intl",
@@ -133,15 +133,15 @@
133
133
  "hoist-non-react-statics": "^3.3.2",
134
134
  "tslib": "^2.4.0",
135
135
  "@formatjs/ecma402-abstract": "1.18.2",
136
- "@formatjs/intl": "2.9.11",
137
- "@formatjs/icu-messageformat-parser": "2.7.5",
138
136
  "@formatjs/intl-displaynames": "6.6.6",
137
+ "@formatjs/intl": "2.10.0",
138
+ "@formatjs/icu-messageformat-parser": "2.7.6",
139
139
  "@formatjs/intl-listformat": "7.5.5",
140
- "intl-messageformat": "10.5.10"
140
+ "intl-messageformat": "10.5.11"
141
141
  },
142
142
  "devDependencies": {
143
- "@formatjs/intl-relativetimeformat": "11.2.12",
144
- "@formatjs/intl-numberformat": "8.9.2"
143
+ "@formatjs/intl-numberformat": "8.10.0",
144
+ "@formatjs/intl-relativetimeformat": "11.2.12"
145
145
  },
146
146
  "peerDependencies": {
147
147
  "react": "^16.6.0 || 17 || 18",
@@ -886,6 +886,27 @@ var ReactIntl = (() => {
886
886
  case "scale":
887
887
  result.scale = parseFloat(token.options[0]);
888
888
  continue;
889
+ case "rounding-mode-floor":
890
+ result.roundingMode = "floor";
891
+ continue;
892
+ case "rounding-mode-ceiling":
893
+ result.roundingMode = "ceil";
894
+ continue;
895
+ case "rounding-mode-down":
896
+ result.roundingMode = "trunc";
897
+ continue;
898
+ case "rounding-mode-up":
899
+ result.roundingMode = "expand";
900
+ continue;
901
+ case "rounding-mode-half-even":
902
+ result.roundingMode = "halfEven";
903
+ continue;
904
+ case "rounding-mode-half-down":
905
+ result.roundingMode = "halfTrunc";
906
+ continue;
907
+ case "rounding-mode-half-up":
908
+ result.roundingMode = "halfExpand";
909
+ continue;
889
910
  case "integer-width":
890
911
  if (token.options.length > 1) {
891
912
  throw new RangeError("integer-width stems only accept a single optional option");
@@ -4322,7 +4343,6 @@ var ReactIntl = (() => {
4322
4343
  var NUMBER_FORMAT_OPTIONS = [
4323
4344
  "style",
4324
4345
  "currency",
4325
- "currencyDisplay",
4326
4346
  "unit",
4327
4347
  "unitDisplay",
4328
4348
  "useGrouping",
@@ -4339,7 +4359,12 @@ var ReactIntl = (() => {
4339
4359
  "signDisplay",
4340
4360
  "unit",
4341
4361
  "unitDisplay",
4342
- "numberingSystem"
4362
+ "numberingSystem",
4363
+ // ES2023 NumberFormat
4364
+ "trailingZeroDisplay",
4365
+ "roundingPriority",
4366
+ "roundingIncrement",
4367
+ "roundingMode"
4343
4368
  ];
4344
4369
  function getFormatter3(_a2, getNumberFormat, options) {
4345
4370
  var locale = _a2.locale, formats = _a2.formats, onError = _a2.onError;