diff --git a/cli.js b/cli.js index 1ce2039b1..f30b9e02c 100644 --- a/cli.js +++ b/cli.js @@ -9,7 +9,7 @@ crasher('cli', SWAP) cli() async function cli () { - const ipc = new IPC.PearIPCClient({ + const ipc = new IPC.Client({ lock: PLATFORM_LOCK, socketPath: SOCKET_PATH, connectTimeout: CONNECT_TIMEOUT, diff --git a/gui/gui.js b/gui/gui.js index 247ae4aa2..0a3bad2c9 100644 --- a/gui/gui.js +++ b/gui/gui.js @@ -1401,7 +1401,7 @@ class PearGUI extends ReadyResource { constructor ({ socketPath, connectTimeout, tryboot, state }) { super() this.state = state - this.ipc = new IPC.PearIPCClient({ + this.ipc = new IPC.Client({ lock: constants.PLATFORM_LOCK, socketPath, connectTimeout, diff --git a/package-lock.json b/package-lock.json index 47ca3ad3c..6f558d9b9 100644 --- a/package-lock.json +++ b/package-lock.json @@ -47,7 +47,7 @@ "paparam": "^1.4.0", "pear-changelog": "^1.0.1", "pear-interface": "^1.0.0", - "pear-ipc": "github:holepunchto/pear-ipc#refactor", + "pear-ipc": "^3.0.0", "pear-link": "^2.0.1", "pear-updater": "^3.1.0", "pear-updater-bootstrap": "^1.2.0", @@ -3536,9 +3536,9 @@ } }, "node_modules/pear-ipc": { - "version": "2.4.0", - "resolved": "git+ssh://git@github.com/holepunchto/pear-ipc.git#bf7a2faca1be057ffe001e631790be9f08027912", - "license": "Apache-2.0", + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/pear-ipc/-/pear-ipc-3.0.0.tgz", + "integrity": "sha512-NDmLJFRbXy6eXWMEh161nXDUOqRwAgWdVhuZfmeNs5G9Kr2OY4tu5x+Vsg/zjzuCuL5QxhwNwZmymt/imWpefQ==", "dependencies": { "bare-fs": "^3.0.2", "bare-os": "^3.2.0", diff --git a/package.json b/package.json index 4b441dd08..9702911f9 100644 --- a/package.json +++ b/package.json @@ -102,7 +102,7 @@ "paparam": "^1.4.0", "pear-changelog": "^1.0.1", "pear-interface": "^1.0.0", - "pear-ipc": "github:holepunchto/pear-ipc#refactor", + "pear-ipc": "^3.0.0", "pear-link": "^2.0.1", "pear-updater": "^3.1.0", "pear-updater-bootstrap": "^1.2.0", diff --git a/subsystems/sidecar/index.js b/subsystems/sidecar/index.js index 0fb24e86e..775f08d31 100644 --- a/subsystems/sidecar/index.js +++ b/subsystems/sidecar/index.js @@ -100,7 +100,7 @@ class Sidecar extends ReadyResource { this.corestore = corestore this.gunk = gunk - this.ipc = new IPC.PearIPCServer({ + this.ipc = new IPC.Server({ handlers: this, lock: PLATFORM_LOCK, socketPath: SOCKET_PATH diff --git a/test/helper.js b/test/helper.js index 8b6ba714e..393a155f8 100644 --- a/test/helper.js +++ b/test/helper.js @@ -103,7 +103,7 @@ class OperationError extends Error { } } -class Helper extends IPC.PearIPCClient { +class Helper extends IPC.Client { static Rig = Rig static tmp = tmp static PLATFORM_DIR = PLATFORM_DIR