@dataplan/json 0.0.1-alpha.8 → 0.0.1-beta.1
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 +155 -50
- package/README.md +2 -3
- package/dist/steps/jsonParse.d.ts +8 -0
- package/dist/steps/jsonParse.d.ts.map +1 -1
- package/dist/steps/jsonParse.js +11 -1
- package/package.json +3 -4
package/CHANGELOG.md
CHANGED
|
@@ -1,11 +1,116 @@
|
|
|
1
1
|
# @dataplan/json
|
|
2
2
|
|
|
3
|
+
## 0.0.1-beta.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [`cbd987385`](https://github.com/benjie/crystal/commit/cbd987385f99bd1248bc093ac507cc2f641ba3e8)
|
|
8
|
+
Thanks [@benjie](https://github.com/benjie)! - Bump all packages to beta
|
|
9
|
+
|
|
10
|
+
- Updated dependencies
|
|
11
|
+
[[`cbd987385`](https://github.com/benjie/crystal/commit/cbd987385f99bd1248bc093ac507cc2f641ba3e8)]:
|
|
12
|
+
- grafast@0.0.1-beta.1
|
|
13
|
+
|
|
14
|
+
## 0.0.1-alpha.16
|
|
15
|
+
|
|
16
|
+
### Patch Changes
|
|
17
|
+
|
|
18
|
+
- Updated dependencies
|
|
19
|
+
[[`dfefdad3c`](https://github.com/benjie/crystal/commit/dfefdad3cd5a99c36d47eb0bddd914bab4ca9a1f)]:
|
|
20
|
+
- grafast@0.0.1-alpha.16
|
|
21
|
+
|
|
22
|
+
## 0.0.1-alpha.15
|
|
23
|
+
|
|
24
|
+
### Patch Changes
|
|
25
|
+
|
|
26
|
+
- [#422](https://github.com/benjie/crystal/pull/422)
|
|
27
|
+
[`9f87a26b1`](https://github.com/benjie/crystal/commit/9f87a26b10e5539aa88cfd9909e265513e941fd5)
|
|
28
|
+
Thanks [@benjie](https://github.com/benjie)! - Comments enabled in released
|
|
29
|
+
packages
|
|
30
|
+
|
|
31
|
+
- Updated dependencies
|
|
32
|
+
[[`ea003ca3a`](https://github.com/benjie/crystal/commit/ea003ca3a8f68fb87dca603582e47981ed033996),
|
|
33
|
+
[`57d88b5fa`](https://github.com/benjie/crystal/commit/57d88b5fa3ed296210c1fcb223452213fd57985b),
|
|
34
|
+
[`9f87a26b1`](https://github.com/benjie/crystal/commit/9f87a26b10e5539aa88cfd9909e265513e941fd5)]:
|
|
35
|
+
- grafast@0.0.1-alpha.15
|
|
36
|
+
|
|
37
|
+
## 0.0.1-alpha.14
|
|
38
|
+
|
|
39
|
+
### Patch Changes
|
|
40
|
+
|
|
41
|
+
- Updated dependencies
|
|
42
|
+
[[`d99d666fb`](https://github.com/benjie/crystal/commit/d99d666fb234eb02dd196610995fa480c596242a)]:
|
|
43
|
+
- grafast@0.0.1-alpha.14
|
|
44
|
+
|
|
45
|
+
## 0.0.1-alpha.13
|
|
46
|
+
|
|
47
|
+
### Patch Changes
|
|
48
|
+
|
|
49
|
+
- [#418](https://github.com/benjie/crystal/pull/418)
|
|
50
|
+
[`9ab2adba2`](https://github.com/benjie/crystal/commit/9ab2adba2c146b5d1bc91bbb2f25e4645ed381de)
|
|
51
|
+
Thanks [@benjie](https://github.com/benjie)! - Overhaul peerDependencies and
|
|
52
|
+
dependencies to try and eliminate duplicate modules error.
|
|
53
|
+
- Updated dependencies
|
|
54
|
+
[[`620f9e07e`](https://github.com/benjie/crystal/commit/620f9e07ec6f4d66a8dc01ed6bb054a75f7b1c8b),
|
|
55
|
+
[`1882e0185`](https://github.com/benjie/crystal/commit/1882e018576adf69bcae8a999224cb4d5e62a3e1),
|
|
56
|
+
[`881672305`](https://github.com/benjie/crystal/commit/88167230578393e3b24a364f0d673e36c5cb088d),
|
|
57
|
+
[`e5012f9a1`](https://github.com/benjie/crystal/commit/e5012f9a1901af63e1703ea4d717e8a22544f5e7),
|
|
58
|
+
[`9ab2adba2`](https://github.com/benjie/crystal/commit/9ab2adba2c146b5d1bc91bbb2f25e4645ed381de),
|
|
59
|
+
[`47f6f018b`](https://github.com/benjie/crystal/commit/47f6f018b11761cbfaa63d709edc0e3f4f9a9924),
|
|
60
|
+
[`ff4395bfc`](https://github.com/benjie/crystal/commit/ff4395bfc6e6b2fb263f644dae1e984c52dd84b9),
|
|
61
|
+
[`502b23340`](https://github.com/benjie/crystal/commit/502b233401975637bc0d516af78721b37f6f9b7b)]:
|
|
62
|
+
- grafast@0.0.1-alpha.13
|
|
63
|
+
|
|
64
|
+
## 0.0.1-alpha.12
|
|
65
|
+
|
|
66
|
+
### Patch Changes
|
|
67
|
+
|
|
68
|
+
- Updated dependencies
|
|
69
|
+
[[`9281a2d88`](https://github.com/benjie/crystal/commit/9281a2d889ab1e72a3f6f9777779f31a6588d478),
|
|
70
|
+
[`675b7abb9`](https://github.com/benjie/crystal/commit/675b7abb93e11d955930b9026fb0b65a56ecc999)]:
|
|
71
|
+
- grafast@0.0.1-alpha.12
|
|
72
|
+
|
|
73
|
+
## 0.0.1-alpha.11
|
|
74
|
+
|
|
75
|
+
### Patch Changes
|
|
76
|
+
|
|
77
|
+
- Updated dependencies []:
|
|
78
|
+
- grafast@0.0.1-alpha.11
|
|
79
|
+
|
|
80
|
+
## 0.0.1-alpha.10
|
|
81
|
+
|
|
82
|
+
### Patch Changes
|
|
83
|
+
|
|
84
|
+
- Updated dependencies
|
|
85
|
+
[[`409581534`](https://github.com/benjie/crystal/commit/409581534f41ac2cf0ff21c77c2bcd8eaa8218fd),
|
|
86
|
+
[`b7533bd4d`](https://github.com/benjie/crystal/commit/b7533bd4dfc210cb8b113b8fa06f163a212aa5e4),
|
|
87
|
+
[`9feb769c2`](https://github.com/benjie/crystal/commit/9feb769c2df0c57971ed26a937be4a1bee7a7524),
|
|
88
|
+
[`7573bf374`](https://github.com/benjie/crystal/commit/7573bf374897228b613b19f37b4e076737db3279),
|
|
89
|
+
[`2c8586b36`](https://github.com/benjie/crystal/commit/2c8586b367b76af91d1785cc90455c70911fdec7),
|
|
90
|
+
[`c43802d74`](https://github.com/benjie/crystal/commit/c43802d7419f93d18964c654f16d0937a2e23ca0),
|
|
91
|
+
[`b118b8f6d`](https://github.com/benjie/crystal/commit/b118b8f6dc18196212cfb0a05486e1dd8d77ccf8),
|
|
92
|
+
[`9008c4f87`](https://github.com/benjie/crystal/commit/9008c4f87df53be4051c49f9836358dc2baa59df),
|
|
93
|
+
[`e8c81cd20`](https://github.com/benjie/crystal/commit/e8c81cd2046390ed5b6799aa7ff3d90b28a1861a)]:
|
|
94
|
+
- grafast@0.0.1-alpha.10
|
|
95
|
+
|
|
96
|
+
## 0.0.1-alpha.9
|
|
97
|
+
|
|
98
|
+
### Patch Changes
|
|
99
|
+
|
|
100
|
+
- Updated dependencies
|
|
101
|
+
[[`56237691b`](https://github.com/benjie/crystal/commit/56237691bf3eed321b7159e17f36e3651356946f),
|
|
102
|
+
[`ed1982f31`](https://github.com/benjie/crystal/commit/ed1982f31a845ceb3aafd4b48d667649f06778f5),
|
|
103
|
+
[`1fe47a2b0`](https://github.com/benjie/crystal/commit/1fe47a2b08d6e7153a22dde3a99b7a9bf50c4f84),
|
|
104
|
+
[`6878c589c`](https://github.com/benjie/crystal/commit/6878c589cc9fc8f05a6efd377e1272ae24fbf256),
|
|
105
|
+
[`2ac706f18`](https://github.com/benjie/crystal/commit/2ac706f18660c855fe20f460b50694fdd04a7768)]:
|
|
106
|
+
- grafast@0.0.1-alpha.9
|
|
107
|
+
|
|
3
108
|
## 0.0.1-alpha.8
|
|
4
109
|
|
|
5
110
|
### Patch Changes
|
|
6
111
|
|
|
7
112
|
- Updated dependencies
|
|
8
|
-
[[`dd3ef599c`](https://github.com/benjie/
|
|
113
|
+
[[`dd3ef599c`](https://github.com/benjie/crystal/commit/dd3ef599c7f2530fd1a19a852d334b7349e49e70)]:
|
|
9
114
|
- grafast@0.0.1-alpha.8
|
|
10
115
|
|
|
11
116
|
## 0.0.1-alpha.7
|
|
@@ -13,9 +118,9 @@
|
|
|
13
118
|
### Patch Changes
|
|
14
119
|
|
|
15
120
|
- Updated dependencies
|
|
16
|
-
[[`5c9d32264`](https://github.com/benjie/
|
|
17
|
-
[`2fcbe688c`](https://github.com/benjie/
|
|
18
|
-
[`3a984718a`](https://github.com/benjie/
|
|
121
|
+
[[`5c9d32264`](https://github.com/benjie/crystal/commit/5c9d322644028e33f5273fb9bcaaf6a80f1f7360),
|
|
122
|
+
[`2fcbe688c`](https://github.com/benjie/crystal/commit/2fcbe688c11b355f0688b96e99012a829cf8b7cb),
|
|
123
|
+
[`3a984718a`](https://github.com/benjie/crystal/commit/3a984718a322685304777dec7cd48a1efa15539d)]:
|
|
19
124
|
- grafast@0.0.1-alpha.7
|
|
20
125
|
|
|
21
126
|
## 0.0.1-alpha.6
|
|
@@ -23,7 +128,7 @@
|
|
|
23
128
|
### Patch Changes
|
|
24
129
|
|
|
25
130
|
- Updated dependencies
|
|
26
|
-
[[`f75926f4b`](https://github.com/benjie/
|
|
131
|
+
[[`f75926f4b`](https://github.com/benjie/crystal/commit/f75926f4b9aee33adff8bdf6b1a4137582cb47ba)]:
|
|
27
132
|
- grafast@0.0.1-alpha.6
|
|
28
133
|
|
|
29
134
|
## 0.0.1-alpha.5
|
|
@@ -31,8 +136,8 @@
|
|
|
31
136
|
### Patch Changes
|
|
32
137
|
|
|
33
138
|
- Updated dependencies
|
|
34
|
-
[[`86e503d78`](https://github.com/benjie/
|
|
35
|
-
[`24822d0dc`](https://github.com/benjie/
|
|
139
|
+
[[`86e503d78`](https://github.com/benjie/crystal/commit/86e503d785626ad9a2e91ec2e70b272dd632d425),
|
|
140
|
+
[`24822d0dc`](https://github.com/benjie/crystal/commit/24822d0dc87d41f0b0737d6e00cf4022de4bab5e)]:
|
|
36
141
|
- grafast@0.0.1-alpha.5
|
|
37
142
|
|
|
38
143
|
## 0.0.1-alpha.4
|
|
@@ -40,23 +145,23 @@
|
|
|
40
145
|
### Patch Changes
|
|
41
146
|
|
|
42
147
|
- Updated dependencies
|
|
43
|
-
[[`45dcf3a8f`](https://github.com/benjie/
|
|
148
|
+
[[`45dcf3a8f`](https://github.com/benjie/crystal/commit/45dcf3a8fd8bad5c8b82a7cbff2db4dacb916950)]:
|
|
44
149
|
- grafast@0.0.1-alpha.4
|
|
45
150
|
|
|
46
151
|
## 0.0.1-alpha.3
|
|
47
152
|
|
|
48
153
|
### Patch Changes
|
|
49
154
|
|
|
50
|
-
- [`7f857950a`](https://github.com/benjie/
|
|
155
|
+
- [`7f857950a`](https://github.com/benjie/crystal/commit/7f857950a7e4ec763c936eb6bd1fb77824041d71)
|
|
51
156
|
Thanks [@benjie](https://github.com/benjie)! - Upgrade to the latest
|
|
52
157
|
TypeScript/tslib
|
|
53
158
|
|
|
54
159
|
- Updated dependencies
|
|
55
|
-
[[`2389f47ec`](https://github.com/benjie/
|
|
56
|
-
[`e91ee201d`](https://github.com/benjie/
|
|
57
|
-
[`865bec590`](https://github.com/benjie/
|
|
58
|
-
[`7f857950a`](https://github.com/benjie/
|
|
59
|
-
[`d39a5d409`](https://github.com/benjie/
|
|
160
|
+
[[`2389f47ec`](https://github.com/benjie/crystal/commit/2389f47ecf3b708f1085fdeb818eacaaeb257a2d),
|
|
161
|
+
[`e91ee201d`](https://github.com/benjie/crystal/commit/e91ee201d80d3b32e4e632b101f4c25362a1a05b),
|
|
162
|
+
[`865bec590`](https://github.com/benjie/crystal/commit/865bec5901f666e147f5d4088152d1f0d2584827),
|
|
163
|
+
[`7f857950a`](https://github.com/benjie/crystal/commit/7f857950a7e4ec763c936eb6bd1fb77824041d71),
|
|
164
|
+
[`d39a5d409`](https://github.com/benjie/crystal/commit/d39a5d409ffe1a5855740ecbff1ad11ec0bf6660)]:
|
|
60
165
|
- grafast@0.0.1-alpha.3
|
|
61
166
|
|
|
62
167
|
## 0.0.1-alpha.2
|
|
@@ -64,19 +169,19 @@
|
|
|
64
169
|
### Patch Changes
|
|
65
170
|
|
|
66
171
|
- Updated dependencies
|
|
67
|
-
[[`3df3f1726`](https://github.com/benjie/
|
|
172
|
+
[[`3df3f1726`](https://github.com/benjie/crystal/commit/3df3f17269bb896cdee90ed8c4ab46fb821a1509)]:
|
|
68
173
|
- grafast@0.0.1-alpha.2
|
|
69
174
|
|
|
70
175
|
## 0.0.1-alpha.1
|
|
71
176
|
|
|
72
177
|
### Patch Changes
|
|
73
178
|
|
|
74
|
-
- [`759ad403d`](https://github.com/benjie/
|
|
179
|
+
- [`759ad403d`](https://github.com/benjie/crystal/commit/759ad403d71363312c5225c165873ae84b8a098c)
|
|
75
180
|
Thanks [@benjie](https://github.com/benjie)! - Alpha release - see
|
|
76
181
|
https://postgraphile.org/news/2023-04-26-version-5-alpha
|
|
77
182
|
|
|
78
183
|
- Updated dependencies
|
|
79
|
-
[[`759ad403d`](https://github.com/benjie/
|
|
184
|
+
[[`759ad403d`](https://github.com/benjie/crystal/commit/759ad403d71363312c5225c165873ae84b8a098c)]:
|
|
80
185
|
- grafast@0.0.1-alpha.1
|
|
81
186
|
|
|
82
187
|
## 0.0.1-1.3
|
|
@@ -84,7 +189,7 @@
|
|
|
84
189
|
### Patch Changes
|
|
85
190
|
|
|
86
191
|
- Updated dependencies
|
|
87
|
-
[[`8d270ead3`](https://github.com/benjie/
|
|
192
|
+
[[`8d270ead3`](https://github.com/benjie/crystal/commit/8d270ead3fa8331e28974aae052bd48ad537d1bf)]:
|
|
88
193
|
- grafast@0.0.1-1.3
|
|
89
194
|
|
|
90
195
|
## 0.0.1-1.2
|
|
@@ -92,19 +197,19 @@
|
|
|
92
197
|
### Patch Changes
|
|
93
198
|
|
|
94
199
|
- Updated dependencies
|
|
95
|
-
[[`7dcb0e008`](https://github.com/benjie/
|
|
200
|
+
[[`7dcb0e008`](https://github.com/benjie/crystal/commit/7dcb0e008bc3a60c9ef325a856d16e0baab0b9f0)]:
|
|
96
201
|
- grafast@0.0.1-1.2
|
|
97
202
|
|
|
98
203
|
## 0.0.1-1.1
|
|
99
204
|
|
|
100
205
|
### Patch Changes
|
|
101
206
|
|
|
102
|
-
- [#260](https://github.com/benjie/
|
|
103
|
-
[`d5312e6b9`](https://github.com/benjie/
|
|
207
|
+
- [#260](https://github.com/benjie/crystal/pull/260)
|
|
208
|
+
[`d5312e6b9`](https://github.com/benjie/crystal/commit/d5312e6b968fbeb46d074b82a41b4bdbc166598c)
|
|
104
209
|
Thanks [@benjie](https://github.com/benjie)! - TypeScript v5 is now required
|
|
105
210
|
|
|
106
|
-
- [#266](https://github.com/benjie/
|
|
107
|
-
[`395b4a2dd`](https://github.com/benjie/
|
|
211
|
+
- [#266](https://github.com/benjie/crystal/pull/266)
|
|
212
|
+
[`395b4a2dd`](https://github.com/benjie/crystal/commit/395b4a2dd24044bad25f5e411a7a7cfa43883eef)
|
|
108
213
|
Thanks [@benjie](https://github.com/benjie)! - The Grafast step class
|
|
109
214
|
'execute' and 'stream' methods now have a new additional first argument
|
|
110
215
|
`count` which indicates how many results they must return. This means we don't
|
|
@@ -112,11 +217,11 @@
|
|
|
112
217
|
return, and thus we can pass through an empty tuple to steps that have no
|
|
113
218
|
dependencies.
|
|
114
219
|
- Updated dependencies
|
|
115
|
-
[[`ae304b33c`](https://github.com/benjie/
|
|
116
|
-
[`d5312e6b9`](https://github.com/benjie/
|
|
117
|
-
[`22ec50e36`](https://github.com/benjie/
|
|
118
|
-
[`0f4709356`](https://github.com/benjie/
|
|
119
|
-
[`395b4a2dd`](https://github.com/benjie/
|
|
220
|
+
[[`ae304b33c`](https://github.com/benjie/crystal/commit/ae304b33c7c5a04d36b552177ae24a7b7b522645),
|
|
221
|
+
[`d5312e6b9`](https://github.com/benjie/crystal/commit/d5312e6b968fbeb46d074b82a41b4bdbc166598c),
|
|
222
|
+
[`22ec50e36`](https://github.com/benjie/crystal/commit/22ec50e360d90de41c586c5c220438f780c10ee8),
|
|
223
|
+
[`0f4709356`](https://github.com/benjie/crystal/commit/0f47093560cf4f8b1f215853bc91d7f6531278cc),
|
|
224
|
+
[`395b4a2dd`](https://github.com/benjie/crystal/commit/395b4a2dd24044bad25f5e411a7a7cfa43883eef)]:
|
|
120
225
|
- grafast@0.0.1-1.1
|
|
121
226
|
|
|
122
227
|
## 0.0.1-0.23
|
|
@@ -124,9 +229,9 @@
|
|
|
124
229
|
### Patch Changes
|
|
125
230
|
|
|
126
231
|
- Updated dependencies
|
|
127
|
-
[[`89d16c972`](https://github.com/benjie/
|
|
128
|
-
[`8f323bdc8`](https://github.com/benjie/
|
|
129
|
-
[`9e7183c02`](https://github.com/benjie/
|
|
232
|
+
[[`89d16c972`](https://github.com/benjie/crystal/commit/89d16c972f12659de091b0b866768cacfccc8f6b),
|
|
233
|
+
[`8f323bdc8`](https://github.com/benjie/crystal/commit/8f323bdc88e39924de50775891bd40f1acb9b7cf),
|
|
234
|
+
[`9e7183c02`](https://github.com/benjie/crystal/commit/9e7183c02cb82d5f5c684c4f73962035e0267c83)]:
|
|
130
235
|
- grafast@0.0.1-0.23
|
|
131
236
|
|
|
132
237
|
## 0.0.1-0.22
|
|
@@ -141,7 +246,7 @@
|
|
|
141
246
|
### Patch Changes
|
|
142
247
|
|
|
143
248
|
- Updated dependencies
|
|
144
|
-
[[`f5a04cf66`](https://github.com/benjie/
|
|
249
|
+
[[`f5a04cf66`](https://github.com/benjie/crystal/commit/f5a04cf66f220c11a6a82db8c1a78b1d91606faa)]:
|
|
145
250
|
- grafast@0.0.1-0.21
|
|
146
251
|
|
|
147
252
|
## 0.0.1-0.20
|
|
@@ -156,7 +261,7 @@
|
|
|
156
261
|
### Patch Changes
|
|
157
262
|
|
|
158
263
|
- Updated dependencies
|
|
159
|
-
[[`397e8bb40`](https://github.com/benjie/
|
|
264
|
+
[[`397e8bb40`](https://github.com/benjie/crystal/commit/397e8bb40fe3783995172356a39ab7cb33e3bd36)]:
|
|
160
265
|
- grafast@0.0.1-0.19
|
|
161
266
|
|
|
162
267
|
## 0.0.1-0.18
|
|
@@ -164,8 +269,8 @@
|
|
|
164
269
|
### Patch Changes
|
|
165
270
|
|
|
166
271
|
- Updated dependencies
|
|
167
|
-
[[`4c2b7d1ca`](https://github.com/benjie/
|
|
168
|
-
[`c8a56cdc8`](https://github.com/benjie/
|
|
272
|
+
[[`4c2b7d1ca`](https://github.com/benjie/crystal/commit/4c2b7d1ca1afbda1e47da22c346cc3b03d01b7f0),
|
|
273
|
+
[`c8a56cdc8`](https://github.com/benjie/crystal/commit/c8a56cdc83390e5735beb9b90f004e7975cab28c)]:
|
|
169
274
|
- grafast@0.0.1-0.18
|
|
170
275
|
|
|
171
276
|
## 0.0.1-0.17
|
|
@@ -180,7 +285,7 @@
|
|
|
180
285
|
### Patch Changes
|
|
181
286
|
|
|
182
287
|
- Updated dependencies
|
|
183
|
-
[[`df89aba52`](https://github.com/benjie/
|
|
288
|
+
[[`df89aba52`](https://github.com/benjie/crystal/commit/df89aba524270e52f82987fcc4ab5d78ce180fc5)]:
|
|
184
289
|
- grafast@0.0.1-0.16
|
|
185
290
|
|
|
186
291
|
## 0.0.1-0.15
|
|
@@ -188,7 +293,7 @@
|
|
|
188
293
|
### Patch Changes
|
|
189
294
|
|
|
190
295
|
- Updated dependencies
|
|
191
|
-
[[`b523118fe`](https://github.com/benjie/
|
|
296
|
+
[[`b523118fe`](https://github.com/benjie/crystal/commit/b523118fe6217c027363fea91252a3a1764e17df)]:
|
|
192
297
|
- grafast@0.0.1-0.15
|
|
193
298
|
|
|
194
299
|
## 0.0.1-0.14
|
|
@@ -196,10 +301,10 @@
|
|
|
196
301
|
### Patch Changes
|
|
197
302
|
|
|
198
303
|
- Updated dependencies
|
|
199
|
-
[[`d76043453`](https://github.com/benjie/
|
|
200
|
-
[`afa0ea5f6`](https://github.com/benjie/
|
|
201
|
-
[`851b78ef2`](https://github.com/benjie/
|
|
202
|
-
[`384b3594f`](https://github.com/benjie/
|
|
304
|
+
[[`d76043453`](https://github.com/benjie/crystal/commit/d7604345362c58bf7eb43ef1ac1795a2ac22ae79),
|
|
305
|
+
[`afa0ea5f6`](https://github.com/benjie/crystal/commit/afa0ea5f6c508d9a0ba5946ab153b13ddbd274a0),
|
|
306
|
+
[`851b78ef2`](https://github.com/benjie/crystal/commit/851b78ef20d430164507ec9b3f41a5a0b8a18ed7),
|
|
307
|
+
[`384b3594f`](https://github.com/benjie/crystal/commit/384b3594f543d113650c1b6b02b276360dd2d15f)]:
|
|
203
308
|
- grafast@0.0.1-0.14
|
|
204
309
|
|
|
205
310
|
## 0.0.1-0.13
|
|
@@ -214,8 +319,8 @@
|
|
|
214
319
|
### Patch Changes
|
|
215
320
|
|
|
216
321
|
- Updated dependencies
|
|
217
|
-
[[`4f5d5bec7`](https://github.com/benjie/
|
|
218
|
-
[`25f5a6cbf`](https://github.com/benjie/
|
|
322
|
+
[[`4f5d5bec7`](https://github.com/benjie/crystal/commit/4f5d5bec72f949b17b39cd07acc848ce7a8bfa36),
|
|
323
|
+
[`25f5a6cbf`](https://github.com/benjie/crystal/commit/25f5a6cbff6cd5a94ebc4f411f7fa89c209fc383)]:
|
|
219
324
|
- grafast@0.0.1-0.12
|
|
220
325
|
|
|
221
326
|
## 0.0.1-0.11
|
|
@@ -225,8 +330,8 @@
|
|
|
225
330
|
- [`0ab95d0b1`](undefined) - Update sponsors.
|
|
226
331
|
|
|
227
332
|
- Updated dependencies [[`0ab95d0b1`](undefined),
|
|
228
|
-
[`4783bdd7c`](https://github.com/benjie/
|
|
229
|
-
[`652cf1073`](https://github.com/benjie/
|
|
333
|
+
[`4783bdd7c`](https://github.com/benjie/crystal/commit/4783bdd7cc28ac8b497fdd4d6f1024d80cb432ef),
|
|
334
|
+
[`652cf1073`](https://github.com/benjie/crystal/commit/652cf107316ea5832f69c6a55574632187f5c876)]:
|
|
230
335
|
- grafast@0.0.1-0.11
|
|
231
336
|
|
|
232
337
|
## 0.0.1-0.10
|
|
@@ -241,7 +346,7 @@
|
|
|
241
346
|
### Patch Changes
|
|
242
347
|
|
|
243
348
|
- Updated dependencies
|
|
244
|
-
[[`11d6be65e`](https://github.com/benjie/
|
|
349
|
+
[[`11d6be65e`](https://github.com/benjie/crystal/commit/11d6be65e0da489f8ab3e3a8b8db145f8b2147ad)]:
|
|
245
350
|
- grafast@0.0.1-0.9
|
|
246
351
|
|
|
247
352
|
## 0.0.1-0.8
|
|
@@ -249,7 +354,7 @@
|
|
|
249
354
|
### Patch Changes
|
|
250
355
|
|
|
251
356
|
- Updated dependencies
|
|
252
|
-
[[`208166269`](https://github.com/benjie/
|
|
357
|
+
[[`208166269`](https://github.com/benjie/crystal/commit/208166269177d6e278b056e1c77d26a2d8f59f49)]:
|
|
253
358
|
- grafast@0.0.1-0.8
|
|
254
359
|
|
|
255
360
|
## 0.0.1-0.7
|
|
@@ -307,10 +412,10 @@
|
|
|
307
412
|
|
|
308
413
|
### Patch Changes
|
|
309
414
|
|
|
310
|
-
- [#125](https://github.com/benjie/
|
|
311
|
-
[`91f2256b3`](https://github.com/benjie/
|
|
415
|
+
- [#125](https://github.com/benjie/crystal/pull/125)
|
|
416
|
+
[`91f2256b3`](https://github.com/benjie/crystal/commit/91f2256b3fd699bec19fc86f1ca79df057e58639)
|
|
312
417
|
Thanks [@benjie](https://github.com/benjie)! - Initial changesets release
|
|
313
418
|
|
|
314
419
|
- Updated dependencies
|
|
315
|
-
[[`91f2256b3`](https://github.com/benjie/
|
|
420
|
+
[[`91f2256b3`](https://github.com/benjie/crystal/commit/91f2256b3fd699bec19fc86f1ca79df057e58639)]:
|
|
316
421
|
- grafast@0.0.1-0.0
|
package/README.md
CHANGED
|
@@ -22,15 +22,14 @@ and development via sponsorship.
|
|
|
22
22
|
And please give some love to our featured sponsors 🤩:
|
|
23
23
|
|
|
24
24
|
<table><tr>
|
|
25
|
-
<td align="center"><a href="https://surge.io/"><img src="https://graphile.org/images/sponsors/surge.png" width="90" height="90" alt="Surge" /><br />Surge</a> *</td>
|
|
26
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>
|
|
27
26
|
<td align="center"><a href="https://dovetailapp.com/"><img src="https://graphile.org/images/sponsors/dovetail.png" width="90" height="90" alt="Dovetail" /><br />Dovetail</a> *</td>
|
|
28
27
|
<td align="center"><a href="https://qwick.com/"><img src="https://graphile.org/images/sponsors/qwick.png" width="90" height="90" alt="Qwick" /><br />Qwick</a> *</td>
|
|
29
|
-
</tr><tr>
|
|
30
28
|
<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>
|
|
29
|
+
</tr><tr>
|
|
31
30
|
<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>
|
|
32
|
-
<td align="center"><a href="https://www.enzuzo.com/"><img src="https://graphile.org/images/sponsors/enzuzo.png" width="90" height="90" alt="Enzuzo" /><br />Enzuzo</a> *</td>
|
|
33
31
|
<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>
|
|
32
|
+
<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>
|
|
34
33
|
</tr></table>
|
|
35
34
|
|
|
36
35
|
<em>\* Sponsors the entire Graphile suite</em>
|
|
@@ -3,6 +3,10 @@ import { ExecutableStep } from "grafast";
|
|
|
3
3
|
export type JSONValue = string | number | boolean | null | {
|
|
4
4
|
[key: string]: JSONValue;
|
|
5
5
|
} | Array<JSONValue>;
|
|
6
|
+
/**
|
|
7
|
+
* This plan accepts as JSON string as its only input and will result in the
|
|
8
|
+
* parsed JSON object (or array, boolean, string, etc).
|
|
9
|
+
*/
|
|
6
10
|
export declare class JSONParseStep<TJSON extends JSONValue> extends ExecutableStep<TJSON> {
|
|
7
11
|
static $$export: {
|
|
8
12
|
moduleName: string;
|
|
@@ -17,5 +21,9 @@ export declare class JSONParseStep<TJSON extends JSONValue> extends ExecutableSt
|
|
|
17
21
|
at<TIndex extends keyof TJSON & number>(index: TIndex): AccessStep<TJSON[TIndex]>;
|
|
18
22
|
execute(count: number, values: [GrafastValuesList<string>]): GrafastResultsList<TJSON>;
|
|
19
23
|
}
|
|
24
|
+
/**
|
|
25
|
+
* This plan accepts as JSON string as its only input and will result in the
|
|
26
|
+
* parsed JSON object (or array, boolean, string, etc).
|
|
27
|
+
*/
|
|
20
28
|
export declare function jsonParse<TJSON extends JSONValue>($string: ExecutableStep<string | null>): JSONParseStep<TJSON>;
|
|
21
29
|
//# 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,kBAAkB,EAClB,iBAAiB,EAElB,MAAM,SAAS,CAAC;AACjB,OAAO,EAAU,cAAc,EAAY,MAAM,SAAS,CAAC;AAE3D,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;
|
|
1
|
+
{"version":3,"file":"jsonParse.d.ts","sourceRoot":"","sources":["../../src/steps/jsonParse.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EACV,UAAU,EACV,kBAAkB,EAClB,iBAAiB,EAElB,MAAM,SAAS,CAAC;AACjB,OAAO,EAAU,cAAc,EAAY,MAAM,SAAS,CAAC;AAE3D,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,CACxB,KAAK,SAAS,SAAS,CACvB,SAAQ,cAAc,CAAC,KAAK,CAAC;IAC7B,MAAM,CAAC,QAAQ;;;MAGb;IAGF,aAAa,UAAS;gBAEV,WAAW,EAAE,cAAc,CAAC,MAAM,GAAG,IAAI,CAAC;IAKtD,YAAY,IAAI,MAAM;IAItB,GAAG,CAAC,IAAI,SAAS,MAAM,KAAK,EAC1B,GAAG,EAAE,IAAI,GACR,UAAU,CACX,KAAK,SAAS;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAA;KAAE,GAAG,KAAK,CAAC,IAAI,CAAC,GAAG,KAAK,CAC/D;IAID,EAAE,CAAC,MAAM,SAAS,MAAM,KAAK,GAAG,MAAM,EACpC,KAAK,EAAE,MAAM,GACZ,UAAU,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC;IAI5B,OAAO,CACL,KAAK,EAAE,MAAM,EACb,MAAM,EAAE,CAAC,iBAAiB,CAAC,MAAM,CAAC,CAAC,GAClC,kBAAkB,CAAC,KAAK,CAAC;CAyB7B;AAED;;;GAGG;AACH,wBAAgB,SAAS,CAAC,KAAK,SAAS,SAAS,EAC/C,OAAO,EAAE,cAAc,CAAC,MAAM,GAAG,IAAI,CAAC,GACrC,aAAa,CAAC,KAAK,CAAC,CAEtB"}
|
package/dist/steps/jsonParse.js
CHANGED
|
@@ -4,6 +4,10 @@ exports.jsonParse = exports.JSONParseStep = void 0;
|
|
|
4
4
|
const tslib_1 = require("tslib");
|
|
5
5
|
const chalk_1 = tslib_1.__importDefault(require("chalk"));
|
|
6
6
|
const grafast_1 = require("grafast");
|
|
7
|
+
/**
|
|
8
|
+
* This plan accepts as JSON string as its only input and will result in the
|
|
9
|
+
* parsed JSON object (or array, boolean, string, etc).
|
|
10
|
+
*/
|
|
7
11
|
class JSONParseStep extends grafast_1.ExecutableStep {
|
|
8
12
|
static { this.$$export = {
|
|
9
13
|
moduleName: "@dataplan/json",
|
|
@@ -11,6 +15,8 @@ class JSONParseStep extends grafast_1.ExecutableStep {
|
|
|
11
15
|
}; }
|
|
12
16
|
constructor($stringPlan) {
|
|
13
17
|
super();
|
|
18
|
+
// We're not safe because if parsing JSON fails we'll include a rejected
|
|
19
|
+
// promise.
|
|
14
20
|
this.isSyncAndSafe = false;
|
|
15
21
|
this.addDependency($stringPlan);
|
|
16
22
|
}
|
|
@@ -24,7 +30,7 @@ class JSONParseStep extends grafast_1.ExecutableStep {
|
|
|
24
30
|
return (0, grafast_1.access)(this, [index]);
|
|
25
31
|
}
|
|
26
32
|
execute(count, values) {
|
|
27
|
-
const result = [];
|
|
33
|
+
const result = []; // new Array(count);
|
|
28
34
|
const list = values[0];
|
|
29
35
|
for (let i = 0; i < count; i++) {
|
|
30
36
|
const v = list[i];
|
|
@@ -47,6 +53,10 @@ class JSONParseStep extends grafast_1.ExecutableStep {
|
|
|
47
53
|
}
|
|
48
54
|
}
|
|
49
55
|
exports.JSONParseStep = JSONParseStep;
|
|
56
|
+
/**
|
|
57
|
+
* This plan accepts as JSON string as its only input and will result in the
|
|
58
|
+
* parsed JSON object (or array, boolean, string, etc).
|
|
59
|
+
*/
|
|
50
60
|
function jsonParse($string) {
|
|
51
61
|
return new JSONParseStep($string);
|
|
52
62
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dataplan/json",
|
|
3
|
-
"version": "0.0.1-
|
|
3
|
+
"version": "0.0.1-beta.1",
|
|
4
4
|
"description": "JSON step classes for Grafast",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -33,8 +33,7 @@
|
|
|
33
33
|
"node": ">=14.17"
|
|
34
34
|
},
|
|
35
35
|
"peerDependencies": {
|
|
36
|
-
"grafast": "^0.0.1-
|
|
37
|
-
"graphql": "^16.1.0-experimental-stream-defer.6"
|
|
36
|
+
"grafast": "^0.0.1-beta.1"
|
|
38
37
|
},
|
|
39
38
|
"files": [
|
|
40
39
|
"dist"
|
|
@@ -42,7 +41,7 @@
|
|
|
42
41
|
"devDependencies": {
|
|
43
42
|
"@types/jest": "^27.5.1",
|
|
44
43
|
"jest": "^28.1.3",
|
|
45
|
-
"jest-serializer-simple": "^5.0.0-
|
|
44
|
+
"jest-serializer-simple": "^5.0.0-beta.1",
|
|
46
45
|
"typescript": "^5.0.4"
|
|
47
46
|
}
|
|
48
47
|
}
|