@voltro/sql-mssql 0.84.0 → 0.85.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.
@@ -5,7 +5,7 @@ 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/sql-mssql itself, which is proprietary (see LICENSE).
7
7
 
8
- Generated from the resolved runtime dependency closure (76 packages).
8
+ Generated from the resolved runtime dependency closure (73 packages).
9
9
 
10
10
  ---
11
11
 
@@ -121,34 +121,6 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
121
121
  SOFTWARE.
122
122
  ```
123
123
 
124
- ## @azure/core-http-compat@2.4.0
125
-
126
- License: MIT
127
-
128
- ```
129
- Copyright (c) Microsoft Corporation.
130
-
131
- MIT License
132
-
133
- Permission is hereby granted, free of charge, to any person obtaining a copy
134
- of this software and associated documentation files (the "Software"), to deal
135
- in the Software without restriction, including without limitation the rights
136
- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
137
- copies of the Software, and to permit persons to whom the Software is
138
- furnished to do so, subject to the following conditions:
139
-
140
- The above copyright notice and this permission notice shall be included in all
141
- copies or substantial portions of the Software.
142
-
143
- THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
144
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
145
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
146
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
147
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
148
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
149
- SOFTWARE.
150
- ```
151
-
152
124
  ## @azure/core-lro@2.7.2
153
125
 
154
126
  License: MIT
@@ -345,7 +317,7 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
345
317
  SOFTWARE.
346
318
  ```
347
319
 
348
- ## @azure/keyvault-keys@4.10.0
320
+ ## @azure/keyvault-keys@4.10.2
349
321
 
350
322
  License: MIT
351
323
 
@@ -485,63 +457,7 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
485
457
  SOFTWARE.
486
458
  ```
487
459
 
488
- ## @effect/experimental@0.61.1
489
-
490
- License: MIT
491
-
492
- ```
493
- MIT License
494
-
495
- Copyright (c) 2023-present The Contributors
496
-
497
- Permission is hereby granted, free of charge, to any person obtaining a copy
498
- of this software and associated documentation files (the "Software"), to deal
499
- in the Software without restriction, including without limitation the rights
500
- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
501
- copies of the Software, and to permit persons to whom the Software is
502
- furnished to do so, subject to the following conditions:
503
-
504
- The above copyright notice and this permission notice shall be included in all
505
- copies or substantial portions of the Software.
506
-
507
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
508
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
509
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
510
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
511
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
512
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
513
- SOFTWARE.
514
- ```
515
-
516
- ## @effect/sql@0.52.1
517
-
518
- License: MIT
519
-
520
- ```
521
- MIT License
522
-
523
- Copyright (c) 2023-present The Contributors
524
-
525
- Permission is hereby granted, free of charge, to any person obtaining a copy
526
- of this software and associated documentation files (the "Software"), to deal
527
- in the Software without restriction, including without limitation the rights
528
- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
529
- copies of the Software, and to permit persons to whom the Software is
530
- furnished to do so, subject to the following conditions:
531
-
532
- The above copyright notice and this permission notice shall be included in all
533
- copies or substantial portions of the Software.
534
-
535
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
536
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
537
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
538
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
539
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
540
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
541
- SOFTWARE.
542
- ```
543
-
544
- ## @effect/sql-mssql@0.54.0
460
+ ## @effect/sql-mssql@4.0.1
545
461
 
546
462
  License: MIT
547
463
 
@@ -569,7 +485,7 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
569
485
  SOFTWARE.
570
486
  ```
571
487
 
572
- ## @js-joda/core@5.7.0
488
+ ## @js-joda/core@6.2.0
573
489
 
574
490
  License: BSD-3-Clause
575
491
 
@@ -609,7 +525,7 @@ NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
609
525
  SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
610
526
  ```
611
527
 
612
- ## @types/node@26.4.1
528
+ ## @types/node@26.6.1
613
529
 
614
530
  License: MIT
615
531
 
@@ -1258,7 +1174,7 @@ TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
1258
1174
  SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
1259
1175
  ```
1260
1176
 
1261
- ## iconv-lite@0.6.3
1177
+ ## iconv-lite@0.7.3
1262
1178
 
1263
1179
  License: MIT
1264
1180
 
