Skip to content

Commit 333a12f

Browse files
committed
Update docs. Bump version.
1 parent 16ca866 commit 333a12f

File tree

2 files changed

+46
-33
lines changed

2 files changed

+46
-33
lines changed

docs/07_version_history.md

Lines changed: 45 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,18 @@
11
# Version history
22

3+
## 2.2.0
4+
* SAXParser (by [@RReverser](https://github.com/RReverser))
5+
* Fixed: Handling of `\n` in `<pre>`, `<textarea>` and `<listing>`.
6+
* Fixed: Tag names and attribute names adjustment in foreign content (GH [#99](https://github.com/inikulin/parse5/issues/99)).
7+
* Fixed: Handling of `<image>`.
8+
9+
* Latest spec changes
10+
* Updated: `<isindex>` now don't have special handling (GH [#122](https://github.com/inikulin/parse5/issues/122)).
11+
* Updated: Adoption agency algorithm now preserves lexical order of text nodes (GH [#129](https://github.com/inikulin/parse5/issues/129)).
12+
* Updated: `<menuitem>` now behaves like `<option>`.
13+
14+
* Fixed: Element nesting corrections now take namespaces into consideration.
15+
316
## 2.1.5
417
* Fixed: ParserStream accidentally hangs up on scripts (GH [#101](https://github.com/inikulin/parse5/issues/101)).
518

@@ -17,7 +30,7 @@
1730
(by [@yyx990803](https://github.com/yyx990803)).
1831

1932
## 2.1.0
20-
* Add: location info for attributes (GH [#43](https://github.com/inikulin/parse5/issues/43)) (by [@sakagg](https://github.com/sakagg)
33+
* Added: location info for attributes (GH [#43](https://github.com/inikulin/parse5/issues/43)) (by [@sakagg](https://github.com/sakagg)
2134
and [@yyx990803](https://github.com/yyx990803)).
2235
* Fixed: `parseFragment` with `locationInfo` regression when parsing `<template>`(GH [#90](https://github.com/inikulin/parse5/issues/90))
2336
(by [@yyx990803](https://github.com/yyx990803)).
@@ -29,89 +42,89 @@
2942
* Fixed: `parseFragment` arguments processing (GH [#82](https://github.com/inikulin/parse5/issues/82)).
3043

3144
## 2.0.0
32-
* Add: [ParserStream](https://github.com/inikulin/parse5/wiki/Documentation#parse5+ParserStream) with the scripting support. (GH [#26](https://github.com/inikulin/parse5/issues/26)).
33-
* Add: [SerializerStream](https://github.com/inikulin/parse5/wiki/Documentation#parse5+SerializerStream). (GH [#26](https://github.com/inikulin/parse5/issues/26)).
34-
* Add: Line/column location info. (GH [#67](https://github.com/inikulin/parse5/issues/67)).
45+
* Added: [ParserStream](https://github.com/inikulin/parse5/wiki/Documentation#parse5+ParserStream) with the scripting support. (GH [#26](https://github.com/inikulin/parse5/issues/26)).
46+
* Added: [SerializerStream](https://github.com/inikulin/parse5/wiki/Documentation#parse5+SerializerStream). (GH [#26](https://github.com/inikulin/parse5/issues/26)).
47+
* Added: Line/column location info. (GH [#67](https://github.com/inikulin/parse5/issues/67)).
3548
* Update (**breaking**): Location info properties `start` and `end` were renamed to `startOffset` and `endOffset` respectively.
3649
* Update (**breaking**): `SimpleApiParser` was renamed to [SAXParser](https://github.com/inikulin/parse5/wiki/Documentation#parse5+SAXParser).
3750
* Update (**breaking**): [SAXParser](https://github.com/inikulin/parse5/wiki/Documentation#parse5+SAXParser) is the [transform stream](https://nodejs.org/api/stream.html#stream_class_stream_transform)
3851
now. (GH [#26](https://github.com/inikulin/parse5/issues/26)).
3952
* Update (**breaking**): [SAXParser](https://github.com/inikulin/parse5/wiki/Documentation#parse5+SAXParser) handler subscription is done via events now.
40-
* Add: [SAXParser.stop()](https://github.com/inikulin/parse5/wiki/Documentation#parse5+SAXParser+stop). (GH [#47](https://github.com/inikulin/parse5/issues/47)).
53+
* Added: [SAXParser.stop()](https://github.com/inikulin/parse5/wiki/Documentation#parse5+SAXParser+stop). (GH [#47](https://github.com/inikulin/parse5/issues/47)).
4154
* Add (**breaking**): [parse5.parse()](https://github.com/inikulin/parse5/wiki/Documentation#parse5+parse) and [parse5.parseFragment()](https://github.com/inikulin/parse5/wiki/Documentation#parse5+parseFragment)
4255
methods as replacement for the `Parser` class.
4356
* Add (**breaking**): [parse5.serialize()](https://github.com/inikulin/parse5/wiki/Documentation#parse5+serialized) method as replacement for the `Serializer` class.
44-
* Update: parsing algorithm was updated with the latest [HTML spec](https://html.spec.whatwg.org/) changes.
45-
* Remove (**breaking**): `decodeHtmlEntities` and `encodeHtmlEntities` options. (GH [#75](https://github.com/inikulin/parse5/issues/75)).
57+
* Updated: parsing algorithm was updated with the latest [HTML spec](https://html.spec.whatwg.org/) changes.
58+
* Removed (**breaking**): `decodeHtmlEntities` and `encodeHtmlEntities` options. (GH [#75](https://github.com/inikulin/parse5/issues/75)).
4659
* Add (**breaking**): [TreeAdapter.setTemplateContent()](https://github.com/inikulin/parse5/wiki/Documentation#TreeAdapter.setTemplateContent) and [TreeAdapter.getTemplateContent()](https://github.com/inikulin/parse5/wiki/Documentation#TreeAdapter.getTemplateContent) methods. (GH [#78](https://github.com/inikulin/parse5/issues/78)).
4760
* Update (**breaking**): `default` tree adapter now stores `<template>` content in `template.content` property instead of `template.childNodes[0]`.
4861

4962
## 1.5.1
50-
* Fix: Qualified tag name emission in Serializer (GH [#79](https://github.com/inikulin/parse5/issues/79)).
63+
* Fixed: Qualified tag name emission in Serializer (GH [#79](https://github.com/inikulin/parse5/issues/79)).
5164

5265
## 1.5.0
53-
* Add: Location info for the element start and end tags (by [@sakagg](https://github.com/sakagg)).
66+
* Added: Location info for the element start and end tags (by [@sakagg](https://github.com/sakagg)).
5467

5568
## 1.4.2
56-
* Fix: htmlparser2 tree adapter `DocumentType.data` property rendering (GH [#45](https://github.com/inikulin/parse5/issues/45)).
69+
* Fixed: htmlparser2 tree adapter `DocumentType.data` property rendering (GH [#45](https://github.com/inikulin/parse5/issues/45)).
5770

5871
## 1.4.1
59-
* Fix: Location info handling for the implicitly generated `<html>` and `<body>` elements (GH [#44](https://github.com/inikulin/parse5/issues/44)).
72+
* Fixed: Location info handling for the implicitly generated `<html>` and `<body>` elements (GH [#44](https://github.com/inikulin/parse5/issues/44)).
6073

6174
## 1.4.0
62-
* Add: Parser [decodeHtmlEntities](https://github.com/inikulin/parse5#optionsdecodehtmlentities) option.
63-
* Add: SimpleApiParser [decodeHtmlEntities](https://github.com/inikulin/parse5#optionsdecodehtmlentities-1) option.
64-
* Add: Parser [locationInfo](https://github.com/inikulin/parse5#optionslocationinfo) option.
65-
* Add: SimpleApiParser [locationInfo](https://github.com/inikulin/parse5#optionslocationinfo-1) option.
75+
* Added: Parser [decodeHtmlEntities](https://github.com/inikulin/parse5#optionsdecodehtmlentities) option.
76+
* Added: SimpleApiParser [decodeHtmlEntities](https://github.com/inikulin/parse5#optionsdecodehtmlentities-1) option.
77+
* Added: Parser [locationInfo](https://github.com/inikulin/parse5#optionslocationinfo) option.
78+
* Added: SimpleApiParser [locationInfo](https://github.com/inikulin/parse5#optionslocationinfo-1) option.
6679

6780
## 1.3.2
68-
* Fix: `<form>` processing in `<template>` (GH [#40](https://github.com/inikulin/parse5/issues/40)).
81+
* Fixed: `<form>` processing in `<template>` (GH [#40](https://github.com/inikulin/parse5/issues/40)).
6982

7083
## 1.3.1
71-
* Fix: text node in `<template>` serialization problem with custom tree adapter (GH [#38](https://github.com/inikulin/parse5/issues/38)).
84+
* Fixed: text node in `<template>` serialization problem with custom tree adapter (GH [#38](https://github.com/inikulin/parse5/issues/38)).
7285

7386
## 1.3.0
74-
* Add: Serializer `encodeHtmlEntities` option.
87+
* Added: Serializer `encodeHtmlEntities` option.
7588

7689
## 1.2.0
77-
* Add: `<template>` support
90+
* Added: `<template>` support
7891
* `parseFragment` now uses `<template>` as default `contextElement`. This leads to the more "forgiving" parsing manner.
7992
* `TreeSerializer` was renamed to `Serializer`. However, serializer is accessible as `parse5.TreeSerializer` for backward compatibility .
8093

8194
## 1.1.6
82-
* Fix: apply latest changes to the `htmlparser2` tree format (DOM Level1 node emulation).
95+
* Fixed: apply latest changes to the `htmlparser2` tree format (DOM Level1 node emulation).
8396

8497
## 1.1.5
85-
* Add: [jsdom](https://github.com/tmpvar/jsdom)-specific parser with scripting support. Undocumented for `jsdom` internal use only.
98+
* Added: [jsdom](https://github.com/tmpvar/jsdom)-specific parser with scripting support. Undocumented for `jsdom` internal use only.
8699

87100
## 1.1.4
88-
* Add: logo
89-
* Fix: use fake `document` element for fragment parsing (required by [jsdom](https://github.com/tmpvar/jsdom)).
101+
* Added: logo
102+
* Fixed: use fake `document` element for fragment parsing (required by [jsdom](https://github.com/tmpvar/jsdom)).
90103

91104
## 1.1.3
92105
* Development files (e.g. `.travis.yml`, `.editorconfig`) are removed from NPM package.
93106

94107
## 1.1.2
95-
* Fix: crash on Linux due to upper-case leading character in module name used in `require()`.
108+
* Fixed: crash on Linux due to upper-case leading character in module name used in `require()`.
96109

97110
## 1.1.1
98-
* Add: [SimpleApiParser](https://github.com/inikulin/parse5/#class-simpleapiparser).
99-
* Fix: new line serialization in `<pre>`.
100-
* Fix: `SYSTEM`-only `DOCTYPE` serialization.
101-
* Fix: quotes serialization in `DOCTYPE` IDs.
111+
* Added: [SimpleApiParser](https://github.com/inikulin/parse5/#class-simpleapiparser).
112+
* Fixed: new line serialization in `<pre>`.
113+
* Fixed: `SYSTEM`-only `DOCTYPE` serialization.
114+
* Fixed: quotes serialization in `DOCTYPE` IDs.
102115

103116
## 1.0.0
104117
* First stable release, switch to semantic versioning.
105118

106119
## 0.8.3
107-
* Fix: siblings calculation bug in `appendChild` in `htmlparser2` tree adapter.
120+
* Fixed: siblings calculation bug in `appendChild` in `htmlparser2` tree adapter.
108121

109122
## 0.8.1
110-
* Add: [TreeSerializer](https://github.com/inikulin/parse5/#class-serializer).
111-
* Add: [htmlparser2 tree adapter](https://github.com/inikulin/parse5/#-treeadaptershtmlparser2).
123+
* Added: [TreeSerializer](https://github.com/inikulin/parse5/#class-serializer).
124+
* Added: [htmlparser2 tree adapter](https://github.com/inikulin/parse5/#-treeadaptershtmlparser2).
112125

113126
## 0.6.1
114-
* Fix: incorrect `<menuitem>` handling in `<body>`.
127+
* Fixed: incorrect `<menuitem>` handling in `<body>`.
115128

116129
## 0.6.0
117130
* Initial release.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "parse5",
33
"description": "WHATWG HTML5 specification-compliant, fast and ready for production HTML parsing/serialization toolset for Node.js",
4-
"version": "2.1.5",
4+
"version": "2.2.0",
55
"author": "Ivan Nikulin <[email protected]> (https://github.com/inikulin)",
66
"contributors": [
77
"Alan Clarke (https://github.com/alanclarke)",

0 commit comments

Comments
 (0)