@dataplan/json 0.0.1-alpha.9 → 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 +148 -55
- 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,15 +1,108 @@
|
|
|
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
|
+
|
|
3
96
|
## 0.0.1-alpha.9
|
|
4
97
|
|
|
5
98
|
### Patch Changes
|
|
6
99
|
|
|
7
100
|
- Updated dependencies
|
|
8
|
-
[[`56237691b`](https://github.com/benjie/
|
|
9
|
-
[`ed1982f31`](https://github.com/benjie/
|
|
10
|
-
[`1fe47a2b0`](https://github.com/benjie/
|
|
11
|
-
[`6878c589c`](https://github.com/benjie/
|
|
12
|
-
[`2ac706f18`](https://github.com/benjie/
|
|
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)]:
|
|
13
106
|
- grafast@0.0.1-alpha.9
|
|
14
107
|
|
|
15
108
|
## 0.0.1-alpha.8
|
|
@@ -17,7 +110,7 @@
|
|
|
17
110
|
### Patch Changes
|
|
18
111
|
|
|
19
112
|
- Updated dependencies
|
|
20
|
-
[[`dd3ef599c`](https://github.com/benjie/
|
|
113
|
+
[[`dd3ef599c`](https://github.com/benjie/crystal/commit/dd3ef599c7f2530fd1a19a852d334b7349e49e70)]:
|
|
21
114
|
- grafast@0.0.1-alpha.8
|
|
22
115
|
|
|
23
116
|
## 0.0.1-alpha.7
|
|
@@ -25,9 +118,9 @@
|
|
|
25
118
|
### Patch Changes
|
|
26
119
|
|
|
27
120
|
- Updated dependencies
|
|
28
|
-
[[`5c9d32264`](https://github.com/benjie/
|
|
29
|
-
[`2fcbe688c`](https://github.com/benjie/
|
|
30
|
-
[`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)]:
|
|
31
124
|
- grafast@0.0.1-alpha.7
|
|
32
125
|
|
|
33
126
|
## 0.0.1-alpha.6
|
|
@@ -35,7 +128,7 @@
|
|
|
35
128
|
### Patch Changes
|
|
36
129
|
|
|
37
130
|
- Updated dependencies
|
|
38
|
-
[[`f75926f4b`](https://github.com/benjie/
|
|
131
|
+
[[`f75926f4b`](https://github.com/benjie/crystal/commit/f75926f4b9aee33adff8bdf6b1a4137582cb47ba)]:
|
|
39
132
|
- grafast@0.0.1-alpha.6
|
|
40
133
|
|
|
41
134
|
## 0.0.1-alpha.5
|
|
@@ -43,8 +136,8 @@
|
|
|
43
136
|
### Patch Changes
|
|
44
137
|
|
|
45
138
|
- Updated dependencies
|
|
46
|
-
[[`86e503d78`](https://github.com/benjie/
|
|
47
|
-
[`24822d0dc`](https://github.com/benjie/
|
|
139
|
+
[[`86e503d78`](https://github.com/benjie/crystal/commit/86e503d785626ad9a2e91ec2e70b272dd632d425),
|
|
140
|
+
[`24822d0dc`](https://github.com/benjie/crystal/commit/24822d0dc87d41f0b0737d6e00cf4022de4bab5e)]:
|
|
48
141
|
- grafast@0.0.1-alpha.5
|
|
49
142
|
|
|
50
143
|
## 0.0.1-alpha.4
|
|
@@ -52,23 +145,23 @@
|
|
|
52
145
|
### Patch Changes
|
|
53
146
|
|
|
54
147
|
- Updated dependencies
|
|
55
|
-
[[`45dcf3a8f`](https://github.com/benjie/
|
|
148
|
+
[[`45dcf3a8f`](https://github.com/benjie/crystal/commit/45dcf3a8fd8bad5c8b82a7cbff2db4dacb916950)]:
|
|
56
149
|
- grafast@0.0.1-alpha.4
|
|
57
150
|
|
|
58
151
|
## 0.0.1-alpha.3
|
|
59
152
|
|
|
60
153
|
### Patch Changes
|
|
61
154
|
|
|
62
|
-
- [`7f857950a`](https://github.com/benjie/
|
|
155
|
+
- [`7f857950a`](https://github.com/benjie/crystal/commit/7f857950a7e4ec763c936eb6bd1fb77824041d71)
|
|
63
156
|
Thanks [@benjie](https://github.com/benjie)! - Upgrade to the latest
|
|
64
157
|
TypeScript/tslib
|
|
65
158
|
|
|
66
159
|
- Updated dependencies
|
|
67
|
-
[[`2389f47ec`](https://github.com/benjie/
|
|
68
|
-
[`e91ee201d`](https://github.com/benjie/
|
|
69
|
-
[`865bec590`](https://github.com/benjie/
|
|
70
|
-
[`7f857950a`](https://github.com/benjie/
|
|
71
|
-
[`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)]:
|
|
72
165
|
- grafast@0.0.1-alpha.3
|
|
73
166
|
|
|
74
167
|
## 0.0.1-alpha.2
|
|
@@ -76,19 +169,19 @@
|
|
|
76
169
|
### Patch Changes
|
|
77
170
|
|
|
78
171
|
- Updated dependencies
|
|
79
|
-
[[`3df3f1726`](https://github.com/benjie/
|
|
172
|
+
[[`3df3f1726`](https://github.com/benjie/crystal/commit/3df3f17269bb896cdee90ed8c4ab46fb821a1509)]:
|
|
80
173
|
- grafast@0.0.1-alpha.2
|
|
81
174
|
|
|
82
175
|
## 0.0.1-alpha.1
|
|
83
176
|
|
|
84
177
|
### Patch Changes
|
|
85
178
|
|
|
86
|
-
- [`759ad403d`](https://github.com/benjie/
|
|
179
|
+
- [`759ad403d`](https://github.com/benjie/crystal/commit/759ad403d71363312c5225c165873ae84b8a098c)
|
|
87
180
|
Thanks [@benjie](https://github.com/benjie)! - Alpha release - see
|
|
88
181
|
https://postgraphile.org/news/2023-04-26-version-5-alpha
|
|
89
182
|
|
|
90
183
|
- Updated dependencies
|
|
91
|
-
[[`759ad403d`](https://github.com/benjie/
|
|
184
|
+
[[`759ad403d`](https://github.com/benjie/crystal/commit/759ad403d71363312c5225c165873ae84b8a098c)]:
|
|
92
185
|
- grafast@0.0.1-alpha.1
|
|
93
186
|
|
|
94
187
|
## 0.0.1-1.3
|
|
@@ -96,7 +189,7 @@
|
|
|
96
189
|
### Patch Changes
|
|
97
190
|
|
|
98
191
|
- Updated dependencies
|
|
99
|
-
[[`8d270ead3`](https://github.com/benjie/
|
|
192
|
+
[[`8d270ead3`](https://github.com/benjie/crystal/commit/8d270ead3fa8331e28974aae052bd48ad537d1bf)]:
|
|
100
193
|
- grafast@0.0.1-1.3
|
|
101
194
|
|
|
102
195
|
## 0.0.1-1.2
|
|
@@ -104,19 +197,19 @@
|
|
|
104
197
|
### Patch Changes
|
|
105
198
|
|
|
106
199
|
- Updated dependencies
|
|
107
|
-
[[`7dcb0e008`](https://github.com/benjie/
|
|
200
|
+
[[`7dcb0e008`](https://github.com/benjie/crystal/commit/7dcb0e008bc3a60c9ef325a856d16e0baab0b9f0)]:
|
|
108
201
|
- grafast@0.0.1-1.2
|
|
109
202
|
|
|
110
203
|
## 0.0.1-1.1
|
|
111
204
|
|
|
112
205
|
### Patch Changes
|
|
113
206
|
|
|
114
|
-
- [#260](https://github.com/benjie/
|
|
115
|
-
[`d5312e6b9`](https://github.com/benjie/
|
|
207
|
+
- [#260](https://github.com/benjie/crystal/pull/260)
|
|
208
|
+
[`d5312e6b9`](https://github.com/benjie/crystal/commit/d5312e6b968fbeb46d074b82a41b4bdbc166598c)
|
|
116
209
|
Thanks [@benjie](https://github.com/benjie)! - TypeScript v5 is now required
|
|
117
210
|
|
|
118
|
-
- [#266](https://github.com/benjie/
|
|
119
|
-
[`395b4a2dd`](https://github.com/benjie/
|
|
211
|
+
- [#266](https://github.com/benjie/crystal/pull/266)
|
|
212
|
+
[`395b4a2dd`](https://github.com/benjie/crystal/commit/395b4a2dd24044bad25f5e411a7a7cfa43883eef)
|
|
120
213
|
Thanks [@benjie](https://github.com/benjie)! - The Grafast step class
|
|
121
214
|
'execute' and 'stream' methods now have a new additional first argument
|
|
122
215
|
`count` which indicates how many results they must return. This means we don't
|
|
@@ -124,11 +217,11 @@
|
|
|
124
217
|
return, and thus we can pass through an empty tuple to steps that have no
|
|
125
218
|
dependencies.
|
|
126
219
|
- Updated dependencies
|
|
127
|
-
[[`ae304b33c`](https://github.com/benjie/
|
|
128
|
-
[`d5312e6b9`](https://github.com/benjie/
|
|
129
|
-
[`22ec50e36`](https://github.com/benjie/
|
|
130
|
-
[`0f4709356`](https://github.com/benjie/
|
|
131
|
-
[`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)]:
|
|
132
225
|
- grafast@0.0.1-1.1
|
|
133
226
|
|
|
134
227
|
## 0.0.1-0.23
|
|
@@ -136,9 +229,9 @@
|
|
|
136
229
|
### Patch Changes
|
|
137
230
|
|
|
138
231
|
- Updated dependencies
|
|
139
|
-
[[`89d16c972`](https://github.com/benjie/
|
|
140
|
-
[`8f323bdc8`](https://github.com/benjie/
|
|
141
|
-
[`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)]:
|
|
142
235
|
- grafast@0.0.1-0.23
|
|
143
236
|
|
|
144
237
|
## 0.0.1-0.22
|
|
@@ -153,7 +246,7 @@
|
|
|
153
246
|
### Patch Changes
|
|
154
247
|
|
|
155
248
|
- Updated dependencies
|
|
156
|
-
[[`f5a04cf66`](https://github.com/benjie/
|
|
249
|
+
[[`f5a04cf66`](https://github.com/benjie/crystal/commit/f5a04cf66f220c11a6a82db8c1a78b1d91606faa)]:
|
|
157
250
|
- grafast@0.0.1-0.21
|
|
158
251
|
|
|
159
252
|
## 0.0.1-0.20
|
|
@@ -168,7 +261,7 @@
|
|
|
168
261
|
### Patch Changes
|
|
169
262
|
|
|
170
263
|
- Updated dependencies
|
|
171
|
-
[[`397e8bb40`](https://github.com/benjie/
|
|
264
|
+
[[`397e8bb40`](https://github.com/benjie/crystal/commit/397e8bb40fe3783995172356a39ab7cb33e3bd36)]:
|
|
172
265
|
- grafast@0.0.1-0.19
|
|
173
266
|
|
|
174
267
|
## 0.0.1-0.18
|
|
@@ -176,8 +269,8 @@
|
|
|
176
269
|
### Patch Changes
|
|
177
270
|
|
|
178
271
|
- Updated dependencies
|
|
179
|
-
[[`4c2b7d1ca`](https://github.com/benjie/
|
|
180
|
-
[`c8a56cdc8`](https://github.com/benjie/
|
|
272
|
+
[[`4c2b7d1ca`](https://github.com/benjie/crystal/commit/4c2b7d1ca1afbda1e47da22c346cc3b03d01b7f0),
|
|
273
|
+
[`c8a56cdc8`](https://github.com/benjie/crystal/commit/c8a56cdc83390e5735beb9b90f004e7975cab28c)]:
|
|
181
274
|
- grafast@0.0.1-0.18
|
|
182
275
|
|
|
183
276
|
## 0.0.1-0.17
|
|
@@ -192,7 +285,7 @@
|
|
|
192
285
|
### Patch Changes
|
|
193
286
|
|
|
194
287
|
- Updated dependencies
|
|
195
|
-
[[`df89aba52`](https://github.com/benjie/
|
|
288
|
+
[[`df89aba52`](https://github.com/benjie/crystal/commit/df89aba524270e52f82987fcc4ab5d78ce180fc5)]:
|
|
196
289
|
- grafast@0.0.1-0.16
|
|
197
290
|
|
|
198
291
|
## 0.0.1-0.15
|
|
@@ -200,7 +293,7 @@
|
|
|
200
293
|
### Patch Changes
|
|
201
294
|
|
|
202
295
|
- Updated dependencies
|
|
203
|
-
[[`b523118fe`](https://github.com/benjie/
|
|
296
|
+
[[`b523118fe`](https://github.com/benjie/crystal/commit/b523118fe6217c027363fea91252a3a1764e17df)]:
|
|
204
297
|
- grafast@0.0.1-0.15
|
|
205
298
|
|
|
206
299
|
## 0.0.1-0.14
|
|
@@ -208,10 +301,10 @@
|
|
|
208
301
|
### Patch Changes
|
|
209
302
|
|
|
210
303
|
- Updated dependencies
|
|
211
|
-
[[`d76043453`](https://github.com/benjie/
|
|
212
|
-
[`afa0ea5f6`](https://github.com/benjie/
|
|
213
|
-
[`851b78ef2`](https://github.com/benjie/
|
|
214
|
-
[`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)]:
|
|
215
308
|
- grafast@0.0.1-0.14
|
|
216
309
|
|
|
217
310
|
## 0.0.1-0.13
|
|
@@ -226,8 +319,8 @@
|
|
|
226
319
|
### Patch Changes
|
|
227
320
|
|
|
228
321
|
- Updated dependencies
|
|
229
|
-
[[`4f5d5bec7`](https://github.com/benjie/
|
|
230
|
-
[`25f5a6cbf`](https://github.com/benjie/
|
|
322
|
+
[[`4f5d5bec7`](https://github.com/benjie/crystal/commit/4f5d5bec72f949b17b39cd07acc848ce7a8bfa36),
|
|
323
|
+
[`25f5a6cbf`](https://github.com/benjie/crystal/commit/25f5a6cbff6cd5a94ebc4f411f7fa89c209fc383)]:
|
|
231
324
|
- grafast@0.0.1-0.12
|
|
232
325
|
|
|
233
326
|
## 0.0.1-0.11
|
|
@@ -237,8 +330,8 @@
|
|
|
237
330
|
- [`0ab95d0b1`](undefined) - Update sponsors.
|
|
238
331
|
|
|
239
332
|
- Updated dependencies [[`0ab95d0b1`](undefined),
|
|
240
|
-
[`4783bdd7c`](https://github.com/benjie/
|
|
241
|
-
[`652cf1073`](https://github.com/benjie/
|
|
333
|
+
[`4783bdd7c`](https://github.com/benjie/crystal/commit/4783bdd7cc28ac8b497fdd4d6f1024d80cb432ef),
|
|
334
|
+
[`652cf1073`](https://github.com/benjie/crystal/commit/652cf107316ea5832f69c6a55574632187f5c876)]:
|
|
242
335
|
- grafast@0.0.1-0.11
|
|
243
336
|
|
|
244
337
|
## 0.0.1-0.10
|
|
@@ -253,7 +346,7 @@
|
|
|
253
346
|
### Patch Changes
|
|
254
347
|
|
|
255
348
|
- Updated dependencies
|
|
256
|
-
[[`11d6be65e`](https://github.com/benjie/
|
|
349
|
+
[[`11d6be65e`](https://github.com/benjie/crystal/commit/11d6be65e0da489f8ab3e3a8b8db145f8b2147ad)]:
|
|
257
350
|
- grafast@0.0.1-0.9
|
|
258
351
|
|
|
259
352
|
## 0.0.1-0.8
|
|
@@ -261,7 +354,7 @@
|
|
|
261
354
|
### Patch Changes
|
|
262
355
|
|
|
263
356
|
- Updated dependencies
|
|
264
|
-
[[`208166269`](https://github.com/benjie/
|
|
357
|
+
[[`208166269`](https://github.com/benjie/crystal/commit/208166269177d6e278b056e1c77d26a2d8f59f49)]:
|
|
265
358
|
- grafast@0.0.1-0.8
|
|
266
359
|
|
|
267
360
|
## 0.0.1-0.7
|
|
@@ -319,10 +412,10 @@
|
|
|
319
412
|
|
|
320
413
|
### Patch Changes
|
|
321
414
|
|
|
322
|
-
- [#125](https://github.com/benjie/
|
|
323
|
-
[`91f2256b3`](https://github.com/benjie/
|
|
415
|
+
- [#125](https://github.com/benjie/crystal/pull/125)
|
|
416
|
+
[`91f2256b3`](https://github.com/benjie/crystal/commit/91f2256b3fd699bec19fc86f1ca79df057e58639)
|
|
324
417
|
Thanks [@benjie](https://github.com/benjie)! - Initial changesets release
|
|
325
418
|
|
|
326
419
|
- Updated dependencies
|
|
327
|
-
[[`91f2256b3`](https://github.com/benjie/
|
|
420
|
+
[[`91f2256b3`](https://github.com/benjie/crystal/commit/91f2256b3fd699bec19fc86f1ca79df057e58639)]:
|
|
328
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
|
}
|