From 4b5c7b55acc37f7f721583aac6b254c3793ac077 Mon Sep 17 00:00:00 2001 From: Max Inden Date: Thu, 9 Mar 2023 22:05:44 +0100 Subject: [PATCH 1/2] fix: Rename webrtc-w3c to webrtc-private-to-private We have decided to rename `webrtc-w3c` to `webrtc-private-to-private`. See rational in https://github.com/multiformats/multiaddr/pull/150/#issuecomment-1460912728. No software has been released using `webrtc-w3c`, thus renaming is not a breaking change. Ignoring the automated `multiaddr` `v11.5.0` release. See also https://github.com/multiformats/js-multiaddr/pull/309 that introduced `webrtc-w3c`. --- src/protocols-table.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/protocols-table.ts b/src/protocols-table.ts index f850d2e5..86198371 100644 --- a/src/protocols-table.ts +++ b/src/protocols-table.ts @@ -21,7 +21,7 @@ export const table: Array<[number, number, string, boolean?, boolean?]> = [ [276, 0, 'p2p-webrtc-direct'], [277, 0, 'p2p-stardust'], [280, 0, 'webrtc'], - [281, 0, 'webrtc-w3c'], + [281, 0, 'webrtc-private-to-private'], [290, 0, 'p2p-circuit'], [301, 0, 'udt'], [302, 0, 'utp'], From 8176fb86aa7442f21b969ece9e11775ce8e5f901 Mon Sep 17 00:00:00 2001 From: Alex Potsides Date: Fri, 17 Mar 2023 08:05:38 +0100 Subject: [PATCH 2/2] chore: apply suggestions from code review --- src/protocols-table.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/protocols-table.ts b/src/protocols-table.ts index 86198371..cb810592 100644 --- a/src/protocols-table.ts +++ b/src/protocols-table.ts @@ -20,8 +20,8 @@ export const table: Array<[number, number, string, boolean?, boolean?]> = [ [275, 0, 'p2p-webrtc-star'], [276, 0, 'p2p-webrtc-direct'], [277, 0, 'p2p-stardust'], - [280, 0, 'webrtc'], - [281, 0, 'webrtc-private-to-private'], + [280, 0, 'webrtc-direct'], + [281, 0, 'webrtc'], [290, 0, 'p2p-circuit'], [301, 0, 'udt'], [302, 0, 'utp'],