Skip to content

Commit 3e267d9

Browse files
Version Packages
1 parent 89a2744 commit 3e267d9

14 files changed

+115
-68
lines changed

.changeset/lucky-crews-try.md

-16
This file was deleted.

.changeset/nervous-bugs-wait.md

-26
This file was deleted.

.changeset/thirty-balloons-fix.md

-6
This file was deleted.

.changeset/young-schools-cry.md

-15
This file was deleted.

packages/core/CHANGELOG.md

+31
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,36 @@
11
# @zarrita/core
22

3+
## 0.0.2
4+
5+
### Patch Changes
6+
7+
- feat: Add `openConsolidated` helper ([`6e7df4f`](https://github.com/manzt/zarrita.js/commit/6e7df4fe887cabae81e4e0e842628894082d9c27))
8+
9+
A utility for working with v2 consolidated metadata.
10+
11+
```javascript
12+
import * as zarr from "zarrita";
13+
14+
let store = new zarr.FetchStore("http://localhost:8080/data.zarr");
15+
let hierarchy = await zarr.openConsolidated(store);
16+
hierarchy.contents;
17+
// Map {
18+
// "/" => Group,
19+
// "/foo" => Array,
20+
// "/bar" => Group,
21+
// "/bar/baz" => Array,
22+
// }
23+
let grp = hierarchy.root(); // Group
24+
let foo = hierarchy.open("/foo", { kind: "array" }); // Array
25+
let baz = hierarchy.open(grp.resolve("bar/baz"), { kind: "array" }); // Array
26+
let bar = hierarchy.open(baz.resolve(".."), { kind: "group" }); // Group
27+
```
28+
29+
- feat: Support reading ZEP0002 sharded indexing ([#94](https://github.com/manzt/zarrita.js/pull/94))
30+
31+
- Updated dependencies [[`b90fd33`](https://github.com/manzt/zarrita.js/commit/b90fd339c748084caeccfed017accbcebc7cbafe)]:
32+
- @zarrita/storage@0.0.2
33+
334
## 0.0.1
435

536
### Patch Changes

packages/core/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "@zarrita/core",
33
"type": "module",
4-
"version": "0.0.1",
4+
"version": "0.0.2",
55
"sideEffects": false,
66
"main": "dist/src/index.js",
77
"scripts": {

packages/indexing/CHANGELOG.md

+8
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,13 @@
11
# @zarrita/indexing
22

3+
## 0.0.2
4+
5+
### Patch Changes
6+
7+
- Updated dependencies [[`6e7df4f`](https://github.com/manzt/zarrita.js/commit/6e7df4fe887cabae81e4e0e842628894082d9c27), [`89a2744`](https://github.com/manzt/zarrita.js/commit/89a27449076c63d176695e53e72bedfb97160f19), [`b90fd33`](https://github.com/manzt/zarrita.js/commit/b90fd339c748084caeccfed017accbcebc7cbafe)]:
8+
- @zarrita/core@0.0.2
9+
- @zarrita/storage@0.0.2
10+
311
## 0.0.1
412

513
### Patch Changes

packages/indexing/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "@zarrita/indexing",
33
"type": "module",
4-
"version": "0.0.1",
4+
"version": "0.0.2",
55
"sideEffects": false,
66
"scripts": {
77
"build": "tsc",

packages/ndarray/CHANGELOG.md

+9
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,14 @@
11
# @zarrita/ndarray
22

3+
## 0.0.2
4+
5+
### Patch Changes
6+
7+
- Updated dependencies [[`6e7df4f`](https://github.com/manzt/zarrita.js/commit/6e7df4fe887cabae81e4e0e842628894082d9c27), [`89a2744`](https://github.com/manzt/zarrita.js/commit/89a27449076c63d176695e53e72bedfb97160f19), [`b90fd33`](https://github.com/manzt/zarrita.js/commit/b90fd339c748084caeccfed017accbcebc7cbafe)]:
8+
- @zarrita/core@0.0.2
9+
- @zarrita/storage@0.0.2
10+
- @zarrita/indexing@0.0.2
11+
312
## 0.0.1
413

514
### Patch Changes

packages/ndarray/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "@zarrita/ndarray",
33
"type": "module",
4-
"version": "0.0.1",
4+
"version": "0.0.2",
55
"sideEffects": false,
66
"scripts": {
77
"build": "tsc",

packages/storage/CHANGELOG.md

+16
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,21 @@
11
# @zarrita/storage
22

3+
## 0.0.2
4+
5+
### Patch Changes
6+
7+
- feat: Support partial reads from `Readable` ([#93](https://github.com/manzt/zarrita.js/pull/93))
8+
9+
Introduces the `Readable.getRange` method, which can be optionally implemented by a store to support partial reads.
10+
The `RangeQuery` param is inspired by the HTTP [`Range` header](https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Range).
11+
Allowing the `suffixLength` query means the store can decide the best way to return the final N bytes from a file.
12+
13+
```javascript
14+
const store = new FetchStore("http://localhost:8080/data.zarr");
15+
await store.getRange("/foo.json", { suffixLength: 100 });
16+
await store.getRange("/foo.json", { offset: 10, length: 20 });
17+
```
18+
319
## 0.0.1
420

521
### Patch Changes

packages/storage/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "@zarrita/storage",
33
"type": "module",
4-
"version": "0.0.1",
4+
"version": "0.0.2",
55
"sideEffects": false,
66
"scripts": {
77
"build": "tsc",

packages/zarrita/CHANGELOG.md

+46
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,51 @@
11
# zarrita
22

3+
## 0.3.1
4+
5+
### Patch Changes
6+
7+
- feat: eagerly read attributes for v2 ([`6e7df4f`](https://github.com/manzt/zarrita.js/commit/6e7df4fe887cabae81e4e0e842628894082d9c27))
8+
9+
Replaces the lazy `.attrs()` method on `zarr.Array` and `zarr.Group` with `.attrs` attribute.
10+
Instead for v2, `.zattrs` (JSON) is eagerly loaded when opening a node.
11+
12+
```javascript
13+
// loads .zattrs by default
14+
(await zarr.open.v2(store)).attrs; // { answer: 42 }
15+
16+
// can be disabled
17+
(await zarr.open.v2(store, { attrs: false })).attrs; // {}
18+
```
19+
20+
- feat: Add `openConsolidated` helper ([`6e7df4f`](https://github.com/manzt/zarrita.js/commit/6e7df4fe887cabae81e4e0e842628894082d9c27))
21+
22+
A utility for working with v2 consolidated metadata.
23+
24+
```javascript
25+
import * as zarr from "zarrita";
26+
27+
let store = new zarr.FetchStore("http://localhost:8080/data.zarr");
28+
let hierarchy = await zarr.openConsolidated(store);
29+
hierarchy.contents;
30+
// Map {
31+
// "/" => Group,
32+
// "/foo" => Array,
33+
// "/bar" => Group,
34+
// "/bar/baz" => Array,
35+
// }
36+
let grp = hierarchy.root(); // Group
37+
let foo = hierarchy.open("/foo", { kind: "array" }); // Array
38+
let baz = hierarchy.open(grp.resolve("bar/baz"), { kind: "array" }); // Array
39+
let bar = hierarchy.open(baz.resolve(".."), { kind: "group" }); // Group
40+
```
41+
42+
- feat: Support reading ZEP0002 sharded indexing ([#94](https://github.com/manzt/zarrita.js/pull/94))
43+
44+
- Updated dependencies [[`6e7df4f`](https://github.com/manzt/zarrita.js/commit/6e7df4fe887cabae81e4e0e842628894082d9c27), [`89a2744`](https://github.com/manzt/zarrita.js/commit/89a27449076c63d176695e53e72bedfb97160f19), [`b90fd33`](https://github.com/manzt/zarrita.js/commit/b90fd339c748084caeccfed017accbcebc7cbafe)]:
45+
- @zarrita/core@0.0.2
46+
- @zarrita/storage@0.0.2
47+
- @zarrita/indexing@0.0.2
48+
349
## 0.3.0
450

551
### Minor Changes

packages/zarrita/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "zarrita",
33
"type": "module",
4-
"version": "0.3.0",
4+
"version": "0.3.1",
55
"sideEffects": false,
66
"main": "index.js",
77
"exports": {

0 commit comments

Comments
 (0)