Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@fluent/bundle

Package Overview
Dependencies
Maintainers
6
Versions
10
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@fluent/bundle - npm Package Compare versions

Comparing version 0.16.1 to 0.17.0

esm/package.json

8

CHANGELOG.md
# 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 @@

14

esm/bundle.d.ts

@@ -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`.

4

esm/scope.d.ts

@@ -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][],

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