react-intl
Advanced tools
Comparing version 7.0.2 to 7.0.3
import { IntlCache } from '@formatjs/intl'; | ||
import * as React from 'react'; | ||
import type { IntlConfig, IntlShape } from '../types'; | ||
import { DefaultIntlConfig } from '../utils'; | ||
interface State { | ||
@@ -22,3 +23,3 @@ /** | ||
static displayName: string; | ||
static defaultProps: Pick<import("../types").ResolvedIntlConfig, "timeZone" | "fallbackOnEmptyString" | "formats" | "messages" | "defaultLocale" | "defaultFormats" | "onError" | "textComponent">; | ||
static defaultProps: DefaultIntlConfig; | ||
private cache; | ||
@@ -25,0 +26,0 @@ state: State; |
@@ -9,5 +9,5 @@ /* | ||
import * as React from 'react'; | ||
import { DEFAULT_INTL_CONFIG, invariantIntlContext, shallowEqual } from '../utils'; | ||
import { DEFAULT_INTL_CONFIG, invariantIntlContext, shallowEqual, } from '../utils'; | ||
import { createIntl } from './createIntl'; | ||
import { Provider } from './injectIntl'; | ||
import { createIntl } from './createIntl'; | ||
function processIntlConfig(config) { | ||
@@ -14,0 +14,0 @@ return { |
@@ -6,3 +6,4 @@ import { FormatXMLElementFn } from 'intl-messageformat'; | ||
export declare function invariantIntlContext(intl?: any): asserts intl; | ||
export declare const DEFAULT_INTL_CONFIG: Pick<ResolvedIntlConfig, 'fallbackOnEmptyString' | 'formats' | 'messages' | 'timeZone' | 'textComponent' | 'defaultLocale' | 'defaultFormats' | 'onError'>; | ||
export type DefaultIntlConfig = Pick<ResolvedIntlConfig, 'fallbackOnEmptyString' | 'formats' | 'messages' | 'timeZone' | 'textComponent' | 'defaultLocale' | 'defaultFormats' | 'onError'>; | ||
export declare const DEFAULT_INTL_CONFIG: DefaultIntlConfig; | ||
/** | ||
@@ -9,0 +10,0 @@ * Takes a `formatXMLElementFn`, and composes it in function, which passes |
{ | ||
"name": "react-intl", | ||
"version": "7.0.2", | ||
"version": "7.0.3", | ||
"description": "Internationalize React apps. This library provides React components and an API to format dates, numbers, and strings, including pluralization and handling translations.", | ||
@@ -135,6 +135,6 @@ "keywords": [ | ||
"tslib": "2", | ||
"@formatjs/ecma402-abstract": "2.2.5", | ||
"@formatjs/icu-messageformat-parser": "2.9.5", | ||
"@formatjs/intl": "3.0.2", | ||
"intl-messageformat": "10.7.8" | ||
"@formatjs/ecma402-abstract": "2.3.0", | ||
"@formatjs/intl": "3.0.3", | ||
"@formatjs/icu-messageformat-parser": "2.9.6", | ||
"intl-messageformat": "10.7.9" | ||
}, | ||
@@ -141,0 +141,0 @@ "peerDependencies": { |
import { IntlCache } from '@formatjs/intl'; | ||
import * as React from 'react'; | ||
import type { IntlConfig, IntlShape } from '../types'; | ||
import { DefaultIntlConfig } from '../utils'; | ||
interface State { | ||
@@ -22,3 +23,3 @@ /** | ||
static displayName: string; | ||
static defaultProps: Pick<import("../types").ResolvedIntlConfig, "timeZone" | "fallbackOnEmptyString" | "formats" | "messages" | "defaultLocale" | "defaultFormats" | "onError" | "textComponent">; | ||
static defaultProps: DefaultIntlConfig; | ||
private cache; | ||
@@ -25,0 +26,0 @@ state: State; |
@@ -12,4 +12,4 @@ "use strict"; | ||
var utils_1 = require("../utils"); | ||
var createIntl_1 = require("./createIntl"); | ||
var injectIntl_1 = require("./injectIntl"); | ||
var createIntl_1 = require("./createIntl"); | ||
function processIntlConfig(config) { | ||
@@ -16,0 +16,0 @@ return { |
@@ -6,3 +6,4 @@ import { FormatXMLElementFn } from 'intl-messageformat'; | ||
export declare function invariantIntlContext(intl?: any): asserts intl; | ||
export declare const DEFAULT_INTL_CONFIG: Pick<ResolvedIntlConfig, 'fallbackOnEmptyString' | 'formats' | 'messages' | 'timeZone' | 'textComponent' | 'defaultLocale' | 'defaultFormats' | 'onError'>; | ||
export type DefaultIntlConfig = Pick<ResolvedIntlConfig, 'fallbackOnEmptyString' | 'formats' | 'messages' | 'timeZone' | 'textComponent' | 'defaultLocale' | 'defaultFormats' | 'onError'>; | ||
export declare const DEFAULT_INTL_CONFIG: DefaultIntlConfig; | ||
/** | ||
@@ -9,0 +10,0 @@ * Takes a `formatXMLElementFn`, and composes it in function, which passes |
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
6355
232838
+ Added@formatjs/ecma402-abstract@2.3.0(transitive)
+ Added@formatjs/fast-memoize@2.2.5(transitive)
+ Added@formatjs/icu-messageformat-parser@2.9.6(transitive)
+ Added@formatjs/icu-skeleton-parser@1.8.10(transitive)
+ Added@formatjs/intl@3.0.3(transitive)
+ Added@formatjs/intl-localematcher@0.5.9(transitive)
+ Addeddecimal.js@10.4.3(transitive)
+ Addedintl-messageformat@10.7.9(transitive)
- Removed@formatjs/ecma402-abstract@2.2.5(transitive)
- Removed@formatjs/fast-memoize@2.2.4(transitive)
- Removed@formatjs/icu-messageformat-parser@2.9.5(transitive)
- Removed@formatjs/icu-skeleton-parser@1.8.9(transitive)
- Removed@formatjs/intl@3.0.2(transitive)
- Removed@formatjs/intl-localematcher@0.5.8(transitive)
- Removedintl-messageformat@10.7.8(transitive)
Updated@formatjs/intl@3.0.3
Updatedintl-messageformat@10.7.9