@libp2p/peer-id 0.2.0 → 1.0.3

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.
Files changed (1) hide show
  1. package/package.json +117 -32
package/package.json CHANGED
@@ -1,57 +1,142 @@
1
1
  {
2
2
  "name": "@libp2p/peer-id",
3
- "version": "0.2.0",
3
+ "version": "1.0.3",
4
4
  "description": "IPFS Peer Id implementation in Node.js",
5
+ "license": "Apache-2.0 OR MIT",
6
+ "homepage": "https://github.com/libp2p/js-libp2p-interfaces/tree/master/packages/libp2p-peer-id#readme",
7
+ "repository": {
8
+ "type": "git",
9
+ "url": "git+https://github.com/libp2p/js-libp2p-interfaces.git"
10
+ },
11
+ "bugs": {
12
+ "url": "https://github.com/libp2p/js-libp2p-interfaces/issues"
13
+ },
14
+ "keywords": [
15
+ "IPFS"
16
+ ],
17
+ "engines": {
18
+ "node": ">=16.0.0",
19
+ "npm": ">=7.0.0"
20
+ },
5
21
  "type": "module",
6
22
  "types": "./dist/src/index.d.ts",
7
- "exports": {
8
- ".": {
9
- "import": "./dist/src/index.js"
10
- }
11
- },
12
23
  "files": [
13
24
  "src",
14
25
  "dist/src",
26
+ "!dist/test",
15
27
  "!**/*.tsbuildinfo"
16
28
  ],
29
+ "exports": {
30
+ ".": {
31
+ "import": "./dist/src/index.js"
32
+ }
33
+ },
17
34
  "eslintConfig": {
18
35
  "extends": "ipfs",
19
36
  "parserOptions": {
20
37
  "sourceType": "module"
21
38
  }
22
39
  },
40
+ "release": {
41
+ "branches": [
42
+ "master"
43
+ ],
44
+ "plugins": [
45
+ [
46
+ "@semantic-release/commit-analyzer",
47
+ {
48
+ "preset": "conventionalcommits",
49
+ "releaseRules": [
50
+ {
51
+ "breaking": true,
52
+ "release": "major"
53
+ },
54
+ {
55
+ "revert": true,
56
+ "release": "patch"
57
+ },
58
+ {
59
+ "type": "feat",
60
+ "release": "minor"
61
+ },
62
+ {
63
+ "type": "fix",
64
+ "release": "patch"
65
+ },
66
+ {
67
+ "type": "chore",
68
+ "release": "patch"
69
+ },
70
+ {
71
+ "type": "docs",
72
+ "release": "patch"
73
+ },
74
+ {
75
+ "type": "test",
76
+ "release": "patch"
77
+ },
78
+ {
79
+ "scope": "no-release",
80
+ "release": false
81
+ }
82
+ ]
83
+ }
84
+ ],
85
+ [
86
+ "@semantic-release/release-notes-generator",
87
+ {
88
+ "preset": "conventionalcommits",
89
+ "presetConfig": {
90
+ "types": [
91
+ {
92
+ "type": "feat",
93
+ "section": "Features"
94
+ },
95
+ {
96
+ "type": "fix",
97
+ "section": "Bug Fixes"
98
+ },
99
+ {
100
+ "type": "chore",
101
+ "section": "Trivial Changes"
102
+ },
103
+ {
104
+ "type": "docs",
105
+ "section": "Trivial Changes"
106
+ },
107
+ {
108
+ "type": "test",
109
+ "section": "Tests"
110
+ }
111
+ ]
112
+ }
113
+ }
114
+ ],
115
+ "@semantic-release/changelog",
116
+ "@semantic-release/npm",
117
+ "@semantic-release/github",
118
+ "@semantic-release/git"
119
+ ]
120
+ },
23
121
  "scripts": {
122
+ "lint": "aegir lint",
123
+ "dep-check": "aegir dep-check dist/src/**/*.js",
124
+ "build": "tsc",
24
125
  "pretest": "npm run build",
25
126
  "test": "aegir test -f ./dist/test/**/*.js",
26
- "test:browser": "aegir test -t browser -f ./dist/test/**/*.js",
27
- "test:node": "aegir test -t node -f ./dist/test/**/*.js",
28
- "test:electron-main": "aegir test -t electron-main -f ./dist/test/**/*.js",
29
- "lint": "aegir ts -p check && aegir lint",
30
- "build": "tsc",
31
- "dep-check": "aegir dep-check dist/src/**/*.js dist/test/**/*.js"
32
- },
33
- "keywords": [
34
- "IPFS"
35
- ],
36
- "license": "MIT",
37
- "engines": {
38
- "node": ">=15.0.0"
39
- },
40
- "repository": {
41
- "type": "git",
42
- "url": "git+https://github.com/libp2p/js-libp2p-interfaces.git"
43
- },
44
- "bugs": {
45
- "url": "https://github.com/libp2p/js-libp2p-interfaces/issues"
46
- },
47
- "homepage": "https://github.com/libp2p/js-libp2p-interfaces/tree/master/packages/libp2p-peer-id#readme",
48
- "devDependencies": {
49
- "aegir": "^36.0.1"
127
+ "test:chrome": "npm run test -- -t browser",
128
+ "test:chrome-webworker": "npm run test -- -t webworker",
129
+ "test:firefox": "npm run test -- -t browser -- --browser firefox",
130
+ "test:firefox-webworker": "npm run test -- -t webworker -- --browser firefox",
131
+ "test:node": "npm run test -- -t node --cov",
132
+ "test:electron-main": "npm run test -- -t electron-main"
50
133
  },
51
134
  "dependencies": {
52
- "@libp2p/interfaces": "^0.2.0",
135
+ "@libp2p/interfaces": "^1.0.0",
53
136
  "multiformats": "^9.4.5",
54
137
  "uint8arrays": "^3.0.0"
55
138
  },
56
- "gitHead": "899cb6a9390c748bccf9b6404f104efb011a0c9c"
139
+ "devDependencies": {
140
+ "aegir": "^36.1.3"
141
+ }
57
142
  }