Skip to content

Commit 0404f90

Browse files
committed
chore: bump version
1 parent aad6b28 commit 0404f90

File tree

13 files changed

+1797
-1652
lines changed

13 files changed

+1797
-1652
lines changed

.changeset/beige-lies-rush.md

+10
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
---
2+
"unplugin-tailwindcss-mangle": minor
3+
"tailwindcss-patch": minor
4+
"@tailwindcss-mangle/config": minor
5+
"@tailwindcss-mangle/core": minor
6+
"@tailwindcss-mangle/website": minor
7+
"@tailwindcss-mangle/shared": minor
8+
---
9+
10+
feat: support tailwindcss@4.1.1

package.json

+14-14
Original file line numberDiff line numberDiff line change
@@ -38,16 +38,16 @@
3838
"@commitlint/config-conventional": "^19.8.0",
3939
"@commitlint/prompt-cli": "^19.8.0",
4040
"@commitlint/types": "^19.8.0",
41-
"@icebreakers/eslint-config": "^1.0.4",
42-
"@icebreakers/monorepo": "^0.7.8",
41+
"@icebreakers/eslint-config": "^1.1.0",
42+
"@icebreakers/monorepo": "^0.7.9",
4343
"@icebreakers/stylelint-config": "^1.0.0",
4444
"@rollup/pluginutils": "^5.1.4",
4545
"@tailwindcss-mangle/core": "workspace:*",
4646
"@tailwindcss-mangle/shared": "workspace:*",
4747
"@tsconfig/recommended": "^1.0.8",
4848
"@types/babel__generator": "^7.6.8",
4949
"@types/babel__helper-plugin-utils": "^7.10.3",
50-
"@types/babel__traverse": "^7.20.6",
50+
"@types/babel__traverse": "^7.20.7",
5151
"@types/fs-extra": "^11.0.4",
5252
"@types/get-value": "^3.0.5",
5353
"@types/git-url-parse": "^9.0.3",
@@ -57,12 +57,12 @@
5757
"@types/lodash": "^4.17.16",
5858
"@types/lodash-es": "^4.17.12",
5959
"@types/micromatch": "^4.0.9",
60-
"@types/node": "^22.13.10",
60+
"@types/node": "^22.14.0",
6161
"@types/resolve": "^1.20.6",
62-
"@types/semver": "^7.5.8",
62+
"@types/semver": "^7.7.0",
6363
"@types/set-value": "^4.0.3",
64-
"@vitest/coverage-v8": "~3.0.8",
65-
"astro": "^5.5.2",
64+
"@vitest/coverage-v8": "~3.1.1",
65+
"astro": "^5.5.6",
6666
"ci-info": "^4.2.0",
6767
"comment-json": "^4.2.5",
6868
"cross-env": "^7.0.3",
@@ -71,7 +71,7 @@
7171
"defu": "^6.1.4",
7272
"del": "^8.0.0",
7373
"dotenv": "^16.4.7",
74-
"eslint": "^9.22.0",
74+
"eslint": "^9.23.0",
7575
"execa": "^9.5.2",
7676
"fast-glob": "^3.3.3",
7777
"fdir": "^6.4.3",
@@ -89,7 +89,7 @@
8989
"mini-css-extract-plugin": "^2.9.2",
9090
"normalize-newline": "^4.1.0",
9191
"only-allow": "^1.2.1",
92-
"openai": "^4.87.3",
92+
"openai": "^4.91.1",
9393
"pathe": "^2.0.3",
9494
"picomatch": "^4.0.2",
9595
"pkg-types": "^2.1.0",
@@ -98,7 +98,7 @@
9898
"postcss7": "npm:postcss@7",
9999
"prettier": "^3.5.3",
100100
"rimraf": "^6.0.1",
101-
"rollup": "^4.35.0",
101+
"rollup": "^4.39.0",
102102
"set-value": "^4.1.0",
103103
"tailwindcss": "^3.4.17",
104104
"tailwindcss-patch": "workspace:*",
@@ -109,13 +109,13 @@
109109
"turbo": "^2.4.4",
110110
"typescript": "^5.8.2",
111111
"unbuild": "^3.5.0",
112-
"unplugin": "^2.2.0",
112+
"unplugin": "^2.2.2",
113113
"unplugin-tailwindcss-mangle": "workspace:*",
114-
"vite": "^6.2.2",
114+
"vite": "^6.2.4",
115115
"vite-tsconfig-paths": "^5.1.4",
116-
"vitest": "~3.0.8",
116+
"vitest": "~3.1.1",
117117
"webpack": "^5.98.0",
118118
"webpack-build-utils": "^0.0.7",
119-
"yaml": "^2.7.0"
119+
"yaml": "^2.7.1"
120120
}
121121
}

