@rivetkit/effect 0.0.0-stack-chore-sync-engine-changes-from-enterprise-mszropyy.677d526 → 0.0.0-sync-sqlite.0ed739a

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rivetkit/effect",
3
- "version": "0.0.0-stack-chore-sync-engine-changes-from-enterprise-mszropyy.677d526",
3
+ "version": "0.0.0-sync-sqlite.0ed739a",
4
4
  "description": "Effect SDK for Rivet Actors",
5
5
  "license": "Apache-2.0",
6
6
  "type": "module",
@@ -31,7 +31,7 @@
31
31
  },
32
32
  "peerDependencies": {
33
33
  "effect": "^4.0.0-beta.66",
34
- "rivetkit": "0.0.0-stack-chore-sync-engine-changes-from-enterprise-mszropyy.677d526"
34
+ "rivetkit": "0.0.0-sync-sqlite.0ed739a"
35
35
  },
36
36
  "devDependencies": {
37
37
  "@arethetypeswrong/cli": "^0.18.3",
@@ -40,7 +40,7 @@
40
40
  "@types/node": "^22.18.1",
41
41
  "@vitest/coverage-v8": "^4.1.7",
42
42
  "publint": "^0.3.21",
43
- "rivetkit": "0.0.0-stack-chore-sync-engine-changes-from-enterprise-mszropyy.677d526",
43
+ "rivetkit": "0.0.0-sync-sqlite.0ed739a",
44
44
  "typescript": "^5.9.2",
45
45
  "vitest": "^4.1.5"
46
46
  },
@@ -6,7 +6,7 @@ import {
6
6
  Schema,
7
7
  SchemaTransformation,
8
8
  } from "effect";
9
- import type { RawAccess } from "rivetkit/db";
9
+ import type { SynchronousRawAccess } from "rivetkit/db";
10
10
  import { db } from "rivetkit/db";
11
11
  import { describe, expectTypeOf, it, test } from "@effect/vitest";
12
12
 
@@ -287,13 +287,21 @@ describe("Actor.make(...).toLayer", () => {
287
287
  (wakeOptions) => {
288
288
  expectTypeOf(
289
289
  wakeOptions.rawRivetkitContext.db,
290
- ).toEqualTypeOf<RawAccess>();
290
+ ).toEqualTypeOf<SynchronousRawAccess>();
291
291
  expectTypeOf(
292
292
  wakeOptions.rawRivetkitContext.db.transaction(
293
293
  async () => {},
294
294
  { name: "effect-operation", timeout: 1_000 },
295
295
  ),
296
296
  ).toEqualTypeOf<Promise<void>>();
297
+ expectTypeOf(
298
+ wakeOptions.rawRivetkitContext.db.executeSync<{
299
+ count: number;
300
+ }>("SELECT COUNT(*) AS count"),
301
+ ).toEqualTypeOf<{ count: number }[]>();
302
+ expectTypeOf(
303
+ wakeOptions.rawRivetkitContext.db.transactionSync(() => 42),
304
+ ).toEqualTypeOf<number>();
297
305
 
298
306
  return {
299
307
  Ping: () => Effect.succeed(0),