Skip to content

Commit aaab038

Browse files
authored
Merge pull request #360 from posthtml/milestone-0.16.0
Milestone 0.16.0
2 parents bde5a2d + 395d5cf commit aaab038

File tree

7 files changed

+40
-27
lines changed

7 files changed

+40
-27
lines changed

.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: [10, 12, 14]
18+
node: [12, 14, 16]
1919
os: [ubuntu-latest]
2020

2121
steps:

changelog.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,18 @@
1+
## 0.16.0 (2021-06-03)
2+
3+
* ci: drop support old node ([5f85311](https://github.com/posthtml/posthtml/commit/5f85311))
4+
* build: update depdev ([4d1a12f](https://github.com/posthtml/posthtml/commit/4d1a12f))
5+
* build(deps): bump handlebars from 4.7.6 to 4.7.7 ([0473fcb](https://github.com/posthtml/posthtml/commit/0473fcb))
6+
* build(deps): bump hosted-git-info from 2.8.8 to 2.8.9 ([c53be65](https://github.com/posthtml/posthtml/commit/c53be65))
7+
* build(deps): bump lodash from 4.17.20 to 4.17.21 ([3e73913](https://github.com/posthtml/posthtml/commit/3e73913))
8+
* test: fix match content false ([b07aa0b](https://github.com/posthtml/posthtml/commit/b07aa0b))
9+
* Update readme.md ([dc74d4f](https://github.com/posthtml/posthtml/commit/dc74d4f))
10+
11+
12+
113
## <small>0.15.2 (2021-04-13)</small>
214

15+
* 0.15.2 ([64a1aeb](https://github.com/posthtml/posthtml/commit/64a1aeb))
316
* build: update dependencies ([a7a5d59](https://github.com/posthtml/posthtml/commit/a7a5d59))
417
* build(deps): bump ini from 1.3.5 to 1.3.8 ([919a412](https://github.com/posthtml/posthtml/commit/919a412))
518
* build(deps): bump y18n from 4.0.0 to 4.0.1 ([0d8d16e](https://github.com/posthtml/posthtml/commit/0d8d16e))

lib/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ const pkg = require('../package.json')
22
const Api = require('./api.js')
33

44
let { default: parser } = require('posthtml-parser')
5-
let render = require('posthtml-render')
5+
let { default: render } = require('posthtml-render')
66

77
/**
88
* @author Ivan Voischev (@voischev),

package-lock.json

Lines changed: 18 additions & 18 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "posthtml",
3-
"version": "0.15.2",
3+
"version": "0.16.0",
44
"description": "HTML/XML processor",
55
"keywords": [
66
"html",
@@ -20,11 +20,11 @@
2020
"lib"
2121
],
2222
"engines": {
23-
"node": ">=10.0.0"
23+
"node": ">=12.0.0"
2424
},
2525
"dependencies": {
26-
"posthtml-parser": "^0.7.2",
27-
"posthtml-render": "^1.3.1"
26+
"posthtml-parser": "^0.9.0",
27+
"posthtml-render": "^2.0.2"
2828
},
2929
"devDependencies": {
3030
"@commitlint/cli": "^11.0.0",

test/api.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -238,8 +238,8 @@ describe('API', () => {
238238
})
239239

240240
it('false', done => {
241-
const html = '<div><img><header><div></div></header></div>'
242-
const reference = '<div><header></header></div>'
241+
const html = '<div><img><section><div></div></section></div>'
242+
const reference = '<div></div>'
243243

244244
test(html, reference, plugin, {}, done)
245245

test/parser.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ const { it, describe } = require('mocha')
55
const { expect } = require('chai')
66

77
const { default: parser } = require('posthtml-parser')
8-
const render = require('posthtml-render')
8+
const { default: render } = require('posthtml-render')
99

1010
const html = readFileSync(
1111
path.resolve(__dirname, 'templates/parser.html'), 'utf8'

0 commit comments

Comments
 (0)