8000 feat: expose the incoming-reference lookup on write transactions (project-minigraf/minigraf#925) by adityamukho · Pull Request #28 · project-minigraf/minigraf-node · GitHub
[go: up one dir, main page]

Skip to content

feat: expose the incoming-reference lookup on write transactions (project-minigraf/minigraf#925) - #28

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
@adityamukho adityamukho commented Nov 29, 2026 •
Copy link
Copy Markdown
Contributor

Summary

Adds WriteTransaction.incomingRefs(target, maxLinks, maxRecords). It returns a plain object, typed as a union on status: complete links, or an exhausted budget with no partial links. Budgets are exact integers in 0..=Number.MAX_SAFE_INTEGER (also within native usize), with no unlimited sentinel; errors are API-017/API-018/INT-001. No existing API changes.

Part of project-minigraf/minigraf#925.

Core pin

b6245cc2c6f75d5493bd0d05673477414990c72f, the core v3 merge commit of project-minigraf/minigraf#927; it contains the lookup. Cargo.lock drops chrono, num-traits and autocfg; no source fix was needed.

CI

The test job now runs npm test and 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

…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
@adityamukho
adityamukho merged commit 56a1f6c into v3 Nov 29, 2026
14 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