@objectstack/core 17.0.0-rc.4 → 17.0.0-rc.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/dist/index.d.cts CHANGED
@@ -1,5 +1,5 @@
1
1
  import { Logger, LifecycleEventName, IServiceRegistry, IObjectQLEngine } from '@objectstack/spec/contracts';
2
- export { EngineSchemaRegistryView, IDataDriver, IDataEngine, IHttpRequest, IHttpResponse, IHttpServer, IObjectQLEngine, Logger, Middleware, RouteHandler } from '@objectstack/spec/contracts';
2
+ export { EngineSchemaRegistryView, EngineTransactionInfo, EngineTransactionOptions, IDataDriver, IDataEngine, IHttpRequest, IHttpResponse, IHttpServer, IObjectQLEngine, Logger, Middleware, RouteHandler } from '@objectstack/spec/contracts';
3
3
  import { z } from 'zod';
4
4
  import { LoggerConfig, MigrationOnCrashPolicy, MigrationJournalEvent } from '@objectstack/spec/system';
5
5
  import { ObjectLogger } from './logger.cjs';
@@ -2299,9 +2299,18 @@ declare function bulkWrite<TRow, TRecord = any>(rows: TRow[], opts: BulkWriteOpt
2299
2299
  * which is the same restatement this helper exists to remove.
2300
2300
  */
2301
2301
  declare function engineCanRollBack<T>(engine: T): engine is T & EngineWithTransaction;
2302
- /** What {@link engineCanRollBack} proves is present. Mirrors `IObjectQLEngine['transaction']`. */
2302
+ /**
2303
+ * What {@link engineCanRollBack} proves is present.
2304
+ *
2305
+ * Typed FROM the contract rather than transcribed from it (#5696): a hand-copy
2306
+ * mirrors the signature only until the contract moves, and this one had already
2307
+ * started to — it predates `opts.require` and the callback's `owned` argument.
2308
+ * ADR-0119 D1 blessed exactly this shape for the narrow host surfaces
2309
+ * (`transaction?: IObjectQLEngine['transaction']`); a *narrow* surface may stay
2310
+ * narrow, but it may not drift from the real signature.
2311
+ */
2303
2312
  interface EngineWithTransaction {
2304
- transaction<R>(callback: (trxCtx: any) => Promise<R>, baseContext?: any): Promise<R>;
2313
+ transaction: IObjectQLEngine['transaction'];
2305
2314
  }
2306
2315
  /** What a forward/compensate callback is told about the chunk it is running. */
2307
2316
  interface MigrationChunkContext {
package/dist/index.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  import { Logger, LifecycleEventName, IServiceRegistry, IObjectQLEngine } from '@objectstack/spec/contracts';
2
- export { EngineSchemaRegistryView, IDataDriver, IDataEngine, IHttpRequest, IHttpResponse, IHttpServer, IObjectQLEngine, Logger, Middleware, RouteHandler } from '@objectstack/spec/contracts';
2
+ export { EngineSchemaRegistryView, EngineTransactionInfo, EngineTransactionOptions, IDataDriver, IDataEngine, IHttpRequest, IHttpResponse, IHttpServer, IObjectQLEngine, Logger, Middleware, RouteHandler } from '@objectstack/spec/contracts';
3
3
  import { z } from 'zod';
4
4
  import { LoggerConfig, MigrationOnCrashPolicy, MigrationJournalEvent } from '@objectstack/spec/system';
5
5
  import { ObjectLogger } from './logger.js';
@@ -2299,9 +2299,18 @@ declare function bulkWrite<TRow, TRecord = any>(rows: TRow[], opts: BulkWriteOpt
2299
2299
  * which is the same restatement this helper exists to remove.
2300
2300
  */
2301
2301
  declare function engineCanRollBack<T>(engine: T): engine is T & EngineWithTransaction;
2302
- /** What {@link engineCanRollBack} proves is present. Mirrors `IObjectQLEngine['transaction']`. */
2302
+ /**
2303
+ * What {@link engineCanRollBack} proves is present.
2304
+ *
2305
+ * Typed FROM the contract rather than transcribed from it (#5696): a hand-copy
2306
+ * mirrors the signature only until the contract moves, and this one had already
2307
+ * started to — it predates `opts.require` and the callback's `owned` argument.
2308
+ * ADR-0119 D1 blessed exactly this shape for the narrow host surfaces
2309
+ * (`transaction?: IObjectQLEngine['transaction']`); a *narrow* surface may stay
2310
+ * narrow, but it may not drift from the real signature.
2311
+ */
2303
2312
  interface EngineWithTransaction {
2304
- transaction<R>(callback: (trxCtx: any) => Promise<R>, baseContext?: any): Promise<R>;
2313
+ transaction: IObjectQLEngine['transaction'];
2305
2314
  }
2306
2315
  /** What a forward/compensate callback is told about the chunk it is running. */
2307
2316
  interface MigrationChunkContext {