@rebasepro/client 0.16.0 → 0.16.1-canary.g701140a

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/admin.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import type { Transport } from "./transport";
1
+ import type { Transport } from "./transport.js";
2
2
  import { AdminUser } from "@rebasepro/types";
3
3
  export type { AdminUser };
4
4
  export interface CreateAdminOptions {
@@ -1,4 +1,4 @@
1
- import type { Transport } from "./transport";
1
+ import type { Transport } from "./transport.js";
2
2
  /**
3
3
  * These were re-declared here, under a comment saying they lived in the server
4
4
  * package rather than in `@rebasepro/types`. That stopped being true, and the
package/dist/auth.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { Transport } from "./transport";
1
+ import { Transport } from "./transport.js";
2
2
  import type { AuthChangeEvent, RebaseSession, DeviceSession, User } from "@rebasepro/types";
3
3
  export type { RebaseSession, AuthTokens, AuthChangeEvent, DeviceSession } from "@rebasepro/types";
4
4
  /** Minimal, non-sensitive user profile returned by {@link findUserByEmail}. */
package/dist/backups.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { Transport } from "./transport";
1
+ import { Transport } from "./transport.js";
2
2
  import type { BackupInfo, BackupDestinationKind } from "@rebasepro/types";
3
3
  export interface CreateBackupsOptions {
4
4
  backupsPath?: string;
@@ -1,5 +1,5 @@
1
- import { FindParams, Transport } from "./transport";
2
- import { RebaseWebSocketClient } from "./websocket";
1
+ import { FindParams, Transport } from "./transport.js";
2
+ import { RebaseWebSocketClient } from "./websocket.js";
3
3
  import { FindResult, SDKCollectionClient } from "@rebasepro/types";
4
4
  /**
5
5
  * A live query result: a normal {@link FindResult} plus what an interface
package/dist/cron.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { Transport } from "./transport";
1
+ import { Transport } from "./transport.js";
2
2
  import type { CronJobStatus, CronJobLogEntry } from "@rebasepro/types";
3
3
  export interface CreateCronOptions {
4
4
  cronPath?: string;
@@ -1,4 +1,4 @@
1
- import type { Transport } from "./transport";
1
+ import type { Transport } from "./transport.js";
2
2
  /**
3
3
  * Client interface for invoking custom backend functions.
4
4
  *
package/dist/index.d.ts CHANGED
@@ -1,43 +1,43 @@
1
- import { RebaseClientConfig } from "./transport";
2
- import { createAuth, CreateAuthOptions } from "./auth";
3
- import { createAdmin, CreateAdminOptions } from "./admin";
4
- import { createCron, CreateCronOptions } from "./cron";
5
- import { createBackups } from "./backups";
6
- import { createApiKeys, CreateApiKeysOptions } from "./api-keys";
7
- import { CollectionClient } from "./collection";
8
- import { createFunctionsClient } from "./functions";
9
- import { RebaseWebSocketClient } from "./websocket";
10
- import { RebaseRealtimeChannel, type ChannelOptions } from "./realtime-channel";
11
- import { type OfflineApi, type OfflineConfig } from "./offline";
1
+ import { RebaseClientConfig } from "./transport.js";
2
+ import { createAuth, CreateAuthOptions } from "./auth.js";
3
+ import { createAdmin, CreateAdminOptions } from "./admin.js";
4
+ import { createCron, CreateCronOptions } from "./cron.js";
5
+ import { createBackups } from "./backups.js";
6
+ import { createApiKeys, CreateApiKeysOptions } from "./api-keys.js";
7
+ import { CollectionClient } from "./collection.js";
8
+ import { createFunctionsClient } from "./functions.js";
9
+ import { RebaseWebSocketClient } from "./websocket.js";
10
+ import { RebaseRealtimeChannel, type ChannelOptions } from "./realtime-channel.js";
11
+ import { type OfflineApi, type OfflineConfig } from "./offline.js";
12
12
  import { InsertOf, RebaseClient, RebaseSdkData, RowOf, StorageSource, StorageSourceDefinition, StorageSourceRegistry, UpdateOf } from "@rebasepro/types";
13
- export { RebaseApiError } from "./transport";
14
- export { RebaseClientError } from "./errors";
13
+ export { RebaseApiError } from "./transport.js";
14
+ export { RebaseClientError } from "./errors.js";
15
15
  export type { RebaseErrorCode } from "@rebasepro/types";
16
- export type { RebaseClientConfig, FindParams, FindResponse } from "./transport";
17
- export type { CollectionClient } from "./collection";
16
+ export type { RebaseClientConfig, FindParams, FindResponse } from "./transport.js";
17
+ export type { CollectionClient } from "./collection.js";
18
18
  export type { FindResult, SDKCollectionClient, SDKQueryBuilderInterface, PaginationMeta } from "@rebasepro/types";
19
19
  export type { IterateParams, FindAllParams, PageWalkOptions, CursorSpec } from "@rebasepro/types";
20
20
  export { RebasePaginationError } from "@rebasepro/common";
21
21
  export type { PaginationErrorCode } from "@rebasepro/common";
22
22
  export { QueryBuilder, or, and, cond } from "@rebasepro/common";
23
- export { createCookieStorage, createMemoryStorage } from "./auth";
24
- export type { AuthConfig, AuthStorage, CookieStorageOptions, CreateAuthOptions } from "./auth";
23
+ export { createCookieStorage, createMemoryStorage } from "./auth.js";
24
+ export type { AuthConfig, AuthStorage, CookieStorageOptions, CreateAuthOptions } from "./auth.js";
25
25
  export type { User, RebaseSession, AuthTokens, AuthChangeEvent, DeviceSession } from "@rebasepro/types";
26
- export type { CreateAdminOptions } from "./admin";
27
- export type { AdminUser } from "./admin";
28
- export type { CreateCronOptions } from "./cron";
29
- export { createBackups } from "./backups";
30
- export type { CreateBackupsOptions } from "./backups";
31
- export type { ApiKeyMasked, ApiKeyPermission, ApiKeyWithSecret, CreateApiKeyRequest, CreateApiKeysOptions, UpdateApiKeyRequest } from "./api-keys";
32
- export type { FunctionInvokeOptions, FunctionsClient } from "./functions";
33
- export { RebaseWebSocketClient } from "./websocket";
34
- export { RebaseRealtimeChannel } from "./realtime-channel";
35
- export type { PresenceState, PresenceDiff, BroadcastEvent, ChannelTransport, ChannelOptions, ChannelHistoryEntry, ChannelHistoryResult } from "./realtime-channel";
36
- export type { OfflineApi, OfflineConfig, OfflineStatus } from "./offline";
37
- export { isOfflineError } from "./offline";
38
- export type { LiveResult, ObserveOptions, RowSnapshotMeta } from "./collection";
39
- export type { OfflineStore, OfflineCacheEntry, OfflineCacheRecord, PendingMutation, MutationRollback } from "./offline-store";
40
- export { MemoryOfflineStore } from "./offline-store";
26
+ export type { CreateAdminOptions } from "./admin.js";
27
+ export type { AdminUser } from "./admin.js";
28
+ export type { CreateCronOptions } from "./cron.js";
29
+ export { createBackups } from "./backups.js";
30
+ export type { CreateBackupsOptions } from "./backups.js";
31
+ export type { ApiKeyMasked, ApiKeyPermission, ApiKeyWithSecret, CreateApiKeyRequest, CreateApiKeysOptions, UpdateApiKeyRequest } from "./api-keys.js";
32
+ export type { FunctionInvokeOptions, FunctionsClient } from "./functions.js";
33
+ export { RebaseWebSocketClient } from "./websocket.js";
34
+ export { RebaseRealtimeChannel } from "./realtime-channel.js";
35
+ export type { PresenceState, PresenceDiff, BroadcastEvent, ChannelTransport, ChannelOptions, ChannelHistoryEntry, ChannelHistoryResult } from "./realtime-channel.js";
36
+ export type { OfflineApi, OfflineConfig, OfflineStatus } from "./offline.js";
37
+ export { isOfflineError } from "./offline.js";
38
+ export type { LiveResult, ObserveOptions, RowSnapshotMeta } from "./collection.js";
39
+ export type { OfflineStore, OfflineCacheEntry, OfflineCacheRecord, PendingMutation, MutationRollback } from "./offline-store.js";
40
+ export { MemoryOfflineStore } from "./offline-store.js";
41
41
  export interface CreateRebaseClientOptions extends RebaseClientConfig {
42
42
  auth?: CreateAuthOptions;
43
43
  admin?: CreateAdminOptions;
@@ -1,5 +1,5 @@
1
1
  import { FilterValues, FindResult, LogicalCondition, FilterCondition, OrderBySpec, WhereFilterOp } from "@rebasepro/types";
2
- import { FindParams } from "./transport";
2
+ import { FindParams } from "./transport.js";
3
3
  /**
4
4
  * The server's page size when the caller does not ask for one.
5
5
  *
package/dist/offline.d.ts CHANGED
@@ -1,6 +1,6 @@
1
1
  import { SDKCollectionClient } from "@rebasepro/types";
2
- import { CollectionClient } from "./collection";
3
- import { OfflineStore, PendingMutation } from "./offline-store";
2
+ import { CollectionClient } from "./collection.js";
3
+ import { OfflineStore, PendingMutation } from "./offline-store.js";
4
4
  /**
5
5
  * The SDK's local-first sync engine.
6
6
  *
@@ -95,7 +95,7 @@ export interface OfflineStatus {
95
95
  /** The last replay rejection, if any. */
96
96
  lastError?: string;
97
97
  }
98
- export type { LiveResult, ObserveOptions, RowSnapshotMeta } from "./collection";
98
+ export type { LiveResult, ObserveOptions, RowSnapshotMeta } from "./collection.js";
99
99
  /** What `client.offline` exposes to the app. */
100
100
  export interface OfflineApi {
101
101
  /** Replay the queue now. Resolves with what was flushed and what remains. */
@@ -11,7 +11,7 @@
11
11
  * 3. Register "direct" sources manually (e.g. Firebase Storage hook)
12
12
  */
13
13
  import type { StorageSource, StorageSourceRegistry, StorageSourceDefinition } from "@rebasepro/types";
14
- import type { Transport } from "./transport";
14
+ import type { Transport } from "./transport.js";
15
15
  /**
16
16
  * Default implementation of the client-side `StorageSourceRegistry`.
17
17
  */
package/dist/storage.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  import { StorageSource } from "@rebasepro/types";
2
- import { Transport } from "./transport";
2
+ import { Transport } from "./transport.js";
3
3
  /**
4
4
  * Create a StorageSource that talks to the Rebase backend REST API.
5
5
  *
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@rebasepro/client",
3
3
  "type": "module",
4
- "version": "0.16.0",
4
+ "version": "0.16.1-canary.g701140a",
5
5
  "description": "HTTP SDK client for the Rebase custom backend",
6
6
  "funding": {
7
7
  "url": "https://github.com/sponsors/rebaseco"
@@ -29,9 +29,9 @@
29
29
  "./package.json": "./package.json"
30
30
  },
31
31
  "dependencies": {
32
- "@rebasepro/common": "0.16.0",
33
- "@rebasepro/types": "0.16.0",
34
- "@rebasepro/utils": "0.16.0"
32
+ "@rebasepro/common": "0.16.1-canary.g701140a",
33
+ "@rebasepro/types": "0.16.1-canary.g701140a",
34
+ "@rebasepro/utils": "0.16.1-canary.g701140a"
35
35
  },
36
36
  "devDependencies": {
37
37
  "@jest/globals": "^30.4.1",
@@ -78,7 +78,7 @@
78
78
  },
79
79
  "scripts": {
80
80
  "watch": "vite build --watch",
81
- "build": "vite build && tsc --emitDeclarationOnly -p tsconfig.prod.json && node ../../scripts/assert-build-output.mjs",
81
+ "build": "vite build && tsc --emitDeclarationOnly -p tsconfig.prod.json && node ../../scripts/add-dts-extensions.mjs dist && node ../../scripts/assert-build-output.mjs",
82
82
  "test:lint": "eslint \"src/**\" --quiet",
83
83
  "test": "jest --passWithNoTests --forceExit",
84
84
  "clean": "rm -rf dist && find ./src -name '*.js' -type f | xargs rm -f"