react-intl
Advanced tools
Comparing version 6.1.2 to 6.2.0
@@ -26,4 +26,5 @@ import * as React from 'react'; | ||
}>; | ||
export declare const FormattedNumber: React.FC<NumberFormatOptions & CustomFormatConfig & { | ||
value: number | bigint; | ||
export declare const FormattedNumber: React.FC<Omit<NumberFormatOptions, 'localeMatcher'> & CustomFormatConfig<'number'> & { | ||
value: number; | ||
children?(formattedNumber: string): React.ReactElement | null; | ||
}>; | ||
@@ -30,0 +31,0 @@ export declare const FormattedList: React.FC<IntlListFormatOptions & { |
@@ -43,3 +43,2 @@ "use strict"; | ||
exports.FormattedTime = (0, createFormattedComponent_1.createFormattedComponent)('formatTime'); | ||
// @ts-ignore issue w/ TS Intl types | ||
exports.FormattedNumber = (0, createFormattedComponent_1.createFormattedComponent)('formatNumber'); | ||
@@ -46,0 +45,0 @@ exports.FormattedList = (0, createFormattedComponent_1.createFormattedComponent)('formatList'); |
@@ -26,4 +26,5 @@ import * as React from 'react'; | ||
}>; | ||
export declare const FormattedNumber: React.FC<NumberFormatOptions & CustomFormatConfig & { | ||
value: number | bigint; | ||
export declare const FormattedNumber: React.FC<Omit<NumberFormatOptions, 'localeMatcher'> & CustomFormatConfig<'number'> & { | ||
value: number; | ||
children?(formattedNumber: string): React.ReactElement | null; | ||
}>; | ||
@@ -30,0 +31,0 @@ export declare const FormattedList: React.FC<IntlListFormatOptions & { |
@@ -20,3 +20,2 @@ import { createFormattedComponent, createFormattedDateTimePartsComponent, } from './src/components/createFormattedComponent'; | ||
export var FormattedTime = createFormattedComponent('formatTime'); | ||
// @ts-ignore issue w/ TS Intl types | ||
export var FormattedNumber = createFormattedComponent('formatNumber'); | ||
@@ -23,0 +22,0 @@ export var FormattedList = createFormattedComponent('formatList'); |
{ | ||
"name": "react-intl", | ||
"version": "6.1.2", | ||
"version": "6.2.0", | ||
"description": "Internationalize React apps. This library provides React components and an API to format dates, numbers, and strings, including pluralization and handling translations.", | ||
@@ -131,16 +131,16 @@ "keywords": [ | ||
"dependencies": { | ||
"@formatjs/ecma402-abstract": "1.12.0", | ||
"@formatjs/icu-messageformat-parser": "2.1.8", | ||
"@formatjs/intl": "2.4.2", | ||
"@formatjs/intl-displaynames": "6.1.3", | ||
"@formatjs/intl-listformat": "7.1.2", | ||
"@formatjs/ecma402-abstract": "1.13.0", | ||
"@formatjs/icu-messageformat-parser": "2.1.9", | ||
"@formatjs/intl": "2.5.0", | ||
"@formatjs/intl-displaynames": "6.1.4", | ||
"@formatjs/intl-listformat": "7.1.3", | ||
"@types/hoist-non-react-statics": "^3.3.1", | ||
"@types/react": "16 || 17 || 18", | ||
"hoist-non-react-statics": "^3.3.2", | ||
"intl-messageformat": "10.1.5", | ||
"intl-messageformat": "10.2.0", | ||
"tslib": "2.4.0" | ||
}, | ||
"devDependencies": { | ||
"@formatjs/intl-numberformat": "8.1.3", | ||
"@formatjs/intl-relativetimeformat": "11.1.3" | ||
"@formatjs/intl-numberformat": "8.2.0", | ||
"@formatjs/intl-relativetimeformat": "11.1.4" | ||
}, | ||
@@ -147,0 +147,0 @@ "peerDependencies": { |
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
256396
+ Added@formatjs/ecma402-abstract@1.13.0(transitive)
+ Added@formatjs/icu-messageformat-parser@2.1.9(transitive)
+ Added@formatjs/icu-skeleton-parser@1.3.14(transitive)
+ Added@formatjs/intl@2.5.0(transitive)
+ Added@formatjs/intl-displaynames@6.1.4(transitive)
+ Added@formatjs/intl-listformat@7.1.3(transitive)
+ Addedintl-messageformat@10.2.0(transitive)
- Removed@formatjs/ecma402-abstract@1.12.0(transitive)
- Removed@formatjs/icu-messageformat-parser@2.1.8(transitive)
- Removed@formatjs/icu-skeleton-parser@1.3.13(transitive)
- Removed@formatjs/intl@2.4.2(transitive)
- Removed@formatjs/intl-displaynames@6.1.3(transitive)
- Removed@formatjs/intl-listformat@7.1.2(transitive)
- Removedintl-messageformat@10.1.5(transitive)
Updated@formatjs/intl@2.5.0
Updatedintl-messageformat@10.2.0