@libp2p/webtransport 2.0.1 → 2.0.2-05abd49f

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.
@@ -1,5 +1,5 @@
1
- import { type Transport } from '@libp2p/interface-transport';
2
- import type { PeerId } from '@libp2p/interface-peer-id';
1
+ import { type Transport } from '@libp2p/interface/transport';
2
+ import type { PeerId } from '@libp2p/interface/peer-id';
3
3
  declare global {
4
4
  var WebTransport: any;
5
5
  }
package/dist/src/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import { noise } from '@chainsafe/libp2p-noise';
2
- import { symbol } from '@libp2p/interface-transport';
2
+ import { symbol } from '@libp2p/interface/transport';
3
3
  import { logger } from '@libp2p/logger';
4
4
  import { peerIdFromString } from '@libp2p/peer-id';
5
5
  import { protocols } from '@multiformats/multiaddr';
package/package.json CHANGED
@@ -1,23 +1,19 @@
1
1
  {
2
2
  "name": "@libp2p/webtransport",
3
- "version": "2.0.1",
3
+ "version": "2.0.2-05abd49f",
4
4
  "description": "JavaScript implementation of the WebTransport module that libp2p uses and that implements the interface-transport spec",
5
5
  "license": "Apache-2.0 OR MIT",
6
- "homepage": "https://github.com/libp2p/js-libp2p-webtransport#readme",
6
+ "homepage": "https://github.com/libp2p/js-libp2p/tree/master/packages/transport-webtransport#readme",
7
7
  "repository": {
8
8
  "type": "git",
9
- "url": "git+https://github.com/libp2p/js-libp2p-webtransport.git"
9
+ "url": "git+https://github.com/libp2p/js-libp2p.git"
10
10
  },
11
11
  "bugs": {
12
- "url": "https://github.com/libp2p/js-libp2p-webtransport/issues"
12
+ "url": "https://github.com/libp2p/js-libp2p/issues"
13
13
  },
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": {
@@ -58,91 +54,6 @@
58
54
  "sourceType": "module"
59
55
  }
60
56
  },
61
- "release": {
62
- "branches": [
63
- "main"
64
- ],
65
- "plugins": [
66
- [
67
- "@semantic-release/commit-analyzer",
68
- {
69
- "preset": "conventionalcommits",
70
- "releaseRules": [
71
- {
72
- "breaking": true,
73
- "release": "major"
74
- },
75
- {
76
- "revert": true,
77
- "release": "patch"
78
- },
79
- {
80
- "type": "feat",
81
- "release": "minor"
82
- },
83
- {
84
- "type": "fix",
85
- "release": "patch"
86
- },
87
- {
88
- "type": "docs",
89
- "release": "patch"
90
- },
91
- {
92
- "type": "test",
93
- "release": "patch"
94
- },
95
- {
96
- "type": "deps",
97
- "release": "patch"
98
- },
99
- {
100
- "scope": "no-release",
101
- "release": false
102
- }
103
- ]
104
- }
105
- ],
106
- [
107
- "@semantic-release/release-notes-generator",
108
- {
109
- "preset": "conventionalcommits",
110
- "presetConfig": {
111
- "types": [
112
- {
113
- "type": "feat",
114
- "section": "Features"
115
- },
116
- {
117
- "type": "fix",
118
- "section": "Bug Fixes"
119
- },
120
- {
121
- "type": "chore",
122
- "section": "Trivial Changes"
123
- },
124
- {
125
- "type": "docs",
126
- "section": "Documentation"
127
- },
128
- {
129
- "type": "deps",
130
- "section": "Dependencies"
131
- },
132
- {
133
- "type": "test",
134
- "section": "Tests"
135
- }
136
- ]
137
- }
138
- }
139
- ],
140
- "@semantic-release/changelog",
141
- "@semantic-release/npm",
142
- "@semantic-release/github",
143
- "@semantic-release/git"
144
- ]
145
- },
146
57
  "scripts": {
147
58
  "clean": "aegir clean",
148
59
  "lint": "aegir lint",
@@ -150,29 +61,27 @@
150
61
  "build": "aegir build",
151
62
  "test": "aegir test -t browser -t webworker",
152
63
  "test:chrome": "aegir test -t browser --cov",
153
- "test:chrome-webworker": "aegir test -t webworker",
154
- "release": "aegir release",
155
- "docs": "aegir docs"
64
+ "test:chrome-webworker": "aegir test -t webworker"
156
65
  },
