Repository navigation
feat: expose the incoming-reference lookup on write transactions (project-minigraf/minigraf#925) - #28
Merged
Merged
Conversation
…ject-minigraf/minigraf#925) WriteTransaction.incomingRefs returns a plain object discriminated by status, with exact budgets up to Number.MAX_SAFE_INTEGER. Pins core to the v3 merge of the lookup (353bd58b). Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01H2a7QnK1UQ7thygqxPzRfQ
b6245cc2 is a core v3 merge commit; it contains the incoming-reference lookup. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01H2a7QnK1UQ7thygqxPzRfQ
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.
Summary
Adds
WriteTransaction.incomingRefs(target, maxLinks, maxRecords). It returns a plain object, typed as a union onstatus: complete links, or an exhausted budget with no partial links. Budgets are exact integers in0..=Number.MAX_SAFE_INTEGER(also within nativeusize), with no unlimited sentinel; errors areAPI-017/API-018/INT-001. No existing API changes.Part of project-minigraf/minigraf#925.
Core pin
b6245cc2c6f75d5493bd0d05673477414990c72f, the corev3merge commit of project-minigraf/minigraf#927; it contains the lookup.Cargo.lockdropschrono,num-traitsandautocfg; no source fix was needed.CI
The test job now runs
npm testand a TypeScript check; the packed consumer test type-checks the declarations.Tests
cargo test, Clippy, fmt, 64 JavaScript tests and the type check on Linux x86_64, and the packed consumer test. macOS, Windows, ARM and 32-bit are left to CI.🤖 Generated with Claude Code
https://claude.ai/code/session_01H2a7QnK1UQ7thygqxPzRfQ