unjs / unenv

๐Ÿ•Š๏ธ Convert javaScript code to be runtime agnostic
MIT License
340 stars 18 forks source link

feat(node:zlib): polyfill `node:zlib` module #230

Closed jculvey closed 1 month ago

jculvey commented 1 month ago

Replaces the current auto-mocking of zlib to support destructured ESM imports and allow for functional polyfill coverage in the future.

๐Ÿ”— Linked issue

โ“ Type of change

๐Ÿ“š Description

๐Ÿ“ Checklist

pi0 commented 1 month ago

(working on some reworks, methods need to throw error in callback properly to match spec)

pi0 commented 1 month ago

Updates:

Followup idea: https://github.com/unjs/unenv/issues/235