UNPKG

2.46 kBMarkdownView Raw
1# Change Log
2
3All notable changes to this project will be documented in this file.
4
5The format is based on [Keep a Changelog](http://keepachangelog.com/)
6and this project adheres to [Semantic Versioning](http://semver.org/).
7
8<!-- ## Unreleased -->
9<!-- Add new, unreleased changes here. -->
10
11## [v3.0.1] (2018-06-28)
12- Fix NPM audit warnings.
13
14## [v3.0.0](https://github.com/Polymer/dom5/tree/v3.0.0) (2018-02-12)
15- [BREAKING] Updated to parse5 v4. See:
16 - http://inikulin.github.io/parse5/#4-0-0 and
17 http://inikulin.github.io/parse5/#3-0-0
18 - Most users will not be affected by these changes.
19- [BREAKING] Minimum supported version of node updated to v6 or above.
20- [Upcoming breaking change] We've redesigned our DOM walking API around
21 iteration rather than callbacks. Import `'dom5/lib/index-next.js'` to receive
22 the new API. This will be the API exposed in the next major version.
23 Specifically, the `nodeWalk`, `nodeWalkAll`, `nodeWalkPrior`,
24 `nodeWalkAllPrior`, and `nodeWalkAncestors` APIs are replaced by `depthFirst`,
25 `prior`, and `ancestors` APIs, which simply iterators now. In addition
26 `queryAll` will return an iterator rather than an array.
27- Moved development-only dependencies in package.json to devDependencies.
28<!-- Add new, unreleased changes here. -->
29
30## [v2.3.0](https://github.com/Polymer/dom5/tree/v2.3.0) (2017-05-03)
31- **Added** `insertAfter()` function
32
33## [v2.2.0](https://github.com/Polymer/dom5/tree/v2.2.0) (2017-04-14)
34- **Added** `removeFakeRootElements` and `removeNodeSaveChildren` functions.
35
36## [v2.1.0](https://github.com/Polymer/dom5/tree/v2.1.0) (2017-01-13)
37- **Added** Option to node traversal methods to traverse templates
38
39## [v2.0.1](https://github.com/Polymer/dom5/tree/v2.0.1) (2016-11-01)
40- TypeScript type definition fixes
41
42## [v2.0.0](https://github.com/Polymer/dom5/tree/v2.0.0) (2016-09-23)
43- Upgraded to `parse5@^v2.2.1`.
44- (*breaking*) Because parse5 2.x correctly handles `<template>` elements,
45 the nodeWalk* and query* functions will no longer return results from within
46 `<template>`s. Code that relied on this must explicitly walk into template
47 content documents.
48- (*breaking*) Removed `parse()`, `parseFragment()` and `serialize()`. Use
49 `parse5.parse()`, etc., instead.
50- Nodes can be appended to parents with a `null` `childNodes` array.
51- DocumentFragments that are appended have their `childNodes` array cleared,
52 rather than getting a new empty `childNodes` instance.