Skip to content

Commit 5ce0e6f

Browse files
authored
Merge pull request #64 from posthtml/milestone-0.8.1
Milestone 0.8.1
2 parents 9676edd + 67a337b commit 5ce0e6f

5 files changed

Lines changed: 19 additions & 7 deletions

File tree

.github/workflows/nodejs.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ jobs:
1515
strategy:
1616
fail-fast: false
1717
matrix:
18-
node: [12, 14]
18+
node: [12, 14, 16]
1919
os: [ubuntu-latest]
2020

2121
steps:

changelog.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,14 @@
1+
## <small>0.8.1 (2021-05-05)</small>
2+
3+
* ci: add node 16 ([58c6740](https://github.com/posthtml/posthtml-parser/commit/58c6740))
4+
* perf: types content ([e9f59a2](https://github.com/posthtml/posthtml-parser/commit/e9f59a2))
5+
* perf: types content ([87b2a82](https://github.com/posthtml/posthtml-parser/commit/87b2a82))
6+
7+
8+
19
## 0.8.0 (2021-04-16)
210

11+
* 0.8.0 ([9676edd](https://github.com/posthtml/posthtml-parser/commit/9676edd))
312
* ci: drop support for node 10 (found not to be working) ([585d552](https://github.com/posthtml/posthtml-parser/commit/585d552))
413
* build: add prepare script ([1dc46fc](https://github.com/posthtml/posthtml-parser/commit/1dc46fc))
514

package-lock.json

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "posthtml-parser",
3-
"version": "0.8.0",
3+
"version": "0.8.1",
44
"description": "Parse HTML/XML to PostHTMLTree",
55
"license": "MIT",
66
"repository": "posthtml/posthtml-parser",

types/index.d.ts

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,12 +14,15 @@ export type Options = {
1414
directives?: Directive[];
1515
} & ParserOptions;
1616

17-
export type Node = NodeText | NodeTag;
17+
export type Tag = string | boolean;
18+
export type Attributes = Record<string, string>;
19+
export type Content = NodeText | Node[];
20+
1821
export type NodeText = string;
1922
export type NodeTag = {
20-
tag?: string | boolean;
23+
tag?: Tag;
2124
attrs?: Attributes;
22-
content?: Node[];
25+
content?: Content;
2326
};
2427

25-
export type Attributes = Record<string, string>;
28+
export type Node = NodeText | NodeTag;

0 commit comments

Comments
 (0)