Skip to content

Commit 034f9f3

Browse files
committed
chore: bump version
1 parent c0bd614 commit 034f9f3

File tree

9 files changed

+999
-1020
lines changed

9 files changed

+999
-1020
lines changed

.changeset/cold-moments-juggle.md

+10
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
---
2+
"tailwindcss-patch": patch
3+
"@tailwindcss-mangle/config": patch
4+
"@tailwindcss-mangle/core": patch
5+
"@tailwindcss-mangle/website": patch
6+
"@tailwindcss-mangle/shared": patch
7+
"unplugin-tailwindcss-mangle": patch
8+
---
9+
10+
chore: bump deps and add patch only for tailwindcss v2 and v3

package.json

+8-8
Original file line numberDiff line numberDiff line change
@@ -33,13 +33,13 @@
3333
},
3434
"devDependencies": {
3535
"@changesets/changelog-github": "^0.5.1",
36-
"@changesets/cli": "^2.28.0",
36+
"@changesets/cli": "^2.28.1",
3737
"@commitlint/cli": "^19.7.1",
3838
"@commitlint/config-conventional": "^19.7.1",
3939
"@commitlint/prompt-cli": "^19.7.1",
4040
"@commitlint/types": "^19.5.0",
41-
"@icebreakers/eslint-config": "^1.0.0",
42-
"@icebreakers/monorepo": "^0.7.4",
41+
"@icebreakers/eslint-config": "^1.0.1",
42+
"@icebreakers/monorepo": "^0.7.5",
4343
"@icebreakers/stylelint-config": "^1.0.0",
4444
"@rollup/pluginutils": "^5.1.4",
4545
"@tailwindcss-mangle/core": "workspace:*",
@@ -57,7 +57,7 @@
5757
"@types/lodash": "^4.17.15",
5858
"@types/lodash-es": "^4.17.12",
5959
"@types/micromatch": "^4.0.9",
60-
"@types/node": "^22.13.4",
60+
"@types/node": "^22.13.5",
6161
"@types/resolve": "^1.20.6",
6262
"@types/semver": "^7.5.8",
6363
"@types/set-value": "^4.0.3",
@@ -70,7 +70,7 @@
7070
"dedent": "^1.5.3",
7171
"defu": "^6.1.4",
7272
"del": "^8.0.0",
73-
"eslint": "^9.20.1",
73+
"eslint": "^9.21.0",
7474
"execa": "^9.5.2",
7575
"fast-glob": "^3.3.3",
7676
"fs-extra": "^11.3.0",
@@ -89,10 +89,10 @@
8989
"only-allow": "^1.2.1",
9090
"pathe": "^2.0.3",
9191
"pkg-types": "^1.3.1",
92-
"postcss": "^8.5.2",
92+
"postcss": "^8.5.3",
9393
"postcss-loader": "^8.1.1",
9494
"postcss7": "npm:postcss@7",
95-
"prettier": "^3.5.1",
95+
"prettier": "^3.5.2",
9696
"rimraf": "^6.0.1",
9797
"rollup": "^4.34.8",
9898
"set-value": "^4.1.0",
@@ -107,7 +107,7 @@
107107
"unbuild": "^3.3.1",
108108
"unplugin": "^2.2.0",
109109
"unplugin-tailwindcss-mangle": "workspace:*",
110-
"vite": "^6.1.0",
110+
"vite": "^6.1.1",
111111
"vite-tsconfig-paths": "^5.1.4",
112112
"vitest": "~3.0.6",
113113
"webpack": "^5.98.0",

packages/config/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@
6666
},
6767
"dependencies": {
6868
"@tailwindcss-mangle/shared": "workspace:^",
69-
"c12": "^2.0.2",
69+
"c12": "^2.0.4",
7070
"fs-extra": "^11.3.0",
7171
"is-css-request": "^1.0.1",
7272
"pathe": "^2.0.3"

packages/core/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@
7474
"htmlparser2": "10.0.0",
7575
"magic-string": "^0.30.17",
7676
"pathe": "^2.0.3",
77-
"postcss": "^8.5.2",
77+
"postcss": "^8.5.3",
7878
"postcss-selector-parser": "^7.1.0"
7979
}
8080
}

packages/tailwindcss-patch/package.json

+5-5
Original file line numberDiff line numberDiff line change
@@ -81,15 +81,15 @@
8181
"fs-extra": "^11.3.0",
8282
"local-pkg": "^1.0.0",
8383
"pathe": "^2.0.3",
84-
"postcss": "^8.5.2",
84+
"postcss": "^8.5.3",
8585
"semver": "^7.7.1",
8686
"tailwindcss-config": "^1.0.0"
8787
},
8888
"devDependencies": {
89-
"@tailwindcss/node": "^4.0.7",
90-
"@tailwindcss/oxide": "^4.0.7",
91-
"@tailwindcss/postcss": "^4.0.7",
92-
"@tailwindcss/vite": "^4.0.7",
89+
"@tailwindcss/node": "^4.0.8",
90+
"@tailwindcss/oxide": "^4.0.8",
91+
"@tailwindcss/postcss": "^4.0.8",
92+
"@tailwindcss/vite": "^4.0.8",
9393
"tailwindcss": "^4.0.6",
9494
"tailwindcss-3": "npm:tailwindcss@^3",
9595
"tailwindcss-4": "npm:tailwindcss@^4.0.6"

packages/tailwindcss-patch/src/core/patcher.ts

+8-6
Original file line numberDiff line numberDiff line change
@@ -52,11 +52,13 @@ export class TailwindcssPatcher {
5252
}
5353
this.packageInfo = packageInfo
5454
this.patch = () => {
55-
try {
56-
return internalPatch(this.packageInfo?.packageJsonPath, this.patchOptions)
57-
}
58-
catch (error) {
59-
logger.error(`patch tailwindcss failed: ${(<Error>error).message}`)
55+
if (this.majorVersion === 3 || this.majorVersion === 2) {
56+
try {
57+
return internalPatch(this.packageInfo?.packageJsonPath, this.patchOptions)
58+
}
59+
catch (error) {
60+
logger.error(`patch tailwindcss failed: ${(<Error>error).message}`)
61+
}
6062
}
6163
}
6264
}
@@ -102,7 +104,7 @@ export class TailwindcssPatcher {
102104

103105
async getClassCacheSet(): Promise<Set<string>> {
104106
const classSet = new Set<string>()
105-
const { output, tailwindcss } = this.patchOptions
107+
const { tailwindcss } = this.patchOptions
106108
if (this.majorVersion === 4) {
107109
const { v4 } = tailwindcss ?? {}
108110
if (Array.isArray(v4?.cssEntries)) {

0 commit comments

Comments
 (0)