intl-messageformat
Advanced tools
Comparing version 5.4.1 to 5.4.2
@@ -6,2 +6,13 @@ # Change Log | ||
## [5.4.2](https://github.com/formatjs/formatjs/compare/intl-messageformat@5.4.1...intl-messageformat@5.4.2) (2019-07-25) | ||
### Bug Fixes | ||
* **intl-messageformat:** Include Date in PrimitiveType ([1feca57](https://github.com/formatjs/formatjs/commit/1feca57)), closes [#127](https://github.com/formatjs/formatjs/issues/127) | ||
## [5.4.1](https://github.com/formatjs/formatjs/compare/intl-messageformat@5.4.0...intl-messageformat@5.4.1) (2019-07-25) | ||
@@ -8,0 +19,0 @@ |
@@ -17,3 +17,3 @@ import { parse, MessageFormatElement } from 'intl-messageformat-parser'; | ||
formatToParts: (values?: Record<string, any> | undefined) => import("./formatters").MessageFormatPart[]; | ||
formatXMLMessage: (values?: Record<string, string | number | boolean | object | FormatXMLElementFn | null | undefined> | undefined) => (string | object)[]; | ||
formatXMLMessage: (values?: Record<string, string | number | boolean | object | Date | FormatXMLElementFn | null | undefined> | undefined) => (string | object)[]; | ||
resolvedOptions: () => { | ||
@@ -20,0 +20,0 @@ locale: string; |
@@ -30,3 +30,3 @@ import { MessageFormatElement } from 'intl-messageformat-parser'; | ||
export declare type MessageFormatPart = LiteralPart | ArgumentPart; | ||
export declare type PrimitiveType = string | number | boolean | null | undefined; | ||
export declare type PrimitiveType = string | number | boolean | null | undefined | Date; | ||
export declare function formatToParts(els: MessageFormatElement[], locales: string | string[], formatters: Formatters, formats: Formats, values?: Record<string, any>, originalMessage?: string): MessageFormatPart[]; | ||
@@ -33,0 +33,0 @@ export declare function formatToString(els: MessageFormatElement[], locales: string | string[], formatters: Formatters, formats: Formats, values?: Record<string, PrimitiveType>, originalMessage?: string): string; |
@@ -17,3 +17,3 @@ import { parse, MessageFormatElement } from 'intl-messageformat-parser'; | ||
formatToParts: (values?: Record<string, any> | undefined) => import("./formatters").MessageFormatPart[]; | ||
formatXMLMessage: (values?: Record<string, string | number | boolean | object | FormatXMLElementFn | null | undefined> | undefined) => (string | object)[]; | ||
formatXMLMessage: (values?: Record<string, string | number | boolean | object | Date | FormatXMLElementFn | null | undefined> | undefined) => (string | object)[]; | ||
resolvedOptions: () => { | ||
@@ -20,0 +20,0 @@ locale: string; |
@@ -30,3 +30,3 @@ import { MessageFormatElement } from 'intl-messageformat-parser'; | ||
export declare type MessageFormatPart = LiteralPart | ArgumentPart; | ||
export declare type PrimitiveType = string | number | boolean | null | undefined; | ||
export declare type PrimitiveType = string | number | boolean | null | undefined | Date; | ||
export declare function formatToParts(els: MessageFormatElement[], locales: string | string[], formatters: Formatters, formats: Formats, values?: Record<string, any>, originalMessage?: string): MessageFormatPart[]; | ||
@@ -33,0 +33,0 @@ export declare function formatToString(els: MessageFormatElement[], locales: string | string[], formatters: Formatters, formats: Formats, values?: Record<string, PrimitiveType>, originalMessage?: string): string; |
{ | ||
"name": "intl-messageformat", | ||
"version": "5.4.1", | ||
"version": "5.4.2", | ||
"description": "Formats ICU Message strings with number, date, plural, and select placeholders to create localized messages.", | ||
@@ -53,3 +53,3 @@ "keywords": [ | ||
"license": "BSD-3-Clause", | ||
"gitHead": "d2225cb98a37cea5d5dbd7950c7380950c67a3e9" | ||
"gitHead": "f5ecfd8f3fe3d4d1e21d2b812129b83cee1bc5e8" | ||
} |
@@ -53,3 +53,3 @@ import { | ||
export type PrimitiveType = string | number | boolean | null | undefined; | ||
export type PrimitiveType = string | number | boolean | null | undefined | Date; | ||
@@ -56,0 +56,0 @@ const ESCAPE_HASH_REGEX = /\\#/g; |
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
517916