@libp2p/peer-record 5.0.4 → 6.0.0-8d49602f

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,6 +1,6 @@
1
1
  import { Uint8ArrayList } from 'uint8arraylist';
2
- import type { PeerId } from '@libp2p/interface-peer-id';
3
- import type { Record, Envelope } from '@libp2p/interface-record';
2
+ import type { PeerId } from '@libp2p/interface/peer-id';
3
+ import type { Record, Envelope } from '@libp2p/interface/record';
4
4
  export interface RecordEnvelopeInit {
5
5
  peerId: PeerId;
6
6
  payloadType: Uint8Array;
@@ -1,5 +1,5 @@
1
1
  import { unmarshalPrivateKey, unmarshalPublicKey } from '@libp2p/crypto/keys';
2
- import { CodeError } from '@libp2p/interfaces/errors';
2
+ import { CodeError } from '@libp2p/interface/errors';
3
3
  import { peerIdFromKeys } from '@libp2p/peer-id';
4
4
  import { unsigned } from 'uint8-varint';
5
5
  import { Uint8ArrayList } from 'uint8arraylist';
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/envelope/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,kBAAkB,EAAE,MAAM,qBAAqB,CAAA;AAC7E,OAAO,EAAE,SAAS,EAAE,MAAM,2BAA2B,CAAA;AACrD,OAAO,EAAE,cAAc,EAAE,MAAM,iBAAiB,CAAA;AAChD,OAAO,EAAE,QAAQ,EAAE,MAAM,cAAc,CAAA;AACvC,OAAO,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAA;AAC/C,OAAO,EAAE,MAAM,IAAI,gBAAgB,EAAE,MAAM,oBAAoB,CAAA;AAC/D,OAAO,EAAE,UAAU,IAAI,qBAAqB,EAAE,MAAM,yBAAyB,CAAA;AAC7E,OAAO,EAAE,KAAK,EAAE,MAAM,cAAc,CAAA;AACpC,OAAO,EAAE,QAAQ,IAAI,QAAQ,EAAE,MAAM,eAAe,CAAA;AAWpD,MAAM,OAAO,cA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wC;IACxC,6CAA6C;IAC7C,mCAAmC;IAEnC,MAAM,gBAAgB,GAAG,qBAAqB,CAAC,MAAM,CAAC,CAAA;IACtD,MAAM,YAAY,GAAG,QAAQ,CAAC,MAAM,CAAC,gBAAgB,CAAC,UAAU,CAAC,CAAA;IACjE,MAAM,iBAAiB,GAAG,QAAQ,CAAC,MAAM,CAAC,WAAW,CAAC,MAAM,CAAC,CAAA;IAC7D,MAAM,aAAa,GAAG,QAAQ,CAAC,MAAM,CAAC,OAAO,CAAC,MAAM,CAAC,CAAA;IAErD,OAAO,IAAI,cAAc,CACvB,YAAY,EACZ,gBAAgB,EAChB,iBAAiB,EACjB,WAAW,EACX,aAAa,EACb,OAAO,CACR,CAAA;AACH,CAAC,CAAA"}
@@ -1 +1 @@
1
- {"version":3,"file":"errors.d.ts","sourceRoot":"","sources":["../../src/errors.ts"],"names":[],"mappings":"AACA,eAAO,MAAM,KAAK;;CAEjB,CAAA"}
1
+ {"version":3,"file":"errors.d.ts","sourceRoot":"","sources":["../../src/errors.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,KAAK;;CAEjB,CAAA"}
@@ -1 +1 @@
1
- {"version":3,"file":"errors.js","sourceRoot":"","sources":["../../src/errors.ts"],"names":[],"mappings":"AACA,MAAM,CAAC,MAAM,KAAK,GAAG;IACnB,uBAAuB,EAAE,yBAAyB;CACnD,CAAA"}
1
+ {"version":3,"file":"errors.js","sourceRoot":"","sources":["../../src/errors.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,KAAK,GAAG;IACnB,uBAAuB,EAAE,yBAAyB;CACnD,CAAA"}
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAA;AACpD,YAAY,EAAE,kBAAkB,EAAE,MAAM,qBAAqB,CAAA;AAC7D,OAAO,EAAE,UAAU,EAAE,MAAM,wBAAwB,CAAA;AACnD,YAAY,EAAE,cAAc,EAAE,MAAM,wBAAwB,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAA;AACpD,YAAY,EAAE,kBAAkB,EAAE,MAAM,qBAAqB,CAAA;AAC7D,OAAO,EAAE,UAAU,EAAE,MAAM,wBAAwB,CAAA;AACnD,YAAY,EAAE,cAAc,EAAE,MAAM,wBAAwB,CAAA"}
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAA;AAEpD,OAAO,EAAE,UAAU,EAAE,MAAM,wBAAwB,CAAA"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAA;AAEpD,OAAO,EAAE,UAAU,EAAE,MAAM,wBAAwB,CAAA"}
@@ -1 +1 @@
1
- {"version":3,"file":"consts.d.ts","sourceRoot":"","sources":["../../../src/peer-record/consts.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,2BAA2B,uBAAuB,CAAA;AAK/D,eAAO,MAAM,iCAAiC,YAA0B,CAAA"}
1
+ {"version":3,"file":"consts.d.ts","sourceRoot":"","sources":["../../../src/peer-record/consts.ts"],"names":[],"mappings":"AACA,eAAO,MAAM,2BAA2B,uBAAuB,CAAA;AAK/D,eAAO,MAAM,iCAAiC,YAA0B,CAAA"}
@@ -1 +1 @@
1
- {"version":3,"file":"consts.js","sourceRoot":"","sources":["../../../src/peer-record/consts.ts"],"names":[],"mappings":"AACA,mEAAmE;AACnE,MAAM,CAAC,MAAM,2BAA2B,GAAG,oBAAoB,CAAA;AAE/D,6DAA6D;AAC7D,8EAA8E;AAC9E,iCAAiC;AACjC,MAAM,CAAC,MAAM,iCAAiC,GAAG,UAAU,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,CAAA"}
1
+ {"version":3,"file":"consts.js","sourceRoot":"","sources":["../../../src/peer-record/consts.ts"],"names":[],"mappings":"AAAA,mEAAmE;AACnE,MAAM,CAAC,MAAM,2BAA2B,GAAG,oBAAoB,CAAA;AAE/D,6DAA6D;AAC7D,8EAA8E;AAC9E,iCAAiC;AACjC,MAAM,CAAC,MAAM,iCAAiC,GAAG,UAAU,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,CAAA"}
@@ -1,4 +1,4 @@
1
- import type { PeerId } from '@libp2p/interface-peer-id';
1
+ import type { PeerId } from '@libp2p/interface/peer-id';
2
2
  import type { Multiaddr } from '@multiformats/multiaddr';
3
3
  import type { Uint8ArrayList } from 'uint8arraylist';
4
4
  export interface PeerRecordInit {
package/package.json CHANGED
@@ -1,23 +1,19 @@
1
1
  {
2
2
  "name": "@libp2p/peer-record",
3
- "version": "5.0.4",
3
+ "version": "6.0.0-8d49602f",
4
4
  "description": "Used to transfer signed peer data across the network",
5
5
  "license": "Apache-2.0 OR MIT",
6
- "homepage": "https://github.com/libp2p/js-libp2p-peer-record#readme",
6
+ "homepage": "https://github.com/libp2p/js-libp2p/tree/master/packages/peer-record#readme",
7
7
  "repository": {
8
8
  "type": "git",
9
- "url": "git+https://github.com/libp2p/js-libp2p-peer-record.git"
9
+ "url": "git+https://github.com/libp2p/js-libp2p.git"
10
10
  },
11
11
  "bugs": {
12
- "url": "https://github.com/libp2p/js-libp2p-peer-record/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
  "files": [
@@ -44,95 +40,10 @@
44
40
  "src/peer-record/peer-record.js"
45
41
  ]
46
42
  },
47
- "release": {
48
- "branches": [
49
- "master"
50
- ],
51
- "plugins": [
52
- [
53
- "@semantic-release/commit-analyzer",
54
- {
55
- "preset": "conventionalcommits",
56
- "releaseRules": [
57
- {
58
- "breaking": true,
59
- "release": "major"
60
- },
61
- {
62
- "revert": true,
63
- "release": "patch"
64
- },
65
- {
66
- "type": "feat",
67
- "release": "minor"
68
- },
69
- {
70
- "type": "fix",
71
- "release": "patch"
72
- },
73
- {
74
- "type": "docs",
75
- "release": "patch"
76
- },
77
- {
78
- "type": "test",
79
- "release": "patch"
80
- },
81
- {
82
- "type": "deps",
83
- "release": "patch"
84
- },
85
- {
86
- "scope": "no-release",
87
- "release": false
88
- }
89
- ]
90
- }
91
- ],
92
- [
93
- "@semantic-release/release-notes-generator",
94
- {
95
- "preset": "conventionalcommits",
96
- "presetConfig": {
97
- "types": [
98
- {
99
- "type": "feat",
100
- "section": "Features"
101
- },
102
- {
103
- "type": "fix",
104
- "section": "Bug Fixes"
105
- },
106
- {
107
- "type": "chore",
108
- "section": "Trivial Changes"
109
- },
110
- {
111
- "type": "docs",
112
- "section": "Documentation"
113
- },
114
- {
115
- "type": "deps",
116
- "section": "Dependencies"
117
- },
118
- {
119
- "type": "test",
120
- "section": "Tests"
121
- }
122
- ]
123
- }
124
- }
125
- ],
126
- "@semantic-release/changelog",
127
- "@semantic-release/npm",
128
- "@semantic-release/github",
129
- "@semantic-release/git"
130
- ]
131
- },
132
43
  "scripts": {
133
44
  "clean": "aegir clean",
134
45
  "lint": "aegir lint",
135
- "dep-check": "aegir dep-check -i protons",
46
+ "dep-check": "aegir dep-check",
136
47
  "generate": "protons src/envelope/envelope.proto src/peer-record/peer-record.proto",
137
48
  "build": "aegir build",
138
49
  "test": "aegir test",
@@ -141,28 +52,23 @@
141
52
  "test:firefox": "aegir test -t browser -- --browser firefox",
142
53
  "test:firefox-webworker": "aegir test -t webworker -- --browser firefox",
143
54
  "test:node": "aegir test -t node --cov",
144
- "test:electron-main": "aegir test -t electron-main",
145
- "release": "aegir release",
146
- "docs": "aegir docs"
55
+ "test:electron-main": "aegir test -t electron-main"
147
56
  },
148
57
  "dependencies": {
149
- "@libp2p/crypto": "^1.0.11",
150
- "@libp2p/interface-peer-id": "^2.0.0",
151
- "@libp2p/interface-record": "^2.0.1",
152
- "@libp2p/interfaces": "^3.2.0",
153
- "@libp2p/peer-id": "^2.0.0",
154
- "@libp2p/utils": "^3.0.0",
155
- "@multiformats/multiaddr": "^12.0.0",
58
+ "@libp2p/crypto": "2.0.0-8d49602f",
59
+ "@libp2p/interface": "0.1.0-8d49602f",
60
+ "@libp2p/peer-id": "3.0.0-8d49602f",
61
+ "@libp2p/utils": "4.0.0-8d49602f",
62
+ "@multiformats/multiaddr": "^12.1.3",
156
63
  "protons-runtime": "^5.0.0",
157
64
  "uint8-varint": "^1.0.2",
158
- "uint8arraylist": "^2.1.0",
159
- "uint8arrays": "^4.0.2"
65
+ "uint8arraylist": "^2.4.3",
66
+ "uint8arrays": "^4.0.4"
160
67
  },
161
68
  "devDependencies": {
162
- "@libp2p/interface-record-compliance-tests": "^2.0.0",
163
- "@libp2p/peer-id-factory": "^2.0.0",
69
+ "@libp2p/peer-id-factory": "3.0.0-8d49602f",
164
70
  "@types/varint": "^6.0.0",
165
- "aegir": "^39.0.10",
71
+ "aegir": "^40.0.1",
166
72
  "protons": "^7.0.2"
167
73
  }
168
74
  }
@@ -1,5 +1,5 @@
1
1
  import { unmarshalPrivateKey, unmarshalPublicKey } from '@libp2p/crypto/keys'
2
- import { CodeError } from '@libp2p/interfaces/errors'
2
+ import { CodeError } from '@libp2p/interface/errors'
3
3
  import { peerIdFromKeys } from '@libp2p/peer-id'
4
4
  import { unsigned } from 'uint8-varint'
5
5
  import { Uint8ArrayList } from 'uint8arraylist'
@@ -7,8 +7,8 @@ import { equals as uint8ArrayEquals } from 'uint8arrays/equals'
7
7
  import { fromString as uint8arraysFromString } from 'uint8arrays/from-string'
8
8
  import { codes } from '../errors.js'
9
9
  import { Envelope as Protobuf } from './envelope.js'
10
- import type { PeerId } from '@libp2p/interface-peer-id'
11
- import type { Record, Envelope } from '@libp2p/interface-record'
10
+ import type { PeerId } from '@libp2p/interface/peer-id'
11
+ import type { Record, Envelope } from '@libp2p/interface/record'
12
12
 
13
13
  export interface RecordEnvelopeInit {
14
14
  peerId: PeerId
package/src/errors.ts CHANGED
@@ -1,4 +1,3 @@
1
-
2
1
  export const codes = {
3
2
  ERR_SIGNATURE_NOT_VALID: 'ERR_SIGNATURE_NOT_VALID'
4
3
  }
package/src/index.ts CHANGED
@@ -1,4 +1,3 @@
1
-
2
1
  export { RecordEnvelope } from './envelope/index.js'
3
2
  export type { RecordEnvelopeInit } from './envelope/index.js'
4
3
  export { PeerRecord } from './peer-record/index.js'
@@ -1,4 +1,3 @@
1
-
2
1
  // The domain string used for peer records contained in a Envelope.
3
2
  export const ENVELOPE_DOMAIN_PEER_RECORD = 'libp2p-peer-record'
4
3
 
@@ -6,7 +6,7 @@ import {
6
6
  ENVELOPE_PAYLOAD_TYPE_PEER_RECORD
7
7
  } from './consts.js'
8
8
  import { PeerRecord as Protobuf } from './peer-record.js'
9
- import type { PeerId } from '@libp2p/interface-peer-id'
9
+ import type { PeerId } from '@libp2p/interface/peer-id'
10
10
  import type { Multiaddr } from '@multiformats/multiaddr'
11
11
  import type { Uint8ArrayList } from 'uint8arraylist'
12
12
 
@@ -1,6 +0,0 @@
1
- {
2
- "PeerRecord": "https://libp2p.github.io/js-libp2p-peer-record/classes/PeerRecord.html",
3
- "RecordEnvelope": "https://libp2p.github.io/js-libp2p-peer-record/classes/RecordEnvelope.html",
4
- "PeerRecordInit": "https://libp2p.github.io/js-libp2p-peer-record/interfaces/PeerRecordInit.html",
5
- "RecordEnvelopeInit": "https://libp2p.github.io/js-libp2p-peer-record/interfaces/RecordEnvelopeInit.html"
6
- }