Skip to content

Commit

Permalink
refactor: Revert compress utils deprecation (#29977)
Browse files Browse the repository at this point in the history
  • Loading branch information
zharinov committed Jul 2, 2024
1 parent 0a7ce18 commit 7868301
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions lib/util/compress.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,6 @@ import zlib, { constants } from 'node:zlib';
const brotliCompress = promisify(zlib.brotliCompress);
const brotliDecompress = promisify(zlib.brotliDecompress);

/**
* @deprecated
*/
export async function compressToBase64(input: string): Promise<string> {
const buf = await brotliCompress(input, {
params: {
Expand All @@ -17,9 +14,6 @@ export async function compressToBase64(input: string): Promise<string> {
return buf.toString('base64');
}

/**
* @deprecated
*/
export async function decompressFromBase64(input: string): Promise<string> {
const buf = Buffer.from(input, 'base64');
const str = await brotliDecompress(buf);
Expand Down

0 comments on commit 7868301

Please sign in to comment.