diff --git a/packages/blockstore-level/README.md b/packages/blockstore-level/README.md index 2c7b37fd..40362d1e 100644 --- a/packages/blockstore-level/README.md +++ b/packages/blockstore-level/README.md @@ -1,5 +1,9 @@ # blockstore-level +## ⚠️ Deprecation Warning + +**This package is deprecated. Instead, use `blockstore-fs` in node.js, and `blockstore-idb` in browsers.** + [![ipfs.tech](https://img.shields.io/badge/project-IPFS-blue.svg?style=flat-square)](https://ipfs.tech) [![Discuss](https://img.shields.io/discourse/https/discuss.ipfs.tech/posts.svg?style=flat-square)](https://discuss.ipfs.tech) [![codecov](https://img.shields.io/codecov/c/github/ipfs/js-stores.svg?style=flat-square)](https://codecov.io/gh/ipfs/js-stores) @@ -24,9 +28,9 @@ repo and examine the changes made. --> -A Blockstore implementation that uses a flavour of [Level](https://leveljs.org/) as a backend. +⚠️ This package is deprecated. Instead, use `blockstore-fs` in node.js, and `blockstore-idb` in browsers. -N.b. this is here largely for the sake of completeness, in node you should probably use FSDatastore, in browsers you should probably use IDBDatastore. +A Blockstore implementation that uses a flavour of [Level](https://leveljs.org/) as a backend. ## Example diff --git a/packages/blockstore-level/src/index.ts b/packages/blockstore-level/src/index.ts index 67deeeb2..b06f1226 100644 --- a/packages/blockstore-level/src/index.ts +++ b/packages/blockstore-level/src/index.ts @@ -1,9 +1,9 @@ /** * @packageDocumentation * - * A Blockstore implementation that uses a flavour of [Level](https://leveljs.org/) as a backend. + * ⚠️ This package is deprecated. Instead, use `blockstore-fs` in node.js, and `blockstore-idb` in browsers. * - * N.b. this is here largely for the sake of completeness, in node you should probably use FSDatastore, in browsers you should probably use IDBDatastore. + * A Blockstore implementation that uses a flavour of [Level](https://leveljs.org/) as a backend. * * @example * diff --git a/packages/datastore-fs/README.md b/packages/datastore-fs/README.md index 30a6c67a..d970de89 100644 --- a/packages/datastore-fs/README.md +++ b/packages/datastore-fs/README.md @@ -1,5 +1,9 @@ # datastore-fs +## ⚠️ Deprecation Warning + +**This package is deprecated. Instead, use `datastore-level` in node.js, and `datastore-idb` in browsers.** + [![ipfs.tech](https://img.shields.io/badge/project-IPFS-blue.svg?style=flat-square)](https://ipfs.tech) [![Discuss](https://img.shields.io/discourse/https/discuss.ipfs.tech/posts.svg?style=flat-square)](https://discuss.ipfs.tech) [![codecov](https://img.shields.io/codecov/c/github/ipfs/js-stores.svg?style=flat-square)](https://codecov.io/gh/ipfs/js-stores) @@ -24,6 +28,8 @@ repo and examine the changes made. --> +⚠️ This package is deprecated. Instead, use `datastore-level` in node.js, and `datastore-idb` in browsers. + A Datastore implementation with a file system backend. ## Example diff --git a/packages/datastore-fs/src/index.ts b/packages/datastore-fs/src/index.ts index f24181b9..be12cd60 100644 --- a/packages/datastore-fs/src/index.ts +++ b/packages/datastore-fs/src/index.ts @@ -1,6 +1,8 @@ /** * @packageDocumentation * + * ⚠️ This package is deprecated. Instead, use `datastore-level` in node.js, and `datastore-idb` in browsers. + * * A Datastore implementation with a file system backend. * * @example diff --git a/packages/datastore-s3/src/index.ts b/packages/datastore-s3/src/index.ts index b43875b5..8a158730 100644 --- a/packages/datastore-s3/src/index.ts +++ b/packages/datastore-s3/src/index.ts @@ -158,7 +158,6 @@ export class S3Datastore extends BaseDatastore { return new Uint8Array(buf, 0, buf.byteLength) } - // @ts-expect-error s3 types define their own Blob as an empty interface return await toBuffer(data.Body) } catch (err: any) { if (err.statusCode === 404) {