@certik/skynet 0.10.7 → 0.10.8

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 CHANGED
@@ -1,372 +1,381 @@
1
- # Changelog
2
-
3
- ## 0.10.6
4
-
5
- - Fixed producer check function
6
-
7
- ## 0.10.5
8
-
9
- - BREAKING Changed the signature of `postGenieMessage` function in `opsgenie` to make it more customizable
10
-
11
- ## 0.10.4
12
-
13
- - Fixed typo in coinmarketcap ids in `PROTOCOLS` in `const`
14
-
15
- ## 0.10.3
16
-
17
- - Added coinmarketcap ids to `PROTOCOLS` in `const`
18
-
19
- ## 0.10.2
20
-
21
- - Added opsgenie api key to check job automatically so it is not required to be defined in jobs
22
-
23
- ## 0.10.1
24
-
25
- - Fixed a bug for the new api app type
26
-
27
- ## 0.10.0
28
-
29
- - Added a new application type `api` to the `app` library
30
-
31
- ## 0.9.7
32
-
33
- - Added Polygon multicall support
34
-
35
- ## 0.9.6
36
-
37
- - Updated `inline` method in `log` library to print a timestamp in front of each log line
38
-
39
- ## 0.9.5
40
-
41
- - Fixed deploy issue when selector value contains special characters
42
-
43
- ## 0.9.4
44
-
45
- - Updated Polygon Node to Certik Node
46
-
47
- ## 0.9.3
48
-
49
- - Updated BSC Archive Node to NodeReal
50
-
51
- ## 0.9.2
52
-
53
- - Enhanced security by moving secret files into nomad secrets folder
54
-
55
- ## 0.9.1
56
-
57
- - Supported using `--schedule` argument to override default schedule when deploying
58
-
59
- ## 0.9.0
60
-
61
- - Added `web3` library with call support
62
-
63
- ## 0.8.16
64
-
65
- - Changed monitor exit behavior
66
- - Improved OpsGenie message for service checks
67
-
68
- ## 0.8.15
69
-
70
- - Fixed OpsGenie message bug
71
-
72
- ## 0.8.14
73
-
74
- - Switched monitor to send to opsgenie only
75
-
76
- ## 0.8.13
77
-
78
- - Added `inline.error` function to `log` library
79
-
80
- ## 0.8.12
81
-
82
- - Added `log` library to print one line log
83
-
84
- ## 0.8.11
85
-
86
- - Improved `updateRecordByKeys` in `dynamodb` library to support fields deletion
87
- - Added `opsgenie` library
88
-
89
- ## 0.8.10
90
-
91
- - Improved `postMessage` in `slack` library to support private channels
92
-
93
- ## 0.8.7
94
-
95
- - Changed polygon node endpoint
96
-
97
- ## 0.8.6
98
-
99
- - Fixed a const.js error
100
- - Support more options in snowflake.js
101
-
102
- ## 0.8.5
103
-
104
- - Improved cross-OS compatibility of `detectDirectory` function
105
-
106
- ## 0.8.4
107
-
108
- - Added `every` tool to make it easier to build schedule parameter
109
-
110
- ## 0.8.2 && 0.8.3
111
-
112
- - Made check optional for new indexer/producer app
113
-
114
- ## 0.8.1
115
-
116
- - Fixed some bug in new `app` library and `monitor`
117
-
118
- ## 0.8.0
119
-
120
- - Added `app` library to support one binary developer experience
121
-
122
- ## 0.7.20
123
-
124
- - Added `listKeys` method to `s3.js`
125
-
126
- ## 0.7.19
127
-
128
- - BREAKING: change the behavior of mode indexer, allow buildBatchSize & buildConcurrency to control the build window
129
-
130
- ## 0.7.18
131
-
132
- - Added the configurability for getTokenPriceAt function in `token` library
133
-
134
- ## 0.7.17
135
-
136
- - Added the missing snowflake dependency
137
-
138
- ## 0.7.16
139
-
140
- - Updated mode indexer to update cursor for each batch
141
-
142
- ## 0.7.15
143
-
144
- - Fixed `transaction` library missing receipt error
145
-
146
- ## 0.7.14
147
-
148
- - Fixed missing require in `labelling.js`
149
- - Only keep distinct tags in `labelling.js`
150
-
151
- ## 0.7.13
152
-
153
- - Update `labelling.js` to support auto db entry creation and address label fetching.
154
-
155
- ## 0.7.12
156
-
157
- - Fixed a bug in `kafka.js`
158
-
159
- ## 0.7.11
160
-
161
- - Added low level API for sending and receiving messages directly from kafka instance.
162
- - Added unit tests for `kafka.js`
163
-
164
- ## 0.7.10
165
-
166
- Added `reset` option to producer in `kafka`
167
-
168
- ## 0.7.9
169
-
170
- Removed console.log statement that printed credentials from `snowflake`
171
-
172
- ## 0.7.8
173
-
174
- - Added `TIME` constants to `const`
175
- - Added `proxyFetch` in `proxy`
176
- - Added `executeSql` in `snowflake`
177
-
178
- ## 0.7.7
179
-
180
- Use getblock as our polygon node endpoint.
181
-
182
- ## 0.7.6
183
-
184
- - Fix a bug in kafka producer
185
-
186
- If the producer is waiting for new `maxId`, the `i` will keep increasing. Therefore, the
187
- `produce` function will not be called anymore.
188
-
189
- ## 0.7.5
190
-
191
- - add consts for polygon chain
192
-
193
- ## 0.7.4
194
-
195
- - add small fix of `slack`
196
-
197
- ## 0.7.3
198
-
199
- - add `slack.js` to find conversationID and send messages
200
-
201
- ## 0.7.2
202
-
203
- - added `isProduction` and `isDev` to env library
204
-
205
- ## 0.7.1
206
-
207
- - BREAKING rename createProducerApp option `serviceName` to `name`
208
-
209
- ## 0.7.0
210
-
211
- - this release contains a lot of BREAKING CHANGES
212
- - introduced `createProducerApp` and `createConsumerApp` in `kafka` library, original exports were removed
213
- - redesigned `createIndexerApp` and `createModeIndexerApp` in `indexer` library
214
- - redesigned `createDeploy` and `createModeDeploy` in `deploy` library
215
- - introduced examples folder which contains many examples explaining indexer/kafka/deploy usage
216
-
217
- ## 0.6.14
218
-
219
- - changed `producerDisconnect` to take timeout as argument for `kafka` library
220
- - changed `createProducer` to hard code security.protocol and sasl.mechanisms for `kafka` library
221
-
222
- ## 0.6.13
223
-
224
- - added `createProducer` and `producerDisconnect` for `kafka` library
225
-
226
- ## 0.6.12
227
-
228
- - add restart options in nomad jobs
229
-
230
- ## 0.6.11
231
-
232
- - fixed some issues with `deploy` library
233
- - added functional cron schedules in `deploy` library and added `ensureAndGet` in `env` library
234
-
235
- ## 0.6.9
236
-
237
- - fixed some issues with `writeToKafka` for `kafka` library
238
- - added `kafka` library
239
-
240
- ## 0.6.7
241
-
242
- - added `scanUrl` to `const.js`.
243
-
244
- ## 0.6.6
245
-
246
- - added `getIndexerValidatedId` and `getIndexerState` for `indexer` library
247
-
248
- ## 0.6.5
249
-
250
- - fixed rate limit issue with `scan` library
251
-
252
- ## 0.6.4
253
-
254
- - added `buildConcurrency` and `validateConcurrency` for `createIndexerApp` function in `indexer` library
255
-
256
- ## 0.6.3
257
-
258
- - added `labelling` library and `scan` library
259
-
260
- ## 0.6.2
261
-
262
- - added `isRateLimited` function.
263
-
264
- ```js
265
- /**
266
- * Record the api access and return the rate limit result.
267
- * @async
268
- * @param {string} name - The name of the key.
269
- * @param {number} unitTime - The sliding window for rate limiting, in seconds.
270
- * @param {number} maxAccess - The total count of allowed accesses in a sliding window.
271
- * @returns {Promise<boolean>} This request should be allowed or not.
272
- */
273
- ```
274
-
275
- ## 0.6.1
276
-
277
- - fixed `deployer` duplicated job name
278
-
279
- ## 0.6.0
280
-
281
- - BREAKING added `--periodic` option to `deployer` to explicitly deploy periodical jobs
282
- - BREAKING redesigned indexer `validate` mode to be stateful
283
-
284
- ## 0.5.9
285
-
286
- - fixed deploy resouces allocation, for rebuild/resume-rebuild/validate mode all uses rebuildCpu and rebuildMem
287
-
288
- ## 0.5.8
289
-
290
- - added `hasFile` function in `s3` library
291
- - added `validate` mode to `indexer` library
292
- - added `env` option to `deploy` library
293
-
294
- ## 0.5.7
295
-
296
- - fixed bug introduced in 0.5.5 by always returning default value in `ensureAndGet`.
297
-
298
- ## 0.5.6
299
-
300
- - renamed library `overrides` to `primitive`
301
- - replaced `scan` with `get` for a better performance
302
-
303
- ## 0.5.5
304
-
305
- - added `getSQS`, `toNativeDecimal` and `toHumanDecimal` functions.
306
- - only loads AWS keys in environment variables with `SKYNET_` prefix.
307
-
308
- ## 0.5.4
309
-
310
- - fixed a typo of a variable in `overrides` library
311
-
312
- ## 0.5.3
313
-
314
- - remove Optional chaining " ?. " in `overrides` library
315
-
316
- ## 0.5.2
317
-
318
- - added `overrides` library
319
-
320
- ## 0.5.1
321
-
322
- - added colors to deployer cli output
323
-
324
- ## 0.5.0
325
-
326
- - added `createStatelessIndexerApp` to `indexer` library
327
- - added `createStatelessDeploy` to `deploy` library
328
- - BREAKING changed signature for `writeFile` in `s3` library, added skipIfExists & acl options
329
- - added `abi` library
330
-
331
- ## 0.4.7
332
-
333
- - added `getIndexerLatestId` to `indexer` library
334
- - BREAKING renamed `getLargestId` to `getLatestId` for `indexer` library
335
-
336
- ## 0.4.6
337
-
338
- - improved `batchCreateRecords` to sleep in exponential duration
339
-
340
- ## 0.4.5
341
-
342
- - added `transaction` library
343
- - added `arrayGroup` function to `util` library
344
- - added `exponentialRetry` function to `availability` library
345
-
346
- ## 0.4.4
347
-
348
- - added `to` option to indexer and deployer cli
349
-
350
- ## 0.4.2
351
-
352
- - added `readFile` and `writeFile` functions in `s3` library
353
-
354
- ## 0.4.1
355
-
356
- - added `price` library
357
-
358
- ## 0.4.0
359
-
360
- - BREAKING added required `selector` parameter when creating indexer to allow more general patterns
361
-
362
- ## 0.3.3
363
-
364
- - BREAKING changed buildSince signature to buildSince({ protocol, since, to, verbose })
365
-
366
- ## 0.3.2
367
-
368
- - added `--stop` flag for deployer to stop job
369
-
370
- ## 0.3.0
371
-
372
- - added `block` `address` and `token` library
1
+ # Changelog
2
+
3
+ ## 0.10.8
4
+
5
+ - Added logMiddleware to `api` apps by default
6
+ - Enabled opensearch logging for log-shipper
7
+
8
+ ## 0.10.7
9
+
10
+ - Added `ably` library
11
+
12
+ ## 0.10.6
13
+
14
+ - Fixed producer check function
15
+
16
+ ## 0.10.5
17
+
18
+ - BREAKING Changed the signature of `postGenieMessage` function in `opsgenie` to make it more customizable
19
+
20
+ ## 0.10.4
21
+
22
+ - Fixed typo in coinmarketcap ids in `PROTOCOLS` in `const`
23
+
24
+ ## 0.10.3
25
+
26
+ - Added coinmarketcap ids to `PROTOCOLS` in `const`
27
+
28
+ ## 0.10.2
29
+
30
+ - Added opsgenie api key to check job automatically so it is not required to be defined in jobs
31
+
32
+ ## 0.10.1
33
+
34
+ - Fixed a bug for the new api app type
35
+
36
+ ## 0.10.0
37
+
38
+ - Added a new application type `api` to the `app` library
39
+
40
+ ## 0.9.7
41
+
42
+ - Added Polygon multicall support
43
+
44
+ ## 0.9.6
45
+
46
+ - Updated `inline` method in `log` library to print a timestamp in front of each log line
47
+
48
+ ## 0.9.5
49
+
50
+ - Fixed deploy issue when selector value contains special characters
51
+
52
+ ## 0.9.4
53
+
54
+ - Updated Polygon Node to Certik Node
55
+
56
+ ## 0.9.3
57
+
58
+ - Updated BSC Archive Node to NodeReal
59
+
60
+ ## 0.9.2
61
+
62
+ - Enhanced security by moving secret files into nomad secrets folder
63
+
64
+ ## 0.9.1
65
+
66
+ - Supported using `--schedule` argument to override default schedule when deploying
67
+
68
+ ## 0.9.0
69
+
70
+ - Added `web3` library with call support
71
+
72
+ ## 0.8.16
73
+
74
+ - Changed monitor exit behavior
75
+ - Improved OpsGenie message for service checks
76
+
77
+ ## 0.8.15
78
+
79
+ - Fixed OpsGenie message bug
80
+
81
+ ## 0.8.14
82
+
83
+ - Switched monitor to send to opsgenie only
84
+
85
+ ## 0.8.13
86
+
87
+ - Added `inline.error` function to `log` library
88
+
89
+ ## 0.8.12
90
+
91
+ - Added `log` library to print one line log
92
+
93
+ ## 0.8.11
94
+
95
+ - Improved `updateRecordByKeys` in `dynamodb` library to support fields deletion
96
+ - Added `opsgenie` library
97
+
98
+ ## 0.8.10
99
+
100
+ - Improved `postMessage` in `slack` library to support private channels
101
+
102
+ ## 0.8.7
103
+
104
+ - Changed polygon node endpoint
105
+
106
+ ## 0.8.6
107
+
108
+ - Fixed a const.js error
109
+ - Support more options in snowflake.js
110
+
111
+ ## 0.8.5
112
+
113
+ - Improved cross-OS compatibility of `detectDirectory` function
114
+
115
+ ## 0.8.4
116
+
117
+ - Added `every` tool to make it easier to build schedule parameter
118
+
119
+ ## 0.8.2 && 0.8.3
120
+
121
+ - Made check optional for new indexer/producer app
122
+
123
+ ## 0.8.1
124
+
125
+ - Fixed some bug in new `app` library and `monitor`
126
+
127
+ ## 0.8.0
128
+
129
+ - Added `app` library to support one binary developer experience
130
+
131
+ ## 0.7.20
132
+
133
+ - Added `listKeys` method to `s3.js`
134
+
135
+ ## 0.7.19
136
+
137
+ - BREAKING: change the behavior of mode indexer, allow buildBatchSize & buildConcurrency to control the build window
138
+
139
+ ## 0.7.18
140
+
141
+ - Added the configurability for getTokenPriceAt function in `token` library
142
+
143
+ ## 0.7.17
144
+
145
+ - Added the missing snowflake dependency
146
+
147
+ ## 0.7.16
148
+
149
+ - Updated mode indexer to update cursor for each batch
150
+
151
+ ## 0.7.15
152
+
153
+ - Fixed `transaction` library missing receipt error
154
+
155
+ ## 0.7.14
156
+
157
+ - Fixed missing require in `labelling.js`
158
+ - Only keep distinct tags in `labelling.js`
159
+
160
+ ## 0.7.13
161
+
162
+ - Update `labelling.js` to support auto db entry creation and address label fetching.
163
+
164
+ ## 0.7.12
165
+
166
+ - Fixed a bug in `kafka.js`
167
+
168
+ ## 0.7.11
169
+
170
+ - Added low level API for sending and receiving messages directly from kafka instance.
171
+ - Added unit tests for `kafka.js`
172
+
173
+ ## 0.7.10
174
+
175
+ Added `reset` option to producer in `kafka`
176
+
177
+ ## 0.7.9
178
+
179
+ Removed console.log statement that printed credentials from `snowflake`
180
+
181
+ ## 0.7.8
182
+
183
+ - Added `TIME` constants to `const`
184
+ - Added `proxyFetch` in `proxy`
185
+ - Added `executeSql` in `snowflake`
186
+
187
+ ## 0.7.7
188
+
189
+ Use getblock as our polygon node endpoint.
190
+
191
+ ## 0.7.6
192
+
193
+ - Fix a bug in kafka producer
194
+
195
+ If the producer is waiting for new `maxId`, the `i` will keep increasing. Therefore, the
196
+ `produce` function will not be called anymore.
197
+
198
+ ## 0.7.5
199
+
200
+ - add consts for polygon chain
201
+
202
+ ## 0.7.4
203
+
204
+ - add small fix of `slack`
205
+
206
+ ## 0.7.3
207
+
208
+ - add `slack.js` to find conversationID and send messages
209
+
210
+ ## 0.7.2
211
+
212
+ - added `isProduction` and `isDev` to env library
213
+
214
+ ## 0.7.1
215
+
216
+ - BREAKING rename createProducerApp option `serviceName` to `name`
217
+
218
+ ## 0.7.0
219
+
220
+ - this release contains a lot of BREAKING CHANGES
221
+ - introduced `createProducerApp` and `createConsumerApp` in `kafka` library, original exports were removed
222
+ - redesigned `createIndexerApp` and `createModeIndexerApp` in `indexer` library
223
+ - redesigned `createDeploy` and `createModeDeploy` in `deploy` library
224
+ - introduced examples folder which contains many examples explaining indexer/kafka/deploy usage
225
+
226
+ ## 0.6.14
227
+
228
+ - changed `producerDisconnect` to take timeout as argument for `kafka` library
229
+ - changed `createProducer` to hard code security.protocol and sasl.mechanisms for `kafka` library
230
+
231
+ ## 0.6.13
232
+
233
+ - added `createProducer` and `producerDisconnect` for `kafka` library
234
+
235
+ ## 0.6.12
236
+
237
+ - add restart options in nomad jobs
238
+
239
+ ## 0.6.11
240
+
241
+ - fixed some issues with `deploy` library
242
+ - added functional cron schedules in `deploy` library and added `ensureAndGet` in `env` library
243
+
244
+ ## 0.6.9
245
+
246
+ - fixed some issues with `writeToKafka` for `kafka` library
247
+ - added `kafka` library
248
+
249
+ ## 0.6.7
250
+
251
+ - added `scanUrl` to `const.js`.
252
+
253
+ ## 0.6.6
254
+
255
+ - added `getIndexerValidatedId` and `getIndexerState` for `indexer` library
256
+
257
+ ## 0.6.5
258
+
259
+ - fixed rate limit issue with `scan` library
260
+
261
+ ## 0.6.4
262
+
263
+ - added `buildConcurrency` and `validateConcurrency` for `createIndexerApp` function in `indexer` library
264
+
265
+ ## 0.6.3
266
+
267
+ - added `labelling` library and `scan` library
268
+
269
+ ## 0.6.2
270
+
271
+ - added `isRateLimited` function.
272
+
273
+ ```js
274
+ /**
275
+ * Record the api access and return the rate limit result.
276
+ * @async
277
+ * @param {string} name - The name of the key.
278
+ * @param {number} unitTime - The sliding window for rate limiting, in seconds.
279
+ * @param {number} maxAccess - The total count of allowed accesses in a sliding window.
280
+ * @returns {Promise<boolean>} This request should be allowed or not.
281
+ */
282
+ ```
283
+
284
+ ## 0.6.1
285
+
286
+ - fixed `deployer` duplicated job name
287
+
288
+ ## 0.6.0
289
+
290
+ - BREAKING added `--periodic` option to `deployer` to explicitly deploy periodical jobs
291
+ - BREAKING redesigned indexer `validate` mode to be stateful
292
+
293
+ ## 0.5.9
294
+
295
+ - fixed deploy resouces allocation, for rebuild/resume-rebuild/validate mode all uses rebuildCpu and rebuildMem
296
+
297
+ ## 0.5.8
298
+
299
+ - added `hasFile` function in `s3` library
300
+ - added `validate` mode to `indexer` library
301
+ - added `env` option to `deploy` library
302
+
303
+ ## 0.5.7
304
+
305
+ - fixed bug introduced in 0.5.5 by always returning default value in `ensureAndGet`.
306
+
307
+ ## 0.5.6
308
+
309
+ - renamed library `overrides` to `primitive`
310
+ - replaced `scan` with `get` for a better performance
311
+
312
+ ## 0.5.5
313
+
314
+ - added `getSQS`, `toNativeDecimal` and `toHumanDecimal` functions.
315
+ - only loads AWS keys in environment variables with `SKYNET_` prefix.
316
+
317
+ ## 0.5.4
318
+
319
+ - fixed a typo of a variable in `overrides` library
320
+
321
+ ## 0.5.3
322
+
323
+ - remove Optional chaining " ?. " in `overrides` library
324
+
325
+ ## 0.5.2
326
+
327
+ - added `overrides` library
328
+
329
+ ## 0.5.1
330
+
331
+ - added colors to deployer cli output
332
+
333
+ ## 0.5.0
334
+
335
+ - added `createStatelessIndexerApp` to `indexer` library
336
+ - added `createStatelessDeploy` to `deploy` library
337
+ - BREAKING changed signature for `writeFile` in `s3` library, added skipIfExists & acl options
338
+ - added `abi` library
339
+
340
+ ## 0.4.7
341
+
342
+ - added `getIndexerLatestId` to `indexer` library
343
+ - BREAKING renamed `getLargestId` to `getLatestId` for `indexer` library
344
+
345
+ ## 0.4.6
346
+
347
+ - improved `batchCreateRecords` to sleep in exponential duration
348
+
349
+ ## 0.4.5
350
+
351
+ - added `transaction` library
352
+ - added `arrayGroup` function to `util` library
353
+ - added `exponentialRetry` function to `availability` library
354
+
355
+ ## 0.4.4
356
+
357
+ - added `to` option to indexer and deployer cli
358
+
359
+ ## 0.4.2
360
+
361
+ - added `readFile` and `writeFile` functions in `s3` library
362
+
363
+ ## 0.4.1
364
+
365
+ - added `price` library
366
+
367
+ ## 0.4.0
368
+
369
+ - BREAKING added required `selector` parameter when creating indexer to allow more general patterns
370
+
371
+ ## 0.3.3
372
+
373
+ - BREAKING changed buildSince signature to buildSince({ protocol, since, to, verbose })
374
+
375
+ ## 0.3.2
376
+
377
+ - added `--stop` flag for deployer to stop job
378
+
379
+ ## 0.3.0
380
+
381
+ - added `block` `address` and `token` library