Skip to content

Commit 9c8dd6f

Browse files
author
Zibi Braniecki
committed
Add changelog and bump jsdom version
1 parent 5ebc8e2 commit 9c8dd6f

File tree

3 files changed

+20
-4
lines changed

3 files changed

+20
-4
lines changed

fluent-dom/CHANGELOG.md

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,22 @@
22

33
## Unreleased
44

5+
- Extend formatWithFallback to accept async iterator (#46)
6+
- Documented all methods
7+
- Removed `DOMLocalization.prototype.translateRoot` method
8+
- Simplified initial version of DOM Overlays (to be extended in 0.2) (#71)
9+
- Only children of the white-listed types are allowed now. It's not possible
10+
anymore to put elements of other types in the source HTML to make exceptions.
11+
- The identity of the source element's children is explicitly not kept
12+
anymore. This allows us to treat the translation DocumentFragment as the
13+
reference for iteration over child nodes.
14+
- The overlay function is also no longer recursive. Any nested HTML
15+
will be lost and only its textContent will be preserved.
16+
- Added `data-l10n-attrs` to allow for whitelisting localizable attributes (#70)
17+
- Added a guard to prevent registering nested roots (#72)
18+
- Added a guard to prevent leaking attributes between translations (#73)
19+
- Added a performance optimization coalescing all translations from mutations
20+
per animation frame (#113)
521
-
622

723
## fluent-dom 0.0.1

fluent-dom/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,6 @@
3939
"node": ">=8.9.0"
4040
},
4141
"devDependencies": {
42-
"jsdom": "^9.12.0"
42+
"jsdom": "^11.6.2"
4343
}
4444
}

fluent-dom/test/__setup.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
'use strict';
22

3-
const jsdom = require('jsdom').jsdom;
3+
const JSDOM = require('jsdom').JSDOM;
44

5-
global.document = jsdom('');
6-
global.window = document.defaultView;
5+
global.window = new JSDOM('').window;
6+
global.document = global.window.document;
77
Object.keys(document.defaultView).forEach(property => {
88
if (typeof global[property] === 'undefined') {
99
global[property] = document.defaultView[property];

0 commit comments

Comments
 (0)