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

Create Release (next) #140

Merged
merged 1 commit into from
Jan 15, 2024
Merged

Create Release (next) #140

merged 1 commit into from
Jan 15, 2024

Conversation

github-actions[bot]
Copy link
Contributor

@github-actions github-actions bot commented Jan 14, 2024

This PR was opened by the Changesets release GitHub action. When you're ready to do a release, you can merge this and the packages will be published to npm automatically. If you're not ready to do a release yet, that's fine, whenever you add more changesets to main, this PR will be updated.

⚠️⚠️⚠️⚠️⚠️⚠️

main is currently in pre mode so this branch has prereleases rather than normal releases. If you want to exit prereleases, run changeset pre exit on main.

⚠️⚠️⚠️⚠️⚠️⚠️

Releases

@zarrita/core@0.1.0-next.5

Minor Changes

  • feat: Add tryWithConsolidated store helper (#141)

    Provides a convenient way to open a store that may or may not have consolidated
    metadata. Ideal for usage senarios with known access paths, since store with
    consolidated metadata do not incur additional network requests when accessing
    underlying groups and arrays.

    import * as zarr from "zarrita";
    
    let store = await zarr.tryWithConsolidated(
      new zarr.FetchStore("https://localhost:8080/data.zarr");
    );
    
    // The following do not read from the store
    // (make network requests) if it is consolidated.
    let grp = await zarr.open(store, { kind: "group" });
    let foo = await zarr.open(grp.resolve("foo"), { kind: "array" });
  • feat: Add withConsolidated store utility (#119)

    BREAKING: Replaces openConsolidated
    to provide a consistent interface for accessing consolidated and non-consolidated stores.

    import * as zarr from "zarrita";
    
    // non-consolidated
    let store = new zarr.FetchStore("https://localhost:8080/data.zarr");
    let grp = await zarr.open(store); // network request for .zgroup/.zattrs
    let foo = await zarr.open(grp.resolve("/foo"), { kind: array }); // network request for .zarray/.zattrs
    
    // consolidated
    let store = new zarr.FetchStore("https://localhost:8080/data.zarr");
    let consolidatedStore = await zarr.withConsolidated(store); // opens ./zmetadata
    let contents = consolidatedStore.contents(); // [ {path: "/", kind: "group" }, { path: "/foo", kind: "array" }, ...]
    let grp = await zarr.open(consolidatedStore); // no network request
    let foo = await zarr.open(grp.resolve(contents[1].path), {
      kind: contents[1].kind,
    }); // no network request

@zarrita/indexing@0.1.0-next.7

Minor Changes

  • feat: Add withConsolidated store utility (#119)

    BREAKING: Replaces openConsolidated
    to provide a consistent interface for accessing consolidated and non-consolidated stores.

    import * as zarr from "zarrita";
    
    // non-consolidated
    let store = new zarr.FetchStore("https://localhost:8080/data.zarr");
    let grp = await zarr.open(store); // network request for .zgroup/.zattrs
    let foo = await zarr.open(grp.resolve("/foo"), { kind: array }); // network request for .zarray/.zattrs
    
    // consolidated
    let store = new zarr.FetchStore("https://localhost:8080/data.zarr");
    let consolidatedStore = await zarr.withConsolidated(store); // opens ./zmetadata
    let contents = consolidatedStore.contents(); // [ {path: "/", kind: "group" }, { path: "/foo", kind: "array" }, ...]
    let grp = await zarr.open(consolidatedStore); // no network request
    let foo = await zarr.open(grp.resolve(contents[1].path), {
      kind: contents[1].kind,
    }); // no network request

Patch Changes

zarrita@0.4.0-next.7

Minor Changes

  • feat: Add withConsolidated store utility (#119)

    BREAKING: Replaces openConsolidated
    to provide a consistent interface for accessing consolidated and non-consolidated stores.

    import * as zarr from "zarrita";
    
    // non-consolidated
    let store = new zarr.FetchStore("https://localhost:8080/data.zarr");
    let grp = await zarr.open(store); // network request for .zgroup/.zattrs
    let foo = await zarr.open(grp.resolve("/foo"), { kind: array }); // network request for .zarray/.zattrs
    
    // consolidated
    let store = new zarr.FetchStore("https://localhost:8080/data.zarr");
    let consolidatedStore = await zarr.withConsolidated(store); // opens ./zmetadata
    let contents = consolidatedStore.contents(); // [ {path: "/", kind: "group" }, { path: "/foo", kind: "array" }, ...]
    let grp = await zarr.open(consolidatedStore); // no network request
    let foo = await zarr.open(grp.resolve(contents[1].path), {
      kind: contents[1].kind,
    }); // no network request

Patch Changes

@zarrita/ndarray@0.1.0-next.7

Patch Changes

@manzt manzt merged commit 7ec705e into main Jan 15, 2024
@manzt manzt deleted the changeset-release/main branch January 15, 2024 01:17
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