parse5 4.0.0-test → 4.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/lib/index.d.ts CHANGED
@@ -837,6 +837,8 @@ export function serialize(node: AST.Node, options?: Options.SerializerOptions):
837
837
  * Streaming HTML parser with scripting support.
838
838
  * A [writable stream](https://nodejs.org/api/stream.html#stream_class_stream_writable).
839
839
  *
840
+ * ** NOTE:** This API is available only for Node.js.
841
+ *
840
842
  * @example
841
843
  * ```js
842
844
  *
@@ -914,6 +916,8 @@ export class ParserStream extends stream.Writable {
914
916
  * Converts plain text files into HTML document as required by [HTML specification](https://html.spec.whatwg.org/#read-text).
915
917
  * A [writable stream](https://nodejs.org/api/stream.html#stream_class_stream_writable).
916
918
  *
919
+ * ** NOTE:** This API is available only for Node.js.
920
+ *
917
921
  * @example
918
922
  * ```js
919
923
  *
@@ -940,6 +944,8 @@ export class PlainTextConversionStream extends ParserStream { }
940
944
  * A [transform stream](https://nodejs.org/api/stream.html#stream_class_stream_transform)
941
945
  * (which means you can pipe *through* it, see example).
942
946
  *
947
+ * ** NOTE:** This API is available only for Node.js.
948
+ *
943
949
  * @example
944
950
  * ```js
945
951
  *
@@ -1051,6 +1057,8 @@ export class SAXParser extends stream.Transform {
1051
1057
  * Streaming AST node to an HTML serializer.
1052
1058
  * A [readable stream](https://nodejs.org/api/stream.html#stream_class_stream_readable).
1053
1059
  *
1060
+ * ** NOTE:** This API is available only for Node.js.
1061
+ *
1054
1062
  * @example
1055
1063
  * ```js
1056
1064
  *
package/lib/index.js CHANGED
@@ -58,7 +58,7 @@ Object.keys(streamingAPI).forEach(function (cls) {
58
58
  catch (e) {
59
59
  throw new Error(
60
60
  cls + ' is supported only for Node.js.' +
61
- 'See https://github.com/inikulin/parse5/issues/235 for details.'
61
+ 'See https://github.com/inikulin/parse5/issues/235 for the details.'
62
62
  );
63
63
  }
64
64
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "parse5",
3
3
  "description": "HTML parsing/serialization toolset for Node.js. WHATWG HTML Living Standard (aka HTML5)-compliant.",
4
- "version": "4.0.0-test",
4
+ "version": "4.0.0",
5
5
  "author": "Ivan Nikulin <ifaaan@gmail.com> (https://github.com/inikulin)",
6
6
  "contributors": "https://github.com/inikulin/parse5/graphs/contributors",
7
7
  "homepage": "https://github.com/inikulin/parse5",