@minip2p/core 0.10.0 → 0.10.1

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.
package/src/types.ts CHANGED
@@ -289,6 +289,12 @@ export interface Minip2pNamedEventMap {
289
289
  readonly current: Reachability;
290
290
  readonly confirmedAddrs: readonly string[];
291
291
  };
292
+ /**
293
+ * The listen set changed without a `listen` call, as when a WebTransport
294
+ * listener's certificate rotates: `addrs` is the whole new set (what
295
+ * `listenAddrs()` now returns), for the app to republish.
296
+ */
297
+ listenAddressesChanged: { readonly addrs: readonly string[] };
292
298
  publicAddressesChanged: { readonly addrs: readonly string[] };
293
299
  relayReserved: {
294
300
  readonly relayPeerId: string;
@@ -575,6 +581,7 @@ export const P2pEvent_Tags = {
575
581
  IdentifyReceived: "IdentifyReceived",
576
582
  InboundDirectUpgrade: "InboundDirectUpgrade",
577
583
  InboundPathEstablished: "InboundPathEstablished",
584
+ ListenAddressesChanged: "ListenAddressesChanged",
578
585
  MdnsFailed: "MdnsFailed",
579
586
  MdnsRecovered: "MdnsRecovered",
580
587
  Message: "Message",
@@ -680,6 +687,10 @@ export type P2pEvent =
680
687
  typeof P2pEvent_Tags.ReachabilityChanged,
681
688
  Minip2pNamedEventMap["reachabilityChanged"]
682
689
  >
690
+ | RawEvent<
691
+ typeof P2pEvent_Tags.ListenAddressesChanged,
692
+ Minip2pNamedEventMap["listenAddressesChanged"]
693
+ >
683
694
  | RawEvent<
684
695
  typeof P2pEvent_Tags.PublicAddressesChanged,
685
696
  Minip2pNamedEventMap["publicAddressesChanged"]