Skip to content

Commit

Permalink
@fluent/sequence 0.3.0
Browse files Browse the repository at this point in the history
  • Loading branch information
stasm committed Jul 25, 2019
1 parent c5eef80 commit 9466f27
Show file tree
Hide file tree
Showing 6 changed files with 19 additions and 15 deletions.
2 changes: 1 addition & 1 deletion fluent-sequence/.esdoc.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"source": "./src",
"destination": "../html/fluent-sequence",
"destination": "../html/sequence",
"plugins": [
{
"name": "esdoc-standard-plugin"
Expand Down
4 changes: 2 additions & 2 deletions fluent-sequence/.gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
fluent-sequence.js
compat.js
/index.js
/compat.js
4 changes: 4 additions & 0 deletions fluent-sequence/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Changelog

## @fluent/sequence 0.3.0 (July 25, 2019)

- Rename `fluent-sequence` to `@fluent/sequence`.

## fluent-sequence 0.3.0 (July 25, 2019)

- Deprecate `fluent-sequence` in favor of `@fluent/sequence`.
Expand Down
12 changes: 6 additions & 6 deletions fluent-sequence/README.md
Original file line number Diff line number Diff line change
@@ -1,18 +1,18 @@
# fluent-sequence
# @fluent/sequence

`fluent-sequence` provides mapping functions from string identifiers to
`@fluent/sequence` provides mapping functions from string identifiers to
`FluentBundle` instances taken from synchronous or asynchronous sequences.
It's part of Project Fluent, a localization framework designed to unleash the
expressive power of the natural language.


## Installation

`fluent-sequence` can be used both on the client-side and the server-side.
`@fluent/sequence` can be used both on the client-side and the server-side.
You can install it from the npm registry or use it as a standalone script (as
the `FluentSequence` global).

npm install fluent-sequence
npm install @fluent/sequence


## How to use
Expand All @@ -21,7 +21,7 @@ An ordered iterable of `FluentBundle` instances can represent the current
negotiated fallback chain of languages. This iterable can be used to find the
best existing translation for a given identifier.

`fluent-sequence` provides two mapping functions: `mapBundleSync`, and
`@fluent/sequence` provides two mapping functions: `mapBundleSync`, and
`mapBundleAsync`. They can be used to find the first `FluentBundle` in the
given iterable which contains the translation with the given identifier. If
the iterable is ordered according to the result of a language negotiation the
Expand All @@ -31,7 +31,7 @@ A simple function which formats translations based on the identifier might
be implemented as follows:

```js
import {mapBundleSync} from "fluent-sequence";
import {mapBundleSync} from "@fluent/sequence";

function formatString(id, args) {
// contexts is a negotiated iterable of FluentBundle instances.
Expand Down
8 changes: 4 additions & 4 deletions fluent-sequence/makefile
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
PACKAGE := fluent-sequence
PACKAGE := @fluent/sequence
GLOBAL := FluentSequence

include ../common.mk

build: $(PACKAGE).js compat.js
build: index.js compat.js

$(PACKAGE).js: $(SOURCES)
index.js: $(SOURCES)
@rollup $(CURDIR)/src/index.js \
--config $(ROOT)/bundle_config.js \
--banner "/* $(PACKAGE)@$(VERSION) */" \
Expand All @@ -24,6 +24,6 @@ compat.js: $(SOURCES)
@echo -e " $(OK) $@ built"

clean:
@rm -f $(PACKAGE).js compat.js
@rm -f index.js compat.js
@rm -rf .nyc_output coverage
@echo -e " $(OK) clean"
4 changes: 2 additions & 2 deletions fluent-sequence/package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "fluent-sequence",
"name": "@fluent/sequence",
"description": "Manage ordered sequences of FluentBundles",
"version": "0.3.0",
"homepage": "https://projectfluent.org",
Expand All @@ -18,7 +18,7 @@
"directories": {
"lib": "./src"
},
"main": "./fluent-sequence.js",
"main": "./index.js",
"module": "./src/index.js",
"repository": {
"type": "git",
Expand Down

0 comments on commit 9466f27

Please sign in to comment.