Skip to content

Commit 92db8e2

Browse files
committed
@fluent/dom 0.5.0
1 parent a15fbec commit 92db8e2

File tree

6 files changed

+20
-16
lines changed

6 files changed

+20
-16
lines changed

fluent-dom/.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-dom",
3+
"destination": "../html/dom",
44
"plugins": [
55
{
66
"name": "esdoc-standard-plugin"

fluent-dom/.gitignore

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

fluent-dom/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/dom 0.5.0 (July 25, 2019)
4+
5+
- Rename `fluent-dom` to `@fluent/dom`.
6+
37
## fluent-dom 0.5.0 (July 25, 2019)
48

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

fluent-dom/README.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,28 +1,28 @@
1-
# fluent-dom
1+
# @fluent/dom
22

3-
`fluent-dom` provides DOM bindings for Project Fluent, a localization
3+
`@fluent/dom` provides DOM bindings for Project Fluent, a localization
44
framework designed to unleash the expressive power of the natural language.
55

66
## Installation
77

8-
`fluent-dom` can be used both on the client-side and the server-side. You
8+
`@fluent/dom` can be used both on the client-side and the server-side. You
99
can install it from the npm registry or use it as a standalone script (as the
1010
`FluentDOM` global).
1111

12-
npm install fluent-dom
12+
npm install @fluent/dom
1313

1414

1515
## How to use
1616

1717
The `DOMLocalization` constructor provides the core functionality of
1818
full-fallback ready message formatting. It uses a lazy-resolved
19-
`FluentBundle` objects from the `fluent` package to format messages.
19+
`FluentBundle` objects from the `@fluent/bundle` package to format messages.
2020

2121
On top of that, `DOMLocalization` can localize any DOMFragment by
2222
identifying localizable elements with `data-l10n-id` and translating them.
2323

2424
```javascript
25-
import { DOMLocalization } from 'fluent-dom'
25+
import { DOMLocalization } from '@fluent/dom'
2626

2727
const l10n = new DOMLocalization(MutationObserver, [
2828
'/browser/main.ftl',
@@ -45,7 +45,7 @@ For imperative uses straight from the JS code, there's also a `Localization`
4545
class that provides just the API needed to format messages in the running code.
4646

4747
```javascript
48-
import { Localization } from 'fluent-dom'
48+
import { Localization } from '@fluent/dom'
4949

5050
function *generateBundles() {
5151
// Some lazy logic for yielding FluentBundles.

fluent-dom/makefile

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
1-
PACKAGE := fluent-dom
1+
PACKAGE := @fluent/dom
22
GLOBAL := FluentDOM
33
DEPS := cached-iterable:CachedIterable
44

55
include ../common.mk
66

7-
build: $(PACKAGE).js compat.js
7+
build: index.js compat.js
88

9-
$(PACKAGE).js: $(SOURCES)
9+
index.js: $(SOURCES)
1010
@rollup $(CURDIR)/src/index.js \
1111
--config $(ROOT)/bundle_config.js \
1212
--banner "/* $(PACKAGE)@$(VERSION) */" \
@@ -27,6 +27,6 @@ compat.js: $(SOURCES)
2727
@echo -e " $(OK) $@ built"
2828

2929
clean:
30-
@rm -f $(PACKAGE).js compat.js
30+
@rm -f index.js compat.js
3131
@rm -rf .nyc_output coverage
3232
@echo -e " $(OK) clean"

fluent-dom/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"name": "fluent-dom",
2+
"name": "@fluent/dom",
33
"version": "0.5.0",
44
"description": "Fluent bindings for DOM",
55
"repository": {
@@ -21,7 +21,7 @@
2121
"directories": {
2222
"lib": "./src"
2323
},
24-
"main": "./fluent-dom.js",
24+
"main": "./index.js",
2525
"module": "./src/index.js",
2626
"keywords": [
2727
"localization",

0 commit comments

Comments
 (0)