msgpackr icon indicating copy to clipboard operation
msgpackr copied to clipboard

Missing exports from index, UnpackrStream, PackrStream

Open Duoquote opened this issue 2 years ago • 1 comments

Hello,

I am trying to import UnpackrStream as shown below,

import { UnpackrStream } from "msgpackr";

And I am introduced with this error:

image

Typescript notations do say UnpackrStream exist but is missing in msgpackr/index.js, as well as other exports from stream.js...

image

image

Also missing in source code: https://github.com/kriszyp/msgpackr/blob/0c0ade5f1bbb59e320c0a109293e00221645e446/index.js#L1-L5

I am using version 1.8.1.

Duoquote avatar Dec 13 '22 14:12 Duoquote

@Duoquote The streaming modules require node functionality, so they are intentionally omitted from the browser/non-node entry point (msgpackr/index.js), and only available on the node platform (or node-like platforms including bun, deno) through the node entry point (msgpackr/node-index.js).

kriszyp avatar Dec 19 '22 02:12 kriszyp