types: return more precise Buffer<ArrayBuffer> from toBuffer#4520
types: return more precise Buffer<ArrayBuffer> from toBuffer#4520Andarist wants to merge 1 commit intolovell:mainfrom
Buffer<ArrayBuffer> from toBuffer#4520Conversation
| "peerDependenciesMeta": { | ||
| "@types/node": { | ||
| "optional": true | ||
| } | ||
| }, |
There was a problem hiding this comment.
I think this is kinda more compatible with strict package managers like pnpm. If you'd like to declare an explicit range for compatible @types/node then you'd have to declare the range within a regular peerDependencies declaration and, in here, the correct range would be something like:
^18.19.54 || ^20.16.10 || >=22.7.4
Those are the versions published on 2024-09-27 and they introduced this change: DefinitelyTyped/DefinitelyTyped#70694
|
Hi Mateusz, thanks for the PR. If you hadn't seen, the next 0.35.0 release of sharp will also allow output via a new toUint8Array(): Promise<{ data: Uint8Array; info: OutputInfo }>;My understanding is that Node.js I think this means that that existing |
No description provided.