8000 feat: expose the incoming-reference lookup in the browser package (project-minigraf/minigraf#925) by adityamukho · Pull Request #27 · project-minigraf/minigraf-wasm · GitHub
[go: up one dir, main page]

Skip to content

feat: expose the incoming-reference lookup in the browser package (project-minigraf/minigraf#925) - #27

Merged
adityamukho merged 2 commits into
v3from
feat/925-incoming-refs
Nov 29, 2026
Merged

adityamukho merged 2 commits into
v3from
feat/925-incoming-refs

Conversation

@adityamukho
Copy link
Copy Markdown
Contributor

Summary

Exposes BrowserWriteTransaction.incomingRefs(target, maxLinks, maxRecords) in @minigraf/browser by 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 core v3 merge commit of project-minigraf/minigraf#927. The pin was df7e8170. Cargo.lock drops chrono, num-traits and autocfg.

Changes

  • Packed-package browser consumer test on the main thread and in the OPFS worker: complete, both exhaustion reasons, Keyword exclusion, retry, commit and reopen, rollback, finished and closed handles, reentry, and a failed IndexedDB flush.
  • A tsc --noEmit check that the result type narrows on status.
  • README for the lookup. The WASI README states that the REPL does not offer it.
  • The packaging workflow logs the core commit the WASI package is built from.

Size

Optimised browser .wasm, Rust 1.94.0: 1,475,155 bytes at df7e8170, 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: wasm32 release 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

adityamukho and others added 2 commits November 29, 2026 15:39
…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
@adityamukho
adityamukho merged commit f799e3f into v3 Nov 29, 2026
10 checks passed
@adityamukho
adityamukho deleted the feat/925-incoming-refs branch November 30, 2026 05:48
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

0