Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix!: trustless gateway brokers no longer take a gateways arg (#530)
The trustless gateway block broker should be used with a http gateway router which will supply a default set of gateways in a way usable by other consumers of the Helia routing. This was mistakenly released in `@helia/block-brokers@2.1.2` which has been reverted, this PR will cause `@helia/block-brokers@3.0.0` to be released. Before: ```js import { createHelia } from 'helia' import { trustlessGateway } from '@helia/block-brokers' import { delegatedHTTPRouting } from '@helia/routers' await createHelia({ blockBrokers: [ trustlessGateway({ gateways: [ 'http://example.com' ] }) ], routers: [ delegatedHTTPRouting('https://delegated-ipfs.dev') ], //... other settings }) ``` After: ```js import { createHelia } from 'helia' import { trustlessGateway } from '@helia/block-brokers' import { delegatedHTTPRouting, httpGatewayRouting } from '@helia/routers' await createHelia({ blockBrokers: [ trustlessGateway() ], routers: [ delegatedHTTPRouting('https://delegated-ipfs.dev'), httpGatewayRouting({ gateways: [ 'http://example.com' ] }) ], //... other settings }) ``` BREAKING CHANGE: the gateways init option has been removed from trustless gateway block brokers
- Loading branch information