From 858df95890d226f19b89e5cd509e13a9fa1c7bb4 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Thu, 8 Feb 2024 14:45:22 +0100 Subject: [PATCH] chore(deps): bump helia from 3.0.1 to 4.0.1 (#283) * chore(deps): bump helia from 3.0.1 to 4.0.1 Bumps [helia](https://github.com/ipfs/helia) from 3.0.1 to 4.0.1. - [Release notes](https://github.com/ipfs/helia/releases) - [Changelog](https://github.com/ipfs/helia/blob/main/CHANGELOG.md) - [Commits](https://github.com/ipfs/helia/compare/helia-v3.0.1...helia-v4.0.1) --- updated-dependencies: - dependency-name: helia dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] * chore(deps): bump @helia/interface from 3.0.1 to 4.0.0 (#273) Bumps [@helia/interface](https://github.com/ipfs/helia) from 3.0.1 to 4.0.0. - [Release notes](https://github.com/ipfs/helia/releases) - [Changelog](https://github.com/ipfs/helia/blob/main/CHANGELOG.md) - [Commits](https://github.com/ipfs/helia/compare/helia-v3.0.1...ipns-v4.0.0) --- updated-dependencies: - dependency-name: "@helia/interface" dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Alex Potsides * chore(deps): bump @helia/car from 2.0.1 to 3.0.0 (#276) Bumps [@helia/car](https://github.com/ipfs/helia) from 2.0.1 to 3.0.0. - [Release notes](https://github.com/ipfs/helia/releases) - [Changelog](https://github.com/ipfs/helia/blob/main/CHANGELOG.md) - [Commits](https://github.com/ipfs/helia/compare/car-v2.0.1...car-v3.0.0) --- updated-dependencies: - dependency-name: "@helia/car" dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * chore(deps): bump @helia/unixfs from 2.0.1 to 3.0.0 (#274) Bumps [@helia/unixfs](https://github.com/ipfs/helia) from 2.0.1 to 3.0.0. - [Release notes](https://github.com/ipfs/helia/releases) - [Changelog](https://github.com/ipfs/helia/blob/main/CHANGELOG.md) - [Commits](https://github.com/ipfs/helia/compare/car-v2.0.1...car-v3.0.0) --- updated-dependencies: - dependency-name: "@helia/unixfs" dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Alex Potsides * chore(deps): bump @helia/dag-cbor from 2.0.1 to 3.0.0 (#279) Bumps [@helia/dag-cbor](https://github.com/ipfs/helia) from 2.0.1 to 3.0.0. - [Release notes](https://github.com/ipfs/helia/releases) - [Changelog](https://github.com/ipfs/helia/blob/main/CHANGELOG.md) - [Commits](https://github.com/ipfs/helia/compare/car-v2.0.1...car-v3.0.0) --- updated-dependencies: - dependency-name: "@helia/dag-cbor" dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Alex Potsides * chore: use HeliaLibp2p where appropriate --------- Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Alex Potsides --- package.json | 3 +-- src/index.ts | 4 ++-- test/index.spec.ts | 4 ++-- 3 files changed, 5 insertions(+), 6 deletions(-) diff --git a/package.json b/package.json index 5d70878..b89f1c3 100644 --- a/package.json +++ b/package.json @@ -8,8 +8,7 @@ "test": "NODE_OPTIONS=--experimental-vm-modules jest" }, "dependencies": { - "@helia/interface": "^3.0.1", - "helia": "^3.0.1" + "helia": "^4.0.1" }, "devDependencies": { "@types/jest": "^29.5.2", diff --git a/src/index.ts b/src/index.ts index ad238cf..fe9d097 100644 --- a/src/index.ts +++ b/src/index.ts @@ -1,7 +1,7 @@ import { createHelia } from 'helia' -import type { Helia } from '@helia/interface' +import type { HeliaLibp2p } from 'helia' -export async function createHeliaNode (): Promise { +export async function createHeliaNode (): Promise { const node = await createHelia() return node diff --git a/test/index.spec.ts b/test/index.spec.ts index ac0411f..b43cf34 100644 --- a/test/index.spec.ts +++ b/test/index.spec.ts @@ -1,10 +1,10 @@ /* eslint-env jest */ import { createHeliaNode } from '../src/index.js' -import type { Helia } from '@helia/interface' +import type { HeliaLibp2p } from 'helia' describe('Helia', () => { - let helia: Helia + let helia: HeliaLibp2p beforeEach(async () => { helia = await createHeliaNode()