@tabnas/json 0.5.14 → 0.5.16
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/README.md +11 -7
- package/dist/json.d.ts +1 -1
- package/dist/json.js +1 -1
- package/dist/translate.js +1 -0
- package/dist/translate.js.map +1 -1
- package/package.json +1 -1
- package/src/json.ts +1 -1
- package/src/translate.ts +1 -0
package/README.md
CHANGED
|
@@ -12,8 +12,9 @@ Available for [TypeScript/JavaScript](#install) and [Go](../go/).
|
|
|
12
12
|
npm install @tabnas/json
|
|
13
13
|
```
|
|
14
14
|
|
|
15
|
-
|
|
16
|
-
|
|
15
|
+
`@tabnas/parser` (the engine) is a peer dependency; npm 7 and later
|
|
16
|
+
install it with this package. It is published on npm like this one, and
|
|
17
|
+
[Develop](#develop) covers working on the package itself.
|
|
17
18
|
|
|
18
19
|
## Quick example
|
|
19
20
|
|
|
@@ -154,16 +155,19 @@ code 1.
|
|
|
154
155
|
|
|
155
156
|
## Develop
|
|
156
157
|
|
|
157
|
-
|
|
158
|
+
The engine comes from the npm registry like every other dependency, at
|
|
159
|
+
the version `package-lock.json` pins, so nothing needs checking out
|
|
160
|
+
beside this repository:
|
|
158
161
|
|
|
159
162
|
```bash
|
|
160
|
-
|
|
161
|
-
( cd parser/ts && npm install && npm run build )
|
|
162
|
-
npm install # resolves "@tabnas/parser": "file:../../parser/ts"
|
|
163
|
+
npm install # resolves @tabnas/parser from the registry, at the version package-lock.json pins
|
|
163
164
|
npm test # tsc build + node --test
|
|
164
165
|
```
|
|
165
166
|
|
|
166
|
-
|
|
167
|
+
To work against an unreleased engine, link a built checkout of it over
|
|
168
|
+
`node_modules/@tabnas/parser` once the install has finished.
|
|
169
|
+
|
|
170
|
+
See [`AGENTS.md`](../AGENTS.md) for layout and conventions.
|
|
167
171
|
|
|
168
172
|
|
|
169
173
|
## Grammar diagram
|
package/dist/json.d.ts
CHANGED
package/dist/json.js
CHANGED
|
@@ -29,7 +29,7 @@ Object.defineProperty(exports, "JsonError", { enumerable: true, get: function ()
|
|
|
29
29
|
// VERSION is this package's version. It MUST equal package.json "version":
|
|
30
30
|
// the release orchestrator rewrites both, and test/version.test.js fails the
|
|
31
31
|
// build if they drift. Mirrors `const VERSION` in go/json.go.
|
|
32
|
-
exports.VERSION = '0.5.
|
|
32
|
+
exports.VERSION = '0.5.16';
|
|
33
33
|
// JSON-only lexer/parser options. Restrictive enough to mirror
|
|
34
34
|
// JSON.parse: double-quoted strings only, plain decimal numbers, quoted
|
|
35
35
|
// keys only, no comments, no trailing-comma map extension, no empty
|
package/dist/translate.js
CHANGED
|
@@ -7,6 +7,7 @@ const TRANSLATION = Object.freeze({
|
|
|
7
7
|
"$schema": "https://tabnas.dev/schema/plugin.schema.json",
|
|
8
8
|
"name": "@tabnas/json",
|
|
9
9
|
"go": "github.com/tabnas/json/go",
|
|
10
|
+
"rust": "tabnas-json",
|
|
10
11
|
"description": "A standard JSON parser (RFC 8259) for the tabnas engine.",
|
|
11
12
|
"engine": "@tabnas/parser",
|
|
12
13
|
"extensions": [
|
package/dist/translate.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"translate.js","sourceRoot":"","sources":["../src/translate.ts"],"names":[],"mappings":";AAAA,4CAA4C;;
|
|
1
|
+
{"version":3,"file":"translate.js","sourceRoot":"","sources":["../src/translate.ts"],"names":[],"mappings":";AAAA,4CAA4C;;QAsE1C,SAAS;AAtDX,MAAM,WAAW,GAAqB,MAAM,CAAC,MAAM,CAAC;IAClD,QAAQ,EAAE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA4CX;IACC,MAAM,EAAE,MAAM,CAAC,MAAM,CAAC,EAAE,KAAK,EAAE,MAAM,EAAE,CAAC;CACzC,CAAC,CAAA;AAEF,SAAS,SAAS;IAChB,OAAO,WAAW,CAAA;AACpB,CAAC"}
|
package/package.json
CHANGED
package/src/json.ts
CHANGED
|
@@ -23,7 +23,7 @@ import { Tabnas, TabnasError, type Plugin } from '@tabnas/parser'
|
|
|
23
23
|
// VERSION is this package's version. It MUST equal package.json "version":
|
|
24
24
|
// the release orchestrator rewrites both, and test/version.test.js fails the
|
|
25
25
|
// build if they drift. Mirrors `const VERSION` in go/json.go.
|
|
26
|
-
export const VERSION = '0.5.
|
|
26
|
+
export const VERSION = '0.5.16'
|
|
27
27
|
|
|
28
28
|
// JSON-only lexer/parser options. Restrictive enough to mirror
|
|
29
29
|
// JSON.parse: double-quoted strings only, plain decimal numbers, quoted
|
package/src/translate.ts
CHANGED
|
@@ -19,6 +19,7 @@ const TRANSLATION: TranslationParts = Object.freeze({
|
|
|
19
19
|
"$schema": "https://tabnas.dev/schema/plugin.schema.json",
|
|
20
20
|
"name": "@tabnas/json",
|
|
21
21
|
"go": "github.com/tabnas/json/go",
|
|
22
|
+
"rust": "tabnas-json",
|
|
22
23
|
"description": "A standard JSON parser (RFC 8259) for the tabnas engine.",
|
|
23
24
|
"engine": "@tabnas/parser",
|
|
24
25
|
"extensions": [
|