From 68ce8b816a199d684dac7ebb784948bc77f6bb7b Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Tue, 19 May 2026 15:45:22 +0000 Subject: [PATCH 1/3] fix(deps): update dependency archiver to v8 | datasource | package | from | to | | ---------- | -------- | ----- | ----- | | npm | archiver | 7.0.1 | 8.0.0 | --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 44effaf..ef739a9 100644 --- a/package.json +++ b/package.json @@ -37,7 +37,7 @@ "test": "cross-env NODE_OPTIONS='--loader=ts-node/esm' mocha" }, "dependencies": { - "archiver": "^7.0.1", + "archiver": "^8.0.0", "axios": "^1.16.0", "diacritics": "^1.3.0", "ejs": "^5.0.2", From 6c43e5d0ad00e8c517fce466fce4e2d4d9d52901 Mon Sep 17 00:00:00 2001 From: Adrien ERAUD Date: Tue, 19 May 2026 17:07:48 +0100 Subject: [PATCH 2/3] Fix --- src/index.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/index.ts b/src/index.ts index a78ebf0..085eaaa 100644 --- a/src/index.ts +++ b/src/index.ts @@ -1,4 +1,4 @@ -import archiver from "archiver"; +import { ZipArchive } from "archiver"; import axios from "axios"; import { remove as diacritics } from "diacritics"; import ejs from "ejs"; @@ -888,7 +888,7 @@ export class EPub { const cwd = this.tempEpubDir; return new Promise((resolve, reject) => { - const archive = archiver("zip", { zlib: { level: 9 } }); + const archive = ZipArchive({ zlib: { level: 9 } }); const output = createWriteStream(this.output); if (this.verbose) { console.log("Zipping temp dir to", this.output); From 5fe200db67e50916ebd69b4e1c87c1c05350e93d Mon Sep 17 00:00:00 2001 From: e-adrien Date: Thu, 11 Jun 2026 09:06:34 +0100 Subject: [PATCH 3/3] Update @types/archiver to version 8.0.0 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index ef739a9..ee8b53c 100644 --- a/package.json +++ b/package.json @@ -54,7 +54,7 @@ "devDependencies": { "@eslint/js": "10.0.1", "@tsconfig/node22": "22.0.5", - "@types/archiver": "7.0.0", + "@types/archiver": "8.0.0", "@types/diacritics": "1.3.3", "@types/ejs": "3.1.5", "@types/fs-extra": "11.0.4",