Skip to content

Commit 5ce3239

Browse files
Version Packages (#97)
1 parent 97e7df1 commit 5ce3239

File tree

9 files changed

+159
-42
lines changed

9 files changed

+159
-42
lines changed

.changeset/nice-jars-explode.md

-38
This file was deleted.

packages/core/CHANGELOG.md

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

3+
## 0.0.3
4+
5+
### Patch Changes
6+
7+
- feat: Support `VLenUTF8` codec in v2 and introduce a strided JS "object" Array. ([#96](https://github.com/manzt/zarrita.js/pull/96))
8+
9+
```python
10+
import zarr
11+
import numcodecs
12+
13+
zarr.create_dataset(
14+
"data.zarr",
15+
data=np.array(
16+
[[["a", "aa"], ["aaa", "aaaa"]],
17+
[["b", "bb"], ["bbb", "bbbb"]]],
18+
dtype=object
19+
),
20+
dtype="|O",
21+
object_codec=numcodecs.VLenUTF8(),
22+
chunks=(1, 1, 2),
23+
)
24+
```
25+
26+
```typescript
27+
import * as zarr from "zarrita";
28+
29+
let store = zarr.FetchStore("http://localhost:8080/data.zarr");
30+
let arr = await zarr.open.v2(store, { kind: "array" });
31+
let result = zarr.get(arr);
32+
// {
33+
// data: ["a", "aa", "aaa", "aaaa", "b", "bb", "bbb", "bbbb"],
34+
// shape: [2, 2, 2],
35+
// stride: [4, 2, 1],
36+
// }
37+
```
38+
339
## 0.0.2
440

541
### 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.2",
4+
"version": "0.0.3",
55
"sideEffects": false,
66
"main": "dist/src/index.js",
77
"scripts": {

packages/indexing/CHANGELOG.md

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

3+
## 0.0.3
4+
5+
### Patch Changes
6+
7+
- feat: Support `VLenUTF8` codec in v2 and introduce a strided JS "object" Array. ([#96](https://github.com/manzt/zarrita.js/pull/96))
8+
9+
```python
10+
import zarr
11+
import numcodecs
12+
13+
zarr.create_dataset(
14+
"data.zarr",
15+
data=np.array(
16+
[[["a", "aa"], ["aaa", "aaaa"]],
17+
[["b", "bb"], ["bbb", "bbbb"]]],
18+
dtype=object
19+
),
20+
dtype="|O",
21+
object_codec=numcodecs.VLenUTF8(),
22+
chunks=(1, 1, 2),
23+
)
24+
```
25+
26+
```typescript
27+
import * as zarr from "zarrita";
28+
29+
let store = zarr.FetchStore("http://localhost:8080/data.zarr");
30+
let arr = await zarr.open.v2(store, { kind: "array" });
31+
let result = zarr.get(arr);
32+
// {
33+
// data: ["a", "aa", "aaa", "aaaa", "b", "bb", "bbb", "bbbb"],
34+
// shape: [2, 2, 2],
35+
// stride: [4, 2, 1],
36+
// }
37+
```
38+
39+
- Updated dependencies [[`97e7df1`](https://github.com/manzt/zarrita.js/commit/97e7df188efa5e6ef343edca35c3d16862149920)]:
40+
- @zarrita/core@0.0.3
41+
342
## 0.0.2
443

544
### 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.2",
4+
"version": "0.0.3",
55
"sideEffects": false,
66
"scripts": {
77
"build": "tsc",

packages/ndarray/CHANGELOG.md

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

3+
## 0.0.3
4+
5+
### Patch Changes
6+
7+
- feat: Support `VLenUTF8` codec in v2 and introduce a strided JS "object" Array. ([#96](https://github.com/manzt/zarrita.js/pull/96))
8+
9+
```python
10+
import zarr
11+
import numcodecs
12+
13+
zarr.create_dataset(
14+
"data.zarr",
15+
data=np.array(
16+
[[["a", "aa"], ["aaa", "aaaa"]],
17+
[["b", "bb"], ["bbb", "bbbb"]]],
18+
dtype=object
19+
),
20+
dtype="|O",
21+
object_codec=numcodecs.VLenUTF8(),
22+
chunks=(1, 1, 2),
23+
)
24+
```
25+
26+
```typescript
27+
import * as zarr from "zarrita";
28+
29+
let store = zarr.FetchStore("http://localhost:8080/data.zarr");
30+
let arr = await zarr.open.v2(store, { kind: "array" });
31+
let result = zarr.get(arr);
32+
// {
33+
// data: ["a", "aa", "aaa", "aaaa", "b", "bb", "bbb", "bbbb"],
34+
// shape: [2, 2, 2],
35+
// stride: [4, 2, 1],
36+
// }
37+
```
38+
39+
- Updated dependencies [[`97e7df1`](https://github.com/manzt/zarrita.js/commit/97e7df188efa5e6ef343edca35c3d16862149920)]:
40+
- @zarrita/indexing@0.0.3
41+
- @zarrita/core@0.0.3
42+
343
## 0.0.2
444

545
### 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.2",
4+
"version": "0.0.3",
55
"sideEffects": false,
66
"scripts": {
77
"build": "tsc",

packages/zarrita/CHANGELOG.md

+40
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,45 @@
11
# zarrita
22

3+
## 0.3.2
4+
5+
### Patch Changes
6+
7+
- feat: Support `VLenUTF8` codec in v2 and introduce a strided JS "object" Array. ([#96](https://github.com/manzt/zarrita.js/pull/96))
8+
9+
```python
10+
import zarr
11+
import numcodecs
12+
13+
zarr.create_dataset(
14+
"data.zarr",
15+
data=np.array(
16+
[[["a", "aa"], ["aaa", "aaaa"]],
17+
[["b", "bb"], ["bbb", "bbbb"]]],
18+
dtype=object
19+
),
20+
dtype="|O",
21+
object_codec=numcodecs.VLenUTF8(),
22+
chunks=(1, 1, 2),
23+
)
24+
```
25+
26+
```typescript
27+
import * as zarr from "zarrita";
28+
29+
let store = zarr.FetchStore("http://localhost:8080/data.zarr");
30+
let arr = await zarr.open.v2(store, { kind: "array" });
31+
let result = zarr.get(arr);
32+
// {
33+
// data: ["a", "aa", "aaa", "aaaa", "b", "bb", "bbb", "bbbb"],
34+
// shape: [2, 2, 2],
35+
// stride: [4, 2, 1],
36+
// }
37+
```
38+
39+
- Updated dependencies [[`97e7df1`](https://github.com/manzt/zarrita.js/commit/97e7df188efa5e6ef343edca35c3d16862149920)]:
40+
- @zarrita/indexing@0.0.3
41+
- @zarrita/core@0.0.3
42+
343
## 0.3.1
444

545
### Patch 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.1",
4+
"version": "0.3.2",
55
"sideEffects": false,
66
"main": "index.js",
77
"exports": {

0 commit comments

Comments
 (0)