@flemist/simple-utils 2.1.7 → 2.1.8

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.
@@ -7,7 +7,9 @@ export type FileStorageOptionsBase = {
7
7
  };
8
8
  export type FileStorageOptions = FileStorageOptionsBase & {
9
9
  /**
10
- * Temp dir should be on the same device as dir to be meaningful.
10
+ * Temp dir should be on the same device as dir to be meaningful
11
+ * The cache writes files via atomic rename from tmp to target,
12
+ * which requires same device.
11
13
  * The temp dir can be shared between multiple cache instances
12
14
  */
13
15
  tmpDir: string;
@@ -5,7 +5,9 @@ import { CompressGzipOptions } from '../../common/gzip/compressGzip';
5
5
  export declare function createFileCacheOptions<Input, Value>(options: {
6
6
  dir: string;
7
7
  /**
8
- * Temp dir should be on the same device as dir to be meaningful.
8
+ * Temp dir should be on the same device as dir to be meaningful
9
+ * The cache writes files via atomic rename from tmp to target,
10
+ * which requires same device.
9
11
  * The temp dir can be shared between multiple cache instances
10
12
  */
11
13
  tmpDir: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@flemist/simple-utils",
3
- "version": "2.1.7",
3
+ "version": "2.1.8",
4
4
  "description": "Simple simple utils",
5
5
  "sideEffects": false,
6
6
  "types": "build/common/index.d.ts",
@@ -34,6 +34,7 @@
34
34
  "require": "./build/node/index.cjs"
35
35
  }
36
36
  },
37
+ "packageManager": "pnpm@10.18.3",
37
38
  "engines": {
38
39
  "node": ">=20"
39
40
  },
@@ -62,6 +63,38 @@
62
63
  "publishConfig": {
63
64
  "access": "public"
64
65
  },
66
+ "scripts": {
67
+ "========================= install =========================": "",
68
+ "_prepublishOnly": "run-p audit lint build test:all && npm login",
69
+ "prepare": "node .husky/install.mjs",
70
+ "install:playwright": "pnpm exec playwright install --with-deps",
71
+ "========================= deploy =========================": "",
72
+ "build": "vite build",
73
+ "========================= lint =========================": "",
74
+ "audit": "pnpm audit --prod",
75
+ "lint:es": "eslint .",
76
+ "lint:es:fix": "eslint --fix .",
77
+ "lint": "run-p lint:es",
78
+ "lint:fix": "run-s lint:es:fix",
79
+ "lint-staged": "lint-staged",
80
+ "check:types": "tsc --noEmit",
81
+ "check": "run-p audit check:types lint",
82
+ "========================= test =========================": "",
83
+ "test:node": "vitest --run --config vite.projects.ts --project node --bail 3",
84
+ "test:browser": "vitest --run --config vite.projects.ts --project browser --bail 3",
85
+ "test:chrome": "vitest --run --config vite.projects.ts --project browser --browser chromium --bail 3",
86
+ "test:all": "vitest --run --config vite.projects.ts --bail 3",
87
+ "test": "run-s test:node test:browser",
88
+ "========================= dev =========================": "",
89
+ "kill-node": "taskkill /F /IM node.exe",
90
+ "kill-java": "taskkill /F /IM java.exe",
91
+ "kill-chrome": "taskkill /F /IM chrome.exe",
92
+ "========================= mcp =========================": "",
93
+ "mcp:playwright": "mcp-server-playwright --port 8002 --host local.host --isolated",
94
+ "mcp:tools": "mcp-project-tools",
95
+ "========================= other =========================": "",
96
+ "dep:fix": "tsx tools/dep-fix.ts"
97
+ },
65
98
  "devDependencies": {
66
99
  "@eslint/compat": "1.2.4",
67
100
  "@eslint/eslintrc": "3.2.0",
@@ -69,7 +102,6 @@
69
102
  "@flemist/copy-glob-flat": "0.0.5",
70
103
  "@flemist/mcp-project-tools": "5.0.2",
71
104
  "@flemist/test-utils": "1.0.4",
72
- "@flemist/test-variants": "5.0.8",
73
105
  "@types/eslint": "9.6.1",
74
106
  "@types/node": "22.12.0",
75
107
  "@typescript-eslint/eslint-plugin": "8.19.0",
@@ -100,40 +132,11 @@
100
132
  "@flemist/async-utils": "^1.2.8",
101
133
  "@flemist/pairing-heap": "^1.0.0",
102
134
  "@flemist/priority-queue": "^1.0.1",
135
+ "@flemist/test-variants": "^5.0.8",
103
136
  "@flemist/time-controller": "^1.0.4",
104
137
  "@flemist/time-limits": "^2.0.4",
105
138
  "fflate": "^0.8.2",
106
139
  "picomatch": "^4.0.4",
107
140
  "tslib": ">=2.8.1"
108
- },
109
- "scripts": {
110
- "========================= install =========================": "",
111
- "install:playwright": "pnpm exec playwright install --with-deps",
112
- "========================= deploy =========================": "",
113
- "build": "vite build",
114
- "========================= lint =========================": "",
115
- "audit": "pnpm audit --prod",
116
- "lint:es": "eslint .",
117
- "lint:es:fix": "eslint --fix .",
118
- "lint": "run-p lint:es",
119
- "lint:fix": "run-s lint:es:fix",
120
- "lint-staged": "lint-staged",
121
- "check:types": "tsc --noEmit",
122
- "check": "run-p audit check:types lint",
123
- "========================= test =========================": "",
124
- "test:node": "vitest --run --config vite.projects.ts --project node --bail 3",
125
- "test:browser": "vitest --run --config vite.projects.ts --project browser --bail 3",
126
- "test:chrome": "vitest --run --config vite.projects.ts --project browser --browser chromium --bail 3",
127
- "test:all": "vitest --run --config vite.projects.ts --bail 3",
128
- "test": "run-s test:node test:browser",
129
- "========================= dev =========================": "",
130
- "kill-node": "taskkill /F /IM node.exe",
131
- "kill-java": "taskkill /F /IM java.exe",
132
- "kill-chrome": "taskkill /F /IM chrome.exe",
133
- "========================= mcp =========================": "",
134
- "mcp:playwright": "mcp-server-playwright --port 8002 --host local.host --isolated",
135
- "mcp:tools": "mcp-project-tools",
136
- "========================= other =========================": "",
137
- "dep:fix": "tsx tools/dep-fix.ts"
138
141
  }
139
- }
142
+ }