Socket
Socket
Sign inDemoInstall

@formatjs/intl-utils

Package Overview
Dependencies
Maintainers
3
Versions
64
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@formatjs/intl-utils - npm Package Compare versions

Comparing version 2.1.0 to 2.2.0

11

CHANGELOG.md

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

4

package.json
{
"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';
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