Skip to content

Commit

Permalink
Use zlib node builtin (#160)
Browse files Browse the repository at this point in the history
  • Loading branch information
carbonrobot authored Nov 6, 2023
1 parent 9b61037 commit 6023c81
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 11 deletions.
5 changes: 5 additions & 0 deletions .changeset/famous-moles-move.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@envyjs/node': patch
---

Use zlib node builtin
3 changes: 1 addition & 2 deletions packages/node/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,7 @@
"@envyjs/core": "0.7.1",
"chalk": "^4.1.2",
"shimmer": "^1.2.1",
"ws": "8.14.2",
"zlib": "1.0.5"
"ws": "8.14.2"
},
"devDependencies": {
"@types/node-fetch": "^2.6.4",
Expand Down
5 changes: 1 addition & 4 deletions packages/node/src/http.ts
Original file line number Diff line number Diff line change
@@ -1,13 +1,10 @@
import http from 'http';
import https from 'https';
import process from 'process';
import { createBrotliDecompress, unzip } from 'zlib';

import { Event, HttpRequest, HttpRequestState, Plugin } from '@envyjs/core';

// eslint thinks zlib is node20:builtin, but this is a node module
// eslint-disable-next-line import/order
import { createBrotliDecompress, unzip } from 'zlib';

import { generateId } from './id';
import log from './log';
import { Timestamps, calculateTiming, getDuration } from './utils/time';
Expand Down
5 changes: 0 additions & 5 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -13226,11 +13226,6 @@ yocto-queue@^0.1.0:
resolved "https://registry.yarnpkg.com/yocto-queue/-/yocto-queue-0.1.0.tgz#0294eb3dee05028d31ee1a5fa2c556a6aaf10a1b"
integrity sha512-rVksvsnNCdJ/ohGc6xgPwyN8eheCxsiLM8mxuE/t/mOVqJewPuO1miLpTHQiRgTKCLexL4MeAFVagts7HmNZ2Q==

[email protected]:
version "1.0.5"
resolved "https://registry.yarnpkg.com/zlib/-/zlib-1.0.5.tgz#6e7c972fc371c645a6afb03ab14769def114fcc0"
integrity sha512-40fpE2II+Cd3k8HWTWONfeKE2jL+P42iWJ1zzps5W51qcTsOUKM5Q5m2PFb0CLxlmFAaUuUdJGc3OfZy947v0w==

[email protected]:
version "3.21.4"
resolved "https://registry.yarnpkg.com/zod/-/zod-3.21.4.tgz#10882231d992519f0a10b5dd58a38c9dabbb64db"
Expand Down

0 comments on commit 6023c81

Please sign in to comment.