-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Description
Is your feature request related to a problem? Please describe.
StdioServerTransport
is not compatible with non-Node.js runtime like Deno because the current implementation depends on the global Buffer
object.
typescript-sdk/src/shared/stdio.ts
Lines 6 to 12 in 09e5d5b
export class ReadBuffer { | |
private _buffer?: Buffer; | |
append(chunk: Buffer): void { | |
this._buffer = this._buffer ? Buffer.concat([this._buffer, chunk]) : chunk; | |
} | |
Describe the solution you'd like
A clear and concise description of what you want to happen.
As Deno documentation says, import Buffer
from node:buffer
explicitly.
https://docs.deno.com/runtime/fundamentals/node/#node.js-global-objects
Describe alternatives you've considered
A clear and concise description of any alternative solutions or features you've considered.
Additional context
Add any other context or screenshots about the feature request here.