@thi.ng/parse 2.2.18 → 2.2.20

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**: 2022-11-30T22:27:38Z
3
+ - **Last updated**: 2022-12-16T12:52:25Z
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
@@ -1,10 +1,10 @@
1
1
  <!-- This file is generated - DO NOT EDIT! -->
2
2
 
3
- # ![parse](https://media.thi.ng/umbrella/banners-20220914/thing-parse.svg?6f08b6c5)
3
+ # ![@thi.ng/parse](https://media.thi.ng/umbrella/banners-20220914/thing-parse.svg?6f08b6c5)
4
4
 
5
5
  [![npm version](https://img.shields.io/npm/v/@thi.ng/parse.svg)](https://www.npmjs.com/package/@thi.ng/parse)
6
6
  ![npm downloads](https://img.shields.io/npm/dm/@thi.ng/parse.svg)
7
- [![Twitter Follow](https://img.shields.io/twitter/follow/thing_umbrella.svg?style=flat-square&label=twitter)](https://twitter.com/thing_umbrella)
7
+ [![Mastodon Follow](https://img.shields.io/mastodon/follow/109331703950160316?domain=https%3A%2F%2Fmastodon.thi.ng&style=social)](https://mastodon.thi.ng/@toxi)
8
8
 
9
9
  This project is part of the
10
10
  [@thi.ng/umbrella](https://github.com/thi-ng/umbrella/) monorepo.
@@ -40,7 +40,7 @@ This project is part of the
40
40
 
41
41
  ## About
42
42
 
43
- Purely functional parser combinators & AST generation for generic inputs.
43
+ Purely functional parser combinators & AST generation for generic inputs
44
44
 
45
45
  ### Features
46
46
 
@@ -83,11 +83,8 @@ ES module import:
83
83
 
84
84
  For Node.js REPL:
85
85
 
86
- ```text
87
- # with flag only for < v16
88
- node --experimental-repl-await
89
-
90
- > const parse = await import("@thi.ng/parse");
86
+ ```js
87
+ const parse = await import("@thi.ng/parse");
91
88
  ```
92
89
 
93
90
  Package sizes (brotli'd, pre-treeshake): ESM: 5.07 KB
@@ -560,7 +557,7 @@ console.log(stack);
560
557
 
561
558
  ## Authors
562
559
 
563
- Karsten Schmidt
560
+ - [Karsten Schmidt](https://thi.ng)
564
561
 
565
562
  If this project contributes to an academic publication, please cite it as:
566
563
 
@@ -575,4 +572,4 @@ If this project contributes to an academic publication, please cite it as:
575
572
 
576
573
  ## License
577
574
 
578
- &copy; 2020 - 2022 Karsten Schmidt // Apache Software License 2.0
575
+ &copy; 2020 - 2022 Karsten Schmidt // Apache License 2.0
package/api.d.ts CHANGED
@@ -19,16 +19,16 @@ export interface IReader<T> {
19
19
  isDone(state: ParseState<T>): boolean;
20
20
  format(state: ParseState<T>): string;
21
21
  }
22
- export declare type Parser<T> = Fn<ParseContext<T>, boolean>;
23
- export declare type LitParser<T> = Parser<T> & {
22
+ export type Parser<T> = Fn<ParseContext<T>, boolean>;
23
+ export type LitParser<T> = Parser<T> & {
24
24
  __lit: true;
25
25
  };
26
- export declare type DynamicParser<T> = Parser<T> & {
26
+ export type DynamicParser<T> = Parser<T> & {
27
27
  set: Fn<Parser<T>, void>;
28
28
  };
29
- export declare type PassValue<T> = T | Fn0<T>;
30
- export declare type CharSet = IObjectOf<boolean>;
31
- export declare type ScopeTransform<T> = (scope: Nullable<ParseScope<T>>, ctx: ParseContext<T>, user?: any) => Nullable<ParseScope<T>>;
29
+ export type PassValue<T> = T | Fn0<T>;
30
+ export type CharSet = IObjectOf<boolean>;
31
+ export type ScopeTransform<T> = (scope: Nullable<ParseScope<T>>, ctx: ParseContext<T>, user?: any) => Nullable<ParseScope<T>>;
32
32
  export interface GrammarOpts {
33
33
  /**
34
34
  * If true, prints AST and verbose compiler output.
@@ -44,8 +44,8 @@ export interface GrammarOpts {
44
44
  */
45
45
  optimize: boolean;
46
46
  }
47
- export declare type Rules = IObjectOf<Parser<string>>;
48
- export declare type RuleTransforms = IObjectOf<ScopeTransform<string>>;
47
+ export type Rules = IObjectOf<Parser<string>>;
48
+ export type RuleTransforms = IObjectOf<ScopeTransform<string>>;
49
49
  export interface Language {
50
50
  grammar: ParseContext<string>;
51
51
  env: RuleTransforms;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@thi.ng/parse",
3
- "version": "2.2.18",
3
+ "version": "2.2.20",
4
4
  "description": "Purely functional parser combinators & AST generation for generic inputs",
5
5
  "type": "module",
6
6
  "module": "./index.js",
@@ -21,7 +21,7 @@
21
21
  "url": "https://patreon.com/thing_umbrella"
22
22
  }
23
23
  ],
24
- "author": "Karsten Schmidt <k+npm@thi.ng>",
24
+ "author": "Karsten Schmidt (https://thi.ng)",
25
25
  "license": "Apache-2.0",
26
26
  "scripts": {
27
27
  "build": "yarn clean && tsc --declaration",
@@ -34,19 +34,19 @@
34
34
  "test": "testament test"
35
35
  },
36
36
  "dependencies": {
37
- "@thi.ng/api": "^8.5.1",
38
- "@thi.ng/checks": "^3.3.4",
39
- "@thi.ng/defmulti": "^2.1.23",
40
- "@thi.ng/errors": "^2.2.5",
41
- "@thi.ng/strings": "^3.3.19"
37
+ "@thi.ng/api": "^8.6.1",
38
+ "@thi.ng/checks": "^3.3.5",
39
+ "@thi.ng/defmulti": "^2.1.25",
40
+ "@thi.ng/errors": "^2.2.6",
41
+ "@thi.ng/strings": "^3.3.21"
42
42
  },
43
43
  "devDependencies": {
44
- "@microsoft/api-extractor": "^7.33.5",
45
- "@thi.ng/testament": "^0.3.6",
44
+ "@microsoft/api-extractor": "^7.33.7",
45
+ "@thi.ng/testament": "^0.3.7",
46
46
  "rimraf": "^3.0.2",
47
47
  "tools": "^0.0.1",
48
- "typedoc": "^0.23.20",
49
- "typescript": "^4.8.4"
48
+ "typedoc": "^0.23.22",
49
+ "typescript": "^4.9.4"
50
50
  },
51
51
  "keywords": [
52
52
  "ast",
@@ -241,5 +241,5 @@
241
241
  ],
242
242
  "year": 2020
243
243
  },
244
- "gitHead": "1fe40da507070653f420156d91e6b27cf682004f\n"
244
+ "gitHead": "7b2af448da8a63fb21704a79cc4cdf1f3d7d7a64\n"
245
245
  }