Repository navigation
feat: expose the incoming-reference lookup in the browser package (project-minigraf/minigraf#925) - #27
Merged
Conversation
…sumer test (project-minigraf/minigraf#925) Exercises BrowserWriteTransaction.incomingRefs through the packed package on the main thread and in the OPFS worker, type-checks the status union, documents the lookup and the WASI exclusion, and logs the core commit the WASI package is built from. The lookup needs a core revision with the browser method; the core pin is bumped separately. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01H2a7QnK1UQ7thygqxPzRfQ
b6245cc2 is the core v3 merge commit that adds BrowserWriteTransaction.incomingRefs. 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
Exposes
BrowserWriteTransaction.incomingRefs(target, maxLinks, maxRecords)in@minigraf/browserby moving the core pin, with consumer coverage and documentation. The package is a re-export of core, so no source change is needed.Part of project-minigraf/minigraf#925.
Core pin
b6245cc2c6f75d5493bd0d05673477414990c72f, the corev3merge commit of project-minigraf/minigraf#927. The pin wasdf7e8170.Cargo.lockdropschrono,num-traitsandautocfg.Changes
tsc --noEmitcheck that the result type narrows onstatus.Size
Optimised browser
.wasm, Rust 1.94.0: 1,475,155 bytes atdf7e8170, 1,482,356 with the lookup (+7,201, measured against the head of project-minigraf/minigraf#927, whose tree the merge commit carries).Tests
On Linux:
wasm32release build, Clippy and fmt; the packed browser consumer test in Chromium and the WASI consumer test on Node 20 (both run before the final pin, against the same core tree). Firefox, WebKit, macOS and Windows are left to CI.🤖 Generated with Claude Code
https://claude.ai/code/session_01H2a7QnK1UQ7thygqxPzRfQ