@syncular/server-workers 0.83.0 → 0.84.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.
package/dist/index.d.ts CHANGED
@@ -33,7 +33,7 @@
33
33
  * objects and leaves every HTTP round, segment and blob download to the
34
34
  * Worker; the database lock serializes pushes (§6.3, §8.9).
35
35
  */
36
- import { type D1Database, D1ServerStorage, type SyncServerConfig } from '@syncular/server';
36
+ import { type SyncServerConfig } from '@syncular/server';
37
37
  import { type SyncularAdminGuards, type SyncularHonoOptions } from '@syncular/server-hono';
38
38
  import { type DurableObjectNamespaceLike, type RealtimeUpgradeIdentity } from './realtime-do.js';
39
39
  export { type D1Database, D1ServerStorage } from '@syncular/server';
@@ -191,11 +191,5 @@ export declare function forwardSyncRequest(request: Request, namespace: DurableO
191
191
  * partition; with it, `idFromName(JSON.stringify([partition, shard]))` (§8.9).
192
192
  */
193
193
  export declare function forwardRealtimeUpgrade(request: Request, namespace: DurableObjectNamespaceLike, identity: RealtimeUpgradeIdentity, shard?: string): Promise<Response>;
194
- /**
195
- * Convenience: a `D1ServerStorage` over a Worker's D1 binding. `migrate` is
196
- * NOT called here — apply the schema with `wrangler d1 migrations` (see the
197
- * README + `wrangler.toml` example) so cold requests never race a DDL apply.
198
- */
199
- export declare function d1Storage(binding: D1Database): D1ServerStorage;
200
194
  /** Re-export the shared config type for host `configFactory` signatures. */
201
195
  export type { SyncServerConfig, SyncularHonoOptions };
package/dist/index.js CHANGED
@@ -33,7 +33,7 @@
33
33
  * objects and leaves every HTTP round, segment and blob download to the
34
34
  * Worker; the database lock serializes pushes (§6.3, §8.9).
35
35
  */
36
- import { acceptsEncoding, D1ServerStorage, errorBody, SSP2_CONTENT_TYPE, SyncError, SyncularAdmin, varyOnAcceptEncoding, } from '@syncular/server';
36
+ import { acceptsEncoding, errorBody, SSP2_CONTENT_TYPE, SyncError, SyncularAdmin, varyOnAcceptEncoding, } from '@syncular/server';
37
37
  import { createSyncularAdminRoutes, createSyncularHono, } from '@syncular/server-hono';
38
38
  import { adminRequestForDurableObject, OPERATIONS_DO_REQUEST_PATH, REALTIME_DO_UPGRADE_PATH, SYNC_DO_REQUEST_PATH, writeIdentityHeaders, writeRequestIdentityHeaders, } from './realtime-do.js';
39
39
  export { D1ServerStorage } from '@syncular/server';
@@ -259,11 +259,3 @@ export function forwardRealtimeUpgrade(request, namespace, identity, shard) {
259
259
  writeIdentityHeaders(forwarded.headers, identity, shard === undefined ? undefined : name);
260
260
  return stub.fetch(forwarded);
261
261
  }
262
- /**
263
- * Convenience: a `D1ServerStorage` over a Worker's D1 binding. `migrate` is
264
- * NOT called here — apply the schema with `wrangler d1 migrations` (see the
265
- * README + `wrangler.toml` example) so cold requests never race a DDL apply.
266
- */
267
- export function d1Storage(binding) {
268
- return new D1ServerStorage(binding);
269
- }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@syncular/server-workers",
3
- "version": "0.83.0",
3
+ "version": "0.84.0",
4
4
  "description": "Cloudflare Workers adapter for the Syncular sync server",
5
5
  "license": "Apache-2.0",
6
6
  "author": "Benjamin Kniffler",
@@ -45,9 +45,9 @@
45
45
  "!dist/**/*.test.d.ts"
46
46
  ],
47
47
  "dependencies": {
48
- "@syncular/core": "0.83.0",
49
- "@syncular/server": "0.83.0",
50
- "@syncular/server-hono": "0.83.0"
48
+ "@syncular/core": "0.84.0",
49
+ "@syncular/server": "0.84.0",
50
+ "@syncular/server-hono": "0.84.0"
51
51
  },
52
52
  "devDependencies": {
53
53
  "@electric-sql/pglite": "^0.5.4",
package/src/index.ts CHANGED
@@ -35,8 +35,6 @@
35
35
  */
36
36
  import {
37
37
  acceptsEncoding,
38
- type D1Database,
39
- D1ServerStorage,
40
38
  errorBody,
41
39
  SSP2_CONTENT_TYPE,
42
40
  SyncError,
@@ -472,14 +470,5 @@ export function forwardRealtimeUpgrade(
472
470
  return stub.fetch(forwarded);
473
471
  }
474
472
 
475
- /**
476
- * Convenience: a `D1ServerStorage` over a Worker's D1 binding. `migrate` is
477
- * NOT called here — apply the schema with `wrangler d1 migrations` (see the
478
- * README + `wrangler.toml` example) so cold requests never race a DDL apply.
479
- */
480
- export function d1Storage(binding: D1Database): D1ServerStorage {
481
- return new D1ServerStorage(binding);
482
- }
483
-
484
473
  /** Re-export the shared config type for host `configFactory` signatures. */
485
474
  export type { SyncServerConfig, SyncularHonoOptions };