@lingui/core
Advanced tools
Comparing version 4.0.0-next.4 to 4.0.0-next.5
@@ -0,1 +1,3 @@ | ||
import { CompiledMessage } from '@lingui/message-utils/compileMessage'; | ||
declare class EventEmitter<Events extends { | ||
@@ -15,2 +17,3 @@ [name: string]: (...args: any[]) => any; | ||
}; | ||
type Locale = string; | ||
@@ -21,3 +24,3 @@ type Locales = Locale | Locale[]; | ||
/** | ||
* @deprecated Plurals automatically used from Intl.PluralRules you can safely remove this call. Introduced in v4 | ||
* @deprecated Plurals automatically used from Intl.PluralRules you can safely remove this call. Deprecated in v4 | ||
*/ | ||
@@ -28,14 +31,9 @@ type LocaleData = { | ||
/** | ||
* @deprecated Plurals automatically used from Intl.PluralRules you can safely remove this call. Introduced in v4 | ||
* @deprecated Plurals automatically used from Intl.PluralRules you can safely remove this call. Deprecated in v4 | ||
*/ | ||
type AllLocaleData = Record<Locale, LocaleData>; | ||
type CompiledIcuChoices = Record<string, CompiledMessage> & { | ||
offset: number; | ||
}; | ||
type CompiledMessageToken = string | [name: string, type?: string, format?: null | string | CompiledIcuChoices]; | ||
type CompiledMessage = string | CompiledMessageToken[]; | ||
type Messages = Record<string, CompiledMessage>; | ||
type AllMessages = Record<Locale, Messages>; | ||
type MessageDescriptor = { | ||
id?: string; | ||
id: string; | ||
comment?: string; | ||
@@ -55,3 +53,3 @@ message?: string; | ||
/** | ||
* @deprecated Plurals automatically used from Intl.PluralRules you can safely remove this call. Introduced in v4 | ||
* @deprecated Plurals automatically used from Intl.PluralRules you can safely remove this call. Deprecated in v4 | ||
*/ | ||
@@ -76,3 +74,3 @@ localeData?: AllLocaleData; | ||
/** | ||
* @deprecated this has no effect. Please remove this from the code. Introduced in v4 | ||
* @deprecated this has no effect. Please remove this from the code. Deprecated in v4 | ||
*/ | ||
@@ -82,7 +80,7 @@ get localeData(): LocaleData; | ||
/** | ||
* @deprecated Plurals automatically used from Intl.PluralRules you can safely remove this call. Introduced in v4 | ||
* @deprecated Plurals automatically used from Intl.PluralRules you can safely remove this call. Deprecated in v4 | ||
*/ | ||
loadLocaleData(allLocaleData: AllLocaleData): void; | ||
/** | ||
* @deprecated Plurals automatically used from Intl.PluralRules you can safely remove this call. Introduced in v4 | ||
* @deprecated Plurals automatically used from Intl.PluralRules you can safely remove this call. Deprecated in v4 | ||
*/ | ||
@@ -104,2 +102,3 @@ loadLocaleData(locale: Locale, localeData: LocaleData): void; | ||
_(id: MessageDescriptor | string, values?: Values | undefined, { message, formats }?: MessageOptions | undefined): string; | ||
t(descriptor: MessageDescriptor): string; | ||
date(value: string | Date, format?: Intl.DateTimeFormatOptions): string; | ||
@@ -106,0 +105,0 @@ number(value: number, format?: Intl.NumberFormatOptions): string; |
{ | ||
"name": "@lingui/core", | ||
"version": "4.0.0-next.4", | ||
"version": "4.0.0-next.5", | ||
"sideEffects": false, | ||
@@ -47,12 +47,2 @@ "description": "I18n tools for javascript", | ||
}, | ||
"./compile": { | ||
"require": { | ||
"types": "./dist/compile.d.ts", | ||
"default": "./dist/compile.cjs" | ||
}, | ||
"import": { | ||
"types": "./dist/compile.d.ts", | ||
"default": "./dist/compile.mjs" | ||
} | ||
}, | ||
"./package.json": "./package.json" | ||
@@ -63,8 +53,7 @@ }, | ||
"README.md", | ||
"dist/", | ||
"compile.js" | ||
"dist/" | ||
], | ||
"dependencies": { | ||
"@babel/runtime": "^7.20.13", | ||
"@messageformat/parser": "^5.0.0" | ||
"@lingui/message-utils": "^4.0.0-next.5" | ||
}, | ||
@@ -75,3 +64,3 @@ "devDependencies": { | ||
}, | ||
"gitHead": "3b999e35d26e67dec7cf0591f794be782e11022c" | ||
"gitHead": "bdbd6cf310cbcf09e1fe288f20ef530c28de481d" | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
0
35615
7
969
+ Added@lingui/message-utils@4.11.2(transitive)
+ Addedjs-sha256@0.10.1(transitive)
- Removed@messageformat/parser@^5.0.0