packages/config/src/types.ts

+2-7
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import type { FilterPattern } from '@rollup/pluginutils'
22
import type { IClassGeneratorOptions } from '@tailwindcss-mangle/shared'
3+
import type { SourceEntry } from '@tailwindcss/oxide'
34
import type { PackageResolvingOptions } from 'local-pkg'
45

56
export interface ClassMapOutputOptions {
@@ -34,14 +35,8 @@ export interface TailwindcssV3PatchConfig {
3435
config?: string
3536
}
3637

37-
export interface GlobEntry {
38-
/** Base path of the glob */
39-
base?: string
40-
/** Glob pattern */
41-
pattern: string
42-
}
4338
export interface TailwindcssV4PatchConfig {
44-
sources?: GlobEntry[]
39+
sources?: SourceEntry[]
4540
base?: string
4641
css?: string
4742
cssEntries?: string[]

packages/core/package.json

+3-3
Original file line numberDiff line numberDiff line change
@@ -64,9 +64,9 @@
6464
},
6565
"dependencies": {
6666
"@ast-core/escape": "^1.0.1",
67-
"@babel/parser": "^7.26.10",
68-
"@babel/traverse": "^7.26.10",
69-
"@babel/types": "^7.26.10",
67+
"@babel/parser": "^7.27.0",
68+
"@babel/traverse": "^7.27.0",
69+
"@babel/types": "^7.27.0",
7070
"@tailwindcss-mangle/config": "workspace:^",
7171
"@tailwindcss-mangle/shared": "workspace:^",
7272
"fast-sort": "^3.4.1",

packages/tailwindcss-patch/package.json

+11-11
Original file line numberDiff line numberDiff line change
@@ -73,13 +73,13 @@
7373
}
7474
},
7575
"dependencies": {
76-
"@babel/generator": "^7.26.10",
77-
"@babel/parser": "^7.26.10",
78-
"@babel/traverse": "^7.26.10",
79-
"@babel/types": "^7.26.10",
76+
"@babel/generator": "^7.27.0",
77+
"@babel/parser": "^7.27.0",
78+
"@babel/traverse": "^7.27.0",
79+
"@babel/types": "^7.27.0",
8080
"@tailwindcss-mangle/config": "workspace:^",
8181
"cac": "^6.7.14",
82-
"consola": "^3.4.0",
82+
"consola": "^3.4.2",
8383
"fs-extra": "^11.3.0",
8484
"local-pkg": "^1.1.1",
8585
"pathe": "^2.0.3",
@@ -88,12 +88,12 @@
8888
"tailwindcss-config": "^1.0.0"
8989
},
9090
"devDependencies": {
91-
"@tailwindcss/node": "^4.0.14",
92-
"@tailwindcss/oxide": "^4.0.14",
93-
"@tailwindcss/postcss": "^4.0.14",
94-
"@tailwindcss/vite": "^4.0.14",
95-
"tailwindcss": "^4.0.9",
91+
"@tailwindcss/node": "^4.1.1",
92+
"@tailwindcss/oxide": "^4.1.1",
93+
"@tailwindcss/postcss": "^4.1.1",
94+
"@tailwindcss/vite": "^4.1.1",
95+
"tailwindcss": "^4.1.1",
9696
"tailwindcss-3": "npm:tailwindcss@^3",
97-
"tailwindcss-4": "npm:tailwindcss@^4.0.9"
97+
"tailwindcss-4": "npm:tailwindcss@^4.1.1"
9898
}
9999
}

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

+4-3
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import type { GlobEntry } from '@tailwindcss/oxide'
1+
import type { SourceEntry } from '@tailwindcss/oxide'
22
import process from 'node:process'
33
import { defuOverrideArray } from '@tailwindcss-mangle/shared'
44

