@prometheus-ags/entity-graph-core 3.0.4 → 3.0.5
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/CHANGELOG.md +28 -0
- package/dist/index.cjs +94 -0
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +72 -1
- package/dist/index.d.ts +72 -1
- package/dist/index.mjs +90 -1
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -1162,6 +1162,77 @@ declare function __resetEntityTransports(): void;
|
|
|
1162
1162
|
*/
|
|
1163
1163
|
declare function getRegisteredEntityTypes(): EntityType[];
|
|
1164
1164
|
|
|
1165
|
+
/**
|
|
1166
|
+
* Active-graph resolution for imperative (non-hook) access.
|
|
1167
|
+
*
|
|
1168
|
+
* `GraphStoreProvider` scopes the React *hook* surface, but imperative callers —
|
|
1169
|
+
* Zustand store actions, module-level helpers, mutation callbacks — have no
|
|
1170
|
+
* React context to read. Before this module they had no way to reach a scoped
|
|
1171
|
+
* graph at all, so a mounted provider silently failed to isolate them.
|
|
1172
|
+
*
|
|
1173
|
+
* Two independent mechanisms, both opt-in, both falling back to the package
|
|
1174
|
+
* singleton so existing consumers are unaffected:
|
|
1175
|
+
*
|
|
1176
|
+
* 1. `setActiveGraphStore(store)` — a module-level active store. Correct in the
|
|
1177
|
+
* browser, where there is exactly one application tree. `GraphStoreProvider`
|
|
1178
|
+
* sets it on mount and restores the previous value on unmount.
|
|
1179
|
+
*
|
|
1180
|
+
* 2. `runWithGraphStore(store, fn)` — an `AsyncLocalStorage` scope. Required on
|
|
1181
|
+
* the server, where concurrent requests interleave and a module-level value
|
|
1182
|
+
* would leak across them.
|
|
1183
|
+
*
|
|
1184
|
+
* ALS takes precedence: if a request scope is active it always wins over the
|
|
1185
|
+
* module-level value, because a server render must never observe another
|
|
1186
|
+
* request's graph.
|
|
1187
|
+
*
|
|
1188
|
+
* ## Why `node:async_hooks` is loaded lazily
|
|
1189
|
+
*
|
|
1190
|
+
* This package is bundled for the browser as well as Node. A static
|
|
1191
|
+
* `import "node:async_hooks"` would break browser builds and pull a polyfill
|
|
1192
|
+
* into client bundles. The import is therefore attempted once, at first use of
|
|
1193
|
+
* `runWithGraphStore`, and failure degrades to the module-level mechanism
|
|
1194
|
+
* rather than throwing.
|
|
1195
|
+
*/
|
|
1196
|
+
|
|
1197
|
+
/**
|
|
1198
|
+
* Initialise request scoping on runtimes without a synchronous `require`.
|
|
1199
|
+
*
|
|
1200
|
+
* Under **pure ESM** there is no `require`, so the synchronous path above cannot
|
|
1201
|
+
* load `node:async_hooks` and `runWithGraphStore` would silently degrade to the
|
|
1202
|
+
* module-level store — which does NOT isolate concurrent requests. An ESM server
|
|
1203
|
+
* must therefore `await prepareGraphStoreScope()` once during startup, before
|
|
1204
|
+
* serving traffic.
|
|
1205
|
+
*
|
|
1206
|
+
* Safe to call anywhere: it resolves to `false` in the browser and is idempotent.
|
|
1207
|
+
*/
|
|
1208
|
+
declare function prepareGraphStoreScope(): Promise<boolean>;
|
|
1209
|
+
/**
|
|
1210
|
+
* Set the process/tab-wide active graph.
|
|
1211
|
+
*
|
|
1212
|
+
* Returns a restore function; callers MUST invoke it on teardown so a nested or
|
|
1213
|
+
* remounted provider does not strand a stale store. Passing `null` clears it.
|
|
1214
|
+
*/
|
|
1215
|
+
declare function setActiveGraphStore(store: GraphStore$1 | null): () => void;
|
|
1216
|
+
/**
|
|
1217
|
+
* Run `fn` with `store` as the active graph for this async context.
|
|
1218
|
+
*
|
|
1219
|
+
* This is the server-side entry point: an SSR host wraps each request so that
|
|
1220
|
+
* concurrent renders never share entity state. When the runtime has no
|
|
1221
|
+
* `AsyncLocalStorage`, `fn` still runs — under the module-level store — rather
|
|
1222
|
+
* than failing, so isomorphic code does not need a branch.
|
|
1223
|
+
*/
|
|
1224
|
+
declare function runWithGraphStore<R>(store: GraphStore$1, fn: () => R): R;
|
|
1225
|
+
/**
|
|
1226
|
+
* The graph imperative access should target right now.
|
|
1227
|
+
*
|
|
1228
|
+
* Precedence: request scope (ALS) → module-level active store → `fallback`.
|
|
1229
|
+
* `fallback` is the package singleton, supplied by the caller to avoid a
|
|
1230
|
+
* circular import with `graph.ts`.
|
|
1231
|
+
*/
|
|
1232
|
+
declare function resolveActiveGraphStore(fallback: GraphStore$1): GraphStore$1;
|
|
1233
|
+
/** Test seam: drop all active-store state. */
|
|
1234
|
+
declare function __resetActiveGraphStore(): void;
|
|
1235
|
+
|
|
1165
1236
|
/**
|
|
1166
1237
|
* `makeRestTransport` — built-in helper for the most common case: a
|
|
1167
1238
|
* Supabase / PostgREST backend reached through a `SupabaseClient`-like
|
|
@@ -3308,4 +3379,4 @@ declare function getFacetedMinMaxValues<TData>(rowModel: RowModel<TData>, column
|
|
|
3308
3379
|
*/
|
|
3309
3380
|
declare function getFacetedRowModel<TData>(preFilteredRowModel: RowModel<TData>, columnId: string, allFilteredRowModel: RowModel<TData>): RowModel<TData>;
|
|
3310
3381
|
|
|
3311
|
-
export { type AccessorFn, type AdapterStatus, type AgUiStateDeltaEvent, type AgUiStateMapping, type AgUiStateSnapshotEvent, type AggregationFn, type ApplyAgUiOptions, type BelongsToRelation, type CascadeContext, type Cell, type CellContext, type CellRenderer, type ChangeEvent, type ChangeOp, type ChangeOperation, type ChangeSet, type ChannelConfig, type Column, type ColumnDef, type ColumnFiltersState, type ColumnMeta, type ColumnOrderState, type ColumnPinningState, type ColumnSizingInfoState, type ColumnSizingState, type ColumnVisibilityState, type CompletenessMode, type CreateFlintAdapterOptions, type CreatePGlitePersistenceAdapterOptions, type CreateTauriSqlPersistenceAdapterOptions, type DevtoolsEvent, type DevtoolsEventBus, type DevtoolsEventBusOptions, type DevtoolsSourceFn, EMPTY_ENTITY_STATE, EMPTY_IDS, EMPTY_LIST_STATE, EMPTY_SYNC_METADATA, type ElectricAdapterOptions, type ElectricTableConfig, type EngineOptions, type EntityChange, type EntityError, type EntityErrorOptions, type EntityId, type EntityJsonSchemaConfig, type EntityQueryOptions, type EntitySchema, type EntitySnapshot, type EntityState, type EntitySyncMetadata, type EntityTransport, type EntityType, type ExpandedState, type FetchedEntityBatch, type FetchedListProjection, type FetchedListTarget, type FilterClause, type FilterFn, type FilterGroup, type FilterOperator, type FilterSpec, type FlintCheckpointStore, type FlintClientLike, type FlintEntityEvent, type FlintEntityQuery, type FlintEntityRecord, type GetEntityJsonSchemaOptions, type GraphActionEvent, type GraphActionOptions, type GraphActionRecord$1 as GraphActionRecord, type GraphEffectEvent, type GraphEffectHandle, type GraphEffectOptions, type GraphIncludeMap, type GraphIncludeRelation, type GraphPersistenceAdapter, type GraphQueryOptions, type GraphSnapshotExportOptions, type GraphSnapshotPayload, type GraphSnapshotWithSchemasOptions, type GraphState, type GraphStore$1 as GraphStore, type GraphSyncStatus, type GraphToolContext, type GraphTransaction, type GroupingState, type HasManyRelation, type Header, type HeaderContext, type HeaderGroup, type HeaderRenderer, IncrementalView, type IncrementalViewOptions, type IngestFetchedListOptions, type JsonPatchOp, type JsonSchemaObject, type ListFetchParams, type ListQuery, type ListQueryOptions, type ListResponse, type ListResult, type ListResultMeta, type ListState, type LocalFirstGraphRuntime, type LoroModuleLoader, type MakeRestTransportOptions, type ManagerOptions, type ManyToManyRelation, type MergeContext, type MergeStrategy, type PGlitePersistenceClient, type PaginationState, type ColumnDef as PureColumnDef, type ColumnMeta as PureColumnMeta, type QueryKey, type RealtimeAdapter, RealtimeManager, type RegisterEntityFromSqlOptions, type RegisteredStore, type RelationDescriptor, type ReplayRetryPolicy, type Row, type RowModel, type RowSelectionState, type SchemaGraphToolContext, type SortClause, type SortDirection, type SortSpec, type SortingFn, type SortingState, type StartLocalFirstGraphOptions, type SubscriptionConfig, type SupabaseAdapterOptions, type SupabaseLike, type SupabaseQueryBuilderLike, type SurrealCheckpointStore, type SurrealLike, type SurrealLiveAction, type SurrealLiveAdapterOptions, type SurrealTableConfig, type SyncAdapter, type SyncOrigin, type TableInstance, type TableOptions, type TableState, type TauriSqlClient, type TenantClaim, type TenantScopedAdapterOptions, type TenantScopedTableConfig, TerminalError, type TimeTravelSnapshot, type TimeTravelState, TransientError, type UnsubscribeFn, type Updater, type ViewDescriptor, type ViewMode, type WebSocketAdapterOptions, __resetEntityTransports, __resetStoreRegistry, applyAgUiDelta, applyAgUiSnapshot, applyJsonPatch, applyView, attachGlobalListeners, buildTenantWhere, cascadeInvalidation, checkCompleteness, collectDirtyPaths, compareEntities, configureEngine, configureTimeTravel, createConvexAdapter, createDevtoolsEventBus, createElectricAdapter, createFlintAdapter, createGraphAction, createGraphEffect, createGraphQLSubscriptionAdapter, createGraphStore, createGraphTool, createGraphTransaction, createLoroMergeStrategy, createPGlitePersistenceAdapter, createRow, createSchemaGraphTool, createSupabaseRealtimeAdapter, createSurrealLiveAdapter, createTauriSqlPersistenceAdapter, createTenantScopedElectricAdapter, createWebSocketAdapter, dedupe, escapeHtml, exportGraphSnapshot, exportGraphSnapshotWithSchemas, fetchEntity, fetchList, findInsertionIndex, flattenClauses, getActiveSubscriberCount, getCoreRowModel, getRealtimeManager as getElectricRealtimeManager, getEngineOptions, getEntityJsonSchema, getEntityTransport, getExpandedRowModel, getFacetedMinMaxValues, getFacetedRowModel, getFacetedUniqueValues, getFilteredRowModel, getGraphSyncStatus, getGroupedRowModel, getMergeStrategy, getPaginatedRowModel, getRealtimeManager, getRegisteredEntityTypes, getRegisteredStores, getSchema, getSelectedRowModel, getSortedRowModel, getTimeTravelState, getValueAtPath, graphStore, graphSyncStatusStore, hasCustomPredicates, hasMergeStrategy, humanizeFieldName, hydrateGraphFromStorage, inferSchemaFieldType, lwwStrategy, makeRestTransport, matchesFilter, matchesSearch, parseCreateTable, persistGraphToStorage, publishFlintMutation, queryOnce, readRelations, recordGraphSnapshot, registerEntityFromSql, registerEntityJsonSchema, registerEntityTransport, registerMergeStrategy, registerRuntimeSchema, registerSchema, registerStore, registerSubscriber, registryKey, renderMarkdownToHtml, replayActionWithRetry, resetRealtimeManager, restoreGraphSnapshot, restoreGraphSnapshotBySeq, selectGraph, serializeKey, setDefaultMergeStrategy, setValueAtPath, sqlTypeToJsonSchema, startGarbageCollector, startLocalFirstGraph, stepTimeTravel, stopGarbageCollector, subscribeDevtoolsEvent, subscribeSubscriberStats, subscribeTimeTravel, toEntityError, toGraphQLVariables, toPrismaOrderBy, toPrismaWhere, toRestParams, toSQLClauses, unregisterSubscriber, useGraphStore };
|
|
3382
|
+
export { type AccessorFn, type AdapterStatus, type AgUiStateDeltaEvent, type AgUiStateMapping, type AgUiStateSnapshotEvent, type AggregationFn, type ApplyAgUiOptions, type BelongsToRelation, type CascadeContext, type Cell, type CellContext, type CellRenderer, type ChangeEvent, type ChangeOp, type ChangeOperation, type ChangeSet, type ChannelConfig, type Column, type ColumnDef, type ColumnFiltersState, type ColumnMeta, type ColumnOrderState, type ColumnPinningState, type ColumnSizingInfoState, type ColumnSizingState, type ColumnVisibilityState, type CompletenessMode, type CreateFlintAdapterOptions, type CreatePGlitePersistenceAdapterOptions, type CreateTauriSqlPersistenceAdapterOptions, type DevtoolsEvent, type DevtoolsEventBus, type DevtoolsEventBusOptions, type DevtoolsSourceFn, EMPTY_ENTITY_STATE, EMPTY_IDS, EMPTY_LIST_STATE, EMPTY_SYNC_METADATA, type ElectricAdapterOptions, type ElectricTableConfig, type EngineOptions, type EntityChange, type EntityError, type EntityErrorOptions, type EntityId, type EntityJsonSchemaConfig, type EntityQueryOptions, type EntitySchema, type EntitySnapshot, type EntityState, type EntitySyncMetadata, type EntityTransport, type EntityType, type ExpandedState, type FetchedEntityBatch, type FetchedListProjection, type FetchedListTarget, type FilterClause, type FilterFn, type FilterGroup, type FilterOperator, type FilterSpec, type FlintCheckpointStore, type FlintClientLike, type FlintEntityEvent, type FlintEntityQuery, type FlintEntityRecord, type GetEntityJsonSchemaOptions, type GraphActionEvent, type GraphActionOptions, type GraphActionRecord$1 as GraphActionRecord, type GraphEffectEvent, type GraphEffectHandle, type GraphEffectOptions, type GraphIncludeMap, type GraphIncludeRelation, type GraphPersistenceAdapter, type GraphQueryOptions, type GraphSnapshotExportOptions, type GraphSnapshotPayload, type GraphSnapshotWithSchemasOptions, type GraphState, type GraphStore$1 as GraphStore, type GraphSyncStatus, type GraphToolContext, type GraphTransaction, type GroupingState, type HasManyRelation, type Header, type HeaderContext, type HeaderGroup, type HeaderRenderer, IncrementalView, type IncrementalViewOptions, type IngestFetchedListOptions, type JsonPatchOp, type JsonSchemaObject, type ListFetchParams, type ListQuery, type ListQueryOptions, type ListResponse, type ListResult, type ListResultMeta, type ListState, type LocalFirstGraphRuntime, type LoroModuleLoader, type MakeRestTransportOptions, type ManagerOptions, type ManyToManyRelation, type MergeContext, type MergeStrategy, type PGlitePersistenceClient, type PaginationState, type ColumnDef as PureColumnDef, type ColumnMeta as PureColumnMeta, type QueryKey, type RealtimeAdapter, RealtimeManager, type RegisterEntityFromSqlOptions, type RegisteredStore, type RelationDescriptor, type ReplayRetryPolicy, type Row, type RowModel, type RowSelectionState, type SchemaGraphToolContext, type SortClause, type SortDirection, type SortSpec, type SortingFn, type SortingState, type StartLocalFirstGraphOptions, type SubscriptionConfig, type SupabaseAdapterOptions, type SupabaseLike, type SupabaseQueryBuilderLike, type SurrealCheckpointStore, type SurrealLike, type SurrealLiveAction, type SurrealLiveAdapterOptions, type SurrealTableConfig, type SyncAdapter, type SyncOrigin, type TableInstance, type TableOptions, type TableState, type TauriSqlClient, type TenantClaim, type TenantScopedAdapterOptions, type TenantScopedTableConfig, TerminalError, type TimeTravelSnapshot, type TimeTravelState, TransientError, type UnsubscribeFn, type Updater, type ViewDescriptor, type ViewMode, type WebSocketAdapterOptions, __resetActiveGraphStore, __resetEntityTransports, __resetStoreRegistry, applyAgUiDelta, applyAgUiSnapshot, applyJsonPatch, applyView, attachGlobalListeners, buildTenantWhere, cascadeInvalidation, checkCompleteness, collectDirtyPaths, compareEntities, configureEngine, configureTimeTravel, createConvexAdapter, createDevtoolsEventBus, createElectricAdapter, createFlintAdapter, createGraphAction, createGraphEffect, createGraphQLSubscriptionAdapter, createGraphStore, createGraphTool, createGraphTransaction, createLoroMergeStrategy, createPGlitePersistenceAdapter, createRow, createSchemaGraphTool, createSupabaseRealtimeAdapter, createSurrealLiveAdapter, createTauriSqlPersistenceAdapter, createTenantScopedElectricAdapter, createWebSocketAdapter, dedupe, escapeHtml, exportGraphSnapshot, exportGraphSnapshotWithSchemas, fetchEntity, fetchList, findInsertionIndex, flattenClauses, getActiveSubscriberCount, getCoreRowModel, getRealtimeManager as getElectricRealtimeManager, getEngineOptions, getEntityJsonSchema, getEntityTransport, getExpandedRowModel, getFacetedMinMaxValues, getFacetedRowModel, getFacetedUniqueValues, getFilteredRowModel, getGraphSyncStatus, getGroupedRowModel, getMergeStrategy, getPaginatedRowModel, getRealtimeManager, getRegisteredEntityTypes, getRegisteredStores, getSchema, getSelectedRowModel, getSortedRowModel, getTimeTravelState, getValueAtPath, graphStore, graphSyncStatusStore, hasCustomPredicates, hasMergeStrategy, humanizeFieldName, hydrateGraphFromStorage, inferSchemaFieldType, lwwStrategy, makeRestTransport, matchesFilter, matchesSearch, parseCreateTable, persistGraphToStorage, prepareGraphStoreScope, publishFlintMutation, queryOnce, readRelations, recordGraphSnapshot, registerEntityFromSql, registerEntityJsonSchema, registerEntityTransport, registerMergeStrategy, registerRuntimeSchema, registerSchema, registerStore, registerSubscriber, registryKey, renderMarkdownToHtml, replayActionWithRetry, resetRealtimeManager, resolveActiveGraphStore, restoreGraphSnapshot, restoreGraphSnapshotBySeq, runWithGraphStore, selectGraph, serializeKey, setActiveGraphStore, setDefaultMergeStrategy, setValueAtPath, sqlTypeToJsonSchema, startGarbageCollector, startLocalFirstGraph, stepTimeTravel, stopGarbageCollector, subscribeDevtoolsEvent, subscribeSubscriberStats, subscribeTimeTravel, toEntityError, toGraphQLVariables, toPrismaOrderBy, toPrismaWhere, toRestParams, toSQLClauses, unregisterSubscriber, useGraphStore };
|
package/dist/index.d.ts
CHANGED
|
@@ -1162,6 +1162,77 @@ declare function __resetEntityTransports(): void;
|
|
|
1162
1162
|
*/
|
|
1163
1163
|
declare function getRegisteredEntityTypes(): EntityType[];
|
|
1164
1164
|
|
|
1165
|
+
/**
|
|
1166
|
+
* Active-graph resolution for imperative (non-hook) access.
|
|
1167
|
+
*
|
|
1168
|
+
* `GraphStoreProvider` scopes the React *hook* surface, but imperative callers —
|
|
1169
|
+
* Zustand store actions, module-level helpers, mutation callbacks — have no
|
|
1170
|
+
* React context to read. Before this module they had no way to reach a scoped
|
|
1171
|
+
* graph at all, so a mounted provider silently failed to isolate them.
|
|
1172
|
+
*
|
|
1173
|
+
* Two independent mechanisms, both opt-in, both falling back to the package
|
|
1174
|
+
* singleton so existing consumers are unaffected:
|
|
1175
|
+
*
|
|
1176
|
+
* 1. `setActiveGraphStore(store)` — a module-level active store. Correct in the
|
|
1177
|
+
* browser, where there is exactly one application tree. `GraphStoreProvider`
|
|
1178
|
+
* sets it on mount and restores the previous value on unmount.
|
|
1179
|
+
*
|
|
1180
|
+
* 2. `runWithGraphStore(store, fn)` — an `AsyncLocalStorage` scope. Required on
|
|
1181
|
+
* the server, where concurrent requests interleave and a module-level value
|
|
1182
|
+
* would leak across them.
|
|
1183
|
+
*
|
|
1184
|
+
* ALS takes precedence: if a request scope is active it always wins over the
|
|
1185
|
+
* module-level value, because a server render must never observe another
|
|
1186
|
+
* request's graph.
|
|
1187
|
+
*
|
|
1188
|
+
* ## Why `node:async_hooks` is loaded lazily
|
|
1189
|
+
*
|
|
1190
|
+
* This package is bundled for the browser as well as Node. A static
|
|
1191
|
+
* `import "node:async_hooks"` would break browser builds and pull a polyfill
|
|
1192
|
+
* into client bundles. The import is therefore attempted once, at first use of
|
|
1193
|
+
* `runWithGraphStore`, and failure degrades to the module-level mechanism
|
|
1194
|
+
* rather than throwing.
|
|
1195
|
+
*/
|
|
1196
|
+
|
|
1197
|
+
/**
|
|
1198
|
+
* Initialise request scoping on runtimes without a synchronous `require`.
|
|
1199
|
+
*
|
|
1200
|
+
* Under **pure ESM** there is no `require`, so the synchronous path above cannot
|
|
1201
|
+
* load `node:async_hooks` and `runWithGraphStore` would silently degrade to the
|
|
1202
|
+
* module-level store — which does NOT isolate concurrent requests. An ESM server
|
|
1203
|
+
* must therefore `await prepareGraphStoreScope()` once during startup, before
|
|
1204
|
+
* serving traffic.
|
|
1205
|
+
*
|
|
1206
|
+
* Safe to call anywhere: it resolves to `false` in the browser and is idempotent.
|
|
1207
|
+
*/
|
|
1208
|
+
declare function prepareGraphStoreScope(): Promise<boolean>;
|
|
1209
|
+
/**
|
|
1210
|
+
* Set the process/tab-wide active graph.
|
|
1211
|
+
*
|
|
1212
|
+
* Returns a restore function; callers MUST invoke it on teardown so a nested or
|
|
1213
|
+
* remounted provider does not strand a stale store. Passing `null` clears it.
|
|
1214
|
+
*/
|
|
1215
|
+
declare function setActiveGraphStore(store: GraphStore$1 | null): () => void;
|
|
1216
|
+
/**
|
|
1217
|
+
* Run `fn` with `store` as the active graph for this async context.
|
|
1218
|
+
*
|
|
1219
|
+
* This is the server-side entry point: an SSR host wraps each request so that
|
|
1220
|
+
* concurrent renders never share entity state. When the runtime has no
|
|
1221
|
+
* `AsyncLocalStorage`, `fn` still runs — under the module-level store — rather
|
|
1222
|
+
* than failing, so isomorphic code does not need a branch.
|
|
1223
|
+
*/
|
|
1224
|
+
declare function runWithGraphStore<R>(store: GraphStore$1, fn: () => R): R;
|
|
1225
|
+
/**
|
|
1226
|
+
* The graph imperative access should target right now.
|
|
1227
|
+
*
|
|
1228
|
+
* Precedence: request scope (ALS) → module-level active store → `fallback`.
|
|
1229
|
+
* `fallback` is the package singleton, supplied by the caller to avoid a
|
|
1230
|
+
* circular import with `graph.ts`.
|
|
1231
|
+
*/
|
|
1232
|
+
declare function resolveActiveGraphStore(fallback: GraphStore$1): GraphStore$1;
|
|
1233
|
+
/** Test seam: drop all active-store state. */
|
|
1234
|
+
declare function __resetActiveGraphStore(): void;
|
|
1235
|
+
|
|
1165
1236
|
/**
|
|
1166
1237
|
* `makeRestTransport` — built-in helper for the most common case: a
|
|
1167
1238
|
* Supabase / PostgREST backend reached through a `SupabaseClient`-like
|
|
@@ -3308,4 +3379,4 @@ declare function getFacetedMinMaxValues<TData>(rowModel: RowModel<TData>, column
|
|
|
3308
3379
|
*/
|
|
3309
3380
|
declare function getFacetedRowModel<TData>(preFilteredRowModel: RowModel<TData>, columnId: string, allFilteredRowModel: RowModel<TData>): RowModel<TData>;
|
|
3310
3381
|
|
|
3311
|
-
export { type AccessorFn, type AdapterStatus, type AgUiStateDeltaEvent, type AgUiStateMapping, type AgUiStateSnapshotEvent, type AggregationFn, type ApplyAgUiOptions, type BelongsToRelation, type CascadeContext, type Cell, type CellContext, type CellRenderer, type ChangeEvent, type ChangeOp, type ChangeOperation, type ChangeSet, type ChannelConfig, type Column, type ColumnDef, type ColumnFiltersState, type ColumnMeta, type ColumnOrderState, type ColumnPinningState, type ColumnSizingInfoState, type ColumnSizingState, type ColumnVisibilityState, type CompletenessMode, type CreateFlintAdapterOptions, type CreatePGlitePersistenceAdapterOptions, type CreateTauriSqlPersistenceAdapterOptions, type DevtoolsEvent, type DevtoolsEventBus, type DevtoolsEventBusOptions, type DevtoolsSourceFn, EMPTY_ENTITY_STATE, EMPTY_IDS, EMPTY_LIST_STATE, EMPTY_SYNC_METADATA, type ElectricAdapterOptions, type ElectricTableConfig, type EngineOptions, type EntityChange, type EntityError, type EntityErrorOptions, type EntityId, type EntityJsonSchemaConfig, type EntityQueryOptions, type EntitySchema, type EntitySnapshot, type EntityState, type EntitySyncMetadata, type EntityTransport, type EntityType, type ExpandedState, type FetchedEntityBatch, type FetchedListProjection, type FetchedListTarget, type FilterClause, type FilterFn, type FilterGroup, type FilterOperator, type FilterSpec, type FlintCheckpointStore, type FlintClientLike, type FlintEntityEvent, type FlintEntityQuery, type FlintEntityRecord, type GetEntityJsonSchemaOptions, type GraphActionEvent, type GraphActionOptions, type GraphActionRecord$1 as GraphActionRecord, type GraphEffectEvent, type GraphEffectHandle, type GraphEffectOptions, type GraphIncludeMap, type GraphIncludeRelation, type GraphPersistenceAdapter, type GraphQueryOptions, type GraphSnapshotExportOptions, type GraphSnapshotPayload, type GraphSnapshotWithSchemasOptions, type GraphState, type GraphStore$1 as GraphStore, type GraphSyncStatus, type GraphToolContext, type GraphTransaction, type GroupingState, type HasManyRelation, type Header, type HeaderContext, type HeaderGroup, type HeaderRenderer, IncrementalView, type IncrementalViewOptions, type IngestFetchedListOptions, type JsonPatchOp, type JsonSchemaObject, type ListFetchParams, type ListQuery, type ListQueryOptions, type ListResponse, type ListResult, type ListResultMeta, type ListState, type LocalFirstGraphRuntime, type LoroModuleLoader, type MakeRestTransportOptions, type ManagerOptions, type ManyToManyRelation, type MergeContext, type MergeStrategy, type PGlitePersistenceClient, type PaginationState, type ColumnDef as PureColumnDef, type ColumnMeta as PureColumnMeta, type QueryKey, type RealtimeAdapter, RealtimeManager, type RegisterEntityFromSqlOptions, type RegisteredStore, type RelationDescriptor, type ReplayRetryPolicy, type Row, type RowModel, type RowSelectionState, type SchemaGraphToolContext, type SortClause, type SortDirection, type SortSpec, type SortingFn, type SortingState, type StartLocalFirstGraphOptions, type SubscriptionConfig, type SupabaseAdapterOptions, type SupabaseLike, type SupabaseQueryBuilderLike, type SurrealCheckpointStore, type SurrealLike, type SurrealLiveAction, type SurrealLiveAdapterOptions, type SurrealTableConfig, type SyncAdapter, type SyncOrigin, type TableInstance, type TableOptions, type TableState, type TauriSqlClient, type TenantClaim, type TenantScopedAdapterOptions, type TenantScopedTableConfig, TerminalError, type TimeTravelSnapshot, type TimeTravelState, TransientError, type UnsubscribeFn, type Updater, type ViewDescriptor, type ViewMode, type WebSocketAdapterOptions, __resetEntityTransports, __resetStoreRegistry, applyAgUiDelta, applyAgUiSnapshot, applyJsonPatch, applyView, attachGlobalListeners, buildTenantWhere, cascadeInvalidation, checkCompleteness, collectDirtyPaths, compareEntities, configureEngine, configureTimeTravel, createConvexAdapter, createDevtoolsEventBus, createElectricAdapter, createFlintAdapter, createGraphAction, createGraphEffect, createGraphQLSubscriptionAdapter, createGraphStore, createGraphTool, createGraphTransaction, createLoroMergeStrategy, createPGlitePersistenceAdapter, createRow, createSchemaGraphTool, createSupabaseRealtimeAdapter, createSurrealLiveAdapter, createTauriSqlPersistenceAdapter, createTenantScopedElectricAdapter, createWebSocketAdapter, dedupe, escapeHtml, exportGraphSnapshot, exportGraphSnapshotWithSchemas, fetchEntity, fetchList, findInsertionIndex, flattenClauses, getActiveSubscriberCount, getCoreRowModel, getRealtimeManager as getElectricRealtimeManager, getEngineOptions, getEntityJsonSchema, getEntityTransport, getExpandedRowModel, getFacetedMinMaxValues, getFacetedRowModel, getFacetedUniqueValues, getFilteredRowModel, getGraphSyncStatus, getGroupedRowModel, getMergeStrategy, getPaginatedRowModel, getRealtimeManager, getRegisteredEntityTypes, getRegisteredStores, getSchema, getSelectedRowModel, getSortedRowModel, getTimeTravelState, getValueAtPath, graphStore, graphSyncStatusStore, hasCustomPredicates, hasMergeStrategy, humanizeFieldName, hydrateGraphFromStorage, inferSchemaFieldType, lwwStrategy, makeRestTransport, matchesFilter, matchesSearch, parseCreateTable, persistGraphToStorage, publishFlintMutation, queryOnce, readRelations, recordGraphSnapshot, registerEntityFromSql, registerEntityJsonSchema, registerEntityTransport, registerMergeStrategy, registerRuntimeSchema, registerSchema, registerStore, registerSubscriber, registryKey, renderMarkdownToHtml, replayActionWithRetry, resetRealtimeManager, restoreGraphSnapshot, restoreGraphSnapshotBySeq, selectGraph, serializeKey, setDefaultMergeStrategy, setValueAtPath, sqlTypeToJsonSchema, startGarbageCollector, startLocalFirstGraph, stepTimeTravel, stopGarbageCollector, subscribeDevtoolsEvent, subscribeSubscriberStats, subscribeTimeTravel, toEntityError, toGraphQLVariables, toPrismaOrderBy, toPrismaWhere, toRestParams, toSQLClauses, unregisterSubscriber, useGraphStore };
|
|
3382
|
+
export { type AccessorFn, type AdapterStatus, type AgUiStateDeltaEvent, type AgUiStateMapping, type AgUiStateSnapshotEvent, type AggregationFn, type ApplyAgUiOptions, type BelongsToRelation, type CascadeContext, type Cell, type CellContext, type CellRenderer, type ChangeEvent, type ChangeOp, type ChangeOperation, type ChangeSet, type ChannelConfig, type Column, type ColumnDef, type ColumnFiltersState, type ColumnMeta, type ColumnOrderState, type ColumnPinningState, type ColumnSizingInfoState, type ColumnSizingState, type ColumnVisibilityState, type CompletenessMode, type CreateFlintAdapterOptions, type CreatePGlitePersistenceAdapterOptions, type CreateTauriSqlPersistenceAdapterOptions, type DevtoolsEvent, type DevtoolsEventBus, type DevtoolsEventBusOptions, type DevtoolsSourceFn, EMPTY_ENTITY_STATE, EMPTY_IDS, EMPTY_LIST_STATE, EMPTY_SYNC_METADATA, type ElectricAdapterOptions, type ElectricTableConfig, type EngineOptions, type EntityChange, type EntityError, type EntityErrorOptions, type EntityId, type EntityJsonSchemaConfig, type EntityQueryOptions, type EntitySchema, type EntitySnapshot, type EntityState, type EntitySyncMetadata, type EntityTransport, type EntityType, type ExpandedState, type FetchedEntityBatch, type FetchedListProjection, type FetchedListTarget, type FilterClause, type FilterFn, type FilterGroup, type FilterOperator, type FilterSpec, type FlintCheckpointStore, type FlintClientLike, type FlintEntityEvent, type FlintEntityQuery, type FlintEntityRecord, type GetEntityJsonSchemaOptions, type GraphActionEvent, type GraphActionOptions, type GraphActionRecord$1 as GraphActionRecord, type GraphEffectEvent, type GraphEffectHandle, type GraphEffectOptions, type GraphIncludeMap, type GraphIncludeRelation, type GraphPersistenceAdapter, type GraphQueryOptions, type GraphSnapshotExportOptions, type GraphSnapshotPayload, type GraphSnapshotWithSchemasOptions, type GraphState, type GraphStore$1 as GraphStore, type GraphSyncStatus, type GraphToolContext, type GraphTransaction, type GroupingState, type HasManyRelation, type Header, type HeaderContext, type HeaderGroup, type HeaderRenderer, IncrementalView, type IncrementalViewOptions, type IngestFetchedListOptions, type JsonPatchOp, type JsonSchemaObject, type ListFetchParams, type ListQuery, type ListQueryOptions, type ListResponse, type ListResult, type ListResultMeta, type ListState, type LocalFirstGraphRuntime, type LoroModuleLoader, type MakeRestTransportOptions, type ManagerOptions, type ManyToManyRelation, type MergeContext, type MergeStrategy, type PGlitePersistenceClient, type PaginationState, type ColumnDef as PureColumnDef, type ColumnMeta as PureColumnMeta, type QueryKey, type RealtimeAdapter, RealtimeManager, type RegisterEntityFromSqlOptions, type RegisteredStore, type RelationDescriptor, type ReplayRetryPolicy, type Row, type RowModel, type RowSelectionState, type SchemaGraphToolContext, type SortClause, type SortDirection, type SortSpec, type SortingFn, type SortingState, type StartLocalFirstGraphOptions, type SubscriptionConfig, type SupabaseAdapterOptions, type SupabaseLike, type SupabaseQueryBuilderLike, type SurrealCheckpointStore, type SurrealLike, type SurrealLiveAction, type SurrealLiveAdapterOptions, type SurrealTableConfig, type SyncAdapter, type SyncOrigin, type TableInstance, type TableOptions, type TableState, type TauriSqlClient, type TenantClaim, type TenantScopedAdapterOptions, type TenantScopedTableConfig, TerminalError, type TimeTravelSnapshot, type TimeTravelState, TransientError, type UnsubscribeFn, type Updater, type ViewDescriptor, type ViewMode, type WebSocketAdapterOptions, __resetActiveGraphStore, __resetEntityTransports, __resetStoreRegistry, applyAgUiDelta, applyAgUiSnapshot, applyJsonPatch, applyView, attachGlobalListeners, buildTenantWhere, cascadeInvalidation, checkCompleteness, collectDirtyPaths, compareEntities, configureEngine, configureTimeTravel, createConvexAdapter, createDevtoolsEventBus, createElectricAdapter, createFlintAdapter, createGraphAction, createGraphEffect, createGraphQLSubscriptionAdapter, createGraphStore, createGraphTool, createGraphTransaction, createLoroMergeStrategy, createPGlitePersistenceAdapter, createRow, createSchemaGraphTool, createSupabaseRealtimeAdapter, createSurrealLiveAdapter, createTauriSqlPersistenceAdapter, createTenantScopedElectricAdapter, createWebSocketAdapter, dedupe, escapeHtml, exportGraphSnapshot, exportGraphSnapshotWithSchemas, fetchEntity, fetchList, findInsertionIndex, flattenClauses, getActiveSubscriberCount, getCoreRowModel, getRealtimeManager as getElectricRealtimeManager, getEngineOptions, getEntityJsonSchema, getEntityTransport, getExpandedRowModel, getFacetedMinMaxValues, getFacetedRowModel, getFacetedUniqueValues, getFilteredRowModel, getGraphSyncStatus, getGroupedRowModel, getMergeStrategy, getPaginatedRowModel, getRealtimeManager, getRegisteredEntityTypes, getRegisteredStores, getSchema, getSelectedRowModel, getSortedRowModel, getTimeTravelState, getValueAtPath, graphStore, graphSyncStatusStore, hasCustomPredicates, hasMergeStrategy, humanizeFieldName, hydrateGraphFromStorage, inferSchemaFieldType, lwwStrategy, makeRestTransport, matchesFilter, matchesSearch, parseCreateTable, persistGraphToStorage, prepareGraphStoreScope, publishFlintMutation, queryOnce, readRelations, recordGraphSnapshot, registerEntityFromSql, registerEntityJsonSchema, registerEntityTransport, registerMergeStrategy, registerRuntimeSchema, registerSchema, registerStore, registerSubscriber, registryKey, renderMarkdownToHtml, replayActionWithRetry, resetRealtimeManager, resolveActiveGraphStore, restoreGraphSnapshot, restoreGraphSnapshotBySeq, runWithGraphStore, selectGraph, serializeKey, setActiveGraphStore, setDefaultMergeStrategy, setValueAtPath, sqlTypeToJsonSchema, startGarbageCollector, startLocalFirstGraph, stepTimeTravel, stopGarbageCollector, subscribeDevtoolsEvent, subscribeSubscriberStats, subscribeTimeTravel, toEntityError, toGraphQLVariables, toPrismaOrderBy, toPrismaWhere, toRestParams, toSQLClauses, unregisterSubscriber, useGraphStore };
|
package/dist/index.mjs
CHANGED
|
@@ -2,6 +2,13 @@ import { createStore } from 'zustand/vanilla';
|
|
|
2
2
|
import { subscribeWithSelector } from 'zustand/middleware';
|
|
3
3
|
import { immer } from 'zustand/middleware/immer';
|
|
4
4
|
|
|
5
|
+
var __require = /* @__PURE__ */ ((x) => typeof require !== "undefined" ? require : typeof Proxy !== "undefined" ? new Proxy(x, {
|
|
6
|
+
get: (a, b) => (typeof require !== "undefined" ? require : a)[b]
|
|
7
|
+
}) : x)(function(x) {
|
|
8
|
+
if (typeof require !== "undefined") return require.apply(this, arguments);
|
|
9
|
+
throw Error('Dynamic require of "' + x + '" is not supported');
|
|
10
|
+
});
|
|
11
|
+
|
|
5
12
|
// src/errors.ts
|
|
6
13
|
var TerminalError = class _TerminalError extends Error {
|
|
7
14
|
kind = "terminal";
|
|
@@ -68,6 +75,88 @@ function getRegisteredEntityTypes() {
|
|
|
68
75
|
return Array.from(transports.keys());
|
|
69
76
|
}
|
|
70
77
|
|
|
78
|
+
// src/active-store.ts
|
|
79
|
+
var moduleActiveStore = null;
|
|
80
|
+
var asyncScope = null;
|
|
81
|
+
var asyncScopeAttempted = false;
|
|
82
|
+
function isNodeLike() {
|
|
83
|
+
return typeof process !== "undefined" && typeof process.versions?.node === "string";
|
|
84
|
+
}
|
|
85
|
+
function resolveAsyncScope() {
|
|
86
|
+
if (asyncScopeAttempted) return asyncScope;
|
|
87
|
+
asyncScopeAttempted = true;
|
|
88
|
+
if (!isNodeLike()) return null;
|
|
89
|
+
try {
|
|
90
|
+
const req = typeof module !== "undefined" && typeof module.require === "function" ? module.require : typeof __require === "function" ? __require : null;
|
|
91
|
+
if (!req) return null;
|
|
92
|
+
const { AsyncLocalStorage } = req("node:async_hooks");
|
|
93
|
+
asyncScope = new AsyncLocalStorage();
|
|
94
|
+
} catch {
|
|
95
|
+
asyncScope = null;
|
|
96
|
+
}
|
|
97
|
+
return asyncScope;
|
|
98
|
+
}
|
|
99
|
+
async function prepareGraphStoreScope() {
|
|
100
|
+
if (asyncScope) return true;
|
|
101
|
+
if (!isNodeLike()) {
|
|
102
|
+
asyncScopeAttempted = true;
|
|
103
|
+
return false;
|
|
104
|
+
}
|
|
105
|
+
if (resolveAsyncScope()) return true;
|
|
106
|
+
try {
|
|
107
|
+
const specifier = "node:async_hooks";
|
|
108
|
+
const mod = await import(
|
|
109
|
+
/* @vite-ignore */
|
|
110
|
+
specifier
|
|
111
|
+
);
|
|
112
|
+
asyncScope = new mod.AsyncLocalStorage();
|
|
113
|
+
asyncScopeAttempted = true;
|
|
114
|
+
return true;
|
|
115
|
+
} catch {
|
|
116
|
+
asyncScopeAttempted = true;
|
|
117
|
+
return false;
|
|
118
|
+
}
|
|
119
|
+
}
|
|
120
|
+
function setActiveGraphStore(store) {
|
|
121
|
+
const previous = moduleActiveStore;
|
|
122
|
+
moduleActiveStore = store;
|
|
123
|
+
return () => {
|
|
124
|
+
moduleActiveStore = previous;
|
|
125
|
+
};
|
|
126
|
+
}
|
|
127
|
+
var warnedUnscopedFallback = false;
|
|
128
|
+
function warnUnscopedRequestFallback() {
|
|
129
|
+
if (warnedUnscopedFallback || !isNodeLike()) return;
|
|
130
|
+
warnedUnscopedFallback = true;
|
|
131
|
+
console.warn(
|
|
132
|
+
"[entity-graph-core] runWithGraphStore() could not load node:async_hooks, so it fell back to a module-level store. Concurrent requests will NOT be isolated. Await prepareGraphStoreScope() once during server startup."
|
|
133
|
+
);
|
|
134
|
+
}
|
|
135
|
+
function runWithGraphStore(store, fn) {
|
|
136
|
+
const scope = resolveAsyncScope();
|
|
137
|
+
if (!scope) {
|
|
138
|
+
warnUnscopedRequestFallback();
|
|
139
|
+
const restore = setActiveGraphStore(store);
|
|
140
|
+
try {
|
|
141
|
+
return fn();
|
|
142
|
+
} finally {
|
|
143
|
+
restore();
|
|
144
|
+
}
|
|
145
|
+
}
|
|
146
|
+
return scope.run(store, fn);
|
|
147
|
+
}
|
|
148
|
+
function resolveActiveGraphStore(fallback) {
|
|
149
|
+
const scoped = resolveAsyncScope()?.getStore();
|
|
150
|
+
if (scoped) return scoped;
|
|
151
|
+
return moduleActiveStore ?? fallback;
|
|
152
|
+
}
|
|
153
|
+
function __resetActiveGraphStore() {
|
|
154
|
+
moduleActiveStore = null;
|
|
155
|
+
asyncScope = null;
|
|
156
|
+
asyncScopeAttempted = false;
|
|
157
|
+
warnedUnscopedFallback = false;
|
|
158
|
+
}
|
|
159
|
+
|
|
71
160
|
// src/view/prisma-compile.ts
|
|
72
161
|
function nestWhereField(parts, leaf) {
|
|
73
162
|
if (parts.length === 0) return {};
|
|
@@ -3946,6 +4035,6 @@ function getFacetedRowModel(preFilteredRowModel, columnId, allFilteredRowModel)
|
|
|
3946
4035
|
return preFilteredRowModel;
|
|
3947
4036
|
}
|
|
3948
4037
|
|
|
3949
|
-
export { EMPTY_ENTITY_STATE, EMPTY_IDS, EMPTY_LIST_STATE, EMPTY_SYNC_METADATA, IncrementalView, RealtimeManager, TerminalError, TransientError, __resetEntityTransports, __resetStoreRegistry, applyAgUiDelta, applyAgUiSnapshot, applyJsonPatch, applyView, attachGlobalListeners, buildTenantWhere, cascadeInvalidation, checkCompleteness, collectDirtyPaths, compareEntities, configureEngine, configureTimeTravel, createConvexAdapter, createDevtoolsEventBus, createElectricAdapter, createFlintAdapter, createGraphAction, createGraphEffect, createGraphQLSubscriptionAdapter, createGraphStore, createGraphTool, createGraphTransaction, createLoroMergeStrategy, createPGlitePersistenceAdapter, createRow, createSchemaGraphTool, createSupabaseRealtimeAdapter, createSurrealLiveAdapter, createTauriSqlPersistenceAdapter, createTenantScopedElectricAdapter, createWebSocketAdapter, dedupe, escapeHtml, exportGraphSnapshot, exportGraphSnapshotWithSchemas, fetchEntity, fetchList, findInsertionIndex, flattenClauses, getActiveSubscriberCount, getCoreRowModel, getRealtimeManager as getElectricRealtimeManager, getEngineOptions, getEntityJsonSchema, getEntityTransport, getExpandedRowModel, getFacetedMinMaxValues, getFacetedRowModel, getFacetedUniqueValues, getFilteredRowModel, getGraphSyncStatus, getGroupedRowModel, getMergeStrategy, getPaginatedRowModel, getRealtimeManager, getRegisteredEntityTypes, getRegisteredStores, getSchema, getSelectedRowModel, getSortedRowModel, getTimeTravelState, getValueAtPath, graphStore, graphSyncStatusStore, hasCustomPredicates, hasMergeStrategy, humanizeFieldName, hydrateGraphFromStorage, inferSchemaFieldType, lwwStrategy, makeRestTransport, matchesFilter, matchesSearch, parseCreateTable, persistGraphToStorage, publishFlintMutation, queryOnce, readRelations, recordGraphSnapshot, registerEntityFromSql, registerEntityJsonSchema, registerEntityTransport, registerMergeStrategy, registerRuntimeSchema, registerSchema, registerStore, registerSubscriber, registryKey, renderMarkdownToHtml, replayActionWithRetry, resetRealtimeManager, restoreGraphSnapshot, restoreGraphSnapshotBySeq, selectGraph, serializeKey, setDefaultMergeStrategy, setValueAtPath, sqlTypeToJsonSchema, startGarbageCollector, startLocalFirstGraph, stepTimeTravel, stopGarbageCollector, subscribeDevtoolsEvent, subscribeSubscriberStats, subscribeTimeTravel, toEntityError, toGraphQLVariables, toPrismaOrderBy, toPrismaWhere, toRestParams, toSQLClauses, unregisterSubscriber, useGraphStore };
|
|
4038
|
+
export { EMPTY_ENTITY_STATE, EMPTY_IDS, EMPTY_LIST_STATE, EMPTY_SYNC_METADATA, IncrementalView, RealtimeManager, TerminalError, TransientError, __resetActiveGraphStore, __resetEntityTransports, __resetStoreRegistry, applyAgUiDelta, applyAgUiSnapshot, applyJsonPatch, applyView, attachGlobalListeners, buildTenantWhere, cascadeInvalidation, checkCompleteness, collectDirtyPaths, compareEntities, configureEngine, configureTimeTravel, createConvexAdapter, createDevtoolsEventBus, createElectricAdapter, createFlintAdapter, createGraphAction, createGraphEffect, createGraphQLSubscriptionAdapter, createGraphStore, createGraphTool, createGraphTransaction, createLoroMergeStrategy, createPGlitePersistenceAdapter, createRow, createSchemaGraphTool, createSupabaseRealtimeAdapter, createSurrealLiveAdapter, createTauriSqlPersistenceAdapter, createTenantScopedElectricAdapter, createWebSocketAdapter, dedupe, escapeHtml, exportGraphSnapshot, exportGraphSnapshotWithSchemas, fetchEntity, fetchList, findInsertionIndex, flattenClauses, getActiveSubscriberCount, getCoreRowModel, getRealtimeManager as getElectricRealtimeManager, getEngineOptions, getEntityJsonSchema, getEntityTransport, getExpandedRowModel, getFacetedMinMaxValues, getFacetedRowModel, getFacetedUniqueValues, getFilteredRowModel, getGraphSyncStatus, getGroupedRowModel, getMergeStrategy, getPaginatedRowModel, getRealtimeManager, getRegisteredEntityTypes, getRegisteredStores, getSchema, getSelectedRowModel, getSortedRowModel, getTimeTravelState, getValueAtPath, graphStore, graphSyncStatusStore, hasCustomPredicates, hasMergeStrategy, humanizeFieldName, hydrateGraphFromStorage, inferSchemaFieldType, lwwStrategy, makeRestTransport, matchesFilter, matchesSearch, parseCreateTable, persistGraphToStorage, prepareGraphStoreScope, publishFlintMutation, queryOnce, readRelations, recordGraphSnapshot, registerEntityFromSql, registerEntityJsonSchema, registerEntityTransport, registerMergeStrategy, registerRuntimeSchema, registerSchema, registerStore, registerSubscriber, registryKey, renderMarkdownToHtml, replayActionWithRetry, resetRealtimeManager, resolveActiveGraphStore, restoreGraphSnapshot, restoreGraphSnapshotBySeq, runWithGraphStore, selectGraph, serializeKey, setActiveGraphStore, setDefaultMergeStrategy, setValueAtPath, sqlTypeToJsonSchema, startGarbageCollector, startLocalFirstGraph, stepTimeTravel, stopGarbageCollector, subscribeDevtoolsEvent, subscribeSubscriberStats, subscribeTimeTravel, toEntityError, toGraphQLVariables, toPrismaOrderBy, toPrismaWhere, toRestParams, toSQLClauses, unregisterSubscriber, useGraphStore };
|
|
3950
4039
|
//# sourceMappingURL=index.mjs.map
|
|
3951
4040
|
//# sourceMappingURL=index.mjs.map
|