Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

intl-messageformat

Package Overview
Dependencies
Maintainers
10
Versions
268
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

intl-messageformat - npm Package Compare versions

Comparing version 5.4.1 to 5.4.2

11

CHANGELOG.md

@@ -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 @@

2

dist/core.d.ts

@@ -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;

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc