@formatjs/intl-utils
Advanced tools
Comparing version 2.1.0 to 2.2.0
@@ -6,2 +6,13 @@ # Change Log | ||
# [2.2.0](https://github.com/formatjs/formatjs/compare/@formatjs/intl-utils@2.1.0...@formatjs/intl-utils@2.2.0) (2020-01-27) | ||
### Features | ||
* **@formatjs/intl-utils:** Add intl-unified-numberformat option types ([e6a32d6](https://github.com/formatjs/formatjs/commit/e6a32d6e6da5e10e4baad0ca02dffb8f56bb2c32)) | ||
# [2.1.0](https://github.com/formatjs/formatjs/compare/@formatjs/intl-utils@2.0.4...@formatjs/intl-utils@2.1.0) (2020-01-22) | ||
@@ -8,0 +19,0 @@ |
import { LocaleData } from './types'; | ||
import { NumberInternalSlots } from './number-types'; | ||
export declare type UnifiedNumberFormatLocaleData = LocaleData<NumberInternalSlots>; | ||
export declare type UnifiedNumberFormatOptionsLocaleMatcher = 'lookup' | 'best fit'; | ||
export declare type UnifiedNumberFormatOptionsStyle = 'decimal' | 'percent' | 'currency' | 'unit'; | ||
export declare type UnifiedNumberFormatOptionsCompactDisplay = 'short' | 'long'; | ||
export declare type UnifiedNumberFormatOptionsCurrencyDisplay = 'symbol' | 'code' | 'name' | 'narrowSymbol'; | ||
export declare type UnifiedNumberFormatOptionsCurrencySign = 'standard' | 'accounting'; | ||
export declare type UnifiedNumberFormatOptionsNotation = 'standard' | 'scientific' | 'engineering' | 'compact'; | ||
export declare type UnifiedNumberFormatOptionsSignDisplay = 'auto' | 'always' | 'never' | 'exceptZero'; | ||
export declare type UnifiedNumberFormatOptionsUnitDisplay = 'long' | 'short' | 'narrow'; |
@@ -452,2 +452,18 @@ | ||
export declare type UnifiedNumberFormatOptionsCompactDisplay = 'short' | 'long'; | ||
export declare type UnifiedNumberFormatOptionsCurrencyDisplay = 'symbol' | 'code' | 'name' | 'narrowSymbol'; | ||
export declare type UnifiedNumberFormatOptionsCurrencySign = 'standard' | 'accounting'; | ||
export declare type UnifiedNumberFormatOptionsLocaleMatcher = 'lookup' | 'best fit'; | ||
export declare type UnifiedNumberFormatOptionsNotation = 'standard' | 'scientific' | 'engineering' | 'compact'; | ||
export declare type UnifiedNumberFormatOptionsSignDisplay = 'auto' | 'always' | 'never' | 'exceptZero'; | ||
export declare type UnifiedNumberFormatOptionsStyle = 'decimal' | 'percent' | 'currency' | 'unit'; | ||
export declare type UnifiedNumberFormatOptionsUnitDisplay = 'long' | 'short' | 'narrow'; | ||
declare type Unit = 'second' | 'minute' | 'hour' | 'day' | 'week' | 'month' | 'quarter' | 'year'; | ||
@@ -454,0 +470,0 @@ |
import { LocaleData } from './types'; | ||
import { NumberInternalSlots } from './number-types'; | ||
export declare type UnifiedNumberFormatLocaleData = LocaleData<NumberInternalSlots>; | ||
export declare type UnifiedNumberFormatOptionsLocaleMatcher = 'lookup' | 'best fit'; | ||
export declare type UnifiedNumberFormatOptionsStyle = 'decimal' | 'percent' | 'currency' | 'unit'; | ||
export declare type UnifiedNumberFormatOptionsCompactDisplay = 'short' | 'long'; | ||
export declare type UnifiedNumberFormatOptionsCurrencyDisplay = 'symbol' | 'code' | 'name' | 'narrowSymbol'; | ||
export declare type UnifiedNumberFormatOptionsCurrencySign = 'standard' | 'accounting'; | ||
export declare type UnifiedNumberFormatOptionsNotation = 'standard' | 'scientific' | 'engineering' | 'compact'; | ||
export declare type UnifiedNumberFormatOptionsSignDisplay = 'auto' | 'always' | 'never' | 'exceptZero'; | ||
export declare type UnifiedNumberFormatOptionsUnitDisplay = 'long' | 'short' | 'narrow'; |
{ | ||
"name": "@formatjs/intl-utils", | ||
"version": "2.1.0", | ||
"version": "2.2.0", | ||
"description": "Smartly determine best unit for relative time format", | ||
@@ -39,3 +39,3 @@ "keywords": [ | ||
"license": "MIT", | ||
"gitHead": "86f218a78e66f003e35d4807842102d6ff670af9" | ||
"gitHead": "ffdeb5d3990a26ead4a2c85acab25138d9b0ed44" | ||
} |
@@ -5,1 +5,26 @@ import {LocaleData} from './types'; | ||
export type UnifiedNumberFormatLocaleData = LocaleData<NumberInternalSlots>; | ||
export type UnifiedNumberFormatOptionsLocaleMatcher = 'lookup' | 'best fit'; | ||
export type UnifiedNumberFormatOptionsStyle = | ||
| 'decimal' | ||
| 'percent' | ||
| 'currency' | ||
| 'unit'; | ||
export type UnifiedNumberFormatOptionsCompactDisplay = 'short' | 'long'; | ||
export type UnifiedNumberFormatOptionsCurrencyDisplay = | ||
| 'symbol' | ||
| 'code' | ||
| 'name' | ||
| 'narrowSymbol'; | ||
export type UnifiedNumberFormatOptionsCurrencySign = 'standard' | 'accounting'; | ||
export type UnifiedNumberFormatOptionsNotation = | ||
| 'standard' | ||
| 'scientific' | ||
| 'engineering' | ||
| 'compact'; | ||
export type UnifiedNumberFormatOptionsSignDisplay = | ||
| 'auto' | ||
| 'always' | ||
| 'never' | ||
| 'exceptZero'; | ||
export type UnifiedNumberFormatOptionsUnitDisplay = 'long' | 'short' | 'narrow'; |
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
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
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
204178
5151
1