@lunora/do 1.0.0-alpha.20 → 1.0.0-alpha.21

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.mts CHANGED
@@ -2804,6 +2804,8 @@ interface StudioFeaturesResult {
2804
2804
  analytics: boolean;
2805
2805
  /** `@lunora/auth` is a declared dependency (backs the Users / Sessions / Organizations / Configuration pages). */
2806
2806
  auth: boolean;
2807
+ /** `@lunora/container` / `ctx.containers` is used, the app declares containers, or it is a declared dependency. */
2808
+ containers: boolean;
2807
2809
  /** `@lunora/flags` / `ctx.flags` is used, or it is a declared dependency. */
2808
2810
  flags: boolean;
2809
2811
  /** `@lunora/bindings/kv` / `ctx.kv` is used, or it is a declared dependency. */
package/dist/index.d.ts CHANGED
@@ -2804,6 +2804,8 @@ interface StudioFeaturesResult {
2804
2804
  analytics: boolean;
2805
2805
  /** `@lunora/auth` is a declared dependency (backs the Users / Sessions / Organizations / Configuration pages). */
2806
2806
  auth: boolean;
2807
+ /** `@lunora/container` / `ctx.containers` is used, the app declares containers, or it is a declared dependency. */
2808
+ containers: boolean;
2807
2809
  /** `@lunora/flags` / `ctx.flags` is used, or it is a declared dependency. */
2808
2810
  flags: boolean;
2809
2811
  /** `@lunora/bindings/kv` / `ctx.kv` is used, or it is a declared dependency. */
package/dist/index.mjs CHANGED
@@ -26,7 +26,7 @@ export { RLS_UNWRAP_SYMBOL, RlsRequiredError, guardWriter } from './packem_share
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';
28
28
  export { SESSION_DO_TTL_DEFAULT, SessionDO } from './packem_shared/SESSION_DO_TTL_DEFAULT-ilPZsVwu.mjs';
29
- export { ROOT_DO_SIZE_WARN_BYTES, ROOT_SHARD_NAME, ShardDO } from './packem_shared/ROOT_DO_SIZE_WARN_BYTES-BbHQKxG6.mjs';
29
+ export { ROOT_DO_SIZE_WARN_BYTES, ROOT_SHARD_NAME, ShardDO } from './packem_shared/ROOT_DO_SIZE_WARN_BYTES-BfPNp3Jh.mjs';
30
30
  export { SHARD_REGISTRY_DO_NAME, ShardRegistryDO } from './packem_shared/SHARD_REGISTRY_DO_NAME-BsAbi5Mn.mjs';
31
31
  export { MAX_SQL_ROWS, assertReadonly, runReadonlySql } from './packem_shared/MAX_SQL_ROWS-dDcFE1YZ.mjs';
32
32
  export { createSystemReader } from './packem_shared/createSystemReader-8CzSZP9V.mjs';
@@ -37,4 +37,4 @@ export { CDC_LOG_TABLE, applyCdcChanges, readCdcChanges, trimCdcChanges } from '
37
37
  export { backfillAggregateIndexes, backfillRankIndexes } from './packem_shared/backfillAggregateIndexes-BZsOqDXP.mjs';
38
38
  export { runShardMigrations } from './packem_shared/runShardMigrations-nIwoQeOK.mjs';
39
39
  export { stableStringify } from './packem_shared/stableStringify-MydiuScU.mjs';
40
- export { s as subscriptionListDeltas } from './packem_shared/subscription-delivery-Z6nXHvQN.mjs';
40
+ export { s as subscriptionListDeltas } from './packem_shared/subscription-delivery-CK8qga-k.mjs';
@@ -1,5 +1,5 @@
1
1
  import { drizzle } from 'drizzle-orm/durable-sqlite';
2
- import { e as encodeWire, a as awaitWsDrain, t as trySendFrame, d as decodeWire, s as subscriptionListDeltas, b as sendDeltaFrames } from './subscription-delivery-Z6nXHvQN.mjs';
2
+ import { e as encodeWire, a as awaitWsDrain, t as trySendFrame, d as decodeWire, s as subscriptionListDeltas, b as sendDeltaFrames } from './subscription-delivery-CK8qga-k.mjs';
3
3
  import { parseExportShardArgs, parseImportShardArgs } from './exportShardRows-DZEhUeyI.mjs';
4
4
  import { recordAuthEvent, readAuthMetrics } from './AUTH_METRICS_BUCKETS_TABLE-CiHHYeJi.mjs';
5
5
  import { DATA_MIGRATION_STATE_TABLE, readMigrationStatus } from './DATA_MIGRATION_STATE_TABLE-DfPxn8I0.mjs';
@@ -2834,6 +2834,7 @@ class ShardDO {
2834
2834
  return {
2835
2835
  analytics: false,
2836
2836
  auth: false,
2837
+ containers: false,
2837
2838
  flags: false,
2838
2839
  kv: false,
2839
2840
  mail: false,
@@ -170,7 +170,14 @@ const decodeWire = (value, depth = 0) => {
170
170
  if (error.name !== name) {
171
171
  Object.defineProperty(error, "name", { configurable: true, value: name, writable: true });
172
172
  }
173
- Object.assign(error, decodeWire(value[4], depth + 1));
173
+ const props = decodeWire(value[4], depth + 1);
174
+ for (const key of Object.keys(props)) {
175
+ if (key === UNSAFE_KEY) {
176
+ Object.defineProperty(error, key, { configurable: true, enumerable: true, value: props[key], writable: true });
177
+ } else {
178
+ error[key] = props[key];
179
+ }
180
+ }
174
181
  if (value.length > 5) {
175
182
  Object.defineProperty(error, "cause", { configurable: true, value: decodeWire(value[5], depth + 1), writable: true });
176
183
  }
@@ -1 +1 @@
1
- export { a as awaitWsDrain, b as sendDeltaFrames, s as subscriptionListDeltas, t as trySendFrame } from './subscription-delivery-Z6nXHvQN.mjs';
1
+ export { a as awaitWsDrain, b as sendDeltaFrames, s as subscriptionListDeltas, t as trySendFrame } from './subscription-delivery-CK8qga-k.mjs';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lunora/do",
3
- "version": "1.0.0-alpha.20",
3
+ "version": "1.0.0-alpha.21",
4
4
  "description": "Lunora Durable Objects: ShardDO (SQLite, OCC, hibernated WebSocket subscriptions) and SessionDO",
5
5
  "keywords": [
6
6
  "cloudflare",