Skip to content

Commit f603c5b

Browse files
committed
chore: bump version
1 parent 6dd1bff commit f603c5b

File tree

7 files changed

+344
-326
lines changed

7 files changed

+344
-326
lines changed

Diff for: .changeset/nice-baboons-play.md

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"tailwindcss-patch": patch
3+
---
4+
5+
fix: CacheManager read write func

Diff for: package.json

+3-3
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@
6161
"@types/resolve": "^1.20.6",
6262
"@types/semver": "^7.5.8",
6363
"@types/set-value": "^4.0.3",
64-
"@vitest/coverage-v8": "~3.0.5",
64+
"@vitest/coverage-v8": "~3.0.6",
6565
"astro": "^5.3.0",
6666
"ci-info": "^4.1.0",
6767
"comment-json": "^4.2.5",
@@ -101,15 +101,15 @@
101101
"tailwindcss2": "npm:@tailwindcss/postcss7-compat@^2.2.17",
102102
"tslib": "^2.8.1",
103103
"tsup": "^8.3.6",
104-
"tsx": "^4.19.2",
104+
"tsx": "^4.19.3",
105105
"turbo": "^2.4.2",
106106
"typescript": "^5.7.3",
107107
"unbuild": "^3.3.1",
108108
"unplugin": "^2.2.0",
109109
"unplugin-tailwindcss-mangle": "workspace:*",
110110
"vite": "^6.1.0",
111111
"vite-tsconfig-paths": "^5.1.4",
112-
"vitest": "~3.0.5",
112+
"vitest": "~3.0.6",
113113
"webpack": "^5.98.0",
114114
"webpack-build-utils": "^0.0.7",
115115
"yaml": "^2.7.0"

Diff for: packages/tailwindcss-patch/package.json

+4-4
Original file line numberDiff line numberDiff line change
@@ -86,10 +86,10 @@
8686
"tailwindcss-config": "^1.0.0"
8787
},
8888
"devDependencies": {
89-
"@tailwindcss/node": "^4.0.6",
90-
"@tailwindcss/oxide": "^4.0.6",
91-
"@tailwindcss/postcss": "^4.0.6",
92-
"@tailwindcss/vite": "^4.0.6",
89+
"@tailwindcss/node": "^4.0.7",
90+
"@tailwindcss/oxide": "^4.0.7",
91+
"@tailwindcss/postcss": "^4.0.7",
92+
"@tailwindcss/vite": "^4.0.7",
9393
"tailwindcss": "^4.0.6",
9494
"tailwindcss-3": "npm:tailwindcss@^3",
9595
"tailwindcss-4": "npm:tailwindcss@^4.0.6"

Diff for: packages/tailwindcss-patch/src/core/cache.ts

+8-3
Original file line numberDiff line numberDiff line change
@@ -66,13 +66,18 @@ export class CacheManager {
6666
try {
6767
if (isExisted) {
6868
const data = await fs.readJSON(filename)
69-
return new Set<string>(data)
69+
return new Set<string>(data ?? [])
7070
}
7171
}
7272
catch (error) {
73-
logger.error(`path:${filename}`)
7473
logger.error(error)
75-
isExisted && await fs.remove(filename)
74+
try {
75+
isExisted && await fs.remove(filename)
76+
}
77+
catch (error) {
78+
logger.error(error)
79+
}
7680
}
81+
return new Set<string>()
7782
}
7883
}

Diff for: packages/tailwindcss-patch/test/cache.test.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ describe('cache', () => {
6767
})
6868
expect(fs.existsSync(filepath)).toBe(true)
6969
const cache = await cm.read()
70-
expect(cache).toBe(undefined)
70+
expect(cache).toBeInstanceOf(Set)
7171
expect(fs.existsSync(filepath)).toBe(false)
7272
})
7373

0 commit comments

Comments
 (0)