Skip to content

Commit

Permalink
fix: Move NetworkedStorage over to block-brokers package
Browse files Browse the repository at this point in the history
  • Loading branch information
meandavejustice committed Dec 8, 2023
1 parent 0929517 commit e18e820
Show file tree
Hide file tree
Showing 5 changed files with 3 additions and 458 deletions.
2 changes: 1 addition & 1 deletion packages/block-brokers/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ $ npm i @helia/block-brokers

<!-- ### Browser `<script>` tag
Loading this module through a script tag will make it's exports available as `bitswap` and `trustlessGateway` in the global namespace.
Loading this module through a script tag will make it's exports available as `bitswap` and `trustlessGateway` and `NetworkedStorage` in the global namespace.
```html
<script src="https://unpkg.com/@helia/block-brokers/dist/index.min.js"></script>
Expand Down
1 change: 1 addition & 0 deletions packages/block-brokers/src/index.ts
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
export { bitswap } from './bitswap.js'
export { trustlessGateway } from './trustless-gateway/index.js'
export { NetworkedStorage } from './utils/networked-storage.js'
3 changes: 1 addition & 2 deletions packages/helia/src/helia.ts
Original file line number Diff line number Diff line change
@@ -1,12 +1,11 @@
import { bitswap, trustlessGateway } from '@helia/block-brokers'
import { bitswap, trustlessGateway, NetworkedStorage } from '@helia/block-brokers'
import { start, stop } from '@libp2p/interface'
import drain from 'it-drain'
import { CustomProgressEvent } from 'progress-events'
import { PinsImpl } from './pins.js'
import { BlockStorage } from './storage.js'
import { assertDatastoreVersionIsCurrent } from './utils/datastore-version.js'
import { defaultHashers } from './utils/default-hashers.js'
import { NetworkedStorage } from './utils/networked-storage.js'
import type { HeliaInit } from '.'
import type { GCOptions, Helia } from '@helia/interface'
import type { Pins } from '@helia/interface/pins'
Expand Down
266 changes: 0 additions & 266 deletions packages/helia/src/utils/networked-storage.ts

This file was deleted.

Loading

0 comments on commit e18e820

Please sign in to comment.