Skip to content

Commit 9466f27

Browse files
committed
@fluent/sequence 0.3.0
1 parent c5eef80 commit 9466f27

File tree

6 files changed

+19
-15
lines changed

6 files changed

+19
-15
lines changed

fluent-sequence/.esdoc.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"source": "./src",
3-
"destination": "../html/fluent-sequence",
3+
"destination": "../html/sequence",
44
"plugins": [
55
{
66
"name": "esdoc-standard-plugin"

fluent-sequence/.gitignore

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
fluent-sequence.js
2-
compat.js
1+
/index.js
2+
/compat.js

fluent-sequence/CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
# Changelog
22

3+
## @fluent/sequence 0.3.0 (July 25, 2019)
4+
5+
- Rename `fluent-sequence` to `@fluent/sequence`.
6+
37
## fluent-sequence 0.3.0 (July 25, 2019)
48

59
- Deprecate `fluent-sequence` in favor of `@fluent/sequence`.

fluent-sequence/README.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,18 @@
1-
# fluent-sequence
1+
# @fluent/sequence
22

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

88

99
## Installation
1010

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

15-
npm install fluent-sequence
15+
npm install @fluent/sequence
1616

1717

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

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

3333
```js
34-
import {mapBundleSync} from "fluent-sequence";
34+
import {mapBundleSync} from "@fluent/sequence";
3535

3636
function formatString(id, args) {
3737
// contexts is a negotiated iterable of FluentBundle instances.

fluent-sequence/makefile

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
1-
PACKAGE := fluent-sequence
1+
PACKAGE := @fluent/sequence
22
GLOBAL := FluentSequence
33

44
include ../common.mk
55

6-
build: $(PACKAGE).js compat.js
6+
build: index.js compat.js
77

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

2626
clean:
27-
@rm -f $(PACKAGE).js compat.js
27+
@rm -f index.js compat.js
2828
@rm -rf .nyc_output coverage
2929
@echo -e " $(OK) clean"

fluent-sequence/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"name": "fluent-sequence",
2+
"name": "@fluent/sequence",
33
"description": "Manage ordered sequences of FluentBundles",
44
"version": "0.3.0",
55
"homepage": "https://projectfluent.org",
@@ -18,7 +18,7 @@
1818
"directories": {
1919
"lib": "./src"
2020
},
21-
"main": "./fluent-sequence.js",
21+
"main": "./index.js",
2222
"module": "./src/index.js",
2323
"repository": {
2424
"type": "git",

0 commit comments

Comments
 (0)