redzip 4.2.0 → 4.4.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/ChangeLog CHANGED
@@ -1,8 +1,18 @@
1
+ 2026.02.26, v4.4.0
2
+
3
+ feature:
4
+ - 47b3069 redzip: local: write: keep mtime of parent directory when creating directory (coderaiser/cloudcmd#457)
5
+
6
+ 2026.02.25, v4.3.0
7
+
8
+ feature:
9
+ - 9e9f975 redzip: keep mtime of directory (coderaiser/cloudcmd#457)
10
+ - 317f8cd redzip: c8 v11.0.0
11
+
1
12
  2026.02.24, v4.2.0
2
13
 
3
14
  feature:
4
15
  - 2c7e9cc redzip: write: date: directory (coderaiser/cloudcmd#457)
5
- - de68a82 redzip: write: date: add (coderaiser/cloudcmd#457)
6
16
 
7
17
  2026.02.21, v4.1.0
8
18
 
@@ -41,18 +41,21 @@ export const write = async (outerPath, innerPath, readStream, options = {}) => {
41
41
  date,
42
42
  } = options;
43
43
 
44
+ const dirPath = dirname(outerPath);
45
+ const {date: dirDate} = await readStat(dirPath);
46
+
44
47
  if (!readStream) {
45
48
  await mkdir(outerPath, {
46
49
  recursive: true,
47
50
  mode,
48
51
  });
52
+
49
53
  await maybeSetDate(outerPath, date);
54
+ await maybeSetDate(dirPath, dirDate);
50
55
 
51
56
  return;
52
57
  }
53
58
 
54
- const dirPath = dirname(outerPath);
55
-
56
59
  await mkdir(dirPath, {
57
60
  recursive: true,
58
61
  });
@@ -67,7 +70,7 @@ export const write = async (outerPath, innerPath, readStream, options = {}) => {
67
70
  await pipe([readStream, writeStream]);
68
71
 
69
72
  await maybeSetDate(outerPath, date);
70
- await maybeSetDate(dirPath, date);
73
+ await maybeSetDate(dirPath, dirDate);
71
74
  };
72
75
 
73
76
  export const readSize = async (outerPath, innerPath, options) => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "redzip",
3
- "version": "4.2.0",
3
+ "version": "4.4.0",
4
4
  "type": "module",
5
5
  "main": "lib/redzip.js",
6
6
  "description": "work with files inside archives like with regular files",
@@ -40,7 +40,7 @@
40
40
  },
41
41
  "devDependencies": {
42
42
  "@iocmd/wait": "^2.1.0",
43
- "c8": "^10.1.2",
43
+ "c8": "^11.0.0",
44
44
  "eslint": "^10.0.1",
45
45
  "eslint-plugin-putout": "^31.0.1",
46
46
  "madrun": "^13.0.0",