@formatjs/intl
Advanced tools
Comparing version 2.7.2 to 2.8.0
@@ -17,2 +17,1 @@ import { MessageDescriptor } from './src/types'; | ||
export type { CreateIntlFn } from './src/create-intl'; | ||
//# sourceMappingURL=index.d.ts.map |
@@ -17,2 +17,1 @@ import { MessageDescriptor } from './src/types'; | ||
export type { CreateIntlFn } from './src/create-intl'; | ||
//# sourceMappingURL=index.d.ts.map |
@@ -11,2 +11,1 @@ import { IntlCache, IntlShape, IntlConfig } from './types'; | ||
export declare function createIntl<T = string>(config: IntlConfig<T>, cache?: IntlCache): IntlShape<T>; | ||
//# sourceMappingURL=create-intl.d.ts.map |
@@ -38,2 +38,1 @@ import { Formatters, IntlFormatters, CustomFormats, OnErrorFn } from './types'; | ||
}, getDateTimeFormat: Formatters['getDateTimeFormat'], ...[value, options]: Parameters<IntlFormatters['formatTimeToParts']>): Intl.DateTimeFormatPart[]; | ||
//# sourceMappingURL=dateTime.d.ts.map |
@@ -6,2 +6,1 @@ import { Formatters, IntlFormatters, OnErrorFn } from './types'; | ||
}, getDisplayNames: Formatters['getDisplayNames'], value: Parameters<IntlFormatters['formatDisplayName']>[0], options: Parameters<IntlFormatters['formatDisplayName']>[1]): string | undefined; | ||
//# sourceMappingURL=displayName.d.ts.map |
@@ -36,2 +36,1 @@ import { MessageDescriptor } from './types'; | ||
} | ||
//# sourceMappingURL=error.d.ts.map |
@@ -11,2 +11,1 @@ import { Formatters, IntlFormatters, OnErrorFn } from './types'; | ||
}, getListFormat: Formatters['getListFormat'], values: ReadonlyArray<string | T>, options: Parameters<IntlFormatters['formatList']>[1]): Part[]; | ||
//# sourceMappingURL=list.d.ts.map |
@@ -16,2 +16,1 @@ import { Formatters, MessageDescriptor, CustomFormats, OnErrorFn } from './types'; | ||
export declare const formatMessage: FormatMessageFn<any>; | ||
//# sourceMappingURL=message.d.ts.map |
@@ -17,2 +17,1 @@ import { Formatters, IntlFormatters, CustomFormats, OnErrorFn } from './types'; | ||
}, getNumberFormat: Formatters['getNumberFormat'], value: Parameters<IntlFormatters['formatNumber']>[0], options?: Parameters<IntlFormatters['formatNumber']>[1]): Intl.NumberFormatPart[]; | ||
//# sourceMappingURL=number.d.ts.map |
@@ -7,2 +7,1 @@ import { Formatters, IntlFormatters, OnErrorFn } from './types'; | ||
}, getPluralRules: Formatters['getPluralRules'], value: Parameters<IntlFormatters['formatPlural']>[0], options?: Parameters<IntlFormatters['formatPlural']>[1]): LDMLPluralRule; | ||
//# sourceMappingURL=plural.d.ts.map |
@@ -7,2 +7,1 @@ import { IntlFormatters, Formatters, CustomFormats, OnErrorFn } from './types'; | ||
}, getRelativeTimeFormat: Formatters['getRelativeTimeFormat'], value: Parameters<IntlFormatters['formatRelativeTime']>[0], unit?: Parameters<IntlFormatters['formatRelativeTime']>[1], options?: Parameters<IntlFormatters['formatRelativeTime']>[2]): string; | ||
//# sourceMappingURL=relativeTime.d.ts.map |
@@ -107,2 +107,1 @@ import { IntlMessageFormat, Formats, FormatXMLElementFn, FormatError, PrimitiveType, Options as IntlMessageFormatOptions } from 'intl-messageformat'; | ||
export {}; | ||
//# sourceMappingURL=types.d.ts.map |
@@ -12,2 +12,1 @@ import { IntlCache, CustomFormats, Formatters, OnErrorFn, ResolvedIntlConfig } from './types'; | ||
export declare function getNamedFormat<T extends keyof CustomFormats>(formats: CustomFormats, type: T, name: string, onError: OnErrorFn): NumberFormatOptions | Intl.DateTimeFormatOptions | Intl.RelativeTimeFormatOptions | undefined; | ||
//# sourceMappingURL=utils.d.ts.map |
{ | ||
"name": "@formatjs/intl", | ||
"version": "2.7.2", | ||
"version": "2.8.0", | ||
"description": "Internationalize JS apps. This library provides an API to format dates, numbers, and strings, including pluralization and handling translations.", | ||
@@ -30,15 +30,24 @@ "keywords": [ | ||
"module": "lib/index.js", | ||
"types": "index.d.ts", | ||
"exports": { | ||
".": { | ||
"types": "./index.d.ts", | ||
"import": "./lib/index.js", | ||
"default": "./index.js" | ||
}, | ||
"./package.json": "./package.json" | ||
}, | ||
"sideEffects": false, | ||
"dependencies": { | ||
"@formatjs/ecma402-abstract": "1.15.0", | ||
"@formatjs/fast-memoize": "2.0.1", | ||
"@formatjs/icu-messageformat-parser": "2.4.0", | ||
"@formatjs/intl-displaynames": "6.3.2", | ||
"@formatjs/intl-listformat": "7.2.2", | ||
"intl-messageformat": "10.3.5", | ||
"@formatjs/ecma402-abstract": "1.16.0", | ||
"@formatjs/fast-memoize": "2.1.0", | ||
"@formatjs/icu-messageformat-parser": "2.5.0", | ||
"@formatjs/intl-displaynames": "6.4.0", | ||
"@formatjs/intl-listformat": "7.3.0", | ||
"intl-messageformat": "10.4.0", | ||
"tslib": "^2.4.0" | ||
}, | ||
"devDependencies": { | ||
"@formatjs/intl-datetimeformat": "6.8.0", | ||
"@formatjs/intl-numberformat": "8.5.0" | ||
"@formatjs/intl-datetimeformat": "6.9.0", | ||
"@formatjs/intl-numberformat": "8.6.0" | ||
}, | ||
@@ -45,0 +54,0 @@ "peerDependencies": { |
@@ -11,2 +11,1 @@ import { IntlCache, IntlShape, IntlConfig } from './types'; | ||
export declare function createIntl<T = string>(config: IntlConfig<T>, cache?: IntlCache): IntlShape<T>; | ||
//# sourceMappingURL=create-intl.d.ts.map |
@@ -38,2 +38,1 @@ import { Formatters, IntlFormatters, CustomFormats, OnErrorFn } from './types'; | ||
}, getDateTimeFormat: Formatters['getDateTimeFormat'], ...[value, options]: Parameters<IntlFormatters['formatTimeToParts']>): Intl.DateTimeFormatPart[]; | ||
//# sourceMappingURL=dateTime.d.ts.map |
@@ -6,2 +6,1 @@ import { Formatters, IntlFormatters, OnErrorFn } from './types'; | ||
}, getDisplayNames: Formatters['getDisplayNames'], value: Parameters<IntlFormatters['formatDisplayName']>[0], options: Parameters<IntlFormatters['formatDisplayName']>[1]): string | undefined; | ||
//# sourceMappingURL=displayName.d.ts.map |
@@ -36,2 +36,1 @@ import { MessageDescriptor } from './types'; | ||
} | ||
//# sourceMappingURL=error.d.ts.map |
@@ -11,2 +11,1 @@ import { Formatters, IntlFormatters, OnErrorFn } from './types'; | ||
}, getListFormat: Formatters['getListFormat'], values: ReadonlyArray<string | T>, options: Parameters<IntlFormatters['formatList']>[1]): Part[]; | ||
//# sourceMappingURL=list.d.ts.map |
@@ -16,2 +16,1 @@ import { Formatters, MessageDescriptor, CustomFormats, OnErrorFn } from './types'; | ||
export declare const formatMessage: FormatMessageFn<any>; | ||
//# sourceMappingURL=message.d.ts.map |
@@ -17,2 +17,1 @@ import { Formatters, IntlFormatters, CustomFormats, OnErrorFn } from './types'; | ||
}, getNumberFormat: Formatters['getNumberFormat'], value: Parameters<IntlFormatters['formatNumber']>[0], options?: Parameters<IntlFormatters['formatNumber']>[1]): Intl.NumberFormatPart[]; | ||
//# sourceMappingURL=number.d.ts.map |
@@ -7,2 +7,1 @@ import { Formatters, IntlFormatters, OnErrorFn } from './types'; | ||
}, getPluralRules: Formatters['getPluralRules'], value: Parameters<IntlFormatters['formatPlural']>[0], options?: Parameters<IntlFormatters['formatPlural']>[1]): LDMLPluralRule; | ||
//# sourceMappingURL=plural.d.ts.map |
@@ -7,2 +7,1 @@ import { IntlFormatters, Formatters, CustomFormats, OnErrorFn } from './types'; | ||
}, getRelativeTimeFormat: Formatters['getRelativeTimeFormat'], value: Parameters<IntlFormatters['formatRelativeTime']>[0], unit?: Parameters<IntlFormatters['formatRelativeTime']>[1], options?: Parameters<IntlFormatters['formatRelativeTime']>[2]): string; | ||
//# sourceMappingURL=relativeTime.d.ts.map |
@@ -107,2 +107,1 @@ import { IntlMessageFormat, Formats, FormatXMLElementFn, FormatError, PrimitiveType, Options as IntlMessageFormatOptions } from 'intl-messageformat'; | ||
export {}; | ||
//# sourceMappingURL=types.d.ts.map |
@@ -12,2 +12,1 @@ import { IntlCache, CustomFormats, Formatters, OnErrorFn, ResolvedIntlConfig } from './types'; | ||
export declare function getNamedFormat<T extends keyof CustomFormats>(formats: CustomFormats, type: T, name: string, onError: OnErrorFn): NumberFormatOptions | Intl.DateTimeFormatOptions | Intl.RelativeTimeFormatOptions | undefined; | ||
//# sourceMappingURL=utils.d.ts.map |
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
Deprecated
MaintenanceThe maintainer of the package marked it as deprecated. This could indicate that a single version should not be used, or that the package is no longer maintained and any new vulnerabilities will not be fixed.
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
140390
1
+ Added@formatjs/ecma402-abstract@1.16.0(transitive)
+ Added@formatjs/fast-memoize@2.1.0(transitive)
+ Added@formatjs/icu-messageformat-parser@2.5.0(transitive)
+ Added@formatjs/icu-skeleton-parser@1.5.0(transitive)
+ Added@formatjs/intl-displaynames@6.4.0(transitive)
+ Added@formatjs/intl-listformat@7.3.0(transitive)
+ Added@formatjs/intl-localematcher@0.3.0(transitive)
+ Addedintl-messageformat@10.4.0(transitive)
- Removed@formatjs/ecma402-abstract@1.15.0(transitive)
- Removed@formatjs/fast-memoize@2.0.1(transitive)
- Removed@formatjs/icu-messageformat-parser@2.4.0(transitive)
- Removed@formatjs/icu-skeleton-parser@1.4.0(transitive)
- Removed@formatjs/intl-displaynames@6.3.2(transitive)
- Removed@formatjs/intl-listformat@7.2.2(transitive)
- Removed@formatjs/intl-localematcher@0.2.32(transitive)
- Removedintl-messageformat@10.3.5(transitive)
Updated@formatjs/fast-memoize@2.1.0
Updatedintl-messageformat@10.4.0