Skip to content

Commit 12ed396

Browse files
committed
chore(deps): upgrade
1 parent d6093b4 commit 12ed396

File tree

8 files changed

+596
-616
lines changed

8 files changed

+596
-616
lines changed

.eslintrc.js

+4-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
/** @type {import('eslint').Linter.Config} */
22
module.exports = {
33
root: true,
4-
extends: ['icebreaker', 'plugin:prettier/recommended']
4+
extends: ['icebreaker', 'plugin:prettier/recommended'],
5+
rules: {
6+
'unicorn/prefer-at': 0
7+
}
58
}

package.json

+5-5
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,8 @@
2525
"@tailwindcss-mangle/shared": "workspace:*",
2626
"@tsconfig/recommended": "^1.0.3",
2727
"@types/lodash-es": "^4.17.12",
28-
"@types/node": "^20.11.5",
29-
"@vitest/coverage-v8": "^1.2.0",
28+
"@types/node": "^20.11.16",
29+
"@vitest/coverage-v8": "^1.2.2",
3030
"bumpp": "^9.3.0",
3131
"cross-env": "^7.0.3",
3232
"dedent": "^1.5.1",
@@ -38,16 +38,16 @@
3838
"eslint-plugin-prettier": "^5.1.3",
3939
"lodash-es": "^4.17.21",
4040
"only-allow": "^1.2.1",
41-
"prettier": "^3.2.3",
42-
"rollup": "^4.9.5",
41+
"prettier": "^3.2.5",
42+
"rollup": "^4.9.6",
4343
"tailwindcss-patch": "workspace:*",
4444
"ts-node": "^10.9.2",
4545
"tslib": "^2.6.2",
4646
"tsup": "^8.0.1",
4747
"typescript": "^5.3.3",
4848
"unbuild": "^2.0.0",
4949
"unplugin-tailwindcss-mangle": "workspace:*",
50-
"vitest": "^1.2.0"
50+
"vitest": "^1.2.2"
5151
},
5252
"engines": {
5353
"node": ">=16.6.0"

packages/core/package.json

+6-6
Original file line numberDiff line numberDiff line change
@@ -44,25 +44,25 @@
4444
},
4545
"dependencies": {
4646
"@ast-core/escape": "^1.0.1",
47-
"@babel/core": "^7.23.7",
47+
"@babel/core": "^7.23.9",
4848
"@babel/helper-plugin-utils": "^7.22.5",
4949
"@babel/preset-typescript": "^7.23.3",
50-
"@babel/types": "^7.23.6",
50+
"@babel/types": "^7.23.9",
5151
"@tailwindcss-mangle/config": "workspace:^",
5252
"@tailwindcss-mangle/shared": "workspace:^",
5353
"fast-sort": "^3.4.0",
54-
"magic-string": "^0.30.5",
54+
"magic-string": "^0.30.7",
5555
"micromatch": "^4.0.5",
5656
"parse5": "^7.1.2",
57-
"postcss": "^8.4.33",
57+
"postcss": "^8.4.34",
5858
"postcss-selector-parser": "^6.0.15"
5959
},
6060
"devDependencies": {
6161
"@parse5/tools": "^0.4.0",
6262
"@types/babel__core": "^7.20.5",
6363
"@types/micromatch": "^4.0.6",
64-
"@vue/compiler-core": "^3.4.14",
65-
"@vue/compiler-sfc": "^3.4.14"
64+
"@vue/compiler-core": "^3.4.15",
65+
"@vue/compiler-sfc": "^3.4.15"
6666
},
6767
"homepage": "https://github.com/sonofmagic/tailwindcss-mangle",
6868
"repository": {

packages/tailwindcss-patch/package.json

+5-5
Original file line numberDiff line numberDiff line change
@@ -49,16 +49,16 @@
4949
},
5050
"dependencies": {
5151
"@babel/generator": "^7.23.6",
52-
"@babel/parser": "^7.23.6",
53-
"@babel/traverse": "^7.23.7",
54-
"@babel/types": "^7.23.6",
52+
"@babel/parser": "^7.23.9",
53+
"@babel/traverse": "^7.23.9",
54+
"@babel/types": "^7.23.9",
5555
"@tailwindcss-mangle/config": "workspace:^",
5656
"cac": "^6.7.14",
5757
"jiti": "^1.21.0",
5858
"lilconfig": "^3.0.0",
59-
"postcss": "^8.4.33",
59+
"postcss": "^8.4.34",
6060
"resolve": "^1.22.8",
61-
"semver": "^7.5.4"
61+
"semver": "^7.6.0"
6262
},
6363
"homepage": "https://github.com/sonofmagic/tailwindcss-mangle",
6464
"repository": {

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

+3-3
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ export function inspectProcessTailwindFeaturesReturnContext(content: string) {
1212
const rts = n.body.body[0]
1313
if (t.isFunctionExpression(rts.argument)) {
1414
const body = rts.argument.body.body
15-
const lastStatement = body.at(-1)
15+
const lastStatement = body[body.length - 1]
1616
hasPatched = t.isReturnStatement(lastStatement) && t.isIdentifier(lastStatement.argument) && lastStatement.argument.name === 'context'
1717
if (!hasPatched) {
1818
// return context;
@@ -52,7 +52,7 @@ export function inspectPostcssPlugin(content: string) {
5252

5353
if (idx > -1) {
5454
const prevStatement = n.body[idx - 1]
55-
const lastStatement = n.body.at(-1)
55+
const lastStatement = n.body[n.body.length - 1]
5656
const hasPatchedCondition0 =
5757
prevStatement &&
5858
t.isVariableDeclaration(prevStatement) &&
@@ -110,7 +110,7 @@ export function inspectPostcssPlugin(content: string) {
110110
if (pluginsCode[1] && t.isFunctionExpression(pluginsCode[1])) {
111111
const targetBlockStatement = pluginsCode[1].body
112112

113-
const lastStatement = targetBlockStatement.body.at(-1)
113+
const lastStatement = targetBlockStatement.body[targetBlockStatement.body.length - 1]
114114
if (t.isExpressionStatement(lastStatement)) {
115115
// contextRef.value.push((0, _processTailwindFeatures.default)(context)(root, result));
116116
const newExpressionStatement = t.expressionStatement(

packages/unplugin-tailwind-merge/package.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
"author": "",
1010
"license": "MIT",
1111
"dependencies": {
12-
"tailwind-merge": "^2.2.0",
13-
"unplugin": "^1.6.0"
12+
"tailwind-merge": "^2.2.1",
13+
"unplugin": "^1.7.1"
1414
}
1515
}

packages/unplugin-tailwindcss-mangle/package.json

+9-9
Original file line numberDiff line numberDiff line change
@@ -74,26 +74,26 @@
7474
"@tailwindcss-mangle/config": "workspace:^",
7575
"@tailwindcss-mangle/core": "workspace:^",
7676
"@tailwindcss-mangle/shared": "workspace:^",
77-
"magic-string": "^0.30.5",
78-
"unplugin": "^1.6.0"
77+
"magic-string": "^0.30.7",
78+
"unplugin": "^1.7.1"
7979
},
8080
"publishConfig": {
8181
"access": "public",
8282
"registry": "https://registry.npmjs.org/"
8383
},
8484
"devDependencies": {
8585
"@types/babel__helper-plugin-utils": "^7.10.3",
86-
"astro": "^4.1.3",
87-
"css-loader": "^6.9.0",
86+
"astro": "^4.3.2",
87+
"css-loader": "^6.10.0",
8888
"html-webpack-plugin": "^5.6.0",
89-
"mini-css-extract-plugin": "^2.7.7",
89+
"mini-css-extract-plugin": "^2.8.0",
9090
"normalize-newline": "^4.1.0",
91-
"postcss": "^8.4.33",
92-
"postcss-loader": "^8.0.0",
91+
"postcss": "^8.4.34",
92+
"postcss-loader": "^8.1.0",
9393
"tailwindcss": "^3.4.1",
9494
"tailwindcss-patch": "workspace:^",
95-
"vite": "^5.0.11",
96-
"webpack": "^5.89.0",
95+
"vite": "^5.0.12",
96+
"webpack": "^5.90.1",
9797
"webpack-build-utils": "^0.0.7"
9898
},
9999
"homepage": "https://github.com/sonofmagic/tailwindcss-mangle",

0 commit comments

Comments
 (0)