File tree 3 files changed +20
-4
lines changed
3 files changed +20
-4
lines changed Original file line number Diff line number Diff line change 2
2
3
3
## Unreleased
4
4
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 )
5
21
- …
6
22
7
23
## fluent-dom 0.0.1
Original file line number Diff line number Diff line change 39
39
"node" : " >=8.9.0"
40
40
},
41
41
"devDependencies" : {
42
- "jsdom" : " ^9.12.0 "
42
+ "jsdom" : " ^11.6.2 "
43
43
}
44
44
}
Original file line number Diff line number Diff line change 1
1
'use strict' ;
2
2
3
- const jsdom = require ( 'jsdom' ) . jsdom ;
3
+ const JSDOM = require ( 'jsdom' ) . JSDOM ;
4
4
5
- global . document = jsdom ( '' ) ;
6
- global . window = document . defaultView ;
5
+ global . window = new JSDOM ( '' ) . window ;
6
+ global . document = global . window . document ;
7
7
Object . keys ( document . defaultView ) . forEach ( property => {
8
8
if ( typeof global [ property ] === 'undefined' ) {
9
9
global [ property ] = document . defaultView [ property ] ;
You can’t perform that action at this time.
0 commit comments