feat(spec)!: remove deprecated DriverInterface alias — use IDataDriver (11.0, #2378)#2384
Merged
Conversation
…r (11.0, #2378) Scope correction: `IDataEngine` is NOT deprecated (live engine-layer contract, `ObjectQL implements IDataEngine`). The actual `@deprecated` alias was `DriverInterface` (= `IDataDriver`) in spec/contracts + core. - spec/contracts/data-engine.ts: drop the `DriverInterface` alias (+ now-unused IDataDriver import) - core: drop the `DriverInterface` re-export (contracts/data-engine.ts + index.ts) - objectql/engine.ts: type drivers as `IDataDriver` (type-identical rename, 11 refs) - driver-memory config / sql-driver comment / data-engine.test.ts: IDataDriver - regen spec api-surface snapshot (only `DriverInterface (type)` removed) Untouched (not deprecated): `IDataEngine`, and the separate zod `DriverInterface`/`DriverInterfaceSchema` in spec/data (runtime driver schema). Verified: spec contracts/data tests (32) + objectql (718) green; 8 build tasks green; api-surface check will pass (snapshot regenerated). Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
Contributor
📓 Docs Drift CheckThis PR changes 5 package(s): 100 hand-written doc(s) reference the affected code and may need an implementation-accuracy re-verification:
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Addresses #2378 (with a scope correction). Part of the 11.0 breaking-change batch (#2364).
Scope correction
The issue title said "remove IDataEngine", but reading the code:
IDataEngineis NOT deprecated — it's the live engine-layer contract (ObjectQL implements IDataEngine, 60 refs). The genuine@deprecatedalias isDriverInterface(= IDataDriver). So this PR removesDriverInterface;IDataEnginestays.Changes
spec/contracts/data-engine.ts: drop theDriverInterfacealias + now-unusedIDataDriverimport.@objectstack/core: drop theDriverInterfacere-export (contracts/data-engine.ts+index.ts).objectql/engine.ts: type drivers asIDataDriver(11 refs) — type-identical, since the alias literally wasIDataDriver.data-engine.test.ts: renamed toIDataDriver.api-surface.json(diff is exactly one line:- "DriverInterface (type)").Not touched
IDataEngine(live, not deprecated).DriverInterface/DriverInterfaceSchemain@objectstack/spec/data(runtime driver schema) — different type, same name, not deprecated.Verification
spec contracts/data tests 32, objectql 718 green; 8 build tasks green (incl. objectql DTS typecheck); api-surface snapshot regenerated. No other package imports the alias.
Driver authors migrate
DriverInterface→IDataDriver(identical shape).🤖 Generated with Claude Code