Comparing version 2.0.0 to 3.0.0
@@ -7,2 +7,6 @@ # hstream change log | ||
## 3.0.0 | ||
* Update dependencies. This major version bump is out of caution in case the parsing for the underlying HTML or CSS selector libraries changed. | ||
## 2.0.0 | ||
@@ -9,0 +13,0 @@ |
@@ -115,3 +115,3 @@ var HTMLParser = require('htmlparser2').Parser | ||
// Hopefully this check is good enough to be future proof | ||
if (parser.endIndex === null) parser._updatePosition(2) | ||
if (parser.endIndex === null) parser.updatePosition(2) | ||
queue(slice()) | ||
@@ -118,0 +118,0 @@ } |
{ | ||
"name": "hstream", | ||
"description": "streaming html templates", | ||
"version": "2.0.0", | ||
"author": "Renée Kooi <renee@kooi.me>", | ||
"bugs": { | ||
"url": "https://github.com/stackhtml/hstream/issues" | ||
}, | ||
"dependencies": { | ||
"css-what": "^3.2.1", | ||
"htmlparser2": "^4.0.0", | ||
"through2": "^3.0.1" | ||
}, | ||
"devDependencies": { | ||
"dedent": "^0.7.0", | ||
"hyperstream": "^1.2.2", | ||
"nanobench": "^2.1.1", | ||
"rimraf": "^3.0.0", | ||
"simple-concat": "^1.0.0", | ||
"standard": "^14.0.0", | ||
"tape": "^4.13.0" | ||
}, | ||
"engines": { | ||
"node": ">= 8" | ||
}, | ||
"homepage": "https://github.com/stackhtml/hstream", | ||
"keywords": [ | ||
"html", | ||
"stream", | ||
"template" | ||
], | ||
"license": "Apache-2.0", | ||
"main": "index.js", | ||
"repository": { | ||
"type": "git", | ||
"url": "https://github.com/stackhtml/hstream.git" | ||
}, | ||
"scripts": { | ||
"bench": "node bench/hstream.js", | ||
"compare": "node bench/hyperstream.js > bench/hyperstream.txt && node bench/hstream.js > bench/hstream.txt && nanobench-compare bench/*.txt; rimraf bench/*.txt", | ||
"test": "standard && node test/index.js" | ||
} | ||
"name": "hstream", | ||
"description": "streaming html templates", | ||
"version": "3.0.0", | ||
"author": "Renée Kooi <renee@kooi.me>", | ||
"bugs": { | ||
"url": "https://github.com/stackhtml/hstream/issues" | ||
}, | ||
"dependencies": { | ||
"css-what": "^4.0.0", | ||
"htmlparser2": "^6.0.0", | ||
"through2": "^4.0.2" | ||
}, | ||
"devDependencies": { | ||
"dedent": "^0.7.0", | ||
"hyperstream": "^1.2.2", | ||
"nanobench": "^2.1.1", | ||
"rimraf": "^3.0.0", | ||
"simple-concat": "^1.0.0", | ||
"standard": "^14.0.0", | ||
"tape": "^5.0.0" | ||
}, | ||
"engines": { | ||
"node": ">= 8" | ||
}, | ||
"homepage": "https://github.com/stackhtml/hstream", | ||
"keywords": [ | ||
"html", | ||
"stream", | ||
"template" | ||
], | ||
"license": "Apache-2.0", | ||
"main": "index.js", | ||
"repository": { | ||
"type": "git", | ||
"url": "https://github.com/stackhtml/hstream.git" | ||
}, | ||
"scripts": { | ||
"bench": "node bench/hstream.js", | ||
"compare": "node bench/hyperstream.js > bench/hyperstream.txt && node bench/hstream.js > bench/hstream.txt && nanobench-compare bench/*.txt; rimraf bench/*.txt", | ||
"lint": "standard", | ||
"test": "node test/index.js" | ||
} | ||
} |
@@ -13,3 +13,3 @@ # hstream | ||
[![npm][npm-image]][npm-url] | ||
[![travis][travis-image]][travis-url] | ||
[![actions][actions-image]][actions-url] | ||
[![standard][standard-image]][standard-url] | ||
@@ -19,4 +19,4 @@ | ||
[npm-url]: https://www.npmjs.com/package/hstream | ||
[travis-image]: https://img.shields.io/travis/stackhtml/hstream.svg?style=flat-square | ||
[travis-url]: https://travis-ci.org/stackhtml/hstream | ||
[actions-image]: https://github.com/stackhtml/hstream/workflows/CI/badge.svg | ||
[actions-url]: https://github.com/stackhtml/hstream/actions?query=workflow%3ACI | ||
[standard-image]: https://img.shields.io/badge/code%20style-standard-brightgreen.svg?style=flat-square | ||
@@ -34,5 +34,5 @@ [standard-url]: http://npm.im/standard | ||
```js | ||
var hyperstream = require('hstream') | ||
var hstream = require('hstream') | ||
hyperstream({ | ||
hstream({ | ||
'div > .x[attr="value"]': fs.createReadStream('./xyz.html') | ||
@@ -44,3 +44,3 @@ }) | ||
### `hyperstream(updates)` | ||
### `hstream(updates)` | ||
@@ -47,0 +47,0 @@ Create a through stream that applies `updates`. `updates` is an object with CSS |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
609522
+ Addedcss-what@4.0.0(transitive)
+ Addedhtmlparser2@6.1.0(transitive)
+ Addedthrough2@4.0.2(transitive)
- Removedcss-what@3.4.2(transitive)
- Removeddomhandler@3.3.0(transitive)
- Removedhtmlparser2@4.1.0(transitive)
- Removedthrough2@3.0.2(transitive)
Updatedcss-what@^4.0.0
Updatedhtmlparser2@^6.0.0
Updatedthrough2@^4.0.2