@helia/interface 1.2.1 → 1.2.2-26f3723

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.
@@ -15,8 +15,7 @@
15
15
  */
16
16
  import type { Blocks } from './blocks.js';
17
17
  import type { Pins } from './pins.js';
18
- import type { Libp2p } from '@libp2p/interface-libp2p';
19
- import type { AbortOptions } from '@libp2p/interfaces';
18
+ import type { Libp2p, AbortOptions } from '@libp2p/interface';
20
19
  import type { Datastore } from 'interface-datastore';
21
20
  import type { CID } from 'multiformats/cid';
22
21
  import type { ProgressEvent, ProgressOptions } from 'progress-events';
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,aAAa,CAAA;AACzC,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,WAAW,CAAA;AACrC,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,0BAA0B,CAAA;AACtD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAA;AACtD,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,qBAAqB,CAAA;AACpD,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,kBAAkB,CAAA;AAC3C,OAAO,KAAK,EAAE,aAAa,EAAE,eAAe,EAAE,MAAM,iBAAiB,CAAA;AAErE,YAAY,EAAE,KAAK,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAA;AAE3D;;GAEG;AACH,MAAM,WAAW,KAAK,CAAC,CAAC,GAAG,MAAM;IAC/B;;OAEG;IACH,MAAM,EAAE,CAAC,CAAA;IAET;;OAEG;IACH,UAAU,EAAE,MAAM,CAAA;IAElB;;OAEG;IACH,SAAS,EAAE,SAAS,CAAA;IAEpB;;OAEG;IACH,IAAI,EAAE,IAAI,CAAA;IAEV;;OAEG;IACH,KAAK,EAAE,MA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IACH,IAAI,EAAE,MAAM,OAAO,CAAC,IAAI,CAAC,CAAA;IAEzB;;OAEG;IACH,EAAE,EAAE,CAAC,OAAO,CAAC,EAAE,SAAS,KAAK,OAAO,CAAC,IAAI,CAAC,CAAA;CAC3C;AAED,MAAM,MAAM,QAAQ,GAClB,aAAa,CAAC,kBAAkB,EAAE,GAAG,CAAC,GACtC,aAAa,CAAC,gBAAgB,EAAE,KAAK,CAAC,CAAA;AAExC,MAAM,WAAW,SAAU,SAAQ,YAAY,EAAE,eAAe,CAAC,QAAQ,CAAC;CAEzE"}
@@ -1,5 +1,5 @@
1
1
  import type { GetBlockProgressEvents } from './blocks';
2
- import type { AbortOptions } from '@libp2p/interfaces';
2
+ import type { AbortOptions } from '@libp2p/interface';
3
3
  import type { CID } from 'multiformats/cid';
4
4
  import type { ProgressEvent, ProgressOptions } from 'progress-events';
5
5
  export type PinType = 'recursive' | 'direct' | 'indirect';
@@ -1 +1 @@
1
- {"version":3,"file":"pins.d.ts","sourceRoot":"","sources":["../../src/pins.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,UAAU,CAAA;AACtD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAA;AACtD,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,kBAAkB,CAAA;AAC3C,OAAO,KAAK,EAAE,aAAa,EAAE,eAAe,EAAE,MAAM,iBAAiB,CAAA;AAErE,MAAM,MAAM,OAAO,GAAG,WAAW,GAAG,QAAQ,GAAG,UAAU,CAAA;AAEzD,MAAM,WAAW,GAAG;IAClB,GAAG,EAAE,GAAG,CAAA;IACR,KAAK,EAAE,MAAM,CAAA;IACb,QAAQ,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAA;CAC9B;AAED,MAAM,MAAM,YAAY,GACtB,aAAa,CAAC,eAAe,EAAE,GAAG,CAAC,CAAA;AAErC,MAAM,WAAW,UAAW,SAAQ,YAAY,EAAE,eA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- "version": "1.2.1",
3
+ "version": "1.2.2-26f3723",
4
4
  "description": "The Helia API",
5
5
  "license": "Apache-2.0 OR MIT",
6
6
  "homepage": "https://github.com/ipfs/helia/tree/master/packages/interface#readme",
@@ -14,10 +14,6 @@
14
14
  "keywords": [
15
15
  "IPFS"
16
16
  ],
17
- "engines": {
18
- "node": ">=16.0.0",
19
- "npm": ">=7.0.0"
20
- },
21
17
  "type": "module",
22
18
  "types": "./dist/src/index.d.ts",
23
19
  "typesVersions": {
@@ -62,112 +58,22 @@
62
58
  "sourceType": "module"
63
59
  }
64
60
  },
65
- "release": {
66
- "branches": [
67
- "main"
68
- ],
69
- "plugins": [
70
- [
71
- "@semantic-release/commit-analyzer",
72
- {
73
- "preset": "conventionalcommits",
74
- "releaseRules": [
75
- {
76
- "breaking": true,
77
- "release": "major"
78
- },
79
- {
80
- "revert": true,
81
- "release": "patch"
82
- },
83
- {
84
- "type": "feat",
85
- "release": "minor"
86
- },
87
- {
88
- "type": "fix",
89
- "release": "patch"
90
- },
91
- {
92
- "type": "docs",
93
- "release": "patch"
94
- },
95
- {
96
- "type": "test",
97
- "release": "patch"
98
- },
99
- {
100
- "type": "deps",
101
- "release": "patch"
102
- },
103
- {
104
- "scope": "no-release",
105
- "release": false
106
- }
107
- ]
108
- }
109
- ],
110
- [
111
- "@semantic-release/release-notes-generator",
112
- {
113
- "preset": "conventionalcommits",
114
- "presetConfig": {
115
- "types": [
116
- {
117
- "type": "feat",
118
- "section": "Features"
119
- },
120
- {
121
- "type": "fix",
122
- "section": "Bug Fixes"
123
- },
124
- {
125
- "type": "chore",
126
- "section": "Trivial Changes"
127
- },
128
- {
129
- "type": "docs",
130
- "section": "Documentation"
131
- },
132
- {
133
- "type": "deps",
134
- "section": "Dependencies"
135
- },
136
- {
137
- "type": "test",
138
- "section": "Tests"
139
- }
140
- ]
141
- }
142
- }
143
- ],
144
- "@semantic-release/changelog",
145
- "@semantic-release/npm",
146
- "@semantic-release/github",
147
- "@semantic-release/git"
148
- ]
149
- },
150
61
  "scripts": {
151
62
  "clean": "aegir clean",
152
63
  "lint": "aegir lint",
153
64
  "dep-check": "aegir dep-check",
154
- "build": "aegir build",
155
- "release": "aegir release"
65
+ "build": "aegir build"
156
66
  },
157
67
  "dependencies": {
158
- "@libp2p/interface-libp2p": "^3.2.0",
159
- "@libp2p/interfaces": "^3.3.2",
68
+ "@libp2p/interface": "^0.1.1",
160
69
  "interface-blockstore": "^5.0.0",
161
70
  "interface-datastore": "^8.0.0",
162
71
  "interface-store": "^5.0.1",
163
- "ipfs-bitswap": "^18.0.0",
164
- "multiformats": "^11.0.1",
72
+ "ipfs-bitswap": "^19.0.0",
73
+ "multiformats": "^12.0.1",
165
74
  "progress-events": "^1.0.0"
166
75
  },
167
76
  "devDependencies": {
168
- "aegir": "^39.0.4"
169
- },
170
- "typedoc": {
171
- "entryPoint": "./src/index.ts"
77
+ "aegir": "^40.0.8"
172
78
  }
173
79
  }
