Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 0 additions & 14 deletions .changeset/add-abort-signal-support.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/add-dimension-names.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/add-fill-value.md

This file was deleted.

15 changes: 0 additions & 15 deletions .changeset/add-sel-helper.md

This file was deleted.

14 changes: 0 additions & 14 deletions .changeset/add-v3-consolidated.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/allow-attrs-open.md

This file was deleted.

14 changes: 0 additions & 14 deletions .changeset/batched-range-store-merge-options.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/bigint-indexing.md

This file was deleted.

15 changes: 0 additions & 15 deletions .changeset/camelcase-internals.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/dull-windows-yawn.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/feat-batched-fetch-store.md

This file was deleted.

60 changes: 0 additions & 60 deletions .changeset/fetch-store-custom-fetch.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/fix-boolean-narrowing.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/fix-fill-value-nan.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/fix-open-autodetect.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/fix-scalar-get-set.md

This file was deleted.

7 changes: 0 additions & 7 deletions .changeset/lazy-gifts-begin.md

This file was deleted.

27 changes: 0 additions & 27 deletions .changeset/numcodecs-namespace.md

This file was deleted.

17 changes: 0 additions & 17 deletions .changeset/refstore-fetchstore-delegation.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/upgrade-unzipit-v2.md

This file was deleted.

9 changes: 9 additions & 0 deletions packages/@zarrita-ndarray/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,14 @@
# @zarrita/ndarray

## 0.1.9

### Patch Changes

- Enable `declarationMap` so "go to definition" resolves to `.ts` source instead of `.d.ts` files ([#361](https://github.com/manzt/zarrita.js/pull/361))

- Updated dependencies [[`d7d1495`](https://github.com/manzt/zarrita.js/commit/d7d149560ad96f176d5836f0ab4d419f4c2850e8), [`fdac48d`](https://github.com/manzt/zarrita.js/commit/fdac48dd0a84be4a2bea56022cd12e199268649d), [`db2be5c`](https://github.com/manzt/zarrita.js/commit/db2be5c8274a062beed46ece6eb63509da284402), [`164370d`](https://github.com/manzt/zarrita.js/commit/164370db1b05dcbd45199de80c963f4c91dd224c), [`53eff05`](https://github.com/manzt/zarrita.js/commit/53eff0583257c990625b4b04a78e8f4614e2b692), [`6791b08`](https://github.com/manzt/zarrita.js/commit/6791b088e725acf545e9dfcc3ab22903c62bcff1), [`7755773`](https://github.com/manzt/zarrita.js/commit/775577360aff8c110d889a62227760cd58cf66c4), [`5038e34`](https://github.com/manzt/zarrita.js/commit/5038e34e3deb588a8697ecc3159b87f3340fc5fd), [`7d9224e`](https://github.com/manzt/zarrita.js/commit/7d9224e2091ee0de2dcab2ee05a3b8b093ccb711), [`0ed6f72`](https://github.com/manzt/zarrita.js/commit/0ed6f72164f49195b94e5258d488c20b7485667c), [`138e882`](https://github.com/manzt/zarrita.js/commit/138e88221f583710ea23db892f1594d360214ffe), [`1f79587`](https://github.com/manzt/zarrita.js/commit/1f7958756c0c10300e087fdfd0e514f41eec0e8c), [`3ea8ce6`](https://github.com/manzt/zarrita.js/commit/3ea8ce6f65e7be418deb17afc9592cc1f5939e8c), [`b8185ff`](https://github.com/manzt/zarrita.js/commit/b8185ff7f37dff67ceb1904afec73ed9d3a8ae4d), [`8d57213`](https://github.com/manzt/zarrita.js/commit/8d572137385e320221c24a37c54f33904e499a33), [`e2a0568`](https://github.com/manzt/zarrita.js/commit/e2a0568f308628a8e246f069d9d81dbf053a7a82), [`717a483`](https://github.com/manzt/zarrita.js/commit/717a48346d499d7a974971eb16bf312e93f94bd4)]:
- zarrita@0.7.0

## 0.1.8

### Patch Changes
Expand Down
4 changes: 2 additions & 2 deletions packages/@zarrita-ndarray/jsr.json
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
{
"name": "@zarrita/ndarray",
"version": "0.1.8",
"version": "0.1.9",
"license": "MIT",
"nodeModulesDir": "auto",
"imports": {
"@types/ndarray-ops": "npm:@types/ndarray-ops@^1.2.4",
"ndarray": "npm:ndarray@^1.0.19",
"ndarray-ops": "npm:ndarray-ops@^1.2.2",
"zarrita": "jsr:@zarrita/zarrita@^0.6.2"
"zarrita": "jsr:@zarrita/zarrita@^0.7.0"
},
"exports": {
".": "./src/index.ts"
Expand Down
2 changes: 1 addition & 1 deletion packages/@zarrita-ndarray/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@zarrita/ndarray",
"version": "0.1.8",
"version": "0.1.9",
"repository": "https://github.com/manzt/zarrita.js",
"license": "MIT",
"type": "module",
Expand Down
81 changes: 81 additions & 0 deletions packages/@zarrita-storage/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,86 @@
# @zarrita/storage

## 0.2.0

### Minor Changes

- Add custom `fetch` option to `FetchStore`. Accepts a WinterTC-style fetch handler ([`Request`](https://developer.mozilla.org/en-US/docs/Web/API/Request) in, [`Response`](https://developer.mozilla.org/en-US/docs/Web/API/Response) out) to cover the long tail of things users need at the fetch level. Deprecates `overrides`. ([#388](https://github.com/manzt/zarrita.js/pull/388))

Presigning a URL:

```ts
const store = new FetchStore("https://my-bucket.s3.amazonaws.com/data.zarr", {
async fetch(request) {
const newUrl = await presign(request.url);
return fetch(new Request(newUrl, request));
},
});
```

Remapping response status codes:

```ts
const store = new FetchStore("https://my-bucket.s3.amazonaws.com/data.zarr", {
async fetch(request) {
const response = await fetch(request);
if (response.status === 403) {
return new Response(null, { status: 404 });
}
return response;
},
});
```

#### Migrating from `overrides`

`overrides` only supported static [`RequestInit`](https://developer.mozilla.org/en-US/docs/Web/API/RequestInit) properties. For anything dynamic (like refreshing a token), you had to thread it through every call site:

```ts
const store = new FetchStore("https://example.com/data.zarr");
const arr = await zarr.open(store);

// token logic leaks into every get call
let chunk = await zarr.get(arr, null, {
opts: { headers: { Authorization: `Bearer ${await getAccessToken()}` } },
});
```

With `fetch`, auth is configured once on the store and every request picks it up:

```ts
const store = new FetchStore("https://example.com/data.zarr", {
async fetch(request) {
const token = await getAccessToken();
request.headers.set("Authorization", `Bearer ${token}`);
return fetch(request);
},
});
const arr = await zarr.open(store);

// call sites don't need to know about auth
let chunk = await zarr.get(arr);
```

- `ReferenceStore` now uses `FetchStore` internally and accepts the same `fetch` option. The default fetch handler translates `s3://`, `gs://`, and `gcs://` URIs to HTTPS, but you can provide your own to add auth or handle other protocols: ([#389](https://github.com/manzt/zarrita.js/pull/389))

```ts
const store = await ReferenceStore.fromUrl("https://example.com/refs.json", {
async fetch(request) {
// translate s3:// and gs:// URIs to HTTPS
const url = ReferenceStore.resolveUri(request.url);
const req = new Request(url, request);
req.headers.set("Authorization", `Bearer ${await getToken()}`);
return fetch(req);
},
});
```

### Patch Changes

- Enable `declarationMap` so "go to definition" resolves to `.ts` source instead of `.d.ts` files ([#361](https://github.com/manzt/zarrita.js/pull/361))

- Upgrade `unzipit` from 1.4.3 to 2.0.0 ([#386](https://github.com/manzt/zarrita.js/pull/386))

## 0.1.4

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/@zarrita-storage/jsr.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@zarrita/storage",
"version": "0.1.4",
"version": "0.2.0",
"license": "MIT",
"nodeModulesDir": "auto",
"imports": {
Expand Down
2 changes: 1 addition & 1 deletion packages/@zarrita-storage/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@zarrita/storage",
"version": "0.1.4",
"version": "0.2.0",
"repository": "https://github.com/manzt/zarrita.js",
"license": "MIT",
"type": "module",
Expand Down
Loading