Skip to content

feat: override list, open options and prepared limit setters (minigraf#872) - #22

Merged
adityamukho merged 4 commits into
v3from
feat/872-binding-overrides
Nov 10, 2026
Merged

adityamukho merged 4 commits into
v3from
feat/872-binding-overrides

Conversation

@adityamukho

@adityamukho adityamukho commented Nov 10, 2026 •

Copy link
Copy Markdown
Contributor

Brings the Node binding up to core v3's override surface (minigraf#872).

  • OpenOptions.allowOverrides?: Array<'maxDerivedFacts' | 'maxResults' | 'queryMemoryLimit' | 'maxIterations'>. An unknown name is API-017 at open, as a bad synchronous value is. The OVERRIDABLE_DEFAULTS export is frozen and read from core's Overridable::DEFAULTS.
  • transactionChunkFacts and maxIterations. Number.MAX_SAFE_INTEGER or more means no limit for maxIterations.
  • PreparedQuery.withMaxDerivedFacts / withQueryMemoryLimit / withMaxIterations return a new PreparedQuery, listed in the handle's registry. db.close() closes derived queries too, and later calls, the setters included, throw API-018. To allow that, the handle's prepared registry became an Arc shared with its prepared queries. index.d.ts and minigraf.d.ts are typed.
  • Tests in test/overrides.test.mjs. The consumer contract runs a setter through the packed tarballs.

Pin. Cargo.toml pins core d9755c02, the v3 merge commit of project-minigraf/minigraf#883. Moving the pin from 02243f16 needed no other fix. The macOS jobs run on macos-15 (the macos-14 runner was retired; fixed separately on v3).

Refs project-minigraf/minigraf#872.

🤖 Generated with Claude Code

https://claude.ai/code/session_01H2a7QouMzKp3tAWxgVsxRf

adityamukho and others added 3 commits November 10, 2026 13:15
…f#872)

Exposes core v3's override surface: an allow_overrides list with the
default list read from core's Overridable::DEFAULTS, the
transaction_chunk_facts and max_iterations open options, and the three
PreparedQuery limit setters, each returning a new prepared query and
leaving the receiver unchanged.

Refs minigraf#872.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01H2a7QouMzKp3tAWxgVsxRf
Temporary: re-pinned to the v3 merge commit once minigraf#883 merges.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01H2a7QouMzKp3tAWxgVsxRf
@adityamukho
adityamukho force-pushed the feat/872-binding-overrides branch from 14ed0e9 to 8eab79e Compare November 10, 2026 10:19
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01H2a7QouMzKp3tAWxgVsxRf
@adityamukho
adityamukho marked this pull request as ready for review November 10, 2026 10:55
@adityamukho
adityamukho merged commit 1f2bd25 into v3 Nov 10, 2026
14 checks passed
@adityamukho
adityamukho deleted the feat/872-binding-overrides branch November 10, 2026 11:17
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