157
66
  "dependencies": {
158
- "@chainsafe/libp2p-noise": "^11.0.0",
159
- "@libp2p/interface-connection": "^5.0.0",
160
- "@libp2p/interface-peer-id": "^2.0.0",
161
- "@libp2p/interface-stream-muxer": "^4.0.0",
162
- "@libp2p/interface-transport": "^4.0.1",
163
- "@libp2p/logger": "^2.0.2",
164
- "@libp2p/peer-id": "^2.0.0",
165
- "@multiformats/multiaddr": "^12.1.0",
67
+ "@chainsafe/libp2p-noise": "^12.0.1",
68
+ "@libp2p/interface": "0.0.1-05abd49f",
69
+ "@libp2p/logger": "2.1.1-05abd49f",
70
+ "@libp2p/peer-id": "2.0.3-05abd49f",
71
+ "@multiformats/multiaddr": "^12.1.3",
166
72
  "it-stream-types": "^2.0.1",
167
- "multiformats": "^11.0.0",
168
- "uint8arraylist": "^2.3.3"
73
+ "multiformats": "^12.0.1",
74
+ "uint8arraylist": "^2.4.3"
169
75
  },
170
76
  "devDependencies": {
171
- "aegir": "^39.0.3",
172
- "libp2p": "^0.44.0",
77
+ "aegir": "^39.0.10",
78
+ "libp2p": "0.45.9-05abd49f",
173
79
  "p-defer": "^4.0.0"
174
80
  },
175
81
  "browser": {
176
82
  "./dist/src/listener.js": "./dist/src/listener.browser.js"
83
+ },
84
+ "typedoc": {
85
+ "entryPoint": "./src/index.ts"
177
86
  }
178
87
  }
package/src/index.ts CHANGED
@@ -1,13 +1,13 @@
1
1
  import { noise } from '@chainsafe/libp2p-noise'
2
- import { type Transport, symbol, type CreateListenerOptions, type DialOptions, type Listener } from '@libp2p/interface-transport'
2
+ import { type Transport, symbol, type CreateListenerOptions, type DialOptions, type Listener } from '@libp2p/interface/transport'
3
3
  import { logger } from '@libp2p/logger'
4
4
  import { peerIdFromString } from '@libp2p/peer-id'
5
5
  import { type Multiaddr, protocols } from '@multiformats/multiaddr'
6
6
  import { bases, digest } from 'multiformats/basics'
7
7
  import { Uint8ArrayList } from 'uint8arraylist'
8
- import type { Connection, Direction, MultiaddrConnection, Stream } from '@libp2p/interface-connection'
9
- import type { PeerId } from '@libp2p/interface-peer-id'
10
- import type { StreamMuxerFactory, StreamMuxerInit, StreamMuxer } from '@libp2p/interface-stream-muxer'
8
+ import type { Connection, Direction, MultiaddrConnection, Stream } from '@libp2p/interface/connection'
9
+ import type { PeerId } from '@libp2p/interface/peer-id'
10
+ import type { StreamMuxerFactory, StreamMuxerInit, StreamMuxer } from '@libp2p/interface/stream-muxer'
11
11
  import type { Duplex, Source } from 'it-stream-types'
12
12
  import type { MultihashDigest } from 'multiformats/hashes/interface'
13
13
 
@@ -1,6 +0,0 @@
1
- {
2
- "WebTransportComponents": "https://libp2p.github.io/js-libp2p-webtransport/interfaces/WebTransportComponents.html",
3
- "WebTransportInit": "https://libp2p.github.io/js-libp2p-webtransport/interfaces/WebTransportInit.html",
4
- "isSubset": "https://libp2p.github.io/js-libp2p-webtransport/functions/isSubset.html",
5
- "webTransport": "https://libp2p.github.io/js-libp2p-webtransport/functions/webTransport.html"
6
- }