Skip to content

feat(query): add standalone staged-query entry - #19

Merged
Upd4ting merged 5 commits into
mainfrom
feat/staged-query-entry
Sep 15, 2026
Merged

Upd4ting merged 5 commits into
mainfrom
feat/staged-query-entry

Conversation

@Upd4ting

Copy link
Copy Markdown
Member

🔗 Linked issue

No linked issue.

❓ Type of change

  • 📖 Documentation
  • 🐞 Bug fix
  • 👌 Enhancement
  • ✨ New feature
  • ⚠️ Breaking change

📚 Description

Add a public @antelopejs/interface-database/staged-query entry for constructing and serializing database queries without loading interface registration or execution runtime dependencies.

The root entry composes the same constructors with run, then, cursor, schema registration, and atomic-result validation. This preserves root instanceof compatibility while keeping the staged entry free of interface-core, registration side effects, and execution APIs.

Atomic execution validates the canonical stage and delegates through Query.prototype.run.call(this), preserving polymorphic overrides. The test harness now uses @antelopejs/mongodb@1.3.0, which implements the atomic mutation contract introduced in interface-database 0.1.6.

This allows browser query editors to use the query DSL without bundling node:async_hooks or AsyncLocalStorage.

Verification

  • pnpm test: 184 passing
  • pnpm test:staged-query: pass
  • pnpm build: pass
  • pnpm format:check: 84 files pass
  • git diff --check: pass
  • Real baseline and candidate Database Query Console workflows passed with hydrated AQL editing, execution, history, Table/JSON/Chart views, and saved queries
  • Browser bundles contained no node:async_hooks, AsyncLocalStorage, or interface-core references in query chunks

Local tooling limits

  • pnpm lint aborts inside the oxlint allocator before producing diagnostics in the 4 GiB orb
  • pnpm knip fails allocating oxc-parser's transfer buffer before producing findings

CI should run both gates on a clean runner.

📝 Checklist

  • I have linked an issue or discussion.
  • I have updated the documentation accordingly.

@Upd4ting
Upd4ting merged commit 96f59be into main Sep 15, 2026
2 checks passed
@Upd4ting
Upd4ting deleted the feat/staged-query-entry branch September 15, 2026 16:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant