From 92f241cd36cfcd8e1276a3f3f882633ebd2ed7a8 Mon Sep 17 00:00:00 2001 From: mkeller <7525285+keller-mark@users.noreply.github.com> Date: Wed, 4 Aug 2021 15:44:35 -0400 Subject: [PATCH] Upgrade to zarr 0.4.0 --- package.json | 4 ++-- src/ZarrMultivecDataFetcher.js | 2 +- yarn.lock | 29 ++++++++++------------------- 3 files changed, 13 insertions(+), 22 deletions(-) diff --git a/package.json b/package.json index 2619d24..7fcc0d8 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "higlass-zarr-datafetchers", "public": true, - "version": "0.2.0", + "version": "0.2.1", "description": "Fetch HiGlass track data from Zarr stores", "repository": { "type": "git", @@ -12,7 +12,7 @@ "author": "Mark Keller", "license": "MIT", "dependencies": { - "zarr": "^0.3.0" + "zarr": "^0.4.0" }, "devDependencies": { "@babel/core": "^7.9.0", diff --git a/src/ZarrMultivecDataFetcher.js b/src/ZarrMultivecDataFetcher.js index 57cb666..03aae60 100644 --- a/src/ZarrMultivecDataFetcher.js +++ b/src/ZarrMultivecDataFetcher.js @@ -55,7 +55,7 @@ const ZarrMultivecDataFetcher = function ZarrMultivecDataFetcher(HGC, ...args) { if (dataConfig.url) { // console.assert(dataConfig.url.endsWith('.zarr')); // S3 bucket must have a CORS policy to allow reading from any origin. - this.store = new HTTPStore(dataConfig.url); + this.store = new HTTPStore(dataConfig.url, { supportedMethods: ['GET'] }); } if(dataConfig.row !== undefined) { diff --git a/yarn.lock b/yarn.lock index 3abf9fc..ee63ee4 100644 --- a/yarn.lock +++ b/yarn.lock @@ -6020,12 +6020,10 @@ number-is-nan@^1.0.0: resolved "https://registry.yarnpkg.com/number-is-nan/-/number-is-nan-1.0.1.tgz#097b602b53422a522c1afb8790318336941a011d" integrity sha1-CXtgK1NCKlIsGvuHkDGDNpQaAR0= -numcodecs@^0.1.0: - version "0.1.1" - resolved "https://registry.yarnpkg.com/numcodecs/-/numcodecs-0.1.1.tgz#036230e6d681ff7e838e9b292d3657ef576f12a0" - integrity sha512-UjKulZ6GIFKLdBIczEbsoXNZQmiHafpoIdo39YcdecHVGyMKh0+azsfHTrybXm5RZwepqLZv24mkjqGdZGm24Q== - dependencies: - pako "^1.0.11" +numcodecs@^0.2.0: + version "0.2.1" + resolved "https://registry.yarnpkg.com/numcodecs/-/numcodecs-0.2.1.tgz#3b07e180729e0b6eab078b43d4193864a7e963dd" + integrity sha512-0ktyCFBEno8mLuC/bTfJk8LjDy7GvQOa9Ern2zsAhM8sU5uiUGZPyXVzD7kEtx90fRPzohodg1fd82/xzAupLA== nwsapi@^2.2.0: version "2.2.0" @@ -6275,7 +6273,7 @@ p-try@^2.0.0: resolved "https://registry.yarnpkg.com/p-try/-/p-try-2.2.0.tgz#cb2868540e313d61de58fafbe35ce9004d5540e6" integrity sha512-R4nPAVTAU0B9D35/Gk3uJf/7XYbQcyohSKdvAxIRSNghFl4e71hVoGnBNQz9cWaXxO2I10KTC+3jMdvvoKw6dQ== -pako@^1.0.10, pako@^1.0.11: +pako@^1.0.10: version "1.0.11" resolved "https://registry.yarnpkg.com/pako/-/pako-1.0.11.tgz#6c9599d340d54dfd3946380252a35705a6b992bf" integrity sha512-4hLB8Py4zZce5s4yd9XzopqwVv/yGNhV1Bl8NTmCq1763HeK2+EwVTv+leGeL13Dnh2wfbqowVPXCIO0z4taYw== @@ -8385,11 +8383,6 @@ trough@^1.0.0: dependencies: glob "^7.1.2" -ts-interface-checker@^0.1.10: - version "0.1.13" - resolved "https://registry.yarnpkg.com/ts-interface-checker/-/ts-interface-checker-0.1.13.tgz#784fd3d679722bc103b1b4b8030bcddb5db2a699" - integrity sha512-Y/arvbn+rrz3JCKl9C4kVNfTfSm2/mEp5FSz5EsZSANGPSlQrpRI5M4PKF+mJnE52jOO90PnPSc3Ur3bTQw0gA== - tslib@^1.9.0: version "1.13.0" resolved "https://registry.yarnpkg.com/tslib/-/tslib-1.13.0.tgz#c881e13cc7015894ed914862d276436fa9a47043" @@ -9173,12 +9166,10 @@ yargs@~3.10.0: decamelize "^1.0.0" window-size "0.1.0" -zarr@^0.3.0: - version "0.3.0" - resolved "https://registry.yarnpkg.com/zarr/-/zarr-0.3.0.tgz#232fd35eea3a40009b74ce5a1460179144fb064a" - integrity sha512-LKT2PugbaySj3M7i/bYIIr1eN4mvBYSrveWuTQK+2ZRgDjqNzt8va0rNCIv3s9dXfJhIIKrvUyftPrJG3lj/Fg== +zarr@^0.4.0: + version "0.4.2" + resolved "https://registry.yarnpkg.com/zarr/-/zarr-0.4.2.tgz#4b505ff99c4bc3a3d0738e57f6f6abb2a2353670" + integrity sha512-zyC1DaVURXqSEP6O0R8XOYa83RZkCpEHLUFOCsYn1a5n1j6ojwzwoUgeMOtHuNfuJwUnb8dGK0g3gTGGs87QiQ== dependencies: - numcodecs "^0.1.0" + numcodecs "^0.2.0" p-queue "6.2.0" - pako "^1.0.11" - ts-interface-checker "^0.1.10"