parseman 0.12.0 → 0.13.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "parseman",
3
- "version": "0.12.0",
3
+ "version": "0.13.0",
4
4
  "packageManager": "pnpm@10.15.1",
5
5
  "description": "Parser combinators that compile to optimized JavaScript — use as a library or as a build-time macro",
6
6
  "type": "module",
@@ -43,7 +43,7 @@
43
43
  "bench": "node --import tsx/esm bench/run.ts",
44
44
  "bench:baseline": "node --import tsx/esm bench/update-parseman-baseline.ts",
45
45
  "perf:guard": "node --import tsx/esm bench/perf-guard.ts",
46
- "prepare": "git config core.hooksPath scripts/git-hooks || true",
46
+ "prepare": "git config core.hooksPath scripts/git-hooks || true; node scripts/build.mjs",
47
47
  "docs:dev": "vitepress dev docs",
48
48
  "docs:build": "vitepress build docs",
49
49
  "docs:preview": "vitepress preview docs",
@@ -62,22 +62,22 @@
62
62
  ],
63
63
  "license": "MIT",
64
64
  "devDependencies": {
65
- "@vitest/coverage-v8": "~4.1.9",
66
65
  "@lezer/common": "~1.5.2",
67
66
  "@lezer/json": "~1.0.3",
68
67
  "@oxc-project/types": "~0.137.0",
69
68
  "@types/node": "~26.0.0",
70
69
  "@types/parsimmon": "~1.10.9",
70
+ "@vitest/coverage-v8": "~4.1.9",
71
71
  "chevrotain": "~12.0.0",
72
72
  "esbuild": "~0.27.7",
73
73
  "favicons": "~7.3.0",
74
- "sharp": "~0.34.5",
75
74
  "jison": "~0.4.18",
76
75
  "moo": "~0.5.3",
77
76
  "nearley": "~2.20.1",
78
77
  "oxlint": "~1.71.0",
79
78
  "parsimmon": "~1.18.1",
80
79
  "peggy": "~5.1.0",
80
+ "sharp": "~0.34.5",
81
81
  "tsup": "~8.5.1",
82
82
  "tsx": "~4.22.4",
83
83
  "typescript": "7.0.1-rc",
@@ -89,6 +89,7 @@
89
89
  "dependencies": {
90
90
  "magic-string": "~0.30.21",
91
91
  "oxc-parser": "~0.137.0",
92
+ "oxc-resolver": "~11.23.0",
92
93
  "regexp-tree": "~0.1.27",
93
94
  "unplugin": "~3.0.0"
94
95
  }
@@ -1,14 +0,0 @@
1
- import type { Combinator } from '../types.ts';
2
- /**
3
- * Defers parser construction until first use — necessary for recursive grammars
4
- * where a parser references itself (e.g. JSON value contains JSON arrays/objects).
5
- *
6
- * The thunk is called once and the result cached. First-set metadata is
7
- * approximated as 'any' since it's unknown at construction time; this means
8
- * lazy parsers inside choice() won't get O(1) disjoint dispatch, but they
9
- * will work correctly.
10
- *
11
- * The compiler treats lazy as a runtime fallback (can't inline recursive parsers).
12
- */
13
- export declare function lazy<T>(thunk: () => Combinator<T>): Combinator<T>;
14
- //# sourceMappingURL=lazy.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"lazy.d.ts","sourceRoot":"","sources":["../../src/combinators/lazy.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAyC,MAAM,aAAa,CAAA;AAGpF;;;;;;;;;;GAUG;AACH,wBAAgB,IAAI,CAAC,CAAC,EAAE,KAAK,EAAE,MAAM,UAAU,CAAC,CAAC,CAAC,GAAG,UAAU,CAAC,CAAC,CAAC,CAkBjE"}