@voltro/kv 0.86.0 → 0.88.0

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.
Files changed (61) hide show
  1. package/CHANGELOG.md +5484 -0
  2. package/README.md +110 -0
  3. package/THIRD-PARTY-NOTICES.md +2 -482
  4. package/dist/Kv.js +1 -2
  5. package/dist/KvStore.js +1 -2
  6. package/dist/analytics.d.ts +337 -0
  7. package/dist/analytics.js +15 -0
  8. package/dist/backendMemory.js +1 -2
  9. package/dist/backendRedis.js +1 -2
  10. package/dist/cacheAtomicProtocol.js +257 -0
  11. package/dist/cacheAtomicScript.js +326 -0
  12. package/dist/cacheAtomicState.js +140 -0
  13. package/dist/connection.d.ts +990 -9
  14. package/dist/connection.js +336 -52
  15. package/dist/connectionAnalyticsConfig.js +152 -0
  16. package/dist/connectionConfigError.js +10 -0
  17. package/dist/connectionConfigProvider.js +110 -0
  18. package/dist/connectionDefinitions.js +284 -0
  19. package/dist/connectionMemory.js +206 -0
  20. package/dist/connectionMetrics.js +78 -0
  21. package/dist/connectionNamespace.js +18 -0
  22. package/dist/connectionNats.js +148 -0
  23. package/dist/connectionNatsConfig.js +86 -0
  24. package/dist/connectionNatsSubjects.js +15 -0
  25. package/dist/connectionOwner.js +43 -0
  26. package/dist/connectionPool.js +738 -0
  27. package/dist/connectionPrefix.js +36 -0
  28. package/dist/connectionScripts.js +3 -0
  29. package/dist/connectionSqlConfig.js +118 -0
  30. package/dist/connectionStorageConfig.js +189 -0
  31. package/dist/connectionStorageFacade.js +77 -0
  32. package/dist/connectionSubscriber.js +130 -0
  33. package/dist/driverModule.js +9 -0
  34. package/dist/errors.js +6 -3
  35. package/dist/expirySweep.js +1 -2
  36. package/dist/hot-contract.d.ts +297 -0
  37. package/dist/hot-contract.js +17 -0
  38. package/dist/hot-testing.d.ts +242 -0
  39. package/dist/hot-testing.js +1 -0
  40. package/dist/hot.d.ts +936 -0
  41. package/dist/hot.js +7 -0
  42. package/dist/hotMemory.js +45 -0
  43. package/dist/hotOperations.js +222 -0
  44. package/dist/hotRateLimit.js +102 -0
  45. package/dist/hotReadAvailability.js +18 -0
  46. package/dist/hotRedis.js +138 -0
  47. package/dist/hotRedisScript.js +3 -0
  48. package/dist/hotRouting.js +77 -0
  49. package/dist/hotState.js +181 -0
  50. package/dist/hotStoreConformance.js +365 -0
  51. package/dist/index.d.ts +113 -9
  52. package/dist/nativeRedisReads.js +77 -0
  53. package/dist/nativeRedisTopology.js +222 -0
  54. package/dist/redisDiagnostics.js +26 -0
  55. package/dist/redisReadPolicy.js +38 -0
  56. package/dist/sql.d.ts +77 -0
  57. package/dist/sql.js +0 -0
  58. package/dist/storage.d.ts +166 -0
  59. package/dist/storage.js +47 -0
  60. package/dist/storageAddress.js +19 -0
  61. package/package.json +49 -6
package/README.md CHANGED
@@ -24,3 +24,113 @@ deliberately short so there is nothing here to drift out of date.
24
24
 
25
25
  Proprietary. © 2026 Voltro UG. Your use is governed by the
