@thi.ng/parse 2.4.15 → 2.4.17

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/CHANGELOG.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # Change Log
2
2
 
3
- - **Last updated**: 2024-01-23T15:58:27Z
3
+ - **Last updated**: 2024-01-29T20:39:37Z
4
4
  - **Generator**: [thi.ng/monopub](https://thi.ng/monopub)
5
5
 
6
6
  All notable changes to this project will be documented in this file.
package/README.md CHANGED
@@ -7,9 +7,13 @@
7
7
  ![npm downloads](https://img.shields.io/npm/dm/@thi.ng/parse.svg)
8
8
  [![Mastodon Follow](https://img.shields.io/mastodon/follow/109331703950160316?domain=https%3A%2F%2Fmastodon.thi.ng&style=social)](https://mastodon.thi.ng/@toxi)
9
9
 
10
- This is a standalone project, maintained as part of the
11
- [@thi.ng/umbrella](https://github.com/thi-ng/umbrella/) monorepo and
12
- anti-framework.
10
+ > [!NOTE]
11
+ > This is one of 189 standalone projects, maintained as part
12
+ > of the [@thi.ng/umbrella](https://github.com/thi-ng/umbrella/) monorepo
13
+ > and anti-framework.
14
+ >
15
+ > 🚀 Help me to work full-time on these projects by [sponsoring me on
16
+ > GitHub](https://github.com/sponsors/postspectacular). Thank you! ❤️
13
17
 
14
18
  - [About](#about)
15
19
  - [Features](#features)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@thi.ng/parse",
3
- "version": "2.4.15",
3
+ "version": "2.4.17",
4
4
  "description": "Purely functional parser combinators & AST generation for generic inputs",
5
5
  "type": "module",
6
6
  "module": "./index.js",
@@ -35,11 +35,11 @@
35
35
  "test": "bun test"
36
36
  },
37
37
  "dependencies": {
38
- "@thi.ng/api": "^8.9.17",
39
- "@thi.ng/checks": "^3.4.17",
40
- "@thi.ng/defmulti": "^3.0.15",
41
- "@thi.ng/errors": "^2.4.11",
42
- "@thi.ng/strings": "^3.7.8"
38
+ "@thi.ng/api": "^8.9.19",
39
+ "@thi.ng/checks": "^3.4.19",
40
+ "@thi.ng/defmulti": "^3.0.17",
41
+ "@thi.ng/errors": "^2.4.12",
42
+ "@thi.ng/strings": "^3.7.10"
43
43
  },
44
44
  "devDependencies": {
45
45
  "@microsoft/api-extractor": "^7.39.0",
@@ -241,5 +241,5 @@
241
241
  ],
242
242
  "year": 2020
243
243
  },
244
- "gitHead": "417b5a7ea7bd54a3b4f086fe0fc2ce8e8933c9b2\n"
244
+ "gitHead": "20909ffc46f23f61ec7647e8d27ed17752ce9828\n"
245
245
  }
@@ -1,5 +1,5 @@
1
1
  import type { ParseState, IReader } from "../api.js";
2
- declare class ArrayReader<T> implements IReader<T> {
2
+ export declare class ArrayReader<T> implements IReader<T> {
3
3
  protected _src: ArrayLike<T>;
4
4
  constructor(_src: ArrayLike<T>);
5
5
  read(state: ParseState<T>): T;
@@ -8,5 +8,4 @@ declare class ArrayReader<T> implements IReader<T> {
8
8
  format(state: ParseState<T>): string;
9
9
  }
10
10
  export declare const defArrayReader: <T>(input: ArrayLike<T>) => ArrayReader<T>;
11
- export {};
12
11
  //# sourceMappingURL=array-reader.d.ts.map
@@ -20,5 +20,6 @@ class ArrayReader {
20
20
  }
21
21
  const defArrayReader = (input) => new ArrayReader(input);
22
22
  export {
23
+ ArrayReader,
23
24
  defArrayReader
24
25
  };
@@ -1,5 +1,5 @@
1
1
  import type { ParseState, IReader } from "../api.js";
2
- declare class StringReader implements IReader<string> {
2
+ export declare class StringReader implements IReader<string> {
3
3
  protected _src: string;
4
4
  constructor(_src: string);
5
5
  read(state: ParseState<string>): string;
@@ -8,5 +8,4 @@ declare class StringReader implements IReader<string> {
8
8
  format(state: ParseState<string>): string;
9
9
  }
10
10
  export declare const defStringReader: (input: string) => StringReader;
11
- export {};
12
11
  //# sourceMappingURL=string-reader.d.ts.map
@@ -26,5 +26,6 @@ class StringReader {
26
26
  }
27
27
  const defStringReader = (input) => new StringReader(input);
28
28
  export {
29
+ StringReader,
29
30
  defStringReader
30
31
  };
package/xform/hoist.d.ts CHANGED
@@ -7,7 +7,7 @@ import type { Parser, ScopeTransform } from "../api.js";
7
7
  export declare const xfHoist: ScopeTransform<any>;
8
8
  /**
9
9
  * Moves the result of first child node to this node, then discards all
10
- * children. Also see {@link hoistR}.
10
+ * children. Also see {@link hoistResult}.
11
11
  *
12
12
  * @param scope -
13
13
  */