@helia/interop 10.1.3 → 10.1.4-44910cef

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -5,8 +5,8 @@ import { expect } from 'aegir/chai';
5
5
  import drain from 'it-drain';
6
6
  import toBuffer from 'it-to-buffer';
7
7
  import { CID } from 'multiformats/cid';
8
- import { createHeliaNode } from './fixtures/create-helia.js';
9
- import { createKuboNode } from './fixtures/create-kubo.js';
8
+ import { createHeliaNode } from "./fixtures/create-helia.js";
9
+ import { createKuboNode } from "./fixtures/create-kubo.js";
10
10
  describe('@helia/car', () => {
11
11
  let helia;
12
12
  let c;
@@ -2,8 +2,8 @@ import { dagCbor } from '@helia/dag-cbor';
2
2
  import * as codec from '@ipld/dag-cbor';
3
3
  import { expect } from 'aegir/chai';
4
4
  import { CID } from 'multiformats/cid';
5
- import { createHeliaNode } from './fixtures/create-helia.js';
6
- import { createKuboNode } from './fixtures/create-kubo.js';
5
+ import { createHeliaNode } from "./fixtures/create-helia.js";
6
+ import { createKuboNode } from "./fixtures/create-kubo.js";
7
7
  describe('@helia/dag-cbor', () => {
8
8
  let helia;
9
9
  let d;
@@ -2,8 +2,8 @@ import { dagJson } from '@helia/dag-json';
2
2
  import { expect } from 'aegir/chai';
3
3
  import { CID } from 'multiformats/cid';
4
4
  import * as codec from 'multiformats/codecs/json';
5
- import { createHeliaNode } from './fixtures/create-helia.js';
6
- import { createKuboNode } from './fixtures/create-kubo.js';
5
+ import { createHeliaNode } from "./fixtures/create-helia.js";
6
+ import { createKuboNode } from "./fixtures/create-kubo.js";
7
7
  describe('@helia/dag-json', () => {
8
8
  let helia;
9
9
  let d;
@@ -1,6 +1,6 @@
1
1
  import { dnsLink } from '@helia/dnslink';
2
2
  import { expect } from 'aegir/chai';
3
- import { createHeliaNode } from './fixtures/create-helia.js';
3
+ import { createHeliaNode } from "./fixtures/create-helia.js";
4
4
  const TEST_DOMAINS = [
5
5
  'ipfs.tech',
6
6
  'docs.ipfs.tech',
@@ -4,8 +4,8 @@ import { multiaddr } from '@multiformats/multiaddr';
4
4
  import { expect } from 'aegir/chai';
5
5
  import toBuffer from 'it-to-buffer';
6
6
  import { CID } from 'multiformats/cid';
7
- import { createHeliaNode } from './fixtures/create-helia.js';
8
- import { createKuboNode } from './fixtures/create-kubo.js';
7
+ import { createHeliaNode } from "./fixtures/create-helia.js";
8
+ import { createKuboNode } from "./fixtures/create-kubo.js";
9
9
  describe('helia - blockstore sessions', () => {
10
10
  let helia;
11
11
  let kubo;
@@ -4,8 +4,8 @@ import toBuffer from 'it-to-buffer';
4
4
  import { CID } from 'multiformats/cid';
5
5
  import * as raw from 'multiformats/codecs/raw';
6
6
  import { sha256 } from 'multiformats/hashes/sha2';
7
- import { createHeliaNode } from './fixtures/create-helia.js';
8
- import { createKuboNode } from './fixtures/create-kubo.js';
7
+ import { createHeliaNode } from "./fixtures/create-helia.js";
8
+ import { createKuboNode } from "./fixtures/create-kubo.js";
9
9
  describe('helia - blockstore', () => {
10
10
  let helia;
11
11
  let kubo;
@@ -4,8 +4,8 @@ import toBuffer from 'it-to-buffer';
4
4
  import { CID } from 'multiformats/cid';
5
5
  import * as raw from 'multiformats/codecs/raw';
6
6
  import { identity } from 'multiformats/hashes/identity';
7
- import { createHeliaNode } from './fixtures/create-helia.js';
8
- import { createKuboNode } from './fixtures/create-kubo.js';
7
+ import { createHeliaNode } from "./fixtures/create-helia.js";
8
+ import { createKuboNode } from "./fixtures/create-kubo.js";
9
9
  describe('helia - hashes', () => {
10
10
  let helia;
11
11
  let kubo;
@@ -4,8 +4,8 @@ import drain from 'it-drain';
4
4
  import { CID } from 'multiformats/cid';
5
5
  import * as raw from 'multiformats/codecs/raw';
6
6
  import { sha256 } from 'multiformats/hashes/sha2';
7
- import { createHeliaNode } from './fixtures/create-helia.js';
8
- import { createKuboNode } from './fixtures/create-kubo.js';
7
+ import { createHeliaNode } from "./fixtures/create-helia.js";
8
+ import { createKuboNode } from "./fixtures/create-kubo.js";
9
9
  describe('helia - pins', () => {
10
10
  let helia;
11
11
  let kubo;
@@ -5,7 +5,7 @@ import { peerIdFromCID } from '@libp2p/peer-id';
5
5
  import { expect } from 'aegir/chai';
6
6
  import { CID } from 'multiformats/cid';
7
7
  import { isNode } from 'wherearewe';
8
- import { createKuboNode } from './fixtures/create-kubo.js';
8
+ import { createKuboNode } from "./fixtures/create-kubo.js";
9
9
  describe('@helia/ipns - http', () => {
10
10
  let helia;
11
11
  let kubo;
@@ -15,11 +15,11 @@ import { sha256 } from 'multiformats/hashes/sha2';
15
15
  import { concat as uint8ArrayConcat } from 'uint8arrays/concat';
16
16
  import { fromString as uint8ArrayFromString } from 'uint8arrays/from-string';
17
17
  import { toString as uint8ArrayToString } from 'uint8arrays/to-string';
18
- import { connect } from './fixtures/connect.js';
19
- import { createHeliaNode } from './fixtures/create-helia.js';
20
- import { createKuboNode } from './fixtures/create-kubo.js';
21
- import { keyTypes } from './fixtures/key-types.js';
22
- import { waitFor } from './fixtures/wait-for.js';
18
+ import { connect } from "./fixtures/connect.js";
19
+ import { createHeliaNode } from "./fixtures/create-helia.js";
20
+ import { createKuboNode } from "./fixtures/create-kubo.js";
21
+ import { keyTypes } from "./fixtures/key-types.js";
22
+ import { waitFor } from "./fixtures/wait-for.js";
23
23
  // skip RSA tests because we need the DHT enabled to find the public key
24
24
  // component of the keypair, but that means we can't test pubsub
25
25
  // resolution because Kubo will use the DHT as well
@@ -8,12 +8,12 @@ import { CID } from 'multiformats/cid';
8
8
  import * as raw from 'multiformats/codecs/raw';
9
9
  import { sha256 } from 'multiformats/hashes/sha2';
10
10
  import { isElectronMain } from 'wherearewe';
11
- import { connect } from './fixtures/connect.js';
12
- import { createHeliaNode } from './fixtures/create-helia.js';
13
- import { createKuboNode } from './fixtures/create-kubo.js';
14
- import { sortClosestPeers } from './fixtures/create-peer-ids.js';
15
- import { keyTypes } from './fixtures/key-types.js';
16
- import { waitFor } from './fixtures/wait-for.js';
11
+ import { connect } from "./fixtures/connect.js";
12
+ import { createHeliaNode } from "./fixtures/create-helia.js";
13
+ import { createKuboNode } from "./fixtures/create-kubo.js";
14
+ import { sortClosestPeers } from "./fixtures/create-peer-ids.js";
15
+ import { keyTypes } from "./fixtures/key-types.js";
16
+ import { waitFor } from "./fixtures/wait-for.js";
17
17
  keyTypes.forEach(type => {
18
18
  describe(`@helia/ipns - default routing with ${type} keys`, () => {
19
19
  let helia;
@@ -2,8 +2,8 @@ import { json } from '@helia/json';
2
2
  import { expect } from 'aegir/chai';
3
3
  import { CID } from 'multiformats/cid';
4
4
  import * as jsonCodec from 'multiformats/codecs/json';
5
- import { createHeliaNode } from './fixtures/create-helia.js';
6
- import { createKuboNode } from './fixtures/create-kubo.js';
5
+ import { createHeliaNode } from "./fixtures/create-helia.js";
6
+ import { createKuboNode } from "./fixtures/create-kubo.js";
7
7
  describe('@helia/json', () => {
8
8
  let helia;
9
9
  let j;
@@ -1,7 +1,7 @@
1
1
  import { mfs } from '@helia/mfs';
2
2
  import { expect } from 'aegir/chai';
3
- import { createHeliaNode } from './fixtures/create-helia.js';
4
- import { createKuboNode } from './fixtures/create-kubo.js';
3
+ import { createHeliaNode } from "./fixtures/create-helia.js";
4
+ import { createKuboNode } from "./fixtures/create-kubo.js";
5
5
  describe('@helia/mfs', () => {
6
6
  let helia;
7
7
  let fs;
@@ -51,10 +51,7 @@ describe('@helia/mfs', () => {
51
51
  it('should have the same CID after creating a file', async () => {
52
52
  const filePath = '/foo.txt';
53
53
  const fileData = Uint8Array.from([0, 1, 2, 3, 4]);
54
- await fs.writeBytes(fileData, filePath, {
55
- rawLeaves: true,
56
- reduceSingleLeafToSelf: false
57
- });
54
+ await fs.writeBytes(fileData, filePath);
58
55
  await kubo.api.files.write(filePath, fileData, {
59
56
  cidVersion: 1,
60
57
  create: true
@@ -66,10 +63,7 @@ describe('@helia/mfs', () => {
66
63
  it('should have the same CID after removing a file', async () => {
67
64
  const filePath = '/foo.txt';
68
65
  const fileData = Uint8Array.from([0, 1, 2, 3, 4]);
69
- await fs.writeBytes(fileData, filePath, {
70
- rawLeaves: true,
71
- reduceSingleLeafToSelf: false
72
- });
66
+ await fs.writeBytes(fileData, filePath);
73
67
  await fs.rm(filePath);
74
68
  await kubo.api.files.write(filePath, fileData, {
75
69
  cidVersion: 1,
@@ -1 +1 @@
1
- {"version":3,"file":"mfs.spec.js","sourceRoot":"","sources":["../../src/mfs.spec.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,YAAY,CAAA;AAChC,OAAO,EAAE,MAAM,EAAE,MAAM,YAAY,CAAA;AACnC,OAAO,EAAE,eAAe,EAAE,MAAM,4BAA4B,CAAA;AAC5D,OAAO,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAA;AAK1D,QAAQ,CAAC,YAAY,EAAE,GAAG,EAAE;IAC1B,IAAI,KAAY,CAAA;IAChB,IAAI,EAAO,CAAA;IACX,IAAI,IAAc,CAAA;IAElB,UAAU,CAAC,KAAK,IAAI,EAAE;QACpB,KAAK,GAAG,MAAM,eAAe,EAAE,CAAA;QAC/B,EAAE,GAAG,GAAG,CAAC,KAAK,CAAC,CAAA;QACf,IAAI,GAAG,MAAM,cAAc,EAAE,CAAA;IAC/B,CAAC,CAAC,CAAA;IAEF,SAAS,CAAC,KAAK,IAAI,EAAE;QACnB,IAAI,KAAK,IAAI,IAAI,EAAE,CAAC;YAClB,MAAM,KAAK,CAAC,IAAI,EAAE,CAAA;QACpB,CAAC;QAED,IAAI,IAAI,IAAI,IAAI,EAAE,CAAC;YACjB,MAAM,IAAI,CAAC,IAAI,EAAE,CAAA;QACnB,CAAC;IACH,CAAC,CAAC,CAAA;IAEF,EAAE,CAAC,oCAAoC,EAAE,KAAK,IAAI,EAAE;QAClD,MAAM,SAAS,GAAG,MAAM,EAAE,CAAC,IAAI,CAAC,GAAG,CAAC,CAAA;QACpC,MAAM,QAAQ,GAAG,MAAM,IAAI,CAAC,GAAG,CAAC,KAAK,CAAC,IAAI,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,MAAM,IAAI,CAAC,GAAG,CAAC,KAAK,CAAC,KAAK,CAAC,QAAQ,EAAE,QAAQ,EAAE;YAC7C,UAAU,EAAE,CAAC;YACb,MAAM,EAAE,IAAI;SACb,CAAC,CAAA;QACF,MAAM,IAAI,CAAC,GAAG,CAAC,KAAK,CAAC,EAAE,CAAC,QAAQ,CAAC,CAAA;QAEjC,MAAM,SAAS,GAAG,MAAM,EAAE,CAAC,IAAI,CAAC,GAAG,CAAC,CAAA;QACpC,MAAM,QAAQ,GAAG,MAAM,IAAI,CAAC,GAAG,CAAC,KAAK,CAAC,IAAI,CAAC,GAAG,CAAC,CAAA;QAE/C,MAAM,CAAC,SAAS,CAAC,GAAG,CAAC,IAAI,EAAE,CAAC,QAAQ,EAAE,CAAC,CAAC,EAAE,CAAC,KAAK,CAAC,QAAQ,CAAC,GAAG,CAAC,IAAI,EAAE,CAAC,QAAQ,EAAE,CAAC,CAAA;IAClF,CAAC,CAAC,CAAA;AACJ,CAAC,CAAC,CAAA"}
@@ -11,8 +11,8 @@ import drain from 'it-drain';
11
11
  import toBuffer from 'it-to-buffer';
12
12
  import { multiaddr } from 'kubo-rpc-client';
13
13
  import { CID } from 'multiformats/cid';
14
- import { createHeliaNode } from './fixtures/create-helia.js';
15
- import { createKuboNode } from './fixtures/create-kubo.js';
14
+ import { createHeliaNode } from "./fixtures/create-helia.js";
15
+ import { createKuboNode } from "./fixtures/create-kubo.js";
16
16
  describe('providers', () => {
17
17
  let helia;
18
18
  let kubo;
@@ -3,8 +3,8 @@ import { expect } from 'aegir/chai';
3
3
  import { CID } from 'multiformats/cid';
4
4
  import { fromString as uint8ArrayFromString } from 'uint8arrays/from-string';
5
5
  import { toString as uint8ArrayToString } from 'uint8arrays/to-string';
6
- import { createHeliaNode } from './fixtures/create-helia.js';
7
- import { createKuboNode } from './fixtures/create-kubo.js';
6
+ import { createHeliaNode } from "./fixtures/create-helia.js";
7
+ import { createKuboNode } from "./fixtures/create-kubo.js";
8
8
  describe('@helia/strings', () => {
9
9
  let helia;
10
10
  let str;
@@ -2,8 +2,8 @@ import { unixfs } from '@helia/unixfs';
2
2
  import { expect } from 'aegir/chai';
3
3
  import toBuffer from 'it-to-buffer';
4
4
  import { CID } from 'multiformats/cid';
5
- import { createHeliaNode } from './fixtures/create-helia.js';
6
- import { createKuboNode } from './fixtures/create-kubo.js';
5
+ import { createHeliaNode } from "./fixtures/create-helia.js";
6
+ import { createKuboNode } from "./fixtures/create-kubo.js";
7
7
  describe('@helia/unixfs - bitswap', () => {
8
8
  let helia;
9
9
  let unixFs;
@@ -9,8 +9,8 @@ import last from 'it-last';
9
9
  import toBuffer from 'it-to-buffer';
10
10
  import { CID } from 'multiformats/cid';
11
11
  import { fromString as uint8ArrayFromString } from 'uint8arrays/from-string';
12
- import { createHeliaNode } from './fixtures/create-helia.js';
13
- import { createKuboNode } from './fixtures/create-kubo.js';
12
+ import { createHeliaNode } from "./fixtures/create-helia.js";
13
+ import { createKuboNode } from "./fixtures/create-kubo.js";
14
14
  describe('@helia/unixfs - files', () => {
15
15
  let helia;
16
16
  let unixFs;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@helia/interop",
3
- "version": "10.1.3",
3
+ "version": "10.1.4-44910cef",
4
4
  "description": "Interop tests for Helia",
5
5
  "license": "Apache-2.0 OR MIT",
6
6
  "homepage": "https://github.com/ipfs/helia/tree/main/packages/interop#readme",
@@ -51,19 +51,19 @@
51
51
  "test:electron-main": "aegir test -t electron-main"
52
52
  },
53
53
  "dependencies": {
54
- "@helia/block-brokers": "^5.1.3",
55
- "@helia/dnslink": "^1.1.4",
56
- "@helia/car": "^5.3.9",
57
- "@helia/dag-cbor": "^5.0.7",
58
- "@helia/dag-json": "^5.0.7",
59
- "@helia/http": "^3.0.21",
60
- "@helia/interface": "^6.1.1",
61
- "@helia/ipns": "^9.1.9",
62
- "@helia/json": "^5.0.7",
63
- "@helia/mfs": "^7.0.4",
64
- "@helia/routers": "^5.0.3",
65
- "@helia/strings": "^5.0.7",
66
- "@helia/unixfs": "^7.0.4",
54
+ "@helia/block-brokers": "5.1.4-44910cef",
55
+ "@helia/dnslink": "1.1.4-44910cef",
56
+ "@helia/car": "5.3.10-44910cef",
57
+ "@helia/dag-cbor": "5.0.7-44910cef",
58
+ "@helia/dag-json": "5.0.7-44910cef",
59
+ "@helia/http": "3.0.22-44910cef",
60
+ "@helia/interface": "6.1.1-44910cef",
61
+ "@helia/ipns": "9.1.9-44910cef",
62
+ "@helia/json": "5.0.7-44910cef",
63
+ "@helia/mfs": "7.0.5-44910cef",
64
+ "@helia/routers": "5.0.3-44910cef",
65
+ "@helia/strings": "5.0.7-44910cef",
66
+ "@helia/unixfs": "7.1.0-44910cef",
67
67
  "@ipld/car": "^5.4.2",
68
68
  "@ipld/dag-cbor": "^9.2.5",
69
69
  "@ipld/dag-pb": "^4.1.5",
@@ -78,7 +78,7 @@
78
78
  "@multiformats/multiaddr": "^13.0.1",
79
79
  "@multiformats/sha3": "^3.0.2",
80
80
  "aegir": "^47.0.22",
81
- "helia": "^6.0.21",
81
+ "helia": "6.0.22-44910cef",
82
82
  "ipfs-unixfs-importer": "^16.0.1",
83
83
  "ipfsd-ctl": "^16.0.0",
84
84
  "ipns": "^10.1.2",
@@ -87,7 +87,7 @@
87
87
  "it-last": "^3.0.9",
88
88
  "it-map": "^3.1.4",
89
89
  "it-to-buffer": "^4.0.10",
90
- "kubo": "^0.39.0",
90
+ "kubo": "^0.40.1",
91
91
  "kubo-rpc-client": "^6.0.2",
92
92
  "libp2p": "^3.0.6",
93
93
  "multiformats": "^13.4.1",
package/src/car.spec.ts CHANGED
@@ -5,8 +5,8 @@ import { expect } from 'aegir/chai'
5
5
  import drain from 'it-drain'
6
6
  import toBuffer from 'it-to-buffer'
7
7
  import { CID } from 'multiformats/cid'
8
- import { createHeliaNode } from './fixtures/create-helia.js'
9
- import { createKuboNode } from './fixtures/create-kubo.js'
8
+ import { createHeliaNode } from './fixtures/create-helia.ts'
9
+ import { createKuboNode } from './fixtures/create-kubo.ts'
10
10
  import type { Car } from '@helia/car'
11
11
  import type { UnixFS } from '@helia/unixfs'
12
12
  import type { Helia } from 'helia'
@@ -2,8 +2,8 @@ import { dagCbor } from '@helia/dag-cbor'
2
2
  import * as codec from '@ipld/dag-cbor'
3
3
  import { expect } from 'aegir/chai'
4
4
  import { CID } from 'multiformats/cid'
5
- import { createHeliaNode } from './fixtures/create-helia.js'
6
- import { createKuboNode } from './fixtures/create-kubo.js'
5
+ import { createHeliaNode } from './fixtures/create-helia.ts'
6
+ import { createKuboNode } from './fixtures/create-kubo.ts'
7
7
  import type { DAGCBOR, AddOptions } from '@helia/dag-cbor'
8
8
  import type { Helia } from 'helia'
9
9
  import type { KuboNode } from 'ipfsd-ctl'
@@ -2,8 +2,8 @@ import { dagJson } from '@helia/dag-json'
2
2
  import { expect } from 'aegir/chai'
3
3
  import { CID } from 'multiformats/cid'
4
4
  import * as codec from 'multiformats/codecs/json'
5
- import { createHeliaNode } from './fixtures/create-helia.js'
6
- import { createKuboNode } from './fixtures/create-kubo.js'
5
+ import { createHeliaNode } from './fixtures/create-helia.ts'
6
+ import { createKuboNode } from './fixtures/create-kubo.ts'
7
7
  import type { DAGJSON, AddOptions } from '@helia/dag-json'
8
8
  import type { Helia } from 'helia'
9
9
  import type { KuboNode } from 'ipfsd-ctl'
@@ -1,6 +1,6 @@
1
1
  import { dnsLink } from '@helia/dnslink'
2
2
  import { expect } from 'aegir/chai'
3
- import { createHeliaNode } from './fixtures/create-helia.js'
3
+ import { createHeliaNode } from './fixtures/create-helia.ts'
4
4
  import type { DNSLink } from '@helia/dnslink'
5
5
  import type { DefaultLibp2pServices, Helia } from 'helia'
6
6
  import type { Libp2p } from 'libp2p'
@@ -4,8 +4,8 @@ import { multiaddr } from '@multiformats/multiaddr'
4
4
  import { expect } from 'aegir/chai'
5
5
  import toBuffer from 'it-to-buffer'
6
6
  import { CID } from 'multiformats/cid'
7
- import { createHeliaNode } from './fixtures/create-helia.js'
8
- import { createKuboNode } from './fixtures/create-kubo.js'
7
+ import { createHeliaNode } from './fixtures/create-helia.ts'
8
+ import { createKuboNode } from './fixtures/create-kubo.ts'
9
9
  import type { BitswapProvider } from '@helia/block-brokers'
10
10
  import type { Helia } from 'helia'
11
11
  import type { KuboInfo, KuboNode } from 'ipfsd-ctl'
@@ -4,8 +4,8 @@ import toBuffer from 'it-to-buffer'
4
4
  import { CID } from 'multiformats/cid'
5
5
  import * as raw from 'multiformats/codecs/raw'
6
6
  import { sha256 } from 'multiformats/hashes/sha2'
7
- import { createHeliaNode } from './fixtures/create-helia.js'
8
- import { createKuboNode } from './fixtures/create-kubo.js'
7
+ import { createHeliaNode } from './fixtures/create-helia.ts'
8
+ import { createKuboNode } from './fixtures/create-kubo.ts'
9
9
  import type { Helia } from 'helia'
10
10
  import type { KuboInfo, KuboNode } from 'ipfsd-ctl'
11
11
 
@@ -4,8 +4,8 @@ import toBuffer from 'it-to-buffer'
4
4
  import { CID } from 'multiformats/cid'
5
5
  import * as raw from 'multiformats/codecs/raw'
6
6
  import { identity } from 'multiformats/hashes/identity'
7
- import { createHeliaNode } from './fixtures/create-helia.js'
8
- import { createKuboNode } from './fixtures/create-kubo.js'
7
+ import { createHeliaNode } from './fixtures/create-helia.ts'
8
+ import { createKuboNode } from './fixtures/create-kubo.ts'
9
9
  import type { Helia } from 'helia'
10
10
  import type { KuboNode } from 'ipfsd-ctl'
11
11
 
@@ -4,8 +4,8 @@ import drain from 'it-drain'
4
4
  import { CID } from 'multiformats/cid'
5
5
  import * as raw from 'multiformats/codecs/raw'
6
6
  import { sha256 } from 'multiformats/hashes/sha2'
7
- import { createHeliaNode } from './fixtures/create-helia.js'
8
- import { createKuboNode } from './fixtures/create-kubo.js'
7
+ import { createHeliaNode } from './fixtures/create-helia.ts'
8
+ import { createKuboNode } from './fixtures/create-kubo.ts'
9
9
  import type { Helia } from 'helia'
10
10
  import type { KuboNode } from 'ipfsd-ctl'
11
11
 
@@ -5,7 +5,7 @@ import { peerIdFromCID } from '@libp2p/peer-id'
5
5
  import { expect } from 'aegir/chai'
6
6
  import { CID } from 'multiformats/cid'
7
7
  import { isNode } from 'wherearewe'
8
- import { createKuboNode } from './fixtures/create-kubo.js'
8
+ import { createKuboNode } from './fixtures/create-kubo.ts'
9
9
  import type { Helia } from '@helia/interface'
10
10
  import type { IPNS } from '@helia/ipns'
11
11
  import type { KuboNode } from 'ipfsd-ctl'
@@ -16,11 +16,11 @@ import { sha256 } from 'multiformats/hashes/sha2'
16
16
  import { concat as uint8ArrayConcat } from 'uint8arrays/concat'
17
17
  import { fromString as uint8ArrayFromString } from 'uint8arrays/from-string'
18
18
  import { toString as uint8ArrayToString } from 'uint8arrays/to-string'
19
- import { connect } from './fixtures/connect.js'
20
- import { createHeliaNode } from './fixtures/create-helia.js'
21
- import { createKuboNode } from './fixtures/create-kubo.js'
22
- import { keyTypes } from './fixtures/key-types.js'
23
- import { waitFor } from './fixtures/wait-for.js'
19
+ import { connect } from './fixtures/connect.ts'
20
+ import { createHeliaNode } from './fixtures/create-helia.ts'
21
+ import { createKuboNode } from './fixtures/create-kubo.ts'
22
+ import { keyTypes } from './fixtures/key-types.ts'
23
+ import { waitFor } from './fixtures/wait-for.ts'
24
24
  import type { IPNS, ResolveResult } from '@helia/ipns'
25
25
  import type { PubSub } from '@helia/ipns/routing'
26
26
  import type { Libp2p } from '@libp2p/interface'
package/src/ipns.spec.ts CHANGED
@@ -8,12 +8,12 @@ import { CID } from 'multiformats/cid'
8
8
  import * as raw from 'multiformats/codecs/raw'
9
9
  import { sha256 } from 'multiformats/hashes/sha2'
10
10
  import { isElectronMain } from 'wherearewe'
11
- import { connect } from './fixtures/connect.js'
12
- import { createHeliaNode } from './fixtures/create-helia.js'
13
- import { createKuboNode } from './fixtures/create-kubo.js'
14
- import { sortClosestPeers } from './fixtures/create-peer-ids.js'
15
- import { keyTypes } from './fixtures/key-types.js'
16
- import { waitFor } from './fixtures/wait-for.js'
11
+ import { connect } from './fixtures/connect.ts'
12
+ import { createHeliaNode } from './fixtures/create-helia.ts'
13
+ import { createKuboNode } from './fixtures/create-kubo.ts'
14
+ import { sortClosestPeers } from './fixtures/create-peer-ids.ts'
15
+ import { keyTypes } from './fixtures/key-types.ts'
16
+ import { waitFor } from './fixtures/wait-for.ts'
17
17
  import type { IPNS } from '@helia/ipns'
18
18
  import type { Libp2p, PrivateKey } from '@libp2p/interface'
19
19
  import type { DefaultLibp2pServices, Helia } from 'helia'
package/src/json.spec.ts CHANGED
@@ -2,8 +2,8 @@ import { json } from '@helia/json'
2
2
  import { expect } from 'aegir/chai'
3
3
  import { CID } from 'multiformats/cid'
4
4
  import * as jsonCodec from 'multiformats/codecs/json'
5
- import { createHeliaNode } from './fixtures/create-helia.js'
6
- import { createKuboNode } from './fixtures/create-kubo.js'
5
+ import { createHeliaNode } from './fixtures/create-helia.ts'
6
+ import { createKuboNode } from './fixtures/create-kubo.ts'
7
7
  import type { JSON, AddOptions } from '@helia/json'
8
8
  import type { Helia } from 'helia'
9
9
  import type { KuboNode } from 'ipfsd-ctl'
package/src/mfs.spec.ts CHANGED
@@ -1,7 +1,7 @@
1
1
  import { mfs } from '@helia/mfs'
2
2
  import { expect } from 'aegir/chai'
3
- import { createHeliaNode } from './fixtures/create-helia.js'
4
- import { createKuboNode } from './fixtures/create-kubo.js'
3
+ import { createHeliaNode } from './fixtures/create-helia.ts'
4
+ import { createKuboNode } from './fixtures/create-kubo.ts'
5
5
  import type { MFS } from '@helia/mfs'
6
6
  import type { Helia } from 'helia'
7
7
  import type { KuboNode } from 'ipfsd-ctl'
@@ -67,10 +67,7 @@ describe('@helia/mfs', () => {
67
67
  it('should have the same CID after creating a file', async () => {
68
68
  const filePath = '/foo.txt'
69
69
  const fileData = Uint8Array.from([0, 1, 2, 3, 4])
70
- await fs.writeBytes(fileData, filePath, {
71
- rawLeaves: true,
72
- reduceSingleLeafToSelf: false
73
- })
70
+ await fs.writeBytes(fileData, filePath)
74
71
  await kubo.api.files.write(filePath, fileData, {
75
72
  cidVersion: 1,
76
73
  create: true
@@ -85,10 +82,7 @@ describe('@helia/mfs', () => {
85
82
  it('should have the same CID after removing a file', async () => {
86
83
  const filePath = '/foo.txt'
87
84
  const fileData = Uint8Array.from([0, 1, 2, 3, 4])
88
- await fs.writeBytes(fileData, filePath, {
89
- rawLeaves: true,
90
- reduceSingleLeafToSelf: false
91
- })
85
+ await fs.writeBytes(fileData, filePath)
92
86
  await fs.rm(filePath)
93
87
  await kubo.api.files.write(filePath, fileData, {
94
88
  cidVersion: 1,
@@ -11,8 +11,8 @@ import drain from 'it-drain'
11
11
  import toBuffer from 'it-to-buffer'
12
12
  import { multiaddr } from 'kubo-rpc-client'
13
13
  import { CID } from 'multiformats/cid'
14
- import { createHeliaNode } from './fixtures/create-helia.js'
15
- import { createKuboNode } from './fixtures/create-kubo.js'
14
+ import { createHeliaNode } from './fixtures/create-helia.ts'
15
+ import { createKuboNode } from './fixtures/create-kubo.ts'
16
16
  import type { PeerId } from '@libp2p/interface'
17
17
  import type { Helia } from 'helia'
18
18
  import type { FileCandidate } from 'ipfs-unixfs-importer'
@@ -3,8 +3,8 @@ import { expect } from 'aegir/chai'
3
3
  import { CID } from 'multiformats/cid'
4
4
  import { fromString as uint8ArrayFromString } from 'uint8arrays/from-string'
5
5
  import { toString as uint8ArrayToString } from 'uint8arrays/to-string'
6
- import { createHeliaNode } from './fixtures/create-helia.js'
7
- import { createKuboNode } from './fixtures/create-kubo.js'
6
+ import { createHeliaNode } from './fixtures/create-helia.ts'
7
+ import { createKuboNode } from './fixtures/create-kubo.ts'
8
8
  import type { Strings, AddOptions } from '@helia/strings'
9
9
  import type { Helia } from 'helia'
10
10
  import type { KuboNode } from 'ipfsd-ctl'
@@ -2,8 +2,8 @@ import { unixfs } from '@helia/unixfs'
2
2
  import { expect } from 'aegir/chai'
3
3
  import toBuffer from 'it-to-buffer'
4
4
  import { CID } from 'multiformats/cid'
5
- import { createHeliaNode } from './fixtures/create-helia.js'
6
- import { createKuboNode } from './fixtures/create-kubo.js'
5
+ import { createHeliaNode } from './fixtures/create-helia.ts'
6
+ import { createKuboNode } from './fixtures/create-kubo.ts'
7
7
  import type { UnixFS } from '@helia/unixfs'
8
8
  import type { Helia } from 'helia'
9
9
  import type { ByteStream, FileCandidate } from 'ipfs-unixfs-importer'
@@ -9,8 +9,8 @@ import last from 'it-last'
9
9
  import toBuffer from 'it-to-buffer'
10
10
  import { CID } from 'multiformats/cid'
11
11
  import { fromString as uint8ArrayFromString } from 'uint8arrays/from-string'
12
- import { createHeliaNode } from './fixtures/create-helia.js'
13
- import { createKuboNode } from './fixtures/create-kubo.js'
12
+ import { createHeliaNode } from './fixtures/create-helia.ts'
13
+ import { createKuboNode } from './fixtures/create-kubo.ts'
14
14
  import type { AddOptions, UnixFS } from '@helia/unixfs'
15
15
  import type { Helia } from 'helia'
16
16
  import type { ByteStream, ImportCandidateStream } from 'ipfs-unixfs-importer'