Skip to content

chore: release v1.0.0 #2144

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 21 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
21 commits
Select commit Hold shift + click to select a range
9bffffa
docs: add migration guide
achingbrain Oct 10, 2023
dd137f7
fix!: remove dialler language (#2143)
achingbrain Oct 11, 2023
0ce7159
fix!: remove min/max from topologies (#2158)
achingbrain Oct 13, 2023
ba934ec
refactor!: remove libp2p.keychain (#2084)
wemeetagain Oct 19, 2023
a475311
refactor!: move autonat into separate package (#2107)
wemeetagain Oct 23, 2023
e6f418f
fix!: remove protocols from PeerInfo (#2166)
achingbrain Oct 24, 2023
c362140
refactor!: remove isStarted method from Startable (#2145)
achingbrain Oct 25, 2023
d44e0b3
chore!: update release config (#2195)
achingbrain Nov 7, 2023
87985ce
refactor!: extract UPnP NAT into separate module (#2217)
achingbrain Nov 8, 2023
f48b415
chore: update package config
achingbrain Nov 8, 2023
e0093fa
refactor!: extract ping service into separate module (#2218)
achingbrain Nov 8, 2023
6b9a473
refactor!: extract identify service into separate module (#2219)
achingbrain Nov 9, 2023
a4d7d07
refactor!: extract DCUtR into separate module (#2220)
achingbrain Nov 9, 2023
0f39f76
refactor!: extract plaintext into separate module (#2221)
achingbrain Nov 9, 2023
1b3ff1a
refactor!: extract circuit relay v2 to separate module (#2222)
achingbrain Nov 9, 2023
9014b33
refactor!: extract fetch to separate module (#2223)
achingbrain Nov 9, 2023
4dabb20
chore: add integration tests (#2224)
achingbrain Nov 9, 2023
d7d004e
refactor!: rename perf exports to remove Service (#2227)
achingbrain Nov 10, 2023
8ae6c43
fix: use logging component everywhere (#2228)
achingbrain Nov 11, 2023
181e1ba
chore: update pnet version
achingbrain Nov 15, 2023
7690c7b
chore: fix mplex tests (#2233)
achingbrain Nov 15, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
13 changes: 8 additions & 5 deletions .github/workflows/examples.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,11 +34,14 @@ jobs:
- '@libp2p/tcp@$PWD/packages/transport-tcp'
- '@libp2p/websockets@$PWD/packages/transport-websockets'
- 'libp2p@$PWD/packages/libp2p'
- name: js-libp2p-example-circuit-relay
repo: https://github.com/libp2p/js-libp2p-example-circuit-relay.git
deps:
- '@libp2p/websockets@$PWD/packages/transport-websockets'
- 'libp2p@$PWD/packages/libp2p'
# disabled until @libp2p/identify and @libp2p/circuit-relay are published
# - name: js-libp2p-example-circuit-relay
# repo: https://github.com/libp2p/js-libp2p-example-circuit-relay.git
# deps:
# - '@libp2p/circuit-relay@$PWD/packages/transport-circuit-relay'
# - '@libp2p/identify@$PWD/packages/protocol-identify'
# - '@libp2p/websockets@$PWD/packages/transport-websockets'
# - 'libp2p@$PWD/packages/libp2p'
- name: js-libp2p-example-connection-encryption
repo: https://github.com/libp2p/js-libp2p-example-connection-encryption.git
deps:
Expand Down
10 changes: 8 additions & 2 deletions .release-please.json
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
{
"plugins": ["node-workspace"],
"bump-minor-pre-major": true,
"bump-patch-for-minor-pre-major": true,
"group-pull-request-title-pattern": "chore: release ${component}",
"packages": {
"interop": {},
"packages/connection-encrypter-plaintext": {},
"packages/crypto": {},
"packages/interface": {},
"packages/interface-compliance-tests": {},
Expand All @@ -22,14 +21,21 @@
"packages/peer-id-factory": {},
"packages/peer-record": {},
"packages/peer-store": {},
"packages/protocol-autonat": {},
"packages/protocol-dcutr": {},
"packages/protocol-fetch": {},
"packages/protocol-identify": {},
"packages/protocol-perf": {},
"packages/protocol-ping": {},
"packages/pubsub": {},
"packages/pubsub-floodsub": {},
"packages/stream-multiplexer-mplex": {},
"packages/transport-circuit-relay-v2": {},
"packages/transport-tcp": {},
"packages/transport-webrtc": {},
"packages/transport-websockets": {},
"packages/transport-webtransport": {},
"packages/upnp-nat": {},
"packages/utils": {}
}
}
32 changes: 16 additions & 16 deletions doc/CONFIGURATION.md
Original file line number Diff line number Diff line change
Expand Up @@ -319,7 +319,7 @@ import { yamux } from '@chainsafe/libp2p-yamux'
import { noise } from '@chainsafe/libp2p-noise'
import { gossipsub } from 'libp2p-gossipsub'
import { SignaturePolicy } from '@libp2p/interface/pubsub'
import { identifyService } from 'libp2p/identify'
import { identify } from '@libp2p/identify'

const node = await createLibp2p({
transports: [
Expand All @@ -333,7 +333,7 @@ const node = await createLibp2p({
noise()
],
services: {
identify: identifyService(),
identify: identify(),
pubsub: gossipsub({
emitSelf: false, // whether the node should emit to self on publish
globalSignaturePolicy: SignaturePolicy.StrictSign // message signing policy
Expand All @@ -356,7 +356,7 @@ import { tcp } from '@libp2p/tcp'
import { mplex } from '@libp2p/mplex'
import { noise } from '@chainsafe/libp2p-noise'
import { kadDHT } from '@libp2p/kad-dht'
import { identifyService } from 'libp2p-identify'
import { identify } from '@libp2p/identify'

const node = await createLibp2p({
transports: [
Expand All @@ -370,7 +370,7 @@ const node = await createLibp2p({
noise()
],
services: {
identify: identifyService(),
identify: identify(),
dht: kadDHT({
kBucketSize: 20,
clientMode: false // Whether to run the WAN DHT in client or server mode (default: client mode)
Expand Down Expand Up @@ -443,8 +443,8 @@ import { tcp } from '@libp2p/tcp'
import { mplex } from '@libp2p/mplex'
import { yamux } from '@chainsafe/libp2p-yamux'
import { noise } from '@chainsafe/libp2p-noise'
import { circuitRelayTransport, circuitRelayServer } from 'libp2p/circuit-relay'
import { identifyService } from 'libp2p-identify'
import { circuitRelayTransport, circuitRelayServer } from '@libp2p/circuit-relay-v2'
import { identify } from '@libp2p/identify'


const node = await createLibp2p({
Expand Down Expand Up @@ -473,7 +473,7 @@ const node = await createLibp2p({
denyInboundRelayedConnection: (relay: PeerId, remotePeer: PeerId) => Promise<boolean>
},
services: {
identify: identifyService(),
identify: identify(),
relay: circuitRelayServer({ // makes the node function as a relay server
hopTimeout: 30 * 1000, // incoming relay requests must be resolved within this time limit
advertise: true,
Expand Down Expand Up @@ -501,7 +501,7 @@ import { tcp } from '@libp2p/tcp'
import { mplex } from '@libp2p/mplex'
import { yamux } from '@chainsafe/libp2p-yamux'
import { noise } from '@chainsafe/libp2p-noise'
import { circuitRelayTransport } from 'libp2p/circuit-relay'
import { circuitRelayTransport } from '@libp2p/circuit-relay-v2'

const node = await createLibp2p({
transports: [
Expand Down Expand Up @@ -529,7 +529,7 @@ import { createLibp2p } from 'libp2p'
import { tcp } from '@libp2p/tcp'
import { mplex } from '@libp2p/mplex'
import { noise } from '@chainsafe/libp2p-noise'
import { circuitRelayTransport } from 'libp2p/circuit-relay'
import { circuitRelayTransport } from '@libp2p/circuit-relay-v2'

const node = await createLibp2p({
transports: [
Expand Down Expand Up @@ -930,7 +930,7 @@ For more information see https://docs.libp2p.io/concepts/nat/autonat/#what-is-au

```ts
import { createLibp2p } from 'libp2p'
import { autoNATService } from 'libp2p/autonat'
import { autoNATService } from '@libp2p/autonat'

const node = await createLibp2p({
services: {
Expand All @@ -954,7 +954,7 @@ If your router supports this, libp2p can be configured to use it as follows:

```js
import { createLibp2p } from 'libp2p'
import { uPnPNATService } from 'libp2p/upnp-nat'
import { uPnPNATService } from '@libp2p/upnp-nat'

const node = await createLibp2p({
services: {
Expand Down Expand Up @@ -986,15 +986,15 @@ Changing the protocol name prefix can isolate default public network (IPFS) for

```js
import { createLibp2p } from 'libp2p'
import { identifyService } from 'libp2p/identify'
import { pingService } from 'libp2p/ping'
import { identify } from '@libp2p/identify'
import { ping } from 'libp2p/@ping'

const node = await createLibp2p({
services: {
identify: identifyService({
identify: identify({
protocolPrefix: 'ipfs' // default
}),
ping: pingService({
ping: ping({
protocolPrefix: 'ipfs' // default
})
}
Expand All @@ -1003,7 +1003,7 @@ const node = await createLibp2p({
protocols: [
"/ipfs/id/1.0.0", // identify service protocol (if we have multiplexers)
"/ipfs/id/push/1.0.0", // identify service push protocol (if we have multiplexers)
"/ipfs/ping/1.0.0", // built-in ping protocol
"/ipfs/ping/1.0.0", // ping protocol
]
*/
```
Expand Down
Loading