@fluent/bundle
Advanced tools
Comparing version 0.16.1 to 0.17.0
# Changelog | ||
## @fluent/bundle 0.17.0 (September 13, 2021) | ||
- Remove `"type": "commonjs"` from the package's root `package.json`, but add | ||
`"type": "module"` to the `esm/` directory. | ||
([#556](https://github.com/projectfluent/fluent.js/pull/556), | ||
[#567](https://github.com/projectfluent/fluent.js/pull/567)) | ||
- Set Node.js 12 as the minimum supported version ([#557](https://github.com/projectfluent/fluent.js/pull/557)) | ||
## @fluent/bundle 0.16.1 (April 9, 2021) | ||
@@ -4,0 +12,0 @@ |
@@ -18,3 +18,15 @@ import { FluentResource } from "./resource.js"; | ||
_transform: TextTransform; | ||
_intls: WeakMap<object, Record<string, object>>; | ||
_intls: WeakMap<{ | ||
(locales?: string | string[] | undefined, options?: Intl.NumberFormatOptions | undefined): Intl.NumberFormat; | ||
new (locales?: string | string[] | undefined, options?: Intl.NumberFormatOptions | undefined): Intl.NumberFormat; | ||
supportedLocalesOf(locales: string | string[], options?: Intl.NumberFormatOptions | undefined): string[]; | ||
} | { | ||
(locales?: string | string[] | undefined, options?: Intl.DateTimeFormatOptions | undefined): Intl.DateTimeFormat; | ||
new (locales?: string | string[] | undefined, options?: Intl.DateTimeFormatOptions | undefined): Intl.DateTimeFormat; | ||
supportedLocalesOf(locales: string | string[], options?: Intl.DateTimeFormatOptions | undefined): string[]; | ||
} | { | ||
(locales?: string | string[] | undefined, options?: Intl.PluralRulesOptions | undefined): Intl.PluralRules; | ||
new (locales?: string | string[] | undefined, options?: Intl.PluralRulesOptions | undefined): Intl.PluralRules; | ||
supportedLocalesOf(locales: string | string[], options?: Intl.PluralRulesOptions | undefined): string[]; | ||
}, Record<string, Intl.NumberFormat | Intl.DateTimeFormat | Intl.PluralRules>>; | ||
/** | ||
@@ -21,0 +33,0 @@ * Create an instance of `FluentBundle`. |
@@ -20,3 +20,5 @@ import { FluentBundle, FluentVariable } from "./bundle.js"; | ||
reportError(error: Error): void; | ||
memoizeIntlObject<ObjectT extends object, OptionsT>(ctor: new (locales: Array<string>, opts: OptionsT) => ObjectT, opts: OptionsT): ObjectT; | ||
memoizeIntlObject(ctor: typeof Intl.NumberFormat, opts: Intl.NumberFormatOptions): Intl.NumberFormat; | ||
memoizeIntlObject(ctor: typeof Intl.DateTimeFormat, opts: Intl.DateTimeFormatOptions): Intl.DateTimeFormat; | ||
memoizeIntlObject(ctor: typeof Intl.PluralRules, opts: Intl.PluralRulesOptions): Intl.PluralRules; | ||
} |
@@ -1,2 +0,2 @@ | ||
/* @fluent/bundle@0.16.1 */ | ||
/* @fluent/bundle@0.17.0 */ | ||
(function (global, factory) { | ||
@@ -3,0 +3,0 @@ typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports) : |
{ | ||
"name": "@fluent/bundle", | ||
"description": "Localization library for expressive translations.", | ||
"version": "0.16.1", | ||
"version": "0.17.0", | ||
"homepage": "https://projectfluent.org", | ||
@@ -18,3 +18,2 @@ "author": "Mozilla <l10n-drivers@mozilla.org>", | ||
], | ||
"type": "commonjs", | ||
"main": "./index.js", | ||
@@ -43,9 +42,16 @@ "module": "./esm/index.js", | ||
], | ||
"scripts": { | ||
"build": "tsc", | ||
"postbuild": "rollup -c ../rollup.config.mjs", | ||
"docs": "typedoc --options ../typedoc.config.cjs", | ||
"test": "mocha 'test/*_test.js'" | ||
}, | ||
"engines": { | ||
"node": ">=10.0.0" | ||
"node": ">=12.0.0", | ||
"npm": ">=7.0.0" | ||
}, | ||
"devDependencies": { | ||
"@fluent/dedent": "^0.3.0", | ||
"@fluent/dedent": "file:../fluent-dedent", | ||
"sinon": "^4.2.2" | ||
} | ||
} |
@@ -1,2 +0,2 @@ | ||
# @fluent/bundle ![](https://github.com/projectfluent/fluent.js/workflows/@fluent/bundle/badge.svg) | ||
# @fluent/bundle ![](https://github.com/projectfluent/fluent.js/workflows/test/badge.svg) | ||
@@ -3,0 +3,0 @@ `@fluent/bundle` is a JavaScript implementation of [Project Fluent][], |
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
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
133143
21
2736