@@ -27,7 +27,7 @@ export async function extractRawCandidatesWithPositions(
2727
}
2828

2929
export async function extractRawCandidates(
30-
sources?: GlobEntry[],
30+
sources?: SourceEntry[],
3131
): Promise<string[]> {
3232
const { Scanner } = await importOxide()
3333
const scanner = new Scanner({
@@ -40,7 +40,7 @@ export async function extractRawCandidates(
4040
}
4141

4242
export interface ExtractValidCandidatesOption {
43-
sources?: GlobEntry[]
43+
sources?: SourceEntry[]
4444
base?: string
4545
css?: string
4646
}
@@ -60,6 +60,7 @@ export async function extractValidCandidates(options?: ExtractValidCandidatesOpt
6060
{
6161
base: cwd,
6262
pattern: '**/*',
63+
negated: false,
6364
},
6465
],
6566
},

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

+2
Original file line numberDiff line numberDiff line change
@@ -128,6 +128,7 @@ export class TailwindcssPatcher {
128128
return {
129129
base: x.base ?? v4?.base ?? process.cwd(),
130130
pattern: x.pattern,
131+
negated: x.negated,
131132
}
132133
}),
133134
})
@@ -144,6 +145,7 @@ export class TailwindcssPatcher {
144145
return {
145146
base: x.base ?? v4?.base ?? process.cwd(),
146147
pattern: x.pattern,
148+
negated: x.negated,
147149
}
148150
}),
149151
})

packages/tailwindcss-patch/test/__snapshots__/v4.test.ts.snap

+1-8
Original file line numberDiff line numberDiff line change
@@ -2,24 +2,17 @@
22

33
exports[`v4 > extractRawCandidates case 0 1`] = `
44
[
5-
"!DOCTYPE",
5+
"--x",
66
"bg-[#123456]",
7-
"body",
87
"charset",
98
"class",
109
"content",
11-
"device-width",
12-
"div",
1310
"en",
14-
"head",
15-
"html",
1611
"initial-scale",
1712
"lang",
18-
"meta",
1913
"name",
2014
"text-(--x)",
2115
"text-xs",
22-
"title",
2316
"viewport",
2417
"width",
2518
]

packages/tailwindcss-patch/test/tailwindcss4.test.ts

+1
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ describe('tailwindcss4', () => {
1313
{
1414
base: __dirname,
1515
pattern: 'fixtures/hello-world.wxml', // path.resolve(__dirname, 'fixtures/hello-world.wxml'),
16+
negated: false,
1617
},
1718

1819
],

packages/tailwindcss-patch/test/v4.test.ts

+4
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ describe('v4', () => {
1515
{
1616
base: import.meta.dirname,
1717
pattern: path.resolve(import.meta.dirname, './fixtures/v4/index.html'),
18+
negated: false,
1819
},
1920
],
2021
})
@@ -31,6 +32,7 @@ describe('v4', () => {
3132
{
3233
base: import.meta.dirname,
3334
pattern: path.resolve(import.meta.dirname, './fixtures/v4/**/*.html'),
35+
negated: false,
3436
},
3537
],
3638
})
@@ -48,6 +50,7 @@ describe('v4', () => {
4850
{
4951
base: import.meta.dirname,
5052
pattern: path.resolve(import.meta.dirname, './fixtures/v4/**/*.html'),
53+
negated: false,
5154
},
5255
],
5356
},
@@ -65,6 +68,7 @@ describe('v4', () => {
6568
{
6669
base: import.meta.dirname,
6770
pattern: path.resolve(import.meta.dirname, './fixtures/v4/index.html'),
71+
negated: false,
6872
},
6973
],
7074
)

packages/unplugin-tailwindcss-mangle/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@
7777
"@tailwindcss-mangle/shared": "workspace:^",
7878
"is-css-request": "^1.0.1",
7979
"magic-string": "^0.30.17",
80-
"unplugin": "^2.2.0"
80+
"unplugin": "^2.2.2"
8181
},
8282
"publishConfig": {
8383
"access": "public",

0 commit comments

Comments
 (0)