@dataplan/json 0.0.1-beta.9 → 1.0.0-rc.2
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 +385 -0
- package/README.md +1 -7
- package/dist/steps/jsonParse.d.ts +11 -9
- package/dist/steps/jsonParse.d.ts.map +1 -1
- package/dist/steps/jsonParse.js +17 -16
- package/dist/steps/jsonParse.js.map +1 -1
- package/package.json +7 -7
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,390 @@
|
|
|
1
1
|
# @dataplan/json
|
|
2
2
|
|
|
3
|
+
## 1.0.0-rc.2
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#2829](https://github.com/graphile/crystal/pull/2829)
|
|
8
|
+
[`a82e6fa`](https://github.com/graphile/crystal/commit/a82e6fae099f7e9d62fb3fc1ee173368cdabca27)
|
|
9
|
+
Thanks [@benjie](https://github.com/benjie)! - Update dependency ranges.
|
|
10
|
+
|
|
11
|
+
- Updated dependencies
|
|
12
|
+
[[`f3a9869`](https://github.com/graphile/crystal/commit/f3a9869c6f9e7aa1eb501af5f7d582d2073be585),
|
|
13
|
+
[`68f61cd`](https://github.com/graphile/crystal/commit/68f61cdbeea19e81b1d59a3fac69a569642c5c88),
|
|
14
|
+
[`a82e6fa`](https://github.com/graphile/crystal/commit/a82e6fae099f7e9d62fb3fc1ee173368cdabca27)]:
|
|
15
|
+
- grafast@1.0.0-rc.2
|
|
16
|
+
|
|
17
|
+
## 1.0.0-rc.1
|
|
18
|
+
|
|
19
|
+
### Patch Changes
|
|
20
|
+
|
|
21
|
+
- [`8a5a7c5`](https://github.com/graphile/crystal/commit/8a5a7c536fc4b9b702600c5cc3d413724670c327)
|
|
22
|
+
Thanks [@benjie](https://github.com/benjie)! - Bump to release candidate
|
|
23
|
+
|
|
24
|
+
- Updated dependencies
|
|
25
|
+
[[`abb623d`](https://github.com/graphile/crystal/commit/abb623d59e517c0949f0fef5440b817103c685bf),
|
|
26
|
+
[`7b86454`](https://github.com/graphile/crystal/commit/7b864546fa81803ce0e573a2efa2e7f0905b2040),
|
|
27
|
+
[`42a0785`](https://github.com/graphile/crystal/commit/42a0785ddabf58812a22d764eeddfde9362974e5),
|
|
28
|
+
[`d196d60`](https://github.com/graphile/crystal/commit/d196d60664fbc9ffd410c11645db27554b22ac0b),
|
|
29
|
+
[`c6cbe61`](https://github.com/graphile/crystal/commit/c6cbe6175b0f1f034db59d42cbe594e7d329aba6),
|
|
30
|
+
[`d4ac603`](https://github.com/graphile/crystal/commit/d4ac603da7df6ea01aaa483a7cb29b1e514a90cd),
|
|
31
|
+
[`8a5a7c5`](https://github.com/graphile/crystal/commit/8a5a7c536fc4b9b702600c5cc3d413724670c327),
|
|
32
|
+
[`ea0135f`](https://github.com/graphile/crystal/commit/ea0135fac3f43850b65828f2ff2b01a34cfdff15),
|
|
33
|
+
[`b6821f5`](https://github.com/graphile/crystal/commit/b6821f5f4dc13abd0b605be7396c1b3c36e66177)]:
|
|
34
|
+
- grafast@1.0.0-rc.1
|
|
35
|
+
|
|
36
|
+
## 0.0.1-beta.33
|
|
37
|
+
|
|
38
|
+
### Patch Changes
|
|
39
|
+
|
|
40
|
+
- [#2652](https://github.com/graphile/crystal/pull/2652)
|
|
41
|
+
[`2adfd6e`](https://github.com/graphile/crystal/commit/2adfd6efedd1ab6831605526a515c683a7e95c2c)
|
|
42
|
+
Thanks [@benjie](https://github.com/benjie)! - Make `get($step, attr)` more
|
|
43
|
+
type-safe when the underlying steps implement the new `__inferGet` pattern.
|
|
44
|
+
- Updated dependencies
|
|
45
|
+
[[`2adfd6e`](https://github.com/graphile/crystal/commit/2adfd6efedd1ab6831605526a515c683a7e95c2c),
|
|
46
|
+
[`6113518`](https://github.com/graphile/crystal/commit/61135188900c39d0cb6bd2f9c0033f0954cd0e6a)]:
|
|
47
|
+
- grafast@0.1.1-beta.25
|
|
48
|
+
|
|
49
|
+
## 0.0.1-beta.32
|
|
50
|
+
|
|
51
|
+
### Patch Changes
|
|
52
|
+
|
|
53
|
+
- Updated dependencies
|
|
54
|
+
[[`0c6b1f1`](https://github.com/graphile/crystal/commit/0c6b1f1e188f6e2913832adfed9ca76dfdc25c47)]:
|
|
55
|
+
- grafast@0.1.1-beta.23
|
|
56
|
+
|
|
57
|
+
## 0.0.1-beta.31
|
|
58
|
+
|
|
59
|
+
### Patch Changes
|
|
60
|
+
|
|
61
|
+
- [#2435](https://github.com/graphile/crystal/pull/2435)
|
|
62
|
+
[`17b160d5450e20e0f5c6597d5cffe125ece49d65`](https://github.com/graphile/crystal/commit/17b160d5450e20e0f5c6597d5cffe125ece49d65)
|
|
63
|
+
Thanks [@benjie](https://github.com/benjie)! - `jsonParse()` now deduplicates
|
|
64
|
+
|
|
65
|
+
- [#2482](https://github.com/graphile/crystal/pull/2482)
|
|
66
|
+
[`459e1869a2ec58925b2bac5458af487c52a8ca37`](https://github.com/graphile/crystal/commit/459e1869a2ec58925b2bac5458af487c52a8ca37)
|
|
67
|
+
Thanks [@benjie](https://github.com/benjie)! - Minimum version of Node.js
|
|
68
|
+
bumped to Node 22 (the latest LTS).
|
|
69
|
+
|
|
70
|
+
- Updated dependencies
|
|
71
|
+
[[`0e36cb9077c76710d2e407830323f86c5038126e`](https://github.com/graphile/crystal/commit/0e36cb9077c76710d2e407830323f86c5038126e),
|
|
72
|
+
[`c0c3f48fa9f60cb9a4436ea135979b779ecc71ec`](https://github.com/graphile/crystal/commit/c0c3f48fa9f60cb9a4436ea135979b779ecc71ec),
|
|
73
|
+
[`cef9a37f846b4af105ac20960530d65c9f44afa9`](https://github.com/graphile/crystal/commit/cef9a37f846b4af105ac20960530d65c9f44afa9),
|
|
74
|
+
[`56ce94a847c6a4094643665cbf5d3712f56140b6`](https://github.com/graphile/crystal/commit/56ce94a847c6a4094643665cbf5d3712f56140b6),
|
|
75
|
+
[`192a27e08763ea26607344a2ea6c7f5c595cc2a3`](https://github.com/graphile/crystal/commit/192a27e08763ea26607344a2ea6c7f5c595cc2a3),
|
|
76
|
+
[`6ef6abce15936a896156d5316020df55cf7d18e3`](https://github.com/graphile/crystal/commit/6ef6abce15936a896156d5316020df55cf7d18e3),
|
|
77
|
+
[`0239c2d519300a72f545e0db7c371adae4ade2a9`](https://github.com/graphile/crystal/commit/0239c2d519300a72f545e0db7c371adae4ade2a9),
|
|
78
|
+
[`0ea439d33ccef7f8d01ac5f54893ab2bbf1cbd4d`](https://github.com/graphile/crystal/commit/0ea439d33ccef7f8d01ac5f54893ab2bbf1cbd4d),
|
|
79
|
+
[`8034614d1078b1bd177b6e7fcc949420614e3245`](https://github.com/graphile/crystal/commit/8034614d1078b1bd177b6e7fcc949420614e3245),
|
|
80
|
+
[`459e1869a2ec58925b2bac5458af487c52a8ca37`](https://github.com/graphile/crystal/commit/459e1869a2ec58925b2bac5458af487c52a8ca37),
|
|
81
|
+
[`c350e49e372ec12a4cbf04fb6b4260e01832d12b`](https://github.com/graphile/crystal/commit/c350e49e372ec12a4cbf04fb6b4260e01832d12b),
|
|
82
|
+
[`3176ea3e57d626b39613a73117ef97627370ec83`](https://github.com/graphile/crystal/commit/3176ea3e57d626b39613a73117ef97627370ec83),
|
|
83
|
+
[`46a42f5547c041289aa98657ebc6815f4b6c8539`](https://github.com/graphile/crystal/commit/46a42f5547c041289aa98657ebc6815f4b6c8539),
|
|
84
|
+
[`be3f174c5aae8fe78a240e1bc4e1de7f18644b43`](https://github.com/graphile/crystal/commit/be3f174c5aae8fe78a240e1bc4e1de7f18644b43),
|
|
85
|
+
[`576fb8bad56cb940ab444574d752e914d462018a`](https://github.com/graphile/crystal/commit/576fb8bad56cb940ab444574d752e914d462018a),
|
|
86
|
+
[`9f459101fa4428aa4bac71531e75f99e33da8e17`](https://github.com/graphile/crystal/commit/9f459101fa4428aa4bac71531e75f99e33da8e17),
|
|
87
|
+
[`921665df8babe2651ab3b5886ab68bb518f2125b`](https://github.com/graphile/crystal/commit/921665df8babe2651ab3b5886ab68bb518f2125b),
|
|
88
|
+
[`78bb1a615754d772a5fda000e96073c91fa9eba7`](https://github.com/graphile/crystal/commit/78bb1a615754d772a5fda000e96073c91fa9eba7),
|
|
89
|
+
[`ab0bcda5fc3c136eea09493a7d9ed4542975858e`](https://github.com/graphile/crystal/commit/ab0bcda5fc3c136eea09493a7d9ed4542975858e),
|
|
90
|
+
[`455f4811d37ad8fff91183c7a88621bcf9d79acf`](https://github.com/graphile/crystal/commit/455f4811d37ad8fff91183c7a88621bcf9d79acf),
|
|
91
|
+
[`45adaff886e7cd72b864150927be6c0cb4a7dfe8`](https://github.com/graphile/crystal/commit/45adaff886e7cd72b864150927be6c0cb4a7dfe8)]:
|
|
92
|
+
- grafast@0.1.1-beta.22
|
|
93
|
+
|
|
94
|
+
## 0.0.1-beta.30
|
|
95
|
+
|
|
96
|
+
### Patch Changes
|
|
97
|
+
|
|
98
|
+
- [#2377](https://github.com/graphile/crystal/pull/2377)
|
|
99
|
+
[`7c38cdeffe034c9b4f5cdd03a8f7f446bd52dcb7`](https://github.com/graphile/crystal/commit/7c38cdeffe034c9b4f5cdd03a8f7f446bd52dcb7)
|
|
100
|
+
Thanks [@benjie](https://github.com/benjie)! - Since `ModifierStep` and
|
|
101
|
+
`BaseStep` are no more; `ExecutableStep` can be renamed to simply `Step`. The
|
|
102
|
+
old name (`ExecutableStep`) is now deprecated.
|
|
103
|
+
- Updated dependencies
|
|
104
|
+
[[`d34014a9a3c469154cc796086ba13719954731e5`](https://github.com/graphile/crystal/commit/d34014a9a3c469154cc796086ba13719954731e5),
|
|
105
|
+
[`98516379ac355a0833a64e002f3717cc3a1d6473`](https://github.com/graphile/crystal/commit/98516379ac355a0833a64e002f3717cc3a1d6473),
|
|
106
|
+
[`f8602d05eed3247c90b87c55d7af580d1698effc`](https://github.com/graphile/crystal/commit/f8602d05eed3247c90b87c55d7af580d1698effc),
|
|
107
|
+
[`65df25534fa3f787ba2ab7fd9547d295ff2b1288`](https://github.com/graphile/crystal/commit/65df25534fa3f787ba2ab7fd9547d295ff2b1288),
|
|
108
|
+
[`1b3c76efd27df73eab3a5a1d221ce13de4cd6b1a`](https://github.com/graphile/crystal/commit/1b3c76efd27df73eab3a5a1d221ce13de4cd6b1a),
|
|
109
|
+
[`3c0a925f26f10cae627a23c49c75ccd8d76b60c8`](https://github.com/graphile/crystal/commit/3c0a925f26f10cae627a23c49c75ccd8d76b60c8),
|
|
110
|
+
[`fcaeb48844156e258a037f420ea1505edb50c52a`](https://github.com/graphile/crystal/commit/fcaeb48844156e258a037f420ea1505edb50c52a),
|
|
111
|
+
[`68926abc31c32ce527327ffbb1ede4b0b7be446b`](https://github.com/graphile/crystal/commit/68926abc31c32ce527327ffbb1ede4b0b7be446b),
|
|
112
|
+
[`4b49dbd2df3b339a2ba3f1e9ff400fa1a125298b`](https://github.com/graphile/crystal/commit/4b49dbd2df3b339a2ba3f1e9ff400fa1a125298b),
|
|
113
|
+
[`d7950e8e28ec6106a4ce2f7fe5e35d88b10eac48`](https://github.com/graphile/crystal/commit/d7950e8e28ec6106a4ce2f7fe5e35d88b10eac48),
|
|
114
|
+
[`c8f1971ea4198633ec97f72f82abf65089f71a88`](https://github.com/graphile/crystal/commit/c8f1971ea4198633ec97f72f82abf65089f71a88),
|
|
115
|
+
[`dd3d22eab73a8554715bf1111e30586251f69a88`](https://github.com/graphile/crystal/commit/dd3d22eab73a8554715bf1111e30586251f69a88),
|
|
116
|
+
[`a120a8e43b24dfc174950cdbb69e481272a0b45e`](https://github.com/graphile/crystal/commit/a120a8e43b24dfc174950cdbb69e481272a0b45e),
|
|
117
|
+
[`84f06eafa051e907a3050237ac6ee5aefb184652`](https://github.com/graphile/crystal/commit/84f06eafa051e907a3050237ac6ee5aefb184652),
|
|
118
|
+
[`4a3aeaa77c8b8d2e39c1a9d05581d0c613b812cf`](https://github.com/graphile/crystal/commit/4a3aeaa77c8b8d2e39c1a9d05581d0c613b812cf),
|
|
119
|
+
[`0fc2db95d90df918cf5c59ef85f22ac78d8000d3`](https://github.com/graphile/crystal/commit/0fc2db95d90df918cf5c59ef85f22ac78d8000d3),
|
|
120
|
+
[`90e81a5deeae554a8be2dd55dcd01489860e96e6`](https://github.com/graphile/crystal/commit/90e81a5deeae554a8be2dd55dcd01489860e96e6),
|
|
121
|
+
[`c59132eb7a93bc82493d2f1ca050db8aaea9f4d1`](https://github.com/graphile/crystal/commit/c59132eb7a93bc82493d2f1ca050db8aaea9f4d1),
|
|
122
|
+
[`7c38cdeffe034c9b4f5cdd03a8f7f446bd52dcb7`](https://github.com/graphile/crystal/commit/7c38cdeffe034c9b4f5cdd03a8f7f446bd52dcb7),
|
|
123
|
+
[`728888b28fcd2a6fc481e0ccdfe20d41181a091f`](https://github.com/graphile/crystal/commit/728888b28fcd2a6fc481e0ccdfe20d41181a091f),
|
|
124
|
+
[`f4f39092d7a51517668384945895d3b450237cce`](https://github.com/graphile/crystal/commit/f4f39092d7a51517668384945895d3b450237cce),
|
|
125
|
+
[`5cf3dc9d158891eaf324b2cd4f485d1d4bbb6b5e`](https://github.com/graphile/crystal/commit/5cf3dc9d158891eaf324b2cd4f485d1d4bbb6b5e),
|
|
126
|
+
[`83d3b533e702cc875b46ba2ca02bf3642b421be8`](https://github.com/graphile/crystal/commit/83d3b533e702cc875b46ba2ca02bf3642b421be8),
|
|
127
|
+
[`7001138c38e09822ad13db1018c62d2cac37941e`](https://github.com/graphile/crystal/commit/7001138c38e09822ad13db1018c62d2cac37941e),
|
|
128
|
+
[`e9e7e33665e22ec397e9ead054d2e4aad3eadc8c`](https://github.com/graphile/crystal/commit/e9e7e33665e22ec397e9ead054d2e4aad3eadc8c),
|
|
129
|
+
[`bb6ec8d834e3e630e28316196246f514114a2296`](https://github.com/graphile/crystal/commit/bb6ec8d834e3e630e28316196246f514114a2296),
|
|
130
|
+
[`2b1918d053f590cdc534c8cb81f7e74e96c1bbe6`](https://github.com/graphile/crystal/commit/2b1918d053f590cdc534c8cb81f7e74e96c1bbe6),
|
|
131
|
+
[`d1ecb39693a341f85762b27012ec4ea013857b0c`](https://github.com/graphile/crystal/commit/d1ecb39693a341f85762b27012ec4ea013857b0c),
|
|
132
|
+
[`042ebafe11fcf7e2ecac9b131265a55dddd42a6d`](https://github.com/graphile/crystal/commit/042ebafe11fcf7e2ecac9b131265a55dddd42a6d),
|
|
133
|
+
[`fa005eb0783c58a2476add984fbdd462e0e91dbe`](https://github.com/graphile/crystal/commit/fa005eb0783c58a2476add984fbdd462e0e91dbe),
|
|
134
|
+
[`df0e5a0f968cf6f9ae97b68745a9a2f391324bf5`](https://github.com/graphile/crystal/commit/df0e5a0f968cf6f9ae97b68745a9a2f391324bf5),
|
|
135
|
+
[`ef4cf75acd80e6b9c700c2b5a7ace899e565ef7f`](https://github.com/graphile/crystal/commit/ef4cf75acd80e6b9c700c2b5a7ace899e565ef7f),
|
|
136
|
+
[`c041fd250372c57601188b65a6411c8f440afab6`](https://github.com/graphile/crystal/commit/c041fd250372c57601188b65a6411c8f440afab6),
|
|
137
|
+
[`629b45aab49151810f6efc18ac18f7d735626433`](https://github.com/graphile/crystal/commit/629b45aab49151810f6efc18ac18f7d735626433),
|
|
138
|
+
[`6d19724330d50d076aab9442660fa8abddd095cb`](https://github.com/graphile/crystal/commit/6d19724330d50d076aab9442660fa8abddd095cb),
|
|
139
|
+
[`ca5bc1a834df7b894088fb8602a12f9fcff55b38`](https://github.com/graphile/crystal/commit/ca5bc1a834df7b894088fb8602a12f9fcff55b38),
|
|
140
|
+
[`da6f3c04efe3d8634c0bc3fcf93ac2518de85322`](https://github.com/graphile/crystal/commit/da6f3c04efe3d8634c0bc3fcf93ac2518de85322),
|
|
141
|
+
[`f0bc64b71914dfdd3612f4b65370401fd85b97bc`](https://github.com/graphile/crystal/commit/f0bc64b71914dfdd3612f4b65370401fd85b97bc)]:
|
|
142
|
+
- grafast@0.1.1-beta.21
|
|
143
|
+
|
|
144
|
+
## 0.0.1-beta.29
|
|
145
|
+
|
|
146
|
+
### Patch Changes
|
|
147
|
+
|
|
148
|
+
- Updated dependencies
|
|
149
|
+
[[`fc9d64eb8`](https://github.com/graphile/crystal/commit/fc9d64eb8002d3b72625bc505ed76c07f4296d68),
|
|
150
|
+
[`a2dbad945`](https://github.com/graphile/crystal/commit/a2dbad9457195bec797d72e4e6d45f45278f9f69),
|
|
151
|
+
[`31078842a`](https://github.com/graphile/crystal/commit/31078842ad0eeaa7111491fa9eb5e3bd026fb38a),
|
|
152
|
+
[`5a0ec31de`](https://github.com/graphile/crystal/commit/5a0ec31deae91f1dd17a77a4bb7c1a911a27e26a)]:
|
|
153
|
+
- grafast@0.1.1-beta.20
|
|
154
|
+
|
|
155
|
+
## 0.0.1-beta.28
|
|
156
|
+
|
|
157
|
+
### Patch Changes
|
|
158
|
+
|
|
159
|
+
- Updated dependencies []:
|
|
160
|
+
- grafast@0.1.1-beta.19
|
|
161
|
+
|
|
162
|
+
## 0.0.1-beta.27
|
|
163
|
+
|
|
164
|
+
### Patch Changes
|
|
165
|
+
|
|
166
|
+
- Updated dependencies
|
|
167
|
+
[[`b336a5829`](https://github.com/graphile/crystal/commit/b336a58291cfec7aef884d3843172d408abfaf3c)]:
|
|
168
|
+
- grafast@0.1.1-beta.18
|
|
169
|
+
|
|
170
|
+
## 0.0.1-beta.26
|
|
171
|
+
|
|
172
|
+
### Patch Changes
|
|
173
|
+
|
|
174
|
+
- Updated dependencies
|
|
175
|
+
[[`69ab227b5`](https://github.com/graphile/crystal/commit/69ab227b5e1c057a6fc8ebba87bde80d5aa7f3c8)]:
|
|
176
|
+
- grafast@0.1.1-beta.17
|
|
177
|
+
|
|
178
|
+
## 0.0.1-beta.25
|
|
179
|
+
|
|
180
|
+
### Patch Changes
|
|
181
|
+
|
|
182
|
+
- Updated dependencies
|
|
183
|
+
[[`76c7340b7`](https://github.com/graphile/crystal/commit/76c7340b74d257c454beec883384d19ef078b21e)]:
|
|
184
|
+
- grafast@0.1.1-beta.16
|
|
185
|
+
|
|
186
|
+
## 0.0.1-beta.24
|
|
187
|
+
|
|
188
|
+
### Patch Changes
|
|
189
|
+
|
|
190
|
+
- Updated dependencies
|
|
191
|
+
[[`d5834def1`](https://github.com/graphile/crystal/commit/d5834def1fb84f3e2c0c0a6f146f8249a6df890a),
|
|
192
|
+
[`42b982463`](https://github.com/graphile/crystal/commit/42b9824637a6c05e02935f2b05b5e8e0c61965a6),
|
|
193
|
+
[`884a4b429`](https://github.com/graphile/crystal/commit/884a4b4297af90fdadaf73addd524f1fbbcfdcce),
|
|
194
|
+
[`38835313a`](https://github.com/graphile/crystal/commit/38835313ad93445206dccdd4cf07b90c5a6e4377),
|
|
195
|
+
[`b0865d169`](https://github.com/graphile/crystal/commit/b0865d1691105b5419009954c98c8109a27a5d81)]:
|
|
196
|
+
- grafast@0.1.1-beta.15
|
|
197
|
+
|
|
198
|
+
## 0.0.1-beta.23
|
|
199
|
+
|
|
200
|
+
### Patch Changes
|
|
201
|
+
|
|
202
|
+
- Updated dependencies
|
|
203
|
+
[[`871d32b2a`](https://github.com/graphile/crystal/commit/871d32b2a18df0d257880fc54a61d9e68c4607d6),
|
|
204
|
+
[`a26e3a30c`](https://github.com/graphile/crystal/commit/a26e3a30c02f963f8f5e9c9d021e871f33689e1b),
|
|
205
|
+
[`02c11a4d4`](https://github.com/graphile/crystal/commit/02c11a4d42bf434dffc9354b300e8d791c4eeb2d)]:
|
|
206
|
+
- grafast@0.1.1-beta.14
|
|
207
|
+
|
|
208
|
+
## 0.0.1-beta.22
|
|
209
|
+
|
|
210
|
+
### Patch Changes
|
|
211
|
+
|
|
212
|
+
- Updated dependencies
|
|
213
|
+
[[`807650035`](https://github.com/graphile/crystal/commit/8076500354a3e2bc2de1b6c4e947bd710cc5bddc)]:
|
|
214
|
+
- grafast@0.1.1-beta.13
|
|
215
|
+
|
|
216
|
+
## 0.0.1-beta.21
|
|
217
|
+
|
|
218
|
+
### Patch Changes
|
|
219
|
+
|
|
220
|
+
- Updated dependencies
|
|
221
|
+
[[`1bd50b61e`](https://github.com/graphile/crystal/commit/1bd50b61ebb10b7d09b3612c2e2767c41cca3b78),
|
|
222
|
+
[`4e102b1a1`](https://github.com/graphile/crystal/commit/4e102b1a1cd232e6f6703df0706415f01831dab2),
|
|
223
|
+
[`7bb1573ba`](https://github.com/graphile/crystal/commit/7bb1573ba45a4d8b7fa9ad53cdd79686d2641383),
|
|
224
|
+
[`18addb385`](https://github.com/graphile/crystal/commit/18addb3852525aa91019a36d58fa2fecd8b5b443),
|
|
225
|
+
[`6ed615e55`](https://github.com/graphile/crystal/commit/6ed615e557b2ab1fb57f1e68c06730a8e3da7175),
|
|
226
|
+
[`b25cc539c`](https://github.com/graphile/crystal/commit/b25cc539c00aeda7a943c37509aaae4dc7812317),
|
|
227
|
+
[`867f33136`](https://github.com/graphile/crystal/commit/867f331365346fc46ed1e0d23c79719846e398f4),
|
|
228
|
+
[`cf535c210`](https://github.com/graphile/crystal/commit/cf535c21078da06c14dd12f30e9b4378da4ded03),
|
|
229
|
+
[`acf99b190`](https://github.com/graphile/crystal/commit/acf99b190954e3c5926e820daed68dfe8eb3ee1f),
|
|
230
|
+
[`4967a197f`](https://github.com/graphile/crystal/commit/4967a197fd2c71ee2a581fe29470ee9f30e74de5),
|
|
231
|
+
[`1908e1ba1`](https://github.com/graphile/crystal/commit/1908e1ba11883a34dac66f985fc20ab160e572b1),
|
|
232
|
+
[`084d80be6`](https://github.com/graphile/crystal/commit/084d80be6e17187c9a9932bcf079e3f460368782)]:
|
|
233
|
+
- grafast@0.1.1-beta.12
|
|
234
|
+
|
|
235
|
+
## 0.0.1-beta.20
|
|
236
|
+
|
|
237
|
+
### Patch Changes
|
|
238
|
+
|
|
239
|
+
- Updated dependencies
|
|
240
|
+
[[`582bd768f`](https://github.com/graphile/crystal/commit/582bd768fec403ce3284f293b85b9fd86e4d3f40)]:
|
|
241
|
+
- grafast@0.1.1-beta.11
|
|
242
|
+
|
|
243
|
+
## 0.0.1-beta.19
|
|
244
|
+
|
|
245
|
+
### Patch Changes
|
|
246
|
+
|
|
247
|
+
- Updated dependencies
|
|
248
|
+
[[`3c161f7e1`](https://github.com/graphile/crystal/commit/3c161f7e13375105b1035a7d5d1c0f2b507ca5c7),
|
|
249
|
+
[`a674a9923`](https://github.com/graphile/crystal/commit/a674a9923bc908c9315afa40e0cb256ee0953d16),
|
|
250
|
+
[`b7cfeffd1`](https://github.com/graphile/crystal/commit/b7cfeffd1019d61c713a5054c4f5929960a2a6ab)]:
|
|
251
|
+
- grafast@0.1.1-beta.10
|
|
252
|
+
|
|
253
|
+
## 0.0.1-beta.18
|
|
254
|
+
|
|
255
|
+
### Patch Changes
|
|
256
|
+
|
|
257
|
+
- Updated dependencies
|
|
258
|
+
[[`437570f97`](https://github.com/graphile/crystal/commit/437570f97e8520afaf3d0d0b514d1f4c31546b76)]:
|
|
259
|
+
- grafast@0.1.1-beta.9
|
|
260
|
+
|
|
261
|
+
## 0.0.1-beta.17
|
|
262
|
+
|
|
263
|
+
### Patch Changes
|
|
264
|
+
|
|
265
|
+
- Updated dependencies
|
|
266
|
+
[[`bd5a908a4`](https://github.com/graphile/crystal/commit/bd5a908a4d04310f90dfb46ad87398ffa993af3b)]:
|
|
267
|
+
- grafast@0.1.1-beta.8
|
|
268
|
+
|
|
269
|
+
## 0.0.1-beta.16
|
|
270
|
+
|
|
271
|
+
### Patch Changes
|
|
272
|
+
|
|
273
|
+
- [#1980](https://github.com/graphile/crystal/pull/1980)
|
|
274
|
+
[`357d475f5`](https://github.com/graphile/crystal/commit/357d475f54fecc8c51892e0346d6872b34132430)
|
|
275
|
+
Thanks [@benjie](https://github.com/benjie)! - The signature of
|
|
276
|
+
`ExecutableStep.execute` has changed; please make the following change to each
|
|
277
|
+
of your custom step classes' `execute` methods:
|
|
278
|
+
|
|
279
|
+
```diff
|
|
280
|
+
- async execute(count: number, values: any[][], extra: ExecutionExtra) {
|
|
281
|
+
+ async execute({ count, values: newValues, extra }: ExecutionDetails) {
|
|
282
|
+
+ const values = newValues.map((dep) =>
|
|
283
|
+
+ dep.isBatch ? dep.entries : new Array(count).fill(dep.value)
|
|
284
|
+
+ );
|
|
285
|
+
// REST OF YOUR FUNCTION HERE
|
|
286
|
+
}
|
|
287
|
+
```
|
|
288
|
+
|
|
289
|
+
For more details, see: https://err.red/gev2
|
|
290
|
+
|
|
291
|
+
- [#1973](https://github.com/graphile/crystal/pull/1973)
|
|
292
|
+
[`a0e82b9c5`](https://github.com/graphile/crystal/commit/a0e82b9c5f4e585f1af1e147299cd07944ece6f8)
|
|
293
|
+
Thanks [@benjie](https://github.com/benjie)! - Add 'unary steps' concept to
|
|
294
|
+
codebase and refactor to using new executeV2 execution method which leverages
|
|
295
|
+
them. Backwards compatibility maintained, but users should move to executeV2.
|
|
296
|
+
- Updated dependencies
|
|
297
|
+
[[`357d475f5`](https://github.com/graphile/crystal/commit/357d475f54fecc8c51892e0346d6872b34132430),
|
|
298
|
+
[`3551725e7`](https://github.com/graphile/crystal/commit/3551725e71c3ed876554e19e5ab2c1dcb0fb1143),
|
|
299
|
+
[`80836471e`](https://github.com/graphile/crystal/commit/80836471e5cedb29dee63bc5002550c4f1713cfd),
|
|
300
|
+
[`a5c20fefb`](https://github.com/graphile/crystal/commit/a5c20fefb571dea6d1187515dc48dd547e9e6204),
|
|
301
|
+
[`1ce08980e`](https://github.com/graphile/crystal/commit/1ce08980e2a52ed9bc81564d248c19648ecd3616),
|
|
302
|
+
[`dff4f2535`](https://github.com/graphile/crystal/commit/dff4f2535ac6ce893089b312fcd5fffcd98573a5),
|
|
303
|
+
[`a287a57c2`](https://github.com/graphile/crystal/commit/a287a57c2765da0fb6a132ea0953f64453210ceb),
|
|
304
|
+
[`2fe56f9a6`](https://github.com/graphile/crystal/commit/2fe56f9a6dac03484ace45c29c2223a65f9ca1db),
|
|
305
|
+
[`fed603d71`](https://github.com/graphile/crystal/commit/fed603d719c02f33e12190f925c9e3b06c581fac),
|
|
306
|
+
[`ed6e0d278`](https://github.com/graphile/crystal/commit/ed6e0d2788217a1c419634837f4208013eaf2923),
|
|
307
|
+
[`e82e4911e`](https://github.com/graphile/crystal/commit/e82e4911e32138df1b90ec0fde555ea963018d21),
|
|
308
|
+
[`42ece5aa6`](https://github.com/graphile/crystal/commit/42ece5aa6ca05345ebc17fb5c7d55df3b79b7612),
|
|
309
|
+
[`e0d69e518`](https://github.com/graphile/crystal/commit/e0d69e518a98c70f9b90f59d243ce33978c1b5a1),
|
|
310
|
+
[`6699388ec`](https://github.com/graphile/crystal/commit/6699388ec167d35c71220ce5d9113cac578da6cb),
|
|
311
|
+
[`966203504`](https://github.com/graphile/crystal/commit/96620350467ab8c65b56adf2f055e19450f8e772),
|
|
312
|
+
[`c1645b249`](https://github.com/graphile/crystal/commit/c1645b249aae949a548cd916e536ccfb63e5ab35),
|
|
313
|
+
[`ed8bbaa3c`](https://github.com/graphile/crystal/commit/ed8bbaa3cd1563a7601ca8c6b0412633b0ea4ce9),
|
|
314
|
+
[`a0e82b9c5`](https://github.com/graphile/crystal/commit/a0e82b9c5f4e585f1af1e147299cd07944ece6f8),
|
|
315
|
+
[`14e2412ee`](https://github.com/graphile/crystal/commit/14e2412ee368e8d53abf6774c7f0069f32d4e8a3),
|
|
316
|
+
[`57ab0e1e7`](https://github.com/graphile/crystal/commit/57ab0e1e72c01213b21d3efc539cd655d83d993a),
|
|
317
|
+
[`8442242e4`](https://github.com/graphile/crystal/commit/8442242e43cac7d89ca0c413cf42c9fabf6f247f),
|
|
318
|
+
[`64ce7b765`](https://github.com/graphile/crystal/commit/64ce7b7650530251aec38a51089da66f914c19b4),
|
|
319
|
+
[`cba842357`](https://github.com/graphile/crystal/commit/cba84235786acbd77ade53bae7a3fba4a9be1eb7),
|
|
320
|
+
[`2fa77d0f2`](https://github.com/graphile/crystal/commit/2fa77d0f237cdb98d3dafb6b5e4083a2c6c38673)]:
|
|
321
|
+
- grafast@0.1.1-beta.7
|
|
322
|
+
|
|
323
|
+
## 0.0.1-beta.15
|
|
324
|
+
|
|
325
|
+
### Patch Changes
|
|
326
|
+
|
|
327
|
+
- Updated dependencies
|
|
328
|
+
[[`9f85c614d`](https://github.com/graphile/crystal/commit/9f85c614d48dc745c5fed15333dbb75af7fddc88),
|
|
329
|
+
[`6c6be29f1`](https://github.com/graphile/crystal/commit/6c6be29f12b24782c926b2bc62ed2ede09ac05de),
|
|
330
|
+
[`8315e8d01`](https://github.com/graphile/crystal/commit/8315e8d01c118cebc4ebbc53a2f264b958b252ad)]:
|
|
331
|
+
- grafast@0.1.1-beta.6
|
|
332
|
+
|
|
333
|
+
## 0.0.1-beta.14
|
|
334
|
+
|
|
335
|
+
### Patch Changes
|
|
336
|
+
|
|
337
|
+
- [#1924](https://github.com/graphile/crystal/pull/1924)
|
|
338
|
+
[`ef44c29b2`](https://github.com/graphile/crystal/commit/ef44c29b24a1ad5a042ae1536a4546dd64b17195)
|
|
339
|
+
Thanks [@benjie](https://github.com/benjie)! - 🚨 TypeScript is now configured
|
|
340
|
+
to hide interfaces marked as `@internal`. This may result in a few errors
|
|
341
|
+
where you're accessing things you oughtn't be, but also may hide some
|
|
342
|
+
interfaces that should be exposed - please file an issue if an API you were
|
|
343
|
+
dependent on has been removed from the TypeScript typings. If that API happens
|
|
344
|
+
to be `step.dependencies`; you should first read this:
|
|
345
|
+
https://benjie.dev/graphql/ancestors
|
|
346
|
+
- Updated dependencies
|
|
347
|
+
[[`63dd7ea99`](https://github.com/graphile/crystal/commit/63dd7ea992d30ad711dd85a73a127484a0e35479),
|
|
348
|
+
[`d801c9778`](https://github.com/graphile/crystal/commit/d801c9778a86d61e060896460af9fe62a733534a),
|
|
349
|
+
[`ef44c29b2`](https://github.com/graphile/crystal/commit/ef44c29b24a1ad5a042ae1536a4546dd64b17195)]:
|
|
350
|
+
- grafast@0.1.1-beta.5
|
|
351
|
+
|
|
352
|
+
## 0.0.1-beta.13
|
|
353
|
+
|
|
354
|
+
### Patch Changes
|
|
355
|
+
|
|
356
|
+
- Updated dependencies
|
|
357
|
+
[[`a2176ea32`](https://github.com/graphile/crystal/commit/a2176ea324db0801249661b30e9c9d314c6fb159),
|
|
358
|
+
[`886833e2e`](https://github.com/graphile/crystal/commit/886833e2e319f23d905d7184ca88fca701b94044)]:
|
|
359
|
+
- grafast@0.1.1-beta.4
|
|
360
|
+
|
|
361
|
+
## 0.0.1-beta.12
|
|
362
|
+
|
|
363
|
+
### Patch Changes
|
|
364
|
+
|
|
365
|
+
- Updated dependencies []:
|
|
366
|
+
- grafast@0.1.1-beta.3
|
|
367
|
+
|
|
368
|
+
## 0.0.1-beta.11
|
|
369
|
+
|
|
370
|
+
### Patch Changes
|
|
371
|
+
|
|
372
|
+
- Updated dependencies
|
|
373
|
+
[[`3fdc2bce4`](https://github.com/graphile/crystal/commit/3fdc2bce42418773f808c5b8309dfb361cd95ce9),
|
|
374
|
+
[`aeef362b5`](https://github.com/graphile/crystal/commit/aeef362b5744816f01e4a6f714bbd77f92332bc5),
|
|
375
|
+
[`8a76db07f`](https://github.com/graphile/crystal/commit/8a76db07f4c110cecc6225504f9a05ccbcbc7b92),
|
|
376
|
+
[`8a0cdb95f`](https://github.com/graphile/crystal/commit/8a0cdb95f200b28b0ea1ab5caa12b23dce5f374f),
|
|
377
|
+
[`1c9f1c0ed`](https://github.com/graphile/crystal/commit/1c9f1c0edf4e621a5b6345d3a41527a18143c6ae)]:
|
|
378
|
+
- grafast@0.1.1-beta.2
|
|
379
|
+
|
|
380
|
+
## 0.0.1-beta.10
|
|
381
|
+
|
|
382
|
+
### Patch Changes
|
|
383
|
+
|
|
384
|
+
- Updated dependencies
|
|
385
|
+
[[`49fcb0d58`](https://github.com/graphile/crystal/commit/49fcb0d585b31b291c9072c339d6f5b550eefc9f)]:
|
|
386
|
+
- grafast@0.1.1-beta.1
|
|
387
|
+
|
|
3
388
|
## 0.0.1-beta.9
|
|
4
389
|
|
|
5
390
|
### Patch Changes
|
package/README.md
CHANGED
|
@@ -23,13 +23,7 @@ And please give some love to our featured sponsors 🤩:
|
|
|
23
23
|
|
|
24
24
|
<table><tr>
|
|
25
25
|
<td align="center"><a href="https://www.the-guild.dev/"><img src="https://graphile.org/images/sponsors/theguild.png" width="90" height="90" alt="The Guild" /><br />The Guild</a> *</td>
|
|
26
|
-
<td align="center"><a href="https://
|
|
27
|
-
<td align="center"><a href="https://www.netflix.com/"><img src="https://graphile.org/images/sponsors/Netflix.png" width="90" height="90" alt="Netflix" /><br />Netflix</a> *</td>
|
|
28
|
-
<td align="center"><a href=""><img src="https://graphile.org/images/sponsors/chadf.png" width="90" height="90" alt="Chad Furman" /><br />Chad Furman</a> *</td>
|
|
29
|
-
</tr><tr>
|
|
30
|
-
<td align="center"><a href="https://stellate.co/"><img src="https://graphile.org/images/sponsors/Stellate.png" width="90" height="90" alt="Stellate" /><br />Stellate</a> *</td>
|
|
31
|
-
<td align="center"><a href="https://www.accenture.com/"><img src="https://graphile.org/images/sponsors/accenture.svg" width="90" height="90" alt="Accenture" /><br />Accenture</a> *</td>
|
|
32
|
-
<td align="center"><a href="https://microteam.io/"><img src="https://graphile.org/images/sponsors/micro.png" width="90" height="90" alt="We Love Micro" /><br />We Love Micro</a> *</td>
|
|
26
|
+
<td align="center"><a href="https://gosteelhead.com/"><img src="https://graphile.org/images/sponsors/steelhead.svg" width="90" height="90" alt="Steelhead" /><br />Steelhead</a> *</td>
|
|
33
27
|
</tr></table>
|
|
34
28
|
|
|
35
29
|
<em>\* Sponsors the entire Graphile suite</em>
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { AccessStep,
|
|
2
|
-
import {
|
|
1
|
+
import type { AccessStep, ExecutionDetails, GrafastResultsList } from "grafast";
|
|
2
|
+
import { Step } from "grafast";
|
|
3
3
|
export type JSONValue = string | number | boolean | null | {
|
|
4
4
|
[key: string]: JSONValue;
|
|
5
5
|
} | Array<JSONValue>;
|
|
@@ -7,23 +7,25 @@ export type JSONValue = string | number | boolean | null | {
|
|
|
7
7
|
* This plan accepts as JSON string as its only input and will result in the
|
|
8
8
|
* parsed JSON object (or array, boolean, string, etc).
|
|
9
9
|
*/
|
|
10
|
-
export declare class JSONParseStep<TJSON extends JSONValue> extends
|
|
10
|
+
export declare class JSONParseStep<TJSON extends JSONValue> extends Step<TJSON> {
|
|
11
11
|
static $$export: {
|
|
12
12
|
moduleName: string;
|
|
13
13
|
exportName: string;
|
|
14
14
|
};
|
|
15
15
|
isSyncAndSafe: boolean;
|
|
16
|
-
constructor($stringPlan:
|
|
16
|
+
constructor($stringPlan: Step<string | null>);
|
|
17
17
|
toStringMeta(): string;
|
|
18
|
-
|
|
19
|
-
[
|
|
20
|
-
}
|
|
18
|
+
__inferGet?: {
|
|
19
|
+
[TKey in keyof TJSON]: AccessStep<TJSON extends Record<string, unknown> ? TJSON[TKey] : never>;
|
|
20
|
+
};
|
|
21
|
+
get<TKey extends keyof TJSON>(key: TKey): AccessStep<TJSON extends Record<string, unknown> ? TJSON[TKey] : never>;
|
|
21
22
|
at<TIndex extends keyof TJSON & number>(index: TIndex): AccessStep<TJSON[TIndex]>;
|
|
22
|
-
|
|
23
|
+
deduplicate(_peers: readonly Step[]): readonly Step[];
|
|
24
|
+
execute({ indexMap, values: [stringDep], }: ExecutionDetails<[string]>): GrafastResultsList<TJSON>;
|
|
23
25
|
}
|
|
24
26
|
/**
|
|
25
27
|
* This plan accepts as JSON string as its only input and will result in the
|
|
26
28
|
* parsed JSON object (or array, boolean, string, etc).
|
|
27
29
|
*/
|
|
28
|
-
export declare function jsonParse<TJSON extends JSONValue>($string:
|
|
30
|
+
export declare function jsonParse<TJSON extends JSONValue>($string: Step<string | null>): JSONParseStep<TJSON>;
|
|
29
31
|
//# sourceMappingURL=jsonParse.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"jsonParse.d.ts","sourceRoot":"","sources":["../../src/steps/jsonParse.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EACV,UAAU,EACV,
|
|
1
|
+
{"version":3,"file":"jsonParse.d.ts","sourceRoot":"","sources":["../../src/steps/jsonParse.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EACV,UAAU,EACV,gBAAgB,EAChB,kBAAkB,EAEnB,MAAM,SAAS,CAAC;AACjB,OAAO,EAAoB,IAAI,EAAE,MAAM,SAAS,CAAC;AAEjD,MAAM,MAAM,SAAS,GACjB,MAAM,GACN,MAAM,GACN,OAAO,GACP,IAAI,GACJ;IAAE,CAAC,GAAG,EAAE,MAAM,GAAG,SAAS,CAAA;CAAE,GAC5B,KAAK,CAAC,SAAS,CAAC,CAAC;AAErB;;;GAGG;AACH,qBAAa,aAAa,CAAC,KAAK,SAAS,SAAS,CAAE,SAAQ,IAAI,CAAC,KAAK,CAAC;IACrE,MAAM,CAAC,QAAQ;;;MAGb;IAGF,aAAa,UAAS;gBAEV,WAAW,EAAE,IAAI,CAAC,MAAM,GAAG,IAAI,CAAC;IAK5C,YAAY,IAAI,MAAM;IAItB,UAAU,CAAC,EAAE;SACV,IAAI,IAAI,MAAM,KAAK,GAAG,UAAU,CAC/B,KAAK,SAAS,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,KAAK,CAAC,IAAI,CAAC,GAAG,KAAK,CAC5D;KACF,CAAC;IACF,GAAG,CAAC,IAAI,SAAS,MAAM,KAAK,EAC1B,GAAG,EAAE,IAAI,GACR,UAAU,CAAC,KAAK,SAAS,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,KAAK,CAAC,IAAI,CAAC,GAAG,KAAK,CAAC;IAI1E,EAAE,CAAC,MAAM,SAAS,MAAM,KAAK,GAAG,MAAM,EACpC,KAAK,EAAE,MAAM,GACZ,UAAU,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC;IAIrB,WAAW,CAAC,MAAM,EAAE,SAAS,IAAI,EAAE,GAAG,SAAS,IAAI,EAAE;IAK5D,OAAO,CAAC,EACN,QAAQ,EACR,MAAM,EAAE,CAAC,SAAS,CAAC,GACpB,EAAE,gBAAgB,CAAC,CAAC,MAAM,CAAC,CAAC,GAAG,kBAAkB,CAAC,KAAK,CAAC;CAsB1D;AAED;;;GAGG;AACH,wBAAgB,SAAS,CAAC,KAAK,SAAS,SAAS,EAC/C,OAAO,EAAE,IAAI,CAAC,MAAM,GAAG,IAAI,CAAC,GAC3B,aAAa,CAAC,KAAK,CAAC,CAEtB"}
|
package/dist/steps/jsonParse.js
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.JSONParseStep = void 0;
|
|
4
|
+
exports.jsonParse = jsonParse;
|
|
4
5
|
const tslib_1 = require("tslib");
|
|
5
6
|
const chalk_1 = tslib_1.__importDefault(require("chalk"));
|
|
6
7
|
const grafast_1 = require("grafast");
|
|
@@ -8,7 +9,7 @@ const grafast_1 = require("grafast");
|
|
|
8
9
|
* This plan accepts as JSON string as its only input and will result in the
|
|
9
10
|
* parsed JSON object (or array, boolean, string, etc).
|
|
10
11
|
*/
|
|
11
|
-
class JSONParseStep extends grafast_1.
|
|
12
|
+
class JSONParseStep extends grafast_1.Step {
|
|
12
13
|
static { this.$$export = {
|
|
13
14
|
moduleName: "@dataplan/json",
|
|
14
15
|
exportName: "JSONParseStep",
|
|
@@ -18,10 +19,10 @@ class JSONParseStep extends grafast_1.ExecutableStep {
|
|
|
18
19
|
// We're not safe because if parsing JSON fails we'll include a rejected
|
|
19
20
|
// promise.
|
|
20
21
|
this.isSyncAndSafe = false;
|
|
21
|
-
this.
|
|
22
|
+
this.addDataDependency($stringPlan);
|
|
22
23
|
}
|
|
23
24
|
toStringMeta() {
|
|
24
|
-
return chalk_1.default.bold.yellow(String(this.
|
|
25
|
+
return chalk_1.default.bold.yellow(String(this.getDep(0).id));
|
|
25
26
|
}
|
|
26
27
|
get(key) {
|
|
27
28
|
return (0, grafast_1.access)(this, [key]);
|
|
@@ -29,27 +30,28 @@ class JSONParseStep extends grafast_1.ExecutableStep {
|
|
|
29
30
|
at(index) {
|
|
30
31
|
return (0, grafast_1.access)(this, [index]);
|
|
31
32
|
}
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
33
|
+
deduplicate(_peers) {
|
|
34
|
+
// We're all the same
|
|
35
|
+
return _peers;
|
|
36
|
+
}
|
|
37
|
+
execute({ indexMap, values: [stringDep], }) {
|
|
38
|
+
return indexMap((i) => {
|
|
39
|
+
const v = stringDep.at(i);
|
|
37
40
|
if (typeof v === "string") {
|
|
38
41
|
try {
|
|
39
|
-
|
|
42
|
+
return JSON.parse(v);
|
|
40
43
|
}
|
|
41
44
|
catch (e) {
|
|
42
|
-
|
|
45
|
+
return Promise.reject(e);
|
|
43
46
|
}
|
|
44
47
|
}
|
|
45
48
|
else if (v == null) {
|
|
46
|
-
|
|
49
|
+
return null;
|
|
47
50
|
}
|
|
48
51
|
else {
|
|
49
|
-
|
|
52
|
+
return Promise.reject(new Error(`JSONParseStep: expected string to parse, but received ${Array.isArray(v) ? "array" : typeof v}`));
|
|
50
53
|
}
|
|
51
|
-
}
|
|
52
|
-
return result;
|
|
54
|
+
});
|
|
53
55
|
}
|
|
54
56
|
}
|
|
55
57
|
exports.JSONParseStep = JSONParseStep;
|
|
@@ -60,6 +62,5 @@ exports.JSONParseStep = JSONParseStep;
|
|
|
60
62
|
function jsonParse($string) {
|
|
61
63
|
return new JSONParseStep($string);
|
|
62
64
|
}
|
|
63
|
-
exports.jsonParse = jsonParse;
|
|
64
65
|
(0, grafast_1.exportAs)("@dataplan/json", jsonParse, "jsonParse");
|
|
65
66
|
//# sourceMappingURL=jsonParse.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"jsonParse.js","sourceRoot":"","sources":["../../src/steps/jsonParse.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"jsonParse.js","sourceRoot":"","sources":["../../src/steps/jsonParse.ts"],"names":[],"mappings":";;;AA4FA,8BAIC;;AAhGD,0DAA0B;AAO1B,qCAAiD;AAUjD;;;GAGG;AACH,MAAa,aAAuC,SAAQ,cAAW;aAC9D,aAAQ,GAAG;QAChB,UAAU,EAAE,gBAAgB;QAC5B,UAAU,EAAE,eAAe;KAC5B,AAHc,CAGb;IAKF,YAAY,WAAgC;QAC1C,KAAK,EAAE,CAAC;QALV,wEAAwE;QACxE,WAAW;QACX,kBAAa,GAAG,KAAK,CAAC;QAIpB,IAAI,CAAC,iBAAiB,CAAC,WAAW,CAAC,CAAC;IACtC,CAAC;IAED,YAAY;QACV,OAAO,eAAK,CAAC,IAAI,CAAC,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC;IACtD,CAAC;IAOD,GAAG,CACD,GAAS;QAET,OAAO,IAAA,gBAAM,EAAC,IAAI,EAAE,CAAC,GAAa,CAAC,CAAC,CAAC;IACvC,CAAC;IAED,EAAE,CACA,KAAa;QAEb,OAAO,IAAA,gBAAM,EAAC,IAAI,EAAE,CAAC,KAAK,CAAC,CAAC,CAAC;IAC/B,CAAC;IAEM,WAAW,CAAC,MAAuB;QACxC,qBAAqB;QACrB,OAAO,MAAM,CAAC;IAChB,CAAC;IAED,OAAO,CAAC,EACN,QAAQ,EACR,MAAM,EAAE,CAAC,SAAS,CAAC,GACQ;QAC3B,OAAO,QAAQ,CAAyB,CAAC,CAAC,EAAE,EAAE;YAC5C,MAAM,CAAC,GAAG,SAAS,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC;YAC1B,IAAI,OAAO,CAAC,KAAK,QAAQ,EAAE,CAAC;gBAC1B,IAAI,CAAC;oBACH,OAAO,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC;gBACvB,CAAC;gBAAC,OAAO,CAAC,EAAE,CAAC;oBACX,OAAO,OAAO,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC;gBAC3B,CAAC;YACH,CAAC;iBAAM,IAAI,CAAC,IAAI,IAAI,EAAE,CAAC;gBACrB,OAAO,IAAW,CAAC;YACrB,CAAC;iBAAM,CAAC;gBACN,OAAO,OAAO,CAAC,MAAM,CACnB,IAAI,KAAK,CACP,yDACE,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,OAAO,CACtC,EAAE,CACH,CACF,CAAC;YACJ,CAAC;QACH,CAAC,CAAC,CAAC;IACL,CAAC;;AAhEH,sCAiEC;AAED;;;GAGG;AACH,SAAgB,SAAS,CACvB,OAA4B;IAE5B,OAAO,IAAI,aAAa,CAAQ,OAAO,CAAC,CAAC;AAC3C,CAAC;AACD,IAAA,kBAAQ,EAAC,gBAAgB,EAAE,SAAS,EAAE,WAAW,CAAC,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dataplan/json",
|
|
3
|
-
"version": "0.0
|
|
3
|
+
"version": "1.0.0-rc.2",
|
|
4
4
|
"description": "JSON step classes for Grafast",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -27,21 +27,21 @@
|
|
|
27
27
|
"homepage": "https://github.com/graphile/crystal/tree/main/grafast/dataplan-json",
|
|
28
28
|
"dependencies": {
|
|
29
29
|
"chalk": "^4.1.2",
|
|
30
|
-
"tslib": "^2.
|
|
30
|
+
"tslib": "^2.8.1"
|
|
31
31
|
},
|
|
32
32
|
"engines": {
|
|
33
33
|
"node": ">=14.17"
|
|
34
34
|
},
|
|
35
35
|
"peerDependencies": {
|
|
36
|
-
"grafast": "^0.
|
|
36
|
+
"grafast": "^1.0.0-rc.2"
|
|
37
37
|
},
|
|
38
38
|
"files": [
|
|
39
39
|
"dist"
|
|
40
40
|
],
|
|
41
41
|
"devDependencies": {
|
|
42
|
-
"@types/jest": "^
|
|
43
|
-
"jest": "^
|
|
44
|
-
"jest-serializer-simple": "^5.0.0-
|
|
45
|
-
"typescript": "^5.
|
|
42
|
+
"@types/jest": "^30.0.0",
|
|
43
|
+
"jest": "^30.2.0",
|
|
44
|
+
"jest-serializer-simple": "^5.0.0-rc.2",
|
|
45
|
+
"typescript": "^5.9.3"
|
|
46
46
|
}
|
|
47
47
|
}
|