@formatjs/intl
Advanced tools
Comparing version 2.5.1 to 2.6.0
@@ -8,2 +8,3 @@ import { filterProps } from './utils'; | ||
'fallback', | ||
'languageDisplay', | ||
]; | ||
@@ -10,0 +11,0 @@ export function formatDisplayName(_a, getDisplayNames, value, options) { |
@@ -19,8 +19,10 @@ import { IntlMessageFormat, Formats, FormatXMLElementFn, FormatError, PrimitiveType, Options as IntlMessageFormatOptions } from 'intl-messageformat'; | ||
} | ||
declare type MessageIds = FormatjsIntl.Message extends { | ||
declare type _Message = FormatjsIntl.Message; | ||
declare type MessageIds = _Message extends { | ||
ids: string; | ||
} ? FormatjsIntl.Message['ids'] : string; | ||
declare type Locale = FormatjsIntl.IntlConfig extends { | ||
} ? _Message['ids'] : string; | ||
declare type _IntlConfig = FormatjsIntl.IntlConfig; | ||
declare type Locale = _IntlConfig extends { | ||
locale: string; | ||
} ? FormatjsIntl.IntlConfig['locale'] : string; | ||
} ? _IntlConfig['locale'] : string; | ||
export declare type OnErrorFn = (err: MissingTranslationError | MessageFormatError | MissingDataError | InvalidConfigError | UnsupportedFormatterError | FormatError) => void; | ||
@@ -27,0 +29,0 @@ export declare type OnWarnFn = (warning: string) => void; |
{ | ||
"name": "@formatjs/intl", | ||
"version": "2.5.1", | ||
"version": "2.6.0", | ||
"description": "Internationalize JS apps. This library provides an API to format dates, numbers, and strings, including pluralization and handling translations.", | ||
@@ -32,13 +32,13 @@ "keywords": [ | ||
"dependencies": { | ||
"@formatjs/ecma402-abstract": "1.13.0", | ||
"@formatjs/ecma402-abstract": "1.14.0", | ||
"@formatjs/fast-memoize": "1.2.6", | ||
"@formatjs/icu-messageformat-parser": "2.1.10", | ||
"@formatjs/intl-displaynames": "6.1.4", | ||
"@formatjs/intl-listformat": "7.1.3", | ||
"intl-messageformat": "10.2.1", | ||
"@formatjs/icu-messageformat-parser": "2.1.11", | ||
"@formatjs/intl-displaynames": "6.2.0", | ||
"@formatjs/intl-listformat": "7.1.4", | ||
"intl-messageformat": "10.2.2", | ||
"tslib": "2.4.0" | ||
}, | ||
"devDependencies": { | ||
"@formatjs/intl-datetimeformat": "6.3.1", | ||
"@formatjs/intl-numberformat": "8.2.0" | ||
"@formatjs/intl-datetimeformat": "6.4.0", | ||
"@formatjs/intl-numberformat": "8.3.0" | ||
}, | ||
@@ -45,0 +45,0 @@ "peerDependencies": { |
@@ -11,2 +11,3 @@ "use strict"; | ||
'fallback', | ||
'languageDisplay', | ||
]; | ||
@@ -13,0 +14,0 @@ function formatDisplayName(_a, getDisplayNames, value, options) { |
@@ -19,8 +19,10 @@ import { IntlMessageFormat, Formats, FormatXMLElementFn, FormatError, PrimitiveType, Options as IntlMessageFormatOptions } from 'intl-messageformat'; | ||
} | ||
declare type MessageIds = FormatjsIntl.Message extends { | ||
declare type _Message = FormatjsIntl.Message; | ||
declare type MessageIds = _Message extends { | ||
ids: string; | ||
} ? FormatjsIntl.Message['ids'] : string; | ||
declare type Locale = FormatjsIntl.IntlConfig extends { | ||
} ? _Message['ids'] : string; | ||
declare type _IntlConfig = FormatjsIntl.IntlConfig; | ||
declare type Locale = _IntlConfig extends { | ||
locale: string; | ||
} ? FormatjsIntl.IntlConfig['locale'] : string; | ||
} ? _IntlConfig['locale'] : string; | ||
export declare type OnErrorFn = (err: MissingTranslationError | MessageFormatError | MissingDataError | InvalidConfigError | UnsupportedFormatterError | FormatError) => void; | ||
@@ -27,0 +29,0 @@ export declare type OnWarnFn = (warning: string) => void; |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
141121
2097
+ Added@formatjs/ecma402-abstract@1.14.0(transitive)
+ Added@formatjs/icu-messageformat-parser@2.1.11(transitive)
+ Added@formatjs/icu-skeleton-parser@1.3.15(transitive)
+ Added@formatjs/intl-displaynames@6.2.0(transitive)
+ Added@formatjs/intl-listformat@7.1.4(transitive)
+ Addedintl-messageformat@10.2.2(transitive)
- Removed@formatjs/ecma402-abstract@1.13.0(transitive)
- Removed@formatjs/icu-messageformat-parser@2.1.10(transitive)
- Removed@formatjs/icu-skeleton-parser@1.3.14(transitive)
- Removed@formatjs/intl-displaynames@6.1.4(transitive)
- Removed@formatjs/intl-listformat@7.1.3(transitive)
- Removedintl-messageformat@10.2.1(transitive)
Updatedintl-messageformat@10.2.2