package/src/index.ts CHANGED
@@ -16,8 +16,7 @@
16
16
 
17
17
  import type { Blocks } from './blocks.js'
18
18
  import type { Pins } from './pins.js'
19
- import type { Libp2p } from '@libp2p/interface-libp2p'
20
- import type { AbortOptions } from '@libp2p/interfaces'
19
+ import type { Libp2p, AbortOptions } from '@libp2p/interface'
21
20
  import type { Datastore } from 'interface-datastore'
22
21
  import type { CID } from 'multiformats/cid'
23
22
  import type { ProgressEvent, ProgressOptions } from 'progress-events'
package/src/pins.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  import type { GetBlockProgressEvents } from './blocks'
2
- import type { AbortOptions } from '@libp2p/interfaces'
2
+ import type { AbortOptions } from '@libp2p/interface'
3
3
  import type { CID } from 'multiformats/cid'
4
4
  import type { ProgressEvent, ProgressOptions } from 'progress-events'
5
5
 
@@ -1,22 +0,0 @@
1
- {
2
- "AddOptions": "https://ipfs.github.io/helia/interfaces/_helia_interface._internal_.AddOptions.html",
3
- "Blocks": "https://ipfs.github.io/helia/interfaces/_helia_interface._internal_.Blocks.html",
4
- "GetOfflineOptions": "https://ipfs.github.io/helia/interfaces/_helia_interface._internal_.GetOfflineOptions.html",
5
- "IsPinnedOptions": "https://ipfs.github.io/helia/interfaces/_helia_interface._internal_.IsPinnedOptions.html",
6
- "LsOptions": "https://ipfs.github.io/helia/interfaces/_helia_interface._internal_.LsOptions.html",
7
- "Pin": "https://ipfs.github.io/helia/interfaces/_helia_interface._internal_.Pin.html",
8
- "Pins": "https://ipfs.github.io/helia/interfaces/_helia_interface._internal_.Pins.html",
9
- "RmOptions": "https://ipfs.github.io/helia/interfaces/_helia_interface._internal_.RmOptions.html",
10
- "AddPinEvents": "https://ipfs.github.io/helia/types/_helia_interface._internal_.AddPinEvents.html",
11
- "DeleteBlockProgressEvents": "https://ipfs.github.io/helia/types/_helia_interface._internal_.DeleteBlockProgressEvents.html",
12
- "DeleteManyBlocksProgressEvents": "https://ipfs.github.io/helia/types/_helia_interface._internal_.DeleteManyBlocksProgressEvents.html",
13
- "GetAllBlocksProgressEvents": "https://ipfs.github.io/helia/types/_helia_interface._internal_.GetAllBlocksProgressEvents.html",
14
- "GetBlockProgressEvents": "https://ipfs.github.io/helia/types/_helia_interface._internal_.GetBlockProgressEvents.html",
15
- "GetManyBlocksProgressEvents": "https://ipfs.github.io/helia/types/_helia_interface._internal_.GetManyBlocksProgressEvents.html",
16
- "HasBlockProgressEvents": "https://ipfs.github.io/helia/types/_helia_interface._internal_.HasBlockProgressEvents.html",
17
- "PutBlockProgressEvents": "https://ipfs.github.io/helia/types/_helia_interface._internal_.PutBlockProgressEvents.html",
18
- "PutManyBlocksProgressEvents": "https://ipfs.github.io/helia/types/_helia_interface._internal_.PutManyBlocksProgressEvents.html",
19
- "GCOptions": "https://ipfs.github.io/helia/interfaces/_helia_interface.GCOptions.html",
20
- "Helia": "https://ipfs.github.io/helia/interfaces/_helia_interface.Helia.html",
21
- "GcEvents": "https://ipfs.github.io/helia/types/_helia_interface.GcEvents.html"
22
- }