Skip to content

refactor(wip): replace node-ipc with a cleanroom IPC implementation #5776

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 2 commits into from

Conversation

haoqunjiang
Copy link
Member

@haoqunjiang haoqunjiang commented Aug 11, 2020

The packet format is compatible with the node-ipc default.

After this commit, no core plugins will rely on node-ipc to do anything.
But the UI still needs it to communicate with plugins.

TODOs:

  • Fix UI build task
  • Finish the IPC server implementation
  • Refactor @vue/cli-ui to get rid of node-ipc, too
  • Fully refactor the IpcMessenger module to address cross-platform
    issues, etc.

Fixes #2621

It is a cleanroom implementation because I've never read a line of the node-ipc code. I've only read the package's README before implementing this PR.

What kind of change does this PR introduce? (check at least one)

  • Bugfix
  • Feature
  • Code style update
  • Refactor
  • Docs
  • Underlying tools
  • Other, please describe:

Does this PR introduce a breaking change? (check one)

  • Yes
  • No

Other information:

The packet format is compatible with the node-ipc default.

After this commit, no core plugins will be using node-ipc to do anything.

TODOs:
- Finish the IPC server implementation
- Refactor `@vue/cli-ui` to get rid of `node-ipc`, too
- Fully refactor the IpcMessenger module to address cross-platform
issues, etc.
@bkhatkov
Copy link

bkhatkov commented Nov 9, 2020

Hi @sodatea. Is there any projection on when is this going to be merged? It is so important :)

@RIAEvangelist
Copy link

node-ipc updated to MIT and latest buffer implementation.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
3 participants