Skip to content

Commit

Permalink
feat: use @helia/verified-fetch (#63)
Browse files Browse the repository at this point in the history
* feat: use @helia/verified-fetch

* chore: use local tarball so CI runs properly

* feat: re-enable custom libp2p

* chore: update fastify

* chore: some minor changes

* fix: fastify/cors patch version

* chore: package-lock cleared out

* fix: lint issues

* deps: use @helia/verified-fetch@next

* feat: content-type-parser for verified-fetch & dep-check fixes

* deps: update *-level deps

* deps: update libp2p deps

* deps: fix pino-pretty missing error from fastify

* fix: dns-link label decoding

* chore: remove verified-fetch tarball

* chore: cleanup console logging and eslint disabling comments

* deps: helia&libp2p deps

* deps: use full semver strings for deps. remove @types/mime-types

* chore: remove unnecessary casting

* feat: use latest @helia/verified-fetch

* chore: set discoverRelays to 0

* chore: address PR comments and cleanup

* chore: fix build

* chore: disable drand.love from e2e tests
  • Loading branch information
SgtPooki authored Mar 11, 2024
1 parent 2cc649f commit 55530cf
Show file tree
Hide file tree
Showing 17 changed files with 26,878 additions and 19,759 deletions.
17 changes: 17 additions & 0 deletions .aegir.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
/** @type {import('aegir').PartialOptions} */
export default {
dependencyCheck: {
ignore: [
'dotenv',
'typescript',
'wait-on',
'pino-pretty' // implicit dependency for fastify logging
],
productionIgnorePatterns: [
'.aegir.js',
'playwright.config.ts',
'scripts/**',
'e2e-tests/**'
]
}
}
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@ $ docker run -it -p 8080:8080 -e DEBUG="helia-http-gateway*" helia-http-gateway:
| `TRUSTLESS_GATEWAYS` | Comma separated list of trusted gateways to fetch content from | [Defined in Helia](https://github.com/ipfs/helia/blob/main/packages/helia/src/block-brokers/trustless-gateway/index.ts) |
| `USE_LIBP2P` | Whether to use libp2p networking | `true` |
| `ECHO_HEADERS` | A debug flag to indicate whether you want to output request and response headers | `false` |
| `USE_DELEGATED_ROUTING` | Whether to use the delegated routing v1 API | `true` |
| `DELEGATED_ROUTING_V1_HOST` | Hostname to use for delegated routing v1 | `https://delegated-ipfs.dev` |

<!--
Expand Down
2 changes: 1 addition & 1 deletion e2e-tests/smoketest.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ const pages = [
'consensuslab.world',
'docs.ipfs.tech',
'docs.libp2p.io',
'drand.love',
// 'drand.love', // no dnsaddr or dnslink TXT record, only "x-ipfs-path" header (supported only by ipfs-companion and brave)
// 'fil.org', // timing out
// 'filecoin.io', // timing out
// 'green.filecoin.io', // timing out
Expand Down
Loading

0 comments on commit 55530cf

Please sign in to comment.