Skip to content

Support Pool and Proxy identity#683

Open
leoc11 wants to merge 4 commits intoGoogleChromeLabs:mainfrom
leoc11:feat/pool
Open

Support Pool and Proxy identity#683
leoc11 wants to merge 4 commits intoGoogleChromeLabs:mainfrom
leoc11:feat/pool

Conversation

@leoc11
Copy link

@leoc11 leoc11 commented Oct 19, 2025

FEATURE

BREAKING CHANGES

  • Comlink.createEndPoint removed.
  • Comlink.proxyRelease removed. use Symbol.asyncDispose instead
  • Comlink.finalizer removed. use Symbol.dispose or Symbol.asyncDispose instead
  • typing: Comlink.warp only accept Comlink.ProxyMarked type returned by Comlink.expose
  • Function are proxied by default. no need to wrap with Comlink.proxy()
  • Original value provided in Comlink.proxy() won't be automatically proxied anymore. Only return value from Comlink.proxy() will be proxied.

PERFORMANCE

  • use incremental number instead of UUID for MessageID.
  • use the same Proxy Target for all proxy.

NOTE: published package with this PR, @leoc11/comlink

@google-cla
Copy link

google-cla bot commented Oct 19, 2025

Thanks for your pull request! It looks like this may be your first contribution to a Google open source project. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA).

View this failed invocation of the CLA check for more information.

For the most up to date status, view the checks section at the bottom of the pull request.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

1 participant