Skip to content

Commit

Permalink
chore: update project and align dep versions
Browse files Browse the repository at this point in the history
  • Loading branch information
achingbrain committed Jun 17, 2023
1 parent db5f99c commit 22ed4c7
Show file tree
Hide file tree
Showing 17 changed files with 56 additions and 26 deletions.
2 changes: 1 addition & 1 deletion packages/crypto/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@
"node-forge": "^1.1.0",
"protons-runtime": "^5.0.0",
"uint8arraylist": "^2.4.3",
"uint8arrays": "^4.0.3"
"uint8arrays": "^4.0.4"
},
"devDependencies": {
"@types/mocha": "^10.0.0",
Expand Down
9 changes: 9 additions & 0 deletions packages/interface-compliance-tests/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
## Table of contents <!-- omit in toc -->

- [Install](#install)
- [Browser `<script>` tag](#browser-script-tag)
- [Usage](#usage)
- [API Docs](#api-docs)
- [License](#license)
Expand All @@ -21,6 +22,14 @@
$ npm i @libp2p/interface-compliance-tests
```

### Browser `<script>` tag

Loading this module through a script tag will make it's exports available as `Libp2pInterfaceComplianceTests` in the global namespace.

```html
<script src="https://unpkg.com/@libp2p/interface-compliance-tests/dist/index.min.js"></script>
```

## Usage

Each [interface](https://npmjs.org/packages/@libp2p/interfaces) has its documentation on how to use the compliance tests and should be used as the source of truth.
Expand Down
8 changes: 4 additions & 4 deletions packages/interface-compliance-tests/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -97,12 +97,12 @@
"test:electron-main": "aegir test -t electron-main"
},
"dependencies": {
"@libp2p/interface": "^0.0.1",
"@libp2p/interface": "~0.0.1",
"@libp2p/interface-internal": "~0.0.1",
"@libp2p/logger": "^2.1.1",
"@libp2p/logger": "^2.0.0",
"@libp2p/multistream-select": "^3.0.0",
"@libp2p/peer-collections": "^3.0.2",
"@libp2p/peer-id": "^2.0.3",
"@libp2p/peer-collections": "^3.0.0",
"@libp2p/peer-id": "^2.0.0",
"@libp2p/peer-id-factory": "^2.0.0",
"@multiformats/multiaddr": "^12.1.3",
"abortable-iterator": "^5.0.1",
Expand Down
12 changes: 12 additions & 0 deletions packages/interface-compliance-tests/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,24 @@
"test"
],
"references": [
{
"path": "../interface"
},
{
"path": "../interface-internal"
},
{
"path": "../logger"
},
{
"path": "../multistream-select"
},
{
"path": "../peer-collections"
},
{
"path": "../peer-id"
},
{
"path": "../peer-id-factory"
}
Expand Down
9 changes: 9 additions & 0 deletions packages/interface/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
## Table of contents <!-- omit in toc -->

- [Install](#install)
- [Browser `<script>` tag](#browser-script-tag)
- [API Docs](#api-docs)
- [License](#license)
- [Contribution](#contribution)
Expand All @@ -20,6 +21,14 @@
$ npm i @libp2p/interface
```

### Browser `<script>` tag

Loading this module through a script tag will make it's exports available as `Libp2pInterface` in the global namespace.

```html
<script src="https://unpkg.com/@libp2p/interface/dist/index.min.js"></script>
```

## API Docs

- <https://libp2p.github.io/js-libp2p/modules/_libp2p_interface.html>
Expand Down
8 changes: 4 additions & 4 deletions packages/kad-dht/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -66,11 +66,11 @@
"hashlru": "^2.3.0",
"interface-datastore": "^8.2.0",
"it-all": "^3.0.2",
"it-drain": "^3.0.1",
"it-drain": "^3.0.2",
"it-first": "^3.0.1",
"it-length": "^3.0.1",
"it-length-prefixed": "^9.0.1",
"it-map": "^3.0.2",
"it-map": "^3.0.3",
"it-merge": "^3.0.0",
"it-parallel": "^3.0.0",
"it-pipe": "^3.0.1",
Expand All @@ -84,7 +84,7 @@
"progress-events": "^1.0.0",
"protons-runtime": "^5.0.0",
"uint8arraylist": "^2.4.3",
"uint8arrays": "^4.0.3",
"uint8arrays": "^4.0.4",
"varint": "^6.0.0"
},
"devDependencies": {
Expand All @@ -106,7 +106,7 @@
"p-retry": "^5.0.0",
"p-wait-for": "^5.0.0",
"protons": "^7.0.2",
"sinon": "^15.1.0",
"sinon": "^15.1.2",
"ts-sinon": "^2.0.2",
"which": "^3.0.0"
},
Expand Down
2 changes: 1 addition & 1 deletion packages/keychain/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@
"interface-datastore": "^8.2.0",
"merge-options": "^3.0.4",
"sanitize-filename": "^1.6.3",
"uint8arrays": "^4.0.3"
"uint8arrays": "^4.0.4"
},
"devDependencies": {
"@libp2p/peer-id-factory": "^2.0.0",
Expand Down
10 changes: 5 additions & 5 deletions packages/libp2p/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -134,14 +134,14 @@
"datastore-core": "^9.0.1",
"interface-datastore": "^8.2.0",
"it-all": "^3.0.2",
"it-drain": "^3.0.1",
"it-drain": "^3.0.2",
"it-filter": "^3.0.1",
"it-first": "^3.0.1",
"it-handshake": "^4.1.3",
"it-length-prefixed": "^9.0.1",
"it-map": "^3.0.2",
"it-map": "^3.0.3",
"it-merge": "^3.0.0",
"it-pair": "^2.0.2",
"it-pair": "^2.0.6",
"it-parallel": "^3.0.0",
"it-pb-stream": "^4.0.1",
"it-pipe": "^3.0.1",
Expand All @@ -155,7 +155,7 @@
"protons-runtime": "^5.0.0",
"rate-limiter-flexible": "^2.3.11",
"uint8arraylist": "^2.4.3",
"uint8arrays": "^4.0.3",
"uint8arrays": "^4.0.4",
"wherearewe": "^2.0.1",
"xsalsa20": "^1.1.0"
},
Expand Down Expand Up @@ -187,7 +187,7 @@
"p-times": "^4.0.0",
"p-wait-for": "^5.0.0",
"protons": "^7.0.2",
"sinon": "^15.1.0",
"sinon": "^15.1.2",
"sinon-ts": "^1.0.0"
},
"browser": {
Expand Down
2 changes: 1 addition & 1 deletion packages/logger/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@
"@libp2p/peer-id": "^2.0.0",
"@types/debug": "^4.1.7",
"aegir": "^39.0.10",
"sinon": "^15.1.0",
"sinon": "^15.1.2",
"uint8arrays": "^4.0.3"
},
"typedoc": {
Expand Down
2 changes: 1 addition & 1 deletion packages/multistream-select/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@
"it-reader": "^6.0.1",
"it-stream-types": "^2.0.1",
"uint8arraylist": "^2.4.3",
"uint8arrays": "^4.0.3"
"uint8arrays": "^4.0.4"
},
"devDependencies": {
"@types/varint": "^6.0.0",
Expand Down
2 changes: 1 addition & 1 deletion packages/peer-id-factory/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@
"multiformats": "^12.0.1",
"protons-runtime": "^5.0.0",
"uint8arraylist": "^2.4.3",
"uint8arrays": "^4.0.3"
"uint8arrays": "^4.0.4"
},
"devDependencies": {
"aegir": "^39.0.10",
Expand Down
2 changes: 1 addition & 1 deletion packages/peer-id/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@
"dependencies": {
"@libp2p/interface": "~0.0.1",
"multiformats": "^12.0.1",
"uint8arrays": "^4.0.3"
"uint8arrays": "^4.0.4"
},
"devDependencies": {
"aegir": "^39.0.10"
Expand Down
2 changes: 1 addition & 1 deletion packages/peer-record/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@
"protons-runtime": "^5.0.0",
"uint8-varint": "^1.0.2",
"uint8arraylist": "^2.4.3",
"uint8arrays": "^4.0.3"
"uint8arrays": "^4.0.4"
},
"devDependencies": {
"@libp2p/peer-id-factory": "^2.0.0",
Expand Down
4 changes: 2 additions & 2 deletions packages/peer-store/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@
"multiformats": "^12.0.1",
"protons-runtime": "^5.0.0",
"uint8arraylist": "^2.4.3",
"uint8arrays": "^4.0.3"
"uint8arrays": "^4.0.4"
},
"devDependencies": {
"@types/sinon": "^10.0.15",
Expand All @@ -76,7 +76,7 @@
"p-defer": "^4.0.0",
"p-event": "^6.0.0",
"protons": "^7.0.2",
"sinon": "^15.1.0"
"sinon": "^15.1.2"
},
"typedoc": {
"entryPoint": "./src/index.ts"
Expand Down
2 changes: 1 addition & 1 deletion packages/stream-multiplexer-mplex/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@
"it-stream-types": "^2.0.1",
"rate-limiter-flexible": "^2.3.11",
"uint8arraylist": "^2.4.3",
"uint8arrays": "^4.0.3",
"uint8arrays": "^4.0.4",
"varint": "^6.0.0"
},
"devDependencies": {
Expand Down
2 changes: 1 addition & 1 deletion packages/transport-tcp/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@
"it-all": "^3.0.1",
"it-pipe": "^3.0.1",
"p-defer": "^4.0.0",
"sinon": "^15.1.0",
"sinon": "^15.1.2",
"uint8arrays": "^4.0.3"
},
"typedoc": {
Expand Down
4 changes: 2 additions & 2 deletions packages/transport-webrtc/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@
"p-event": "^6.0.0",
"protons-runtime": "^5.0.0",
"uint8arraylist": "^2.4.3",
"uint8arrays": "^4.0.3"
"uint8arrays": "^4.0.4"
},
"devDependencies": {
"@chainsafe/libp2p-yamux": "^4.0.1",
Expand All @@ -80,7 +80,7 @@
"it-pair": "^2.0.6",
"libp2p": "^0.45.0",
"protons": "^7.0.2",
"sinon": "^15.1.0",
"sinon": "^15.1.2",
"sinon-ts": "^1.0.0"
},
"typedoc": {
Expand Down

0 comments on commit 22ed4c7

Please sign in to comment.