@thi.ng/parse 2.6.41 → 2.6.43

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.
Files changed (3) hide show
  1. package/README.md +2 -2
  2. package/grammar.js +2 -2
  3. package/package.json +11 -10
package/README.md CHANGED
@@ -7,7 +7,7 @@
7
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
  > [!NOTE]
10
- > This is one of 213 standalone projects, maintained as part
10
+ > This is one of 214 standalone projects, maintained as part
11
11
  > of the [@thi.ng/umbrella](https://github.com/thi-ng/umbrella/) monorepo
12
12
  > and anti-framework.
13
13
  >
@@ -103,7 +103,7 @@ For Node.js REPL:
103
103
  const parse = await import("@thi.ng/parse");
104
104
  ```
105
105
 
106
- Package sizes (brotli'd, pre-treeshake): ESM: 5.43 KB
106
+ Package sizes (brotli'd, pre-treeshake): ESM: 5.41 KB
107
107
 
108
108
  ## Dependencies
109
109
 
package/grammar.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import { DEFAULT, defmulti } from "@thi.ng/defmulti/defmulti";
2
2
  import { illegalArgs } from "@thi.ng/errors/illegal-arguments";
3
- import { unsupported } from "@thi.ng/errors/unsupported";
3
+ import { unsupportedOp } from "@thi.ng/errors/unsupported";
4
4
  import { alt, altD } from "./combinators/alt.js";
5
5
  import { dynamic } from "./combinators/dynamic.js";
6
6
  import { lookahead } from "./combinators/lookahead.js";
@@ -136,7 +136,7 @@ const __compile = defmulti(
136
136
  unicode: "char"
137
137
  },
138
138
  {
139
- [DEFAULT]: ($) => unsupported(`unknown op: ${$.id}`),
139
+ [DEFAULT]: ($) => unsupportedOp($.id),
140
140
  root: ($, lang, opts, flags) => {
141
141
  const rules = __first($).children;
142
142
  const builtins = new Set(Object.keys(lang.rules));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@thi.ng/parse",
3
- "version": "2.6.41",
3
+ "version": "2.6.43",
4
4
  "description": "Purely functional parser combinators & AST generation for generic inputs",
5
5
  "type": "module",
6
6
  "module": "./index.js",
@@ -8,7 +8,8 @@
8
8
  "sideEffects": false,
9
9
  "repository": {
10
10
  "type": "git",
11
- "url": "https://github.com/thi-ng/umbrella.git"
11
+ "url": "git+https://github.com/thi-ng/umbrella.git",
12
+ "directory": "packages/parse"
12
13
  },
13
14
  "homepage": "https://thi.ng/parse",
14
15
  "funding": [
@@ -39,15 +40,15 @@
39
40
  "tool:tangle": "../../node_modules/.bin/tangle src/**/*.ts"
40
41
  },
41
42
  "dependencies": {
42
- "@thi.ng/api": "^8.12.12",
43
- "@thi.ng/checks": "^3.8.2",
44
- "@thi.ng/defmulti": "^3.0.88",
45
- "@thi.ng/errors": "^2.6.1",
46
- "@thi.ng/strings": "^3.9.33"
43
+ "@thi.ng/api": "^8.12.14",
44
+ "@thi.ng/checks": "^3.8.4",
45
+ "@thi.ng/defmulti": "^3.0.90",
46
+ "@thi.ng/errors": "^2.6.3",
47
+ "@thi.ng/strings": "^3.9.35"
47
48
  },
48
49
  "devDependencies": {
49
- "esbuild": "^0.27.0",
50
- "typedoc": "^0.28.14",
50
+ "esbuild": "^0.27.2",
51
+ "typedoc": "^0.28.16",
51
52
  "typescript": "^5.9.3"
52
53
  },
53
54
  "keywords": [
@@ -246,5 +247,5 @@
246
247
  ],
247
248
  "year": 2020
248
249
  },
249
- "gitHead": "deb511294f7a120091b654af0ff7e8a399a465b3\n"
250
+ "gitHead": "4bd1b9d8ae52ba32b90a1b9a55d329c708ca7865\n"
250
251
  }