Skip to content

High performance self-hosted photo and video management solution.

fix(deps): update dependency archiver to v8 (#31913)

renovate[bot]51da695c62f3
diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml
index 0ad9f56ccf..098849ea28 100644
--- a/pnpm-lock.yaml
+++ b/pnpm-lock.yaml
@@ -480,8 +480,8 @@ importers:
specifier: ^0.0.71
version: 0.0.71
archiver:
- specifier: ^7.0.0
- version: 7.0.1
+ specifier: ^8.0.0
+ version: 8.0.0
async-lock:
specifier: ^1.4.0
version: 1.4.1
@@ -661,8 +661,8 @@ importers:
specifier: ^1.4.14
version: 1.16.18(@swc/[email protected])
'@types/archiver':
- specifier: ^7.0.0
- version: 7.0.0
+ specifier: ^8.0.0
+ version: 8.0.0
'@types/async-lock':
specifier: ^1.4.2
version: 1.4.2
@@ -3999,65 +3999,38 @@ packages:
resolution: {integrity: sha512-CkX0H4NCIOMHOU3rh2xXZywinYZ/EnJlaOlJiGI0e5L4XjFqHf4iH30LMbXWChVppdA9ljbanjtzQFOhDNfTWg==}
engines: {node: '>=14'}
- '@peculiar/[email protected]':
- resolution: {integrity: sha512-NgekZOrSJFSBFLFoLfwePguAWAx7z1+f2TEsWFUMyiqqfntZ4+S/S5hzqME3q4pCA0iOsFKdwiQ35dwY24eVqA==}
-
'@peculiar/[email protected]':
resolution: {integrity: sha512-jTPTr/9rxKM+niQLMF3jiAMb0lWHUhUHIuSOhdGCIfpB4FAQYf9SoiXOgxP8bS/68IB+bj+1OHvVnDVCQfVUZw==}
engines: {node: '>=14'}
- '@peculiar/[email protected]':
- resolution: {integrity: sha512-akbF8+uvleHs8sejNPQxwmVFuInAg6FMNHOwMILXfP518YfFJwdR3jr6oNUPOaEJfuEhn/vkNOCIT6ASUd4mbg==}
-
'@peculiar/[email protected]':
resolution: {integrity: sha512-GFd3iOjFrWX+QWH2R2dO5QSJyyRGv9CIBKtRlGlPNCvb2RvmCbBDexe91MJgV76c69d998Xsa+CvuQ98seoiPg==}
engines: {node: '>=14'}
- '@peculiar/[email protected]':
- resolution: {integrity: sha512-ohwlk+u9Rv2NOAY1c6MfHj45ATVF8R1DUN/WCgABiRtLi2ZftlZWZX7KvpAbU8v9xPcmoILfELeEABj/rn18AQ==}
-
'@peculiar/[email protected]':
resolution: {integrity: sha512-1y3QK9ZH1IPleAMmRoJlPS10eGkAWnULETW8zDFNUK1ffqpG7zmDY+kYBMYQgwlcQZ2iitLm2z2EBP0xzRXpaA==}
engines: {node: '>=14'}
- '@peculiar/[email protected]':
- resolution: {integrity: sha512-5yof1ytoB++RQtaFbqSUJ8pxDJtZT6vbVqZ8XoJ61ph7UjNVvfFwAilnCodqkNsAodpy13gDhoxZXw00pghnyg==}
-
'@peculiar/[email protected]':
resolution: {integrity: sha512-Ri+BZT9bnwqlHWmhs7lvWjvJRxKev2hA2+4EbZajgeYWCbR8hyv0znF4DhsFouOhMj2nSDV/iGJ6DMQtwITnCw==}
engines: {node: '>=14'}
- '@peculiar/[email protected]':
- resolution: {integrity: sha512-qAKXtLpBEw9LqhKpjw3ajZSXlBur+ipW+y2ivVBQAG6F6qRx94yO+1ZR4mvw+YaCfKSaOzLeYEzsPaBp4SJELA==}
-
'@peculiar/[email protected]':
resolution: {integrity: sha512-XIXsbDQFezYk6fudczkuvawkRD4GNpISGCqfYhdkJlvcGF/RFknU+0DDJagOaJqBf+PdPzk4J9oMqDGcvfR9HQ==}
engines: {node: '>=14'}
- '@peculiar/[email protected]':
- resolution: {integrity: sha512-b5nDWCnkV60+cQ141D6sVVwK9nz64R5n3zSVnklGd+ECdkW2Ol3U1a6yYFlalpSOaD557yuJB64A+q42jG7lUQ==}
-
'@peculiar/[email protected]':
resolution: {integrity: sha512-4Jvmwlh3gZAhNZ4/u7JSyLuce9hofOFZ4o3PYKAccCImGnyaT5CMym/ATgvAvqpOYFNW531oPZvJlEBhJy9VfA==}
engines: {node: '>=14'}
- '@peculiar/[email protected]':
- resolution: {integrity: sha512-zHEUlCqB2mk7x2lxDwHHJy7hWZOPdGHVlsmITWKB5/PbQo61atbu9PJ/0r9dQNMwFzbKPXZ8uK8/91eUhRznSg==}
-
'@peculiar/[email protected]':
resolution: {integrity: sha512-GhokD41lV4gQrrLYm3wCkHfBOnJrnhDMgt4XeMW8gzfE1UdJqIuSwsE+ggf82XBjUXRJylcm+KIGQFa4utIVLw==}
engines: {node: '>=14'}
- '@peculiar/[email protected]':
- resolution: {integrity: sha512-7YT0U/ze0tF2QOBbE15gKZwy5tvgGyLRiRHLzhlbOpf7BT032oBSd0haZqXn5W6l26WLlu3dyxzjM+2638/z2Q==}
-
'@peculiar/[email protected]':
resolution: {integrity: sha512-/85GtKOKmgvuSJNlaFfwGWNdRSZZ+hpF02NyM01XiCdzpaZONiBltDyfluFPvFx966CR+ZHNSG1jniwpy07oGg==}
engines: {node: '>=14'}
- '@peculiar/[email protected]':
- resolution: {integrity: sha512-tHjkfS/qhMnmrlB2J9NhflQlQ7In3khO3CfmVrriOlpTeErY9ZIKOso1hQ5JQiyrJ7ShvqVPk7E5fQmbclkSKA==}
-
'@peculiar/[email protected]':
resolution: {integrity: sha512-cXKcZ30wKbUkRK5RK4Z3W1imewXvHAB9apEAuIqJ0OOkOQCpJrwLOuN38QlsEXqOI+3gtUv8Kf3UZohUmCbf3w==}
engines: {node: '>=14'}
@@ -4066,9 +4039,6 @@ packages:
resolution: {integrity: sha512-ucNVg8+ANveTpMN3fy9lA2alryONdXc2A4cEG2hMniWbvQt+YOZoe8BI80YYNO8FBcuDY1qbDQ4uQGQVraHxGA==}
engines: {node: '>=14'}
- '@peculiar/[email protected]':
- resolution: {integrity: sha512-N0CMuhWUzsWEVq6F1q9X6+VKUnWzSW+cSVg+aPaGGwDdbFoFWTYgin5MHwXgpWd6y9COMBxnfy/Qc+Xc7F0Zwg==}
-
'@peculiar/[email protected]':
resolution: {integrity: sha512-+oL3HPFRIZ1St2K50lWCXiioIgSoxzz7R1J3uF6neO2yl1sgmpgY6XXJH4BdpoDkMWznQTeYF6oWNDZLCdQ4eQ==}
@@ -4889,8 +4859,8 @@ packages:
resolution: {integrity: sha512-Pay9fq2lM2wXPWbteBsRAGiWH2hig4ZE2asK+mm7kUzlxRTfL961rj89I6zV/E3PcIkDqyuBEcMxFT7rccugeQ==}
- '@types/[email protected]':
- resolution: {integrity: sha512-/3vwGwx9n+mCQdYZ2IKGGHEFL30I96UgBlk8EtRDDFQ9uxM1l4O5Ci6r00EMAkiDaTqD9DQ6nVrWRICnBPtzzg==}
+ '@types/[email protected]':
+ resolution: {integrity: sha512-YpXPbEuv9+eUIPPQWUPahj3cvs9isWRuF+J4z+KbdYVDO3rWorWQFxUVHnwPu2AgKwvgpki5F2VMX0Xx+mX45A==}
resolution: {integrity: sha512-rfT93uj5s0PRL7EzccGMs3brplhcrghnDoV26NqKhCAS1hVo+WdNsPvE/yb6ilfr5hi2MEk6d5EWJTKdxg8jVw==}
@@ -5883,6 +5853,10 @@ packages:
resolution: {integrity: sha512-ZcbTaIqJOfCc03QwD468Unz/5Ir8ATtvAHsK+FdXbDIbGfihqh9mrvdcYunQzqn4HrvWWaFyaxJhGZagaJJpPQ==}
engines: {node: '>= 14'}
+ resolution: {integrity: sha512-fV1orZfsnPn9BaSByR/qE67rJCLJEy2Ox5bq7nJh+jquWaNh6Sfec75kJ2T6PtdGUbPQlrVoSVCEOa5SdiTQ1g==}
+ engines: {node: '>=18'}
+
resolution: {integrity: sha512-Ci/qENmwHnsYo9xKIcUJN5LeDKdJ6R1Z1j9V/J5wyq8nh/mYPEpIKJbBZXtZjG04HiK7zV/p6Vs9952MrMeUIw==}
engines: {node: '>=10'}
@@ -6563,6 +6537,10 @@ packages:
resolution: {integrity: sha512-6FqVXeETqWPoGcfzrXb37E50NP0LXT8kAMu5ooZayhWWdgEY4lBEEcbQNXtkuKQsGduxiIcI4gOTsxTmuq/bSg==}
engines: {node: '>= 14'}
+ resolution: {integrity: sha512-g0S8KAD8qf4+V//pr3BfB1aBnARLXNz2Gx+jmHU0LEriUuoQUOPOulVquHKTJ8+EAIIO7fhseNDr9wK5Q9FKBQ==}
+ engines: {node: '>=18'}
+
resolution: {integrity: sha512-AF3r7P5dWxL8MxyITRMlORQNaOA2IkAFaTr4k7BUumjPtRpGDTZpl0Pb1XCO6JeDCBdp126Cgs9sMxqSjgYyRg==}
engines: {node: '>= 0.6'}
@@ -6716,6 +6694,10 @@ packages:
resolution: {integrity: sha512-piICUB6ei4IlTv1+653yq5+KoqfBYmj9bw6LqXoOneTMDXk5nM1qt12mFW1caG3LlJXEKW1Bp0WggEmIfQB34g==}
engines: {node: '>= 14'}
+ resolution: {integrity: sha512-IBWsY8xznyQrcHn8h4bC8/4ErNke5elzgG8GcqF4RFPw6aHkWWRc7Tgw6upjaTX/CT/yQgqYENkxYsTYN+hW2g==}
+ engines: {node: '>=18'}
+
resolution: {integrity: sha512-aK6BbWfhf4U/wCcLHKPJl/xa6VkVstRaPywWtMKGwuOLc/wZTyQYuoxgvZnNsBvv7Kg3YTBQYYBCggcviQczuA==}
@@ -8769,6 +8751,10 @@ packages:
resolution: {integrity: sha512-hFoiJiTl63nn+kstHGBtewWSKnQLpyb155KHheA1l39uvtO9nWIop1p3udqPcUd/xbF1VLMO4n7OI6p7RbngDg==}
engines: {node: '>=8'}
+ resolution: {integrity: sha512-Dnz92NInDqYckGEUJv689RbRiTSEHCQ7wOVeALbkOz999YpqT46yMRIGtSNl2iCL1waAZSx40+h59NV/EwzV/A==}
+ engines: {node: '>=18'}
+
resolution: {integrity: sha512-BtEeSsoaQjlSPBemMQIrY1MY0uM6vnS1g5fmufYOtnxLGUZM2178PKbhsk7Ffv58IX+ZtcvoGwccYsh0PglkAA==}
engines: {node: '>= 0.4'}
@@ -11181,6 +11167,10 @@ packages:
resolution: {integrity: sha512-v05I2k7xN8zXvPD9N+z/uhXPaj0sUFCe2rcWZIpBsqxfP7xXFQ0tipAd/wjj1YxWyWtUS5IDJpOG82JKt2EAVA==}
+ resolution: {integrity: sha512-AhNB2KgKeVJr16nK9LLZbJNWnYoT23ZrumNKFDebHBdkC8KHSqWo871JAUhoWC/RtjEVdqNMFpM6qrwRbaUqpw==}
+ engines: {node: '>=18'}
+
resolution: {integrity: sha512-hOS089on8RduqdbhvQ5Z37A0ESjsqz6qnRcffsMU3495FuTdqSm+7bhJ29JvIOsBDEEnan5DPu9t3To9VRlMzA==}
engines: {node: '>=8.10.0'}
@@ -13127,6 +13117,10 @@ packages:
resolution: {integrity: sha512-zK7YHHz4ZXpW89AHXUPbQVGKI7uvkd3hzusTdotCg1UxyaVtg0zFJSTfW/Dq5f7OBBVnq6cZIaC8Ti4hb6dtCA==}
engines: {node: '>= 14'}
+ resolution: {integrity: sha512-dSvYKdvLsAHCDqPOhIwk/q5CvuWtTB3Dgpoe0uVEFjTzIOAmsQpprX25InCvrvJsirEbu1OHyy67n/kAj1Sw/w==}
+ engines: {node: '>=18'}
+
resolution: {integrity: sha512-ytENFjIJFl2UwYglde2jchW2Hwm4GJFLDiSXWdTrJQBIN9Fcyp7n4DhxJEiWNAJMV1/BqWfW/kkg71UDcHJyTQ==}
@@ -17028,14 +17022,6 @@ snapshots:
asn1js: 3.0.10
tslib: 2.8.1
- '@peculiar/[email protected]':
- dependencies:
- '@peculiar/asn1-schema': 2.8.0
- '@peculiar/asn1-x509': 2.8.0
- '@peculiar/asn1-x509-attr': 2.8.0
- asn1js: 3.0.10
- tslib: 2.8.1
-
'@peculiar/[email protected]':
dependencies:
'@peculiar/asn1-schema': 2.10.0
@@ -17043,13 +17029,6 @@ snapshots:
asn1js: 3.0.10
tslib: 2.8.1
- '@peculiar/[email protected]':
- dependencies:
- '@peculiar/asn1-schema': 2.8.0
- '@peculiar/asn1-x509': 2.8.0
- asn1js: 3.0.10
- tslib: 2.8.1
-
'@peculiar/[email protected]':
dependencies:
'@peculiar/asn1-schema': 2.10.0
@@ -17057,13 +17036,6 @@ snapshots:
asn1js: 3.0.10
tslib: 2.8.1
- '@peculiar/[email protected]':
- dependencies:
- '@peculiar/asn1-schema': 2.8.0
- '@peculiar/asn1-x509': 2.8.0
- asn1js: 3.0.10
- tslib: 2.8.1
-
'@peculiar/[email protected]':
dependencies:
'@peculiar/asn1-cms': 2.10.0
@@ -17073,15 +17045,6 @@ snapshots:
asn1js: 3.0.10
tslib: 2.8.1
- '@peculiar/[email protected]':
- dependencies:
- '@peculiar/asn1-cms': 2.8.0
- '@peculiar/asn1-pkcs8': 2.8.0
- '@peculiar/asn1-rsa': 2.8.0
- '@peculiar/asn1-schema': 2.8.0
- asn1js: 3.0.10
- tslib: 2.8.1
-
'@peculiar/[email protected]':
dependencies:
'@peculiar/asn1-schema': 2.10.0
@@ -17089,13 +17052,6 @@ snapshots:
asn1js: 3.0.10
tslib: 2.8.1
- '@peculiar/[email protected]':
- dependencies:
- '@peculiar/asn1-schema': 2.8.0
- '@peculiar/asn1-x509': 2.8.0
- asn1js: 3.0.10
- tslib: 2.8.1
-
'@peculiar/[email protected]':
dependencies:
'@peculiar/asn1-cms': 2.10.0
@@ -17107,17 +17063,6 @@ snapshots:
asn1js: 3.0.10
tslib: 2.8.1
- '@peculiar/[email protected]':
- dependencies:
- '@peculiar/asn1-cms': 2.8.0
- '@peculiar/asn1-pfx': 2.8.0
- '@peculiar/asn1-pkcs8': 2.8.0
- '@peculiar/asn1-schema': 2.8.0
- '@peculiar/asn1-x509': 2.8.0
- '@peculiar/asn1-x509-attr': 2.8.0
- asn1js: 3.0.10
- tslib: 2.8.1
-
'@peculiar/[email protected]':
dependencies:
'@peculiar/asn1-schema': 2.10.0
@@ -17125,25 +17070,12 @@ snapshots:
asn1js: 3.0.10
tslib: 2.8.1
- '@peculiar/[email protected]':
- dependencies:
- '@peculiar/asn1-schema': 2.8.0
- '@peculiar/asn1-x509': 2.8.0
- asn1js: 3.0.10
- tslib: 2.8.1
-
'@peculiar/[email protected]':
dependencies:
'@peculiar/utils': 2.0.3
asn1js: 3.0.10
tslib: 2.8.1
- '@peculiar/[email protected]':
- dependencies:
- '@peculiar/utils': 2.0.3
- asn1js: 3.0.10
- tslib: 2.8.1
-
'@peculiar/[email protected]':
dependencies:
'@peculiar/asn1-schema': 2.10.0
@@ -17151,13 +17083,6 @@ snapshots:
asn1js: 3.0.10
tslib: 2.8.1
- '@peculiar/[email protected]':
- dependencies:
- '@peculiar/asn1-schema': 2.8.0
- '@peculiar/asn1-x509': 2.8.0
- asn1js: 3.0.10
- tslib: 2.8.1
-
'@peculiar/[email protected]':
dependencies:
'@peculiar/asn1-asym-key': 2.10.0
@@ -17173,26 +17098,19 @@ snapshots:
asn1js: 3.0.10
tslib: 2.8.1
- '@peculiar/[email protected]':
- dependencies:
- '@peculiar/asn1-schema': 2.8.0
- '@peculiar/utils': 2.0.3
- asn1js: 3.0.10
- tslib: 2.8.1
-
'@peculiar/[email protected]':
dependencies:
tslib: 2.8.1
'@peculiar/[email protected]':
dependencies:
- '@peculiar/asn1-cms': 2.8.0
- '@peculiar/asn1-csr': 2.8.0
- '@peculiar/asn1-ecc': 2.8.0
- '@peculiar/asn1-pkcs9': 2.8.0
- '@peculiar/asn1-rsa': 2.8.0
- '@peculiar/asn1-schema': 2.8.0
- '@peculiar/asn1-x509': 2.8.0
+ '@peculiar/asn1-cms': 2.10.0
+ '@peculiar/asn1-csr': 2.10.0
+ '@peculiar/asn1-ecc': 2.10.0
+ '@peculiar/asn1-pkcs9': 2.10.0
+ '@peculiar/asn1-rsa': 2.10.0
+ '@peculiar/asn1-schema': 2.10.0
+ '@peculiar/asn1-x509': 2.10.0
pvtsutils: 1.3.6
reflect-metadata: 0.2.2
tslib: 2.8.1
@@ -17452,10 +17370,10 @@ snapshots:
'@hexagon/base64': 1.1.28
'@levischuck/tiny-cbor': 0.2.11
'@peculiar/asn1-android': 2.10.0
- '@peculiar/asn1-ecc': 2.8.0
- '@peculiar/asn1-rsa': 2.8.0
- '@peculiar/asn1-schema': 2.8.0
- '@peculiar/asn1-x509': 2.8.0
+ '@peculiar/asn1-ecc': 2.10.0
+ '@peculiar/asn1-rsa': 2.10.0
+ '@peculiar/asn1-schema': 2.10.0
+ '@peculiar/asn1-x509': 2.10.0
'@peculiar/asn1-x509-post-quantum': 2.10.0
'@peculiar/x509': 2.1.0
reflect-metadata: 0.2.2
@@ -17882,8 +17800,9 @@ snapshots:
dependencies:
'@types/node': 24.19.2
- '@types/[email protected]':
+ '@types/[email protected]':
dependencies:
+ '@types/node': 24.19.2
'@types/readdir-glob': 1.1.5
'@types/[email protected]': {}
@@ -18941,6 +18860,22 @@ snapshots:
- bare-buffer
- react-native-b4a
+ dependencies:
+ async: 3.2.6
+ buffer-crc32: 1.0.0
+ is-stream: 4.0.1
+ lazystream: 1.0.1
+ normalize-path: 3.0.0
+ readable-stream: 4.8.0
+ readdir-glob: 3.0.0
+ tar-stream: 3.2.2
+ zip-stream: 7.0.5
+ transitivePeerDependencies:
+ - bare-abort-controller
+ - bare-buffer
+ - react-native-b4a
+
dependencies:
delegates: 1.0.0
@@ -19613,6 +19548,14 @@ snapshots:
normalize-path: 3.0.0
readable-stream: 4.8.0
+ dependencies:
+ crc-32: 1.2.2
+ crc32-stream: 7.0.1
+ is-stream: 4.0.1
+ normalize-path: 3.0.0
+ readable-stream: 4.8.0
+
dependencies:
mime-db: 1.54.0
@@ -19767,6 +19710,11 @@ snapshots:
crc-32: 1.2.2
readable-stream: 4.8.0
+ dependencies:
+ crc-32: 1.2.2
+ readable-stream: 4.8.0
+
@@ -22348,6 +22296,8 @@ snapshots:
+
dependencies:
call-bound: 1.0.4
@@ -25095,6 +25045,10 @@ snapshots:
dependencies:
minimatch: 5.1.9
+ dependencies:
+ minimatch: 10.2.6
+
dependencies:
picomatch: 2.3.2
@@ -27511,6 +27465,12 @@ snapshots:
compress-commons: 6.0.2
readable-stream: 4.8.0
+ dependencies:
+ compress-commons: 7.0.1
+ normalize-path: 3.0.0
+ readable-stream: 4.8.0
+
diff --git a/server/package.json b/server/package.json
index a5d53c9720..02cad26ff0 100644
--- a/server/package.json
+++ b/server/package.json
@@ -64,7 +64,7 @@
"@simplewebauthn/server": "14.0.3",
"@socket.io/redis-adapter": "^8.3.0",
"aaguids": "^0.0.71",
- "archiver": "^7.0.0",
+ "archiver": "^8.0.0",
"async-lock": "^1.4.0",
"bcrypt": "^6.0.0",
"body-parser": "^2.2.0",
@@ -126,7 +126,7 @@
"@nestjs/schematics": "^12.0.0",
"@nestjs/testing": "^12.0.0",
"@swc/core": "^1.4.14",
- "@types/archiver": "^7.0.0",
+ "@types/archiver": "^8.0.0",
"@types/async-lock": "^1.4.2",
"@types/bcrypt": "^6.0.0",
"@types/body-parser": "^1.19.6",
diff --git a/server/src/repositories/storage.repository.ts b/server/src/repositories/storage.repository.ts
index eaed895531..43766e91fc 100644
--- a/server/src/repositories/storage.repository.ts
+++ b/server/src/repositories/storage.repository.ts
@@ -1,5 +1,5 @@
import { Injectable } from '@nestjs/common';
-import archiver from 'archiver';
+import { ZipArchive } from 'archiver';
import { ChokidarOptions, watch as chokidarWatch } from 'chokidar';
import fastGlob from 'fast-glob';
import {
@@ -100,7 +100,7 @@ export class StorageRepository {
}
createZipStream(): ImmichZipStream {
- const archive = archiver('zip', { store: true });
+ const archive = new ZipArchive({ store: true });
const addFile = (input: string, filename: string) => {
archive.file(input, { name: filename, mode: 0o644 });