26
26
  [Terms of Service](https://voltro.cloud/legal/terms). See the bundled `LICENSE`.
27
+ ## Native Redis topologies
28
+
29
+ RESP connection URLs distinguish standalone Redis, Cluster seeds and Sentinel
30
+ master groups. Secure schemes retain certificate verification; Sentinel can use
31
+ separate control credentials. Default and batch reads stay on primaries, scans visit
32
+ discovered primaries and cross-slot deletion has no cross-key atomicity promise.
33
+ Scheme names are case insensitive. Static, environment and tenant-resolved
34
+ credentials share metadata admission before transport acquisition.
35
+ Nonzero standalone/Sentinel databases require confirmed SELECT on every socket;
36
+ failed selection closes the transport instead of allowing database-zero commands.
37
+ Owned Pub/Sub sockets report gaps and acknowledge restored subscriptions before
38
+ reconnection. See [connections](https://docs.voltro.dev/docs/caching/connections)
39
+ for URL admission, migration, ownership and explicit eventual reads. Individual
40
+ HotStore reads may request `consistency: 'eventual'`; the connection selects
41
+ `readFrom: 'primary' | 'replica' | 'nearest'` through an owned read-only
42
+ port. Native/HTTP Lua uses EVAL_RO. `nearest` probes fresh roundtrip times.
43
+ Readers share tenant prefixes, rotation, leases and shutdown with the primary.
44
+ A lost mutation response is an unknown outcome and never authorizes replay.
45
+
46
+ ## Named Analytics
47
+
48
+ Declare analytical destinations under `connections.analytics` and select the
49
+ app-wide sink with `analytics: { connection: 'analytics:warehouse' }`. The
50
+ app owns the pool; handlers and plugins borrow it. Install the selected
51
+ provider package in the app. DuckDB does not require an application SQL store.
52
+
53
+ ```ts
54
+ import { env } from '@voltro/kv/connection'
55
+
56
+ export default {
57
+ name: 'analyticsApp',
58
+ type: 'api',
59
+ store: 'memory',
60
+ connections: {
61
+ analytics: {
62
+ warehouse: { provider: 'duckdb', path: env('DUCKDB_PATH') },
63
+ },
64
+ defaults: { analytics: 'warehouse' },
65
+ },
66
+ analytics: { connection: 'analytics:warehouse' },
67
+ }
68
+ ```
69
+
70
+ Declarations use `provider: 'duckdb' | 'clickhouse' | 'tinybird' | 'posthog'`.
71
+ Endpoints and credentials use `env()`; DuckDB paths may use strings or `env()`.
72
+ Operator overrides use `CONNECTIONS_ANALYTICS_<NAME>_<FIELD>`, including
73
+ `URL`, `USERNAME`, `PASSWORD`, `PATH`, `TOKEN`, `API_URL`, `API_KEY` and `HOST`.
74
+ The provider, identifiers, mirror tables and batching policy remain declared.
75
+ Production network destinations require HTTPS. Missing credentials refuse boot.
76
+
77
+ DuckDB and ClickHouse initialize their event schema before the read-only
78
+ readiness query; Tinybird checks the configured aggregate pipe without emitting
79
+ an event. PostHog acquisition currently refuses: its capture-key read-only probe
80
+ is unfinished. It is not a silent noop or an event-writing health check.
81
+
82
+ `dynamicAnalytics(resolve, { ttlMs })` declares a tenant-owned destination.
83
+ Borrow it with `registry.analytics('analytics:tenant', { tenantId })`; declaration
84
+ validation and inventory do not invoke the resolver. App-wide Analytics selection
85
+ requires a static declaration. A tenant-scoped destination must be borrowed in
86
+ its tenant context. The registry owns TTL/LRU bounds and disposal.
87
+
88
+ Borrowed sinks follow `registry.reload` and the app owner's SIGHUP handling.
89
+ Replacement readiness, provider, capabilities and mirror schema are checked
90
+ before switching; failure retains the old generation. Accepted calls retain
91
+ their generation until completion. Sink disposal never closes another consumer's
92
+ shared pool. Closing the app owner refuses new operations and awaits cleanup.
93
+
94
+ Connection inventory, the shared Connections panel and `voltro doctor
95
+ --connections` include Analytics references without paths, endpoints,
96
+ credentials or tenant IDs. Doctor probes initialize the provider schema before
97
+ measuring a read-only query; they do not prove event delivery or capacity.
98
+ Dynamic operator probes require an explicit tenant context.
99
+
100
+ Tests can inject an `AnalyticsConnectionConnector` into the registry or pass
101
+ `connectAnalytics` in `withConnections` options. The connector returns a sink,
102
+ read-only probe and owned close Effect. Tests must still supply valid declarations.
103
+ The browser-safe port and errors are exported from `@voltro/kv/analytics`; the
104
+ runtime re-exports the same contract without a second error implementation.
105
+
106
+ ## Unavailable read policy
107
+
108
+ Plugin connection roles declare `onUnavailable: 'degrade' | 'fail'`; omitted
109
+ policy means `fail`. The app passes each admitted role policy into plugin
110
+ lifecycle and store-binding contexts and shows it in connection inventory.
111
+ `readHotStoreWithFallback` from `@voltro/kv/hot/contract` exposes only HotStore
112
+ read methods. Under `degrade`, a typed unavailable read selects the caller's
113
+ explicit fallback once. SQL remains the durable source; the helper does not
114
+ write, rebuild or retry. Other failures and interruption remain failures.
115
+ Never invoke it from a Room tick.
116
+
117
+ ## Conditional lease ownership
118
+
119
+ `HotStore.compareDelete` and `compareExpire` atomically compare a `setNx` lease
120
+ value before removal or TTL renewal. Missing, expired and mismatched values
121
+ return false without changing a successor. Other structures fail with wrongType.
122
+ Use a fresh server-owned value per acquisition, outside ticks. Temporary leases
123
+ do not replace durable SQL revision/epoch fencing. Replacement ports must implement
124
+ both operations and their atomic batch variants; migration
125
+ `0.87.0/67_hot-store-conditional-leases` reports the contract. See the bilingual
126
+ [HotStore guide](https://docs.voltro.dev/docs/caching/hot-store).
127
+
128
+ ## Native command timeouts
129
+
130
+ RESP declarations, resolved dynamic configuration and direct `connect` accept
131
+ `connectTimeoutMs` and `commandTimeoutMs`. Values are integer milliseconds from
132
+ 1 through 2147483647; HTTP/memory refuse them. Native primary, reader and
133
+ subscriber construction shares these settings. A timed-out write remains an
134
+ unknown outcome, not cancelled or safe to replay. Existing ownership and
135
+ no-resend behavior remain authoritative. These are per-transport limits, not
136
+ an aggregate business-operation deadline. See the bilingual connections guide.
@@ -1,491 +1,11 @@
1
1
  # Third-Party Notices — @voltro/kv
2
2
 
3
- This package uses the open-source software listed below. Each is the
3
+ This package uses the third-party software listed below. Each is the
4
4
  property of its respective copyright holders and is used under the terms of
5
5
  its license. This file is provided for attribution; it grants no rights in
6
6
  @voltro/kv itself, which is proprietary (see LICENSE).
7
7
 
8
- Generated from the resolved runtime dependency closure (11 packages).
8
+ Generated from the resolved runtime dependency closure (0 packages).
9
9
 
10
10
  ---
11
11
 
12
- ## @ioredis/commands@1.10.0
13
-
14
- License: MIT
15
-
16
- ```
17
- The MIT License (MIT)
18
-
19
- Copyright (c) 2022 Zihua Li
20
- Copyright (c) 2015 NodeRedis
21
-
22
- Permission is hereby granted, free of charge, to any person obtaining a copy
23
- of this software and associated documentation files (the "Software"), to deal
24
- in the Software without restriction, including without limitation the rights
25
- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
26
- copies of the Software, and to permit persons to whom the Software is
27
- furnished to do so, subject to the following conditions:
28
-
29
- The above copyright notice and this permission notice shall be included in all
30
- copies or substantial portions of the Software.
31
-
32
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
33
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
34
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
35
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
36
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
37
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
38
- SOFTWARE.
39
- ```
40
-
41
- ## @upstash/redis@1.38.4
42
-
43
- License: MIT
44
-
45
- ```
46
- The MIT License (MIT)
47
-
48
- Copyright (c) 2021 Upstash, Inc.
49
-
50
- Permission is hereby granted, free of charge, to any person obtaining a copy
51
- of this software and associated documentation files (the "Software"), to deal
52
- in the Software without restriction, including without limitation the rights
53
- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
54
- copies of the Software, and to permit persons to whom the Software is
55
- furnished to do so, subject to the following conditions:
56
-
57
- The above copyright notice and this permission notice shall be included in all
58
- copies or substantial portions of the Software.
59
-
60
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
61
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
62
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
63
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
64
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
65
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
66
- SOFTWARE.
67
- ```
68
-
69
- ## cluster-key-slot@1.1.1
70
-
71
- License: Apache-2.0
72
-
73
- ```
74
- Copyright (c) 2018 Mike Diarmid (Salakar) <mike.diarmid@gmail.com>
75
-
76
- Licensed under the Apache License, Version 2.0 (the "License");
77
- you may not use this library except in compliance with the License.
78
- You may obtain a copy of the License at
79
-
80
- http://www.apache.org/licenses/LICENSE-2.0
81
-
82
- Unless required by applicable law or agreed to in writing, software
83
- distributed under the License is distributed on an "AS IS" BASIS,
84
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
85
- See the License for the specific language governing permissions and
86
- limitations under the License.
87
- ```
88
-
89
- ## debug@4.4.3
90
-
91
- License: MIT
92
-
93
- ```
94
- (The MIT License)
95
-
96
- Copyright (c) 2014-2017 TJ Holowaychuk <tj@vision-media.ca>
97
- Copyright (c) 2018-2021 Josh Junon
98
-
99
- Permission is hereby granted, free of charge, to any person obtaining a copy of this software
100
- and associated documentation files (the 'Software'), to deal in the Software without restriction,
101
- including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense,
102
- and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so,
103
- subject to the following conditions:
104
-
105
- The above copyright notice and this permission notice shall be included in all copies or substantial
106
- portions of the Software.
107
-
108
- THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT
109
- LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
110
- IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
111
- WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
112
- SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
113
- ```
114
-
115
- ## denque@2.1.0
116
-
117
- License: Apache-2.0
118
-
119
- ```
120
- Apache License
121
- Version 2.0, January 2004
122
- http://www.apache.org/licenses/
123
-
124
- TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
125
-
126
- 1. Definitions.
127
-
128
- "License" shall mean the terms and conditions for use, reproduction,
129
- and distribution as defined by Sections 1 through 9 of this document.
130
-
131
- "Licensor" shall mean the copyright owner or entity authorized by
132
- the copyright owner that is granting the License.
133
-
134
- "Legal Entity" shall mean the union of the acting entity and all
135
- other entities that control, are controlled by, or are under common
136
- control with that entity. For the purposes of this definition,
137
- "control" means (i) the power, direct or indirect, to cause the
138
- direction or management of such entity, whether by contract or
139
- otherwise, or (ii) ownership of fifty percent (50%) or more of the
140
- outstanding shares, or (iii) beneficial ownership of such entity.
141
-
142
- "You" (or "Your") shall mean an individual or Legal Entity
143
- exercising permissions granted by this License.
144
-
145
- "Source" form shall mean the preferred form for making modifications,
146
- including but not limited to software source code, documentation
147
- source, and configuration files.
148
-
149
- "Object" form shall mean any form resulting from mechanical
150
- transformation or translation of a Source form, including but
151
- not limited to compiled object code, generated documentation,
152
- and conversions to other media types.
153
-
154
- "Work" shall mean the work of authorship, whether in Source or
155
- Object form, made available under the License, as indicated by a
156
- copyright notice that is included in or attached to the work
157
- (an example is provided in the Appendix below).
158
-
159
- "Derivative Works" shall mean any work, whether in Source or Object
160
- form, that is based on (or derived from) the Work and for which the
161
- editorial revisions, annotations, elaborations, or other modifications
162
- represent, as a whole, an original work of authorship. For the purposes
163
- of this License, Derivative Works shall not include works that remain
164
- separable from, or merely link (or bind by name) to the interfaces of,
165
- the Work and Derivative Works thereof.
166
-
167
- "Contribution" shall mean any work of authorship, including
168
- the original version of the Work and any modifications or additions
169
- to that Work or Derivative Works thereof, that is intentionally
170
- submitted to Licensor for inclusion in the Work by the copyright owner
171
- or by an individual or Legal Entity authorized to submit on behalf of
172
- the copyright owner. For the purposes of this definition, "submitted"
173
- means any form of electronic, verbal, or written communication sent
174
- to the Licensor or its representatives, including but not limited to
175
- communication on electronic mailing lists, source code control systems,
176
- and issue tracking systems that are managed by, or on behalf of, the
177
- Licensor for the purpose of discussing and improving the Work, but
178
- excluding communication that is conspicuously marked or otherwise
179
- designated in writing by the copyright owner as "Not a Contribution."
180
-
181
- "Contributor" shall mean Licensor and any individual or Legal Entity
182
- on behalf of whom a Contribution has been received by Licensor and
183
- subsequently incorporated within the Work.
184
-
185
- 2. Grant of Copyright License. Subject to the terms and conditions of
186
- this License, each Contributor hereby grants to You a perpetual,
187
- worldwide, non-exclusive, no-charge, royalty-free, irrevocable
188
- copyright license to reproduce, prepare Derivative Works of,
189
- publicly display, publicly perform, sublicense, and distribute the
190
- Work and such Derivative Works in Source or Object form.
191
-
192
- 3. Grant of Patent License. Subject to the terms and conditions of
193
- this License, each Contributor hereby grants to You a perpetual,
194
- worldwide, non-exclusive, no-charge, royalty-free, irrevocable
195
- (except as stated in this section) patent license to make, have made,
196
- use, offer to sell, sell, import, and otherwise transfer the Work,
197
- where such license applies only to those patent claims licensable
198
- by such Contributor that are necessarily infringed by their
199
- Contribution(s) alone or by combination of their Contribution(s)
200
- with the Work to which such Contribution(s) was submitted. If You
201
- institute patent litigation against any entity (including a
202
- cross-claim or counterclaim in a lawsuit) alleging that the Work
203
- or a Contribution incorporated within the Work constitutes direct
204
- or contributory patent infringement, then any patent licenses
205
- granted to You under this License for that Work shall terminate
206
- as of the date such litigation is filed.
207
-
208
- 4. Redistribution. You may reproduce and distribute copies of the
209
- Work or Derivative Works thereof in any medium, with or without
210
- modifications, and in Source or Object form, provided that You
211
- meet the following conditions:
212
-
213
- (a) You must give any other recipients of the Work or
214
- Derivative Works a copy of this License; and
215
-
216
- (b) You must cause any modified files to carry prominent notices
217
- stating that You changed the files; and
218
-
219
- (c) You must retain, in the Source form of any Derivative Works
220
- that You distribute, all copyright, patent, trademark, and
221
- attribution notices from the Source form of the Work,
222
- excluding those notices that do not pertain to any part of
223
- the Derivative Works; and
224
-
225
- (d) If the Work includes a "NOTICE" text file as part of its
226
- distribution, then any Derivative Works that You distribute must
227
- include a readable copy of the attribution notices contained
228
- within such NOTICE file, excluding those notices that do not
229
- pertain to any part of the Derivative Works, in at least one
230
- of the following places: within a NOTICE text file distributed
231
- as part of the Derivative Works; within the Source form or
232
- documentation, if provided along with the Derivative Works; or,
233
- within a display generated by the Derivative Works, if and
234
- wherever such third-party notices normally appear. The contents
235
- of the NOTICE file are for informational purposes only and
236
- do not modify the License. You may add Your own attribution
237
- notices within Derivative Works that You distribute, alongside
238
- or as an addendum to the NOTICE text from the Work, provided
239
- that such additional attribution notices cannot be construed
240
- as modifying the License.
241
-
242
- You may add Your own copyright statement to Your modifications and
243
- may provide additional or different license terms and conditions
244
- for use, reproduction, or distribution of Your modifications, or
245
- for any such Derivative Works as a whole, provided Your use,
246
- reproduction, and distribution of the Work otherwise complies with
247
- the conditions stated in this License.
248
-
249
- 5. Submission of Contributions. Unless You explicitly state otherwise,
250
- any Contribution intentionally submitted for inclusion in the Work
251
- by You to the Licensor shall be under the terms and conditions of
252
- this License, without any additional terms or conditions.
253
- Notwithstanding the above, nothing herein shall supersede or modify
254
- the terms of any separate license agreement you may have executed
255
- with Licensor regarding such Contributions.
256
-
257
- 6. Trademarks. This License does not grant permission to use the trade
258
- names, trademarks, service marks, or product names of the Licensor,
259
- except as required for reasonable and customary use in describing the
260
- origin of the Work and reproducing the content of the NOTICE file.
261
-
262
- 7. Disclaimer of Warranty. Unless required by applicable law or
263
- agreed to in writing, Licensor provides the Work (and each
264
- Contributor provides its Contributions) on an "AS IS" BASIS,
265
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
266
- implied, including, without limitation, any warranties or conditions
267
- of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
268
- PARTICULAR PURPOSE. You are solely responsible for determining the
269
- appropriateness of using or redistributing the Work and assume any
270
- risks associated with Your exercise of permissions under this License.
271
-
272
- 8. Limitation of Liability. In no event and under no legal theory,
273
- whether in tort (including negligence), contract, or otherwise,
274
- unless required by applicable law (such as deliberate and grossly
275
- negligent acts) or agreed to in writing, shall any Contributor be
276
- liable to You for damages, including any direct, indirect, special,
277
- incidental, or consequential damages of any character arising as a
278
- result of this License or out of the use or inability to use the
279
- Work (including but not limited to damages for loss of goodwill,
280
- work stoppage, computer failure or malfunction, or any and all
281
- other commercial damages or losses), even if such Contributor
282
- has been advised of the possibility of such damages.
283
-
284
- 9. Accepting Warranty or Additional Liability. While redistributing
285
- the Work or Derivative Works thereof, You may choose to offer,
286
- and charge a fee for, acceptance of support, warranty, indemnity,
287
- or other liability obligations and/or rights consistent with this
288
- License. However, in accepting such obligations, You may act only
289
- on Your own behalf and on Your sole responsibility, not on behalf
290
- of any other Contributor, and only if You agree to indemnify,
291
- defend, and hold each Contributor harmless for any liability
292
- incurred by, or claims asserted against, such Contributor by reason
293
- of your accepting any such warranty or additional liability.
294
-
295
- END OF TERMS AND CONDITIONS
296
-
297
- APPENDIX: How to apply the Apache License to your work.
298
-
299
- To apply the Apache License to your work, attach the following
300
- boilerplate notice, with the fields enclosed by brackets "[]"
301
- replaced with your own identifying information. (Don't include
302
- the brackets!) The text should be enclosed in the appropriate
303
- comment syntax for the file format. We also recommend that a
304
- file or class name and description of purpose be included on the
305
- same "printed page" as the copyright notice for easier
306
- identification within third-party archives.
307
-
308
- Copyright 2018-present Invertase Limited
309
-
310
- Licensed under the Apache License, Version 2.0 (the "License");
311
- you may not use this file except in compliance with the License.
312
- You may obtain a copy of the License at
313
-
314
- http://www.apache.org/licenses/LICENSE-2.0
315
-
316
- Unless required by applicable law or agreed to in writing, software
317
- distributed under the License is distributed on an "AS IS" BASIS,
318
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
319
- See the License for the specific language governing permissions and
320
- limitations under the License.
321
- ```
322
-
323
- ## ioredis@5.11.1
324
-
325
- License: MIT
326
-
327
- ```
328
- The MIT License (MIT)
329
-
330
- Copyright (c) 2015-2022 Zihua Li
331
-
332
- Permission is hereby granted, free of charge, to any person obtaining a copy
333
- of this software and associated documentation files (the "Software"), to deal
334
- in the Software without restriction, including without limitation the rights
335
- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
336
- copies of the Software, and to permit persons to whom the Software is
337
- furnished to do so, subject to the following conditions:
338
-
339
- The above copyright notice and this permission notice shall be included in all
340
- copies or substantial portions of the Software.
341
-
342
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
343
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
344
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
345
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
346
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
347
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
348
- SOFTWARE.
349
- ```
350
-
351
- ## ms@2.1.3
352
-
353
- License: MIT
354
-
355
- ```
356
- The MIT License (MIT)
357
-
358
- Copyright (c) 2020 Vercel, Inc.
359
-
360
- Permission is hereby granted, free of charge, to any person obtaining a copy
361
- of this software and associated documentation files (the "Software"), to deal
362
- in the Software without restriction, including without limitation the rights
363
- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
364
- copies of the Software, and to permit persons to whom the Software is
365
- furnished to do so, subject to the following conditions:
366
-
367
- The above copyright notice and this permission notice shall be included in all
368
- copies or substantial portions of the Software.
369
-
370
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
371
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
372
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
373
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
374
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
375
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
376
- SOFTWARE.
377
- ```
378
-
379
- ## redis-errors@1.2.0
380
-
381
- License: MIT
382
-
383
- ```
384
- The MIT License (MIT)
385
-
386
- Copyright (c) 2017 Ruben Bridgewater
387
-
388
- Permission is hereby granted, free of charge, to any person obtaining a copy
389
- of this software and associated documentation files (the "Software"), to deal
390
- in the Software without restriction, including without limitation the rights
391
- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
392
- copies of the Software, and to permit persons to whom the Software is
393
- furnished to do so, subject to the following conditions:
394
-
395
- The above copyright notice and this permission notice shall be included in all
396
- copies or substantial portions of the Software.
397
-
398
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
399
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
400
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
401
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
402
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
403
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
404
- SOFTWARE.
405
- ```
406
-
407
- ## redis-parser@3.0.0
408
-
409
- License: MIT
410
-
411
- ```
412
- The MIT License (MIT)
413
-
414
- Copyright (c) 2015 NodeRedis
415
-
416
- Permission is hereby granted, free of charge, to any person obtaining a copy
417
- of this software and associated documentation files (the "Software"), to deal
418
- in the Software without restriction, including without limitation the rights
419
- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
420
- copies of the Software, and to permit persons to whom the Software is
421
- furnished to do so, subject to the following conditions:
422
-
423
- The above copyright notice and this permission notice shall be included in all
424
- copies or substantial portions of the Software.
425
-
426
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
427
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
428
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
429
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
430
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
431
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
432
- SOFTWARE.
433
- ```
434
-
435
- ## standard-as-callback@2.1.0
436
-
437
- License: MIT
438
-
439
- ```
440
- MIT License
441
-
442
- Copyright (c) 2018 Zihua Li
443
- Copyright (c) 2013-2017 Petka Antonov
444
-
445
- Permission is hereby granted, free of charge, to any person obtaining a copy
446
- of this software and associated documentation files (the "Software"), to deal
447
- in the Software without restriction, including without limitation the rights
448
- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
449
- copies of the Software, and to permit persons to whom the Software is
450
- furnished to do so, subject to the following conditions:
451
-
452
- The above copyright notice and this permission notice shall be included in all
453
- copies or substantial portions of the Software.
454
-
455
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
456
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
457
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
458
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
459
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
460
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
461
- SOFTWARE.
462
- ```
463
-
464
- ## uncrypto@0.1.3
465
-
466
- License: MIT
467
-
468
- ```
469
- MIT License
470
-
471
- Copyright (c) Pooya Parsa <pooya@pi0.io>
472
-
473
- Permission is hereby granted, free of charge, to any person obtaining a copy
474
- of this software and associated documentation files (the "Software"), to deal
475
- in the Software without restriction, including without limitation the rights
476
- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
477
- copies of the Software, and to permit persons to whom the Software is
478
- furnished to do so, subject to the following conditions:
479
-
480
- The above copyright notice and this permission notice shall be included in all
481
- copies or substantial portions of the Software.
482
-
483
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
484
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
485
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
486
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
487
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
488
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
489
- SOFTWARE.
490
- ```
491
-
package/dist/Kv.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import { KvStore as e } from "./KvStore.js";
2
2
  import { Context as t, Effect as n, Layer as r, Option as i } from "effect";
3
- //#region src/Kv.ts
3
+ // src/Kv.ts
4
4
  var a = class a extends t.Service()("@voltro/Kv", { make: n.gen(function* () {
5
5
  let t = yield* e;
6
6
  return {
@@ -15,5 +15,4 @@ var a = class a extends t.Service()("@voltro/Kv", { make: n.gen(function* () {
15
15
  }) }) {
16
16
  static layer = r.effect(a, a.make);
17
17
  };
18
- //#endregion
19
18
  export { a as Kv };
package/dist/KvStore.js CHANGED
@@ -1,5 +1,4 @@
1
1
  import { Context as e } from "effect";
2
- //#region src/KvStore.ts
2
+ // src/KvStore.ts
3
3
  var t = class extends e.Service()("@voltro/KvStore") {};
4
- //#endregion
5
4
  export { t as KvStore };