@@ -2141,7 +2057,7 @@ IN THE SOFTWARE.
2141
2057
  """
2142
2058
  ```
2143
2059
 
2144
- ## tedious@18.6.2
2060
+ ## tedious@20.3.3
2145
2061
 
2146
2062
  License: MIT
2147
2063
 
@@ -2424,7 +2340,7 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
2424
2340
  SOFTWARE.
2425
2341
  ```
2426
2342
 
2427
- ## undici-types@8.3.0
2343
+ ## undici-types@8.9.0
2428
2344
 
2429
2345
  License: MIT
2430
2346
 
package/dist/index.d.ts CHANGED
@@ -2,7 +2,7 @@ import { CDC_OFFSETS_TABLE } from '@voltro/database';
2
2
  import { CdcConfig } from '@voltro/database';
3
3
  import { ChangeEvent } from '@voltro/database';
4
4
  import { ChangeStrategy } from '@voltro/database';
5
- import { ConfigError } from 'effect';
5
+ import { Config } from 'effect';
6
6
  import { ConnectionConfig } from '@voltro/database';
7
7
  import { Context } from 'effect';
8
8
  import { DataStore } from '@voltro/database';
@@ -20,11 +20,11 @@ import { RawSqlFragment } from '@voltro/database/sql';
20
20
  import { RetryDecision } from '@voltro/database';
21
21
  import { Row } from '@voltro/database';
22
22
  import { RowKey } from '@voltro/database';
23
- import { SqlClient } from '@effect/sql';
24
- import { SqlClient as SqlClient_2 } from '@effect/sql/SqlClient';
23
+ import { SqlClient } from 'effect/sql';
24
+ import { SqlClient as SqlClient_2 } from 'effect/sql/SqlClient';
25
25
  import { SqlDialect } from '@voltro/database';
26
- import { SqlError } from '@effect/sql';
27
- import { TransactionConnection } from '@effect/sql/SqlClient';
26
+ import { SqlError } from 'effect/sql';
27
+ import { TransactionConnection } from 'effect/sql/SqlClient';
28
28
  import { UpsertOptions } from '@voltro/database';
29
29
  import { _voltroMssqlCdcOffsetsTable } from '@voltro/database';
30
30
  import { WriteAttribution } from '@voltro/database';
@@ -348,6 +348,9 @@ export declare class MssqlStore implements DataStore {
348
348
  * promotion, attribution threading and exit settling are shared — see
349
349
  * `transactionOutcome.ts` for why none of those may be re-decided here.
350
350
  */
351
+ /** The key under which this client's transactions provide their pinned
352
+ * connection (per client in Effect 4). Views reach it through the parent. */
353
+ get transactionService(): Context.Service<TransactionConnection, TransactionConnection.Service>;
351
354
  private txnSpec;
352
355
  onChange(listener: (event: ChangeEvent) => void): () => void;
353
356
  /** 'fleet' under Change Tracking CDC (every replica gets the full
@@ -365,7 +368,7 @@ export declare class MssqlStore implements DataStore {
365
368
  }
366
369
 
367
370
  export declare interface MssqlStoreOptions {
368
- readonly sqlLayer: Layer.Layer<SqlClient.SqlClient | MssqlClient.MssqlClient, ConfigError.ConfigError | SqlError.SqlError, never>;
371
+ readonly sqlLayer: Layer.Layer<SqlClient.SqlClient | MssqlClient.MssqlClient, Config.ConfigError | SqlError.SqlError, never>;
369
372
  readonly tracerLayer?: Layer.Layer<never, never, never>;
370
373
  /** `'inline'` (default): the writing instance emits its own deltas.
371
374
  * `'cdc'`: a SQL Server Change Tracking reader is the sole emitter, so
@@ -385,7 +388,7 @@ export declare interface MssqlStoreOptions {
385
388
  */
386
389
  export declare const startChangeTrackingCdc: (opts: ChangeTrackingCdcOptions) => Promise<ChangeTrackingCdcHandle>;
387
390
 
388
- declare type TxnContext = Context.Tag.Service<typeof TransactionConnection>;
391
+ declare type TxnContext = TransactionConnection.Service;
389
392
 
390
393
  export { _voltroMssqlCdcOffsetsTable }
391
394