Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add withConsolidated store helper #119

Merged
merged 7 commits into from
Jan 14, 2024
Merged

feat: add withConsolidated store helper #119

merged 7 commits into from
Jan 14, 2024

Conversation

manzt
Copy link
Owner

@manzt manzt commented Sep 30, 2023

Towards #117

Introduces the withConsolidated store helper (?). Looks for v2 consolidated metadata,
and returns known contents. "Opening" paths from the store is essentially free for
consolidated data (and will not make a network request)

let store = await withConsolidated(new FetchStore("http://localhost:8080"));
let contents = store.contents() // [ {path: "/", kind: "group" }, { path: "/foo", kind: "array" }, ...]
let foo = await open(contents[1].path, { kind: "array" });

@manzt manzt force-pushed the with-consolidated branch from d684c2a to 464f676 Compare October 3, 2023 14:25
@manzt manzt force-pushed the with-consolidated branch from 464f676 to 1d18982 Compare December 20, 2023 20:13
@manzt manzt force-pushed the with-consolidated branch from 7f4884f to 45c201b Compare January 14, 2024 16:37
@manzt manzt force-pushed the with-consolidated branch from 45c201b to 2b8cb38 Compare January 14, 2024 16:39
@manzt manzt marked this pull request as ready for review January 14, 2024 18:32
@manzt manzt force-pushed the with-consolidated branch from 5aacc69 to 5de7d1c Compare January 14, 2024 18:53
@manzt manzt merged commit 4d177d8 into main Jan 14, 2024
@manzt manzt deleted the with-consolidated branch January 14, 2024 18:54
@github-actions github-actions bot mentioned this pull request Jan 14, 2024
@github-actions github-actions bot mentioned this pull request Mar 1, 2025
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