use-intl 4.8.3 → 4.8.4

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.
@@ -1,7 +1,7 @@
1
1
  import { c as createIntlFormatters, b as createCache } from './formatters-r4aAmsMP.js';
2
2
  export { I as IntlError, a as IntlErrorCode } from './formatters-r4aAmsMP.js';
3
- import { r as resolveNamespace, a as createBaseTranslator, d as defaultGetMessageFallback, b as defaultOnError } from './initializeConfig-DzxNJxi9.js';
4
- export { c as createFormatter, i as initializeConfig } from './initializeConfig-DzxNJxi9.js';
3
+ import { r as resolveNamespace, a as createBaseTranslator, d as defaultGetMessageFallback, b as defaultOnError } from './initializeConfig-B5qJiBCm.js';
4
+ export { c as createFormatter, i as initializeConfig } from './initializeConfig-B5qJiBCm.js';
5
5
 
6
6
 
7
7
 
@@ -1,6 +1,6 @@
1
1
  export { I as IntlError, a as IntlErrorCode, b as _createCache, c as _createIntlFormatters } from './formatters-r4aAmsMP.js';
2
2
  export { createTranslator, hasLocale } from './core.js';
3
- export { c as createFormatter, i as initializeConfig } from './initializeConfig-DzxNJxi9.js';
3
+ export { c as createFormatter, i as initializeConfig } from './initializeConfig-B5qJiBCm.js';
4
4
  export { IntlProvider, _useExtracted, useFormatter, useLocale, useMessages, useNow, useTimeZone, useTranslations } from './react.js';
5
5
 
6
6
 
@@ -455,7 +455,7 @@ function validateMessages(messages, onError) {
455
455
  const invalidKeyLabels = [];
456
456
  validateMessagesSegment(messages, invalidKeyLabels);
457
457
  if (invalidKeyLabels.length > 0) {
458
- onError(new IntlError(IntlErrorCode.INVALID_KEY, `Namespace keys can not contain the character "." as this is used to express nesting. Please remove it or replace it with another character.
458
+ onError(new IntlError(IntlErrorCode.INVALID_KEY, `Namespace keys cannot contain the character "." as this is used to express nesting. Please remove it or replace it with another character.
459
459
 
460
460
  Invalid ${invalidKeyLabels.length === 1 ? 'key' : 'keys'}: ${invalidKeyLabels.join(', ')}
461
461
 
@@ -1,6 +1,6 @@
1
1
  import { createContext, useContext, useMemo, useState, useEffect } from 'react';
2
2
  import { b as createCache, c as createIntlFormatters, I as IntlError, a as IntlErrorCode } from './formatters-r4aAmsMP.js';
3
- import { i as initializeConfig, r as resolveNamespace, a as createBaseTranslator, c as createFormatter } from './initializeConfig-DzxNJxi9.js';
3
+ import { i as initializeConfig, r as resolveNamespace, a as createBaseTranslator, c as createFormatter } from './initializeConfig-B5qJiBCm.js';
4
4
  import { jsx } from 'react/jsx-runtime';
5
5
 
6
6
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "use-intl",
3
- "version": "4.8.3",
3
+ "version": "4.8.4",
4
4
  "sideEffects": false,
5
5
  "author": "Jan Amann <jan@amann.work>",
6
6
  "funding": [
@@ -77,11 +77,11 @@
77
77
  "dependencies": {
78
78
  "@formatjs/fast-memoize": "^3.1.0",
79
79
  "@schummar/icu-type-parser": "1.21.5",
80
- "icu-minify": "^4.8.3",
80
+ "icu-minify": "^4.8.4",
81
81
  "intl-messageformat": "^11.1.0"
82
82
  },
83
83
  "peerDependencies": {
84
84
  "react": "^17.0.0 || ^18.0.0 || >=19.0.0-rc <19.0.0 || ^19.0.0"
85
85
  },
86
- "gitHead": "099bfebe5048b036a76520381daac7635d2640e1"
86
+ "gitHead": "722785bc2d34f38949b8186c0282af88db38c2a5"
87
87
  }