@lunora/do 1.0.0-alpha.25 → 1.0.0-alpha.26
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.mjs +4 -4
- package/dist/packem_shared/{DEFAULT_MAX_RELATION_KEYS-CjM9Y1_G.mjs → DEFAULT_MAX_RELATION_KEYS-BEan1CRD.mjs} +1 -1
- package/dist/packem_shared/{NotUniqueError-Dmf-HNdQ.mjs → NotUniqueError-BdDLev9w.mjs} +3 -3
- package/dist/packem_shared/{applyOnDelete-CAwZfp-5.mjs → applyOnDelete-BXSq3S70.mjs} +1 -1
- package/dist/packem_shared/{applySelect-BvZdFUBT.mjs → applySelect-WQY8m62C.mjs} +3 -1
- package/package.json +3 -3
package/dist/index.mjs
CHANGED
|
@@ -3,7 +3,7 @@ export { AGGREGATE_SQL_FUNCTION, aggregateSqlFunction, matchesStaticWhere, norma
|
|
|
3
3
|
export { aggregateTableName, coerceAggregateNumber, encodeAggregateKey, foldAggregateTally, readAggregateValue } from './packem_shared/aggregateTableName-CxNqY1Sl.mjs';
|
|
4
4
|
export { CountRlsUnsupportedError, mergeWhere, planAggregateLookup, selectIndexForAggregate, selectIndexForCount, selectIndexForGroupBy } from './packem_shared/CountRlsUnsupportedError-BGxj0pgS.mjs';
|
|
5
5
|
export { AUTH_METRICS_BUCKETS_TABLE, AUTH_METRICS_BUCKET_MS, AUTH_METRICS_BUCKET_RETENTION, AUTH_METRICS_TABLE, ensureAuthMetricsTables, readAuthMetrics, recordAuthEvent } from './packem_shared/AUTH_METRICS_BUCKETS_TABLE-CiHHYeJi.mjs';
|
|
6
|
-
export { NotUniqueError, assertValidClientId, createShardCtxDb, normalizeIdStructurally } from './packem_shared/NotUniqueError-
|
|
6
|
+
export { NotUniqueError, assertValidClientId, createShardCtxDb, normalizeIdStructurally } from './packem_shared/NotUniqueError-BdDLev9w.mjs';
|
|
7
7
|
export { DATA_MIGRATION_STATE_TABLE, readMigrationStatus, runDataMigration } from './packem_shared/DATA_MIGRATION_STATE_TABLE-DB3IYUR3.mjs';
|
|
8
8
|
export { SCAN_DEP, createDependencyTracker, depKey } from './packem_shared/SCAN_DEP-DLJF8dsj.mjs';
|
|
9
9
|
export { renderSql } from './packem_shared/renderSql-D6eUcn2N.mjs';
|
|
@@ -16,12 +16,12 @@ export { LogBuffer } from './packem_shared/LogBuffer-B_Ezju_N.mjs';
|
|
|
16
16
|
export { MAIL_RETENTION, MAIL_TABLE, clearCapturedMail, ensureMailTable, readCapturedMail, recordCapturedMail } from './packem_shared/MAIL_RETENTION-CPpgl-dX.mjs';
|
|
17
17
|
export { default as NotFoundError } from './packem_shared/NotFoundError-C70b9hLw.mjs';
|
|
18
18
|
export { armRestore, readBookmark } from './packem_shared/armRestore-4Px61hHS.mjs';
|
|
19
|
-
export { applySelect, buildSeekWhere, decodeCursor, encodeCursor, normalizeOrderKeys, softDeleteScope } from './packem_shared/applySelect-
|
|
19
|
+
export { applySelect, buildSeekWhere, decodeCursor, encodeCursor, normalizeOrderKeys, softDeleteScope } from './packem_shared/applySelect-WQY8m62C.mjs';
|
|
20
20
|
export { RANK_TIEBREAK, encodePartitionKey, matchesRankStaticWhere, rankTableName, resolveRankPartition, sortColumnName } from './packem_shared/RANK_TIEBREAK-CXhdcA1o.mjs';
|
|
21
21
|
export { ReactiveCache, reactiveCacheKey } from './packem_shared/ReactiveCache-BYlSGY0N.mjs';
|
|
22
22
|
export { serveRelationFanout } from './packem_shared/serveRelationFanout-C56hKu1O.mjs';
|
|
23
|
-
export { DEFAULT_MAX_RELATION_KEYS, assertFlatPredicate, assertShapeShardable, containsRelationPredicate, isRelationPredicate, resolveRelationPredicates } from './packem_shared/DEFAULT_MAX_RELATION_KEYS-
|
|
24
|
-
export { applyOnDelete, fanOutScalarCounts, resolveWith, runRowValidators } from './packem_shared/applyOnDelete-
|
|
23
|
+
export { DEFAULT_MAX_RELATION_KEYS, assertFlatPredicate, assertShapeShardable, containsRelationPredicate, isRelationPredicate, resolveRelationPredicates } from './packem_shared/DEFAULT_MAX_RELATION_KEYS-BEan1CRD.mjs';
|
|
24
|
+
export { applyOnDelete, fanOutScalarCounts, resolveWith, runRowValidators } from './packem_shared/applyOnDelete-BXSq3S70.mjs';
|
|
25
25
|
export { RLS_UNWRAP_SYMBOL, RlsRequiredError, guardWriter } from './packem_shared/RLS_UNWRAP_SYMBOL-G1eNK4DQ.mjs';
|
|
26
26
|
export { buildFtsMatch, ftsTableName, scoreDocument, stringifySearchText, tokenizeSearch } from './packem_shared/buildFtsMatch-BLEMawrp.mjs';
|
|
27
27
|
export { M as MIN_ADMIN_TOKEN_LENGTH, a as MIN_AUTH_SECRET_LENGTH, b as buildSecurityAudit } from './packem_shared/security-audit-CucgBice.mjs';
|
|
@@ -12,10 +12,10 @@ import { sortColumnName, matchesRankStaticWhere, encodePartitionKey, rankTableNa
|
|
|
12
12
|
import { stringifySearchText, ftsTableName, tokenizeSearch, buildFtsMatch, scoreDocument } from './buildFtsMatch-BLEMawrp.mjs';
|
|
13
13
|
import { s as serializeSqlValue } from './serialize-sql-BlRUoiQe.mjs';
|
|
14
14
|
import { SCAN_DEP } from './SCAN_DEP-DLJF8dsj.mjs';
|
|
15
|
-
import { decodeCursor, normalizeOrderKeys, buildSeekWhere, applySelect, encodeCursor, softDeleteScope, buildSeekBeforeWhere } from './applySelect-
|
|
15
|
+
import { decodeCursor, normalizeOrderKeys, buildSeekWhere, applySelect, encodeCursor, softDeleteScope, buildSeekBeforeWhere } from './applySelect-WQY8m62C.mjs';
|
|
16
16
|
import NotFoundError from './NotFoundError-C70b9hLw.mjs';
|
|
17
|
-
import { assertFlatPredicate, resolveRelationPredicates } from './DEFAULT_MAX_RELATION_KEYS-
|
|
18
|
-
import { runRowValidators, resolveWith, applyOnDelete, fanOutScalarCounts } from './applyOnDelete-
|
|
17
|
+
import { assertFlatPredicate, resolveRelationPredicates } from './DEFAULT_MAX_RELATION_KEYS-BEan1CRD.mjs';
|
|
18
|
+
import { runRowValidators, resolveWith, applyOnDelete, fanOutScalarCounts } from './applyOnDelete-BXSq3S70.mjs';
|
|
19
19
|
import { guardWriter } from './RLS_UNWRAP_SYMBOL-G1eNK4DQ.mjs';
|
|
20
20
|
import { createSystemReader } from './createSystemReader-D12eNH13.mjs';
|
|
21
21
|
import { ConflictError } from './ConflictError-CLoq37xH.mjs';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { LunoraError } from '@lunora/errors';
|
|
2
|
-
import { applySelect } from './applySelect-
|
|
2
|
+
import { applySelect } from './applySelect-WQY8m62C.mjs';
|
|
3
3
|
|
|
4
4
|
const projectChildren = (documents, nested) => nested.select ? applySelect(documents, nested.select, nested.with) : documents;
|
|
5
5
|
const fanOutScalarCounts = async (counter, tableName, whereField, values, policyWhere) => {
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { LunoraError } from '@lunora/errors';
|
|
2
|
+
|
|
1
3
|
const TIEBREAK_FIELD = "id";
|
|
2
4
|
const ID_FIELDS = /* @__PURE__ */ new Set(["_id", "id"]);
|
|
3
5
|
const normalizeOrderKeys = (orderBy) => {
|
|
@@ -30,7 +32,7 @@ const encodeCursor = (record, keys) => {
|
|
|
30
32
|
values.push(record["_id"]);
|
|
31
33
|
return toBase64(JSON.stringify(values));
|
|
32
34
|
};
|
|
33
|
-
const invalidCursor = () =>
|
|
35
|
+
const invalidCursor = () => new LunoraError("BAD_REQUEST", "invalid cursor");
|
|
34
36
|
const decodeCursor = (cursor) => {
|
|
35
37
|
let decoded;
|
|
36
38
|
try {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lunora/do",
|
|
3
|
-
"version": "1.0.0-alpha.
|
|
3
|
+
"version": "1.0.0-alpha.26",
|
|
4
4
|
"description": "Lunora Durable Objects: ShardDO (SQLite, OCC, hibernated WebSocket subscriptions) and SessionDO",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"cloudflare",
|
|
@@ -46,8 +46,8 @@
|
|
|
46
46
|
"access": "public"
|
|
47
47
|
},
|
|
48
48
|
"dependencies": {
|
|
49
|
-
"@lunora/errors": "1.0.0-alpha.
|
|
50
|
-
"@visulima/redact": "3.0.0
|
|
49
|
+
"@lunora/errors": "1.0.0-alpha.3",
|
|
50
|
+
"@visulima/redact": "3.0.0",
|
|
51
51
|
"drizzle-orm": "^0.45.2"
|
|
52
52
|
},
|
|
53
53
|
"engines": {
|