Skip to content

Commit 738bd9e

Browse files
committed
chore(deps): upgrade
1 parent 7261647 commit 738bd9e

File tree

16 files changed

+1842
-1018
lines changed

16 files changed

+1842
-1018
lines changed

package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
"devDependencies": {
2727
"@changesets/changelog-github": "^0.5.0",
2828
"@changesets/cli": "^2.27.5",
29-
"@icebreakers/eslint-config": "^0.3.5",
29+
"@icebreakers/eslint-config": "^0.3.7",
3030
"@tailwindcss-mangle/core": "workspace:*",
3131
"@tailwindcss-mangle/shared": "workspace:*",
3232
"@tsconfig/recommended": "^1.0.6",
@@ -38,15 +38,15 @@
3838
"dedent": "^1.5.3",
3939
"defu": "^6.1.4",
4040
"del": "^7.1.0",
41-
"eslint": "^9.4.0",
41+
"eslint": "^9.5.0",
4242
"eslint-config-icebreaker": "^1.2.3",
4343
"eslint-config-prettier": "^9.1.0",
4444
"eslint-plugin-prettier": "^5.1.3",
4545
"local-pkg": "^0.5.0",
4646
"lodash-es": "^4.17.21",
4747
"only-allow": "^1.2.1",
4848
"pathe": "^1.1.2",
49-
"prettier": "^3.3.1",
49+
"prettier": "^3.3.2",
5050
"rollup": "^4.18.0",
5151
"tailwindcss-patch": "workspace:*",
5252
"ts-node": "^10.9.2",

packages/config/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@
4646
},
4747
"dependencies": {
4848
"@tailwindcss-mangle/shared": "workspace:^",
49-
"c12": "^1.10.0",
49+
"c12": "^1.11.1",
5050
"dedent": "^1.5.3"
5151
},
5252
"homepage": "https://github.com/sonofmagic/tailwindcss-mangle",

packages/core/package.json

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -44,14 +44,14 @@
4444
},
4545
"dependencies": {
4646
"@ast-core/escape": "^1.0.1",
47-
"@babel/core": "^7.24.6",
48-
"@babel/helper-plugin-utils": "^7.24.6",
49-
"@babel/parser": "^7.24.6",
50-
"@babel/preset-typescript": "^7.24.6",
51-
"@babel/types": "^7.24.6",
47+
"@babel/core": "^7.24.7",
48+
"@babel/helper-plugin-utils": "^7.24.7",
49+
"@babel/parser": "^7.24.7",
50+
"@babel/preset-typescript": "^7.24.7",
51+
"@babel/types": "^7.24.7",
5252
"@tailwindcss-mangle/config": "workspace:^",
5353
"@tailwindcss-mangle/shared": "workspace:^",
54-
"@vue/compiler-sfc": "^3.4.27",
54+
"@vue/compiler-sfc": "^3.4.29",
5555
"fast-sort": "^3.4.0",
5656
"magic-string": "^0.30.10",
5757
"micromatch": "^4.0.7",
@@ -63,7 +63,7 @@
6363
"@parse5/tools": "^0.5.0",
6464
"@types/babel__core": "^7.20.5",
6565
"@types/micromatch": "^4.0.7",
66-
"@vue/compiler-core": "^3.4.27",
66+
"@vue/compiler-core": "^3.4.29",
6767
"@vue/compiler-sfc": "^3.4.27"
6868
},
6969
"homepage": "https://github.com/sonofmagic/tailwindcss-mangle",

packages/tailwindcss-patch/package.json

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -48,14 +48,14 @@
4848
}
4949
},
5050
"dependencies": {
51-
"@babel/generator": "^7.24.6",
52-
"@babel/parser": "^7.24.6",
53-
"@babel/traverse": "^7.24.6",
54-
"@babel/types": "^7.24.6",
51+
"@babel/generator": "^7.24.7",
52+
"@babel/parser": "^7.24.7",
53+
"@babel/traverse": "^7.24.7",
54+
"@babel/types": "^7.24.7",
5555
"@tailwindcss-mangle/config": "workspace:^",
5656
"cac": "^6.7.14",
57-
"jiti": "^1.21.3",
58-
"lilconfig": "^3.1.1",
57+
"jiti": "^1.21.6",
58+
"lilconfig": "^3.1.2",
5959
"postcss": "^8.4.38",
6060
"resolve": "^1.22.8",
6161
"semver": "^7.6.2"
@@ -67,7 +67,7 @@
6767
"@types/semver": "^7.5.8",
6868
"pkg-types": "^1.1.1",
6969
"postcss7": "npm:postcss@7",
70-
"tailwindcss": "^3.4.3",
70+
"tailwindcss": "^3.4.4",
7171
"tailwindcss2": "npm:@tailwindcss/postcss7-compat@^2.2.17"
7272
},
7373
"directories": {

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

Lines changed: 122 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2893,3 +2893,125 @@ function processTailwindFeatures(setupContext) {
28932893
}",
28942894
}
28952895
`;
2896+
2897+
exports[`versions-patch > patch tailwindcss3.4.4 1`] = `
2898+
{
2899+
"plugin": ""use strict";
2900+
2901+
Object.defineProperty(exports, "__esModule", {
2902+
value: true
2903+
});
2904+
const _setupTrackingContext = /*#__PURE__*/_interop_require_default(require("./lib/setupTrackingContext"));
2905+
const _processTailwindFeatures = /*#__PURE__*/_interop_require_default(require("./processTailwindFeatures"));
2906+
const _sharedState = require("./lib/sharedState");
2907+
const _findAtConfigPath = require("./lib/findAtConfigPath");
2908+
function _interop_require_default(obj) {
2909+
return obj && obj.__esModule ? obj : {
2910+
default: obj
2911+
};
2912+
}
2913+
const contextRef = {
2914+
value: []
2915+
};
2916+
module.exports = function tailwindcss(configOrPath) {
2917+
return {
2918+
postcssPlugin: "tailwindcss",
2919+
plugins: [_sharedState.env.DEBUG && function (root) {
2920+
console.log("\\n");
2921+
console.time("JIT TOTAL");
2922+
return root;
2923+
}, async function (root, result) {
2924+
contextRef.value.length = 0;
2925+
var _findAtConfigPath1;
2926+
// Use the path for the \`@config\` directive if it exists, otherwise use the
2927+
// path for the file being processed
2928+
configOrPath = (_findAtConfigPath1 = (0, _findAtConfigPath.findAtConfigPath)(root, result)) !== null && _findAtConfigPath1 !== void 0 ? _findAtConfigPath1 : configOrPath;
2929+
let context = (0, _setupTrackingContext.default)(configOrPath);
2930+
if (root.type === "document") {
2931+
let roots = root.nodes.filter(node => node.type === "root");
2932+
for (const root of roots) {
2933+
if (root.type === "root") {
2934+
contextRef.value.push(await (0, _processTailwindFeatures.default)(context)(root, result));
2935+
}
2936+
}
2937+
return;
2938+
}
2939+
contextRef.value.push(await (0, _processTailwindFeatures.default)(context)(root, result));
2940+
}, _sharedState.env.DEBUG && function (root) {
2941+
console.timeEnd("JIT TOTAL");
2942+
console.log("\\n");
2943+
return root;
2944+
}].filter(Boolean)
2945+
};
2946+
};
2947+
module.exports.postcss = true;
2948+
module.exports.contextRef = contextRef;",
2949+
"processTailwindFeatures": ""use strict";
2950+
2951+
Object.defineProperty(exports, "__esModule", {
2952+
value: true
2953+
});
2954+
Object.defineProperty(exports, "default", {
2955+
enumerable: true,
2956+
get: function () {
2957+
return processTailwindFeatures;
2958+
}
2959+
});
2960+
const _normalizeTailwindDirectives = /*#__PURE__*/_interop_require_default(require("./lib/normalizeTailwindDirectives"));
2961+
const _expandTailwindAtRules = /*#__PURE__*/_interop_require_default(require("./lib/expandTailwindAtRules"));
2962+
const _expandApplyAtRules = /*#__PURE__*/_interop_require_default(require("./lib/expandApplyAtRules"));
2963+
const _evaluateTailwindFunctions = /*#__PURE__*/_interop_require_default(require("./lib/evaluateTailwindFunctions"));
2964+
const _substituteScreenAtRules = /*#__PURE__*/_interop_require_default(require("./lib/substituteScreenAtRules"));
2965+
const _resolveDefaultsAtRules = /*#__PURE__*/_interop_require_default(require("./lib/resolveDefaultsAtRules"));
2966+
const _collapseAdjacentRules = /*#__PURE__*/_interop_require_default(require("./lib/collapseAdjacentRules"));
2967+
const _collapseDuplicateDeclarations = /*#__PURE__*/_interop_require_default(require("./lib/collapseDuplicateDeclarations"));
2968+
const _partitionApplyAtRules = /*#__PURE__*/_interop_require_default(require("./lib/partitionApplyAtRules"));
2969+
const _setupContextUtils = require("./lib/setupContextUtils");
2970+
const _featureFlags = require("./featureFlags");
2971+
function _interop_require_default(obj) {
2972+
return obj && obj.__esModule ? obj : {
2973+
default: obj
2974+
};
2975+
}
2976+
function processTailwindFeatures(setupContext) {
2977+
return async function (root, result) {
2978+
let {
2979+
tailwindDirectives,
2980+
applyDirectives
2981+
} = (0, _normalizeTailwindDirectives.default)(root);
2982+
// Partition apply rules that are found in the css
2983+
// itself.
2984+
(0, _partitionApplyAtRules.default)()(root, result);
2985+
let context = setupContext({
2986+
tailwindDirectives,
2987+
applyDirectives,
2988+
registerDependency(dependency) {
2989+
result.messages.push({
2990+
plugin: "tailwindcss",
2991+
parent: result.opts.from,
2992+
...dependency
2993+
});
2994+
},
2995+
createContext(tailwindConfig, changedContent) {
2996+
return (0, _setupContextUtils.createContext)(tailwindConfig, changedContent, root);
2997+
}
2998+
})(root, result);
2999+
if (context.tailwindConfig.separator === "-") {
3000+
throw new Error("The '-' character cannot be used as a custom separator in JIT mode due to parsing ambiguity. Please use another character like '_' instead.");
3001+
}
3002+
(0, _featureFlags.issueFlagNotices)(context.tailwindConfig);
3003+
await (0, _expandTailwindAtRules.default)(context)(root, result);
3004+
// Partition apply rules that are generated by
3005+
// addComponents, addUtilities and so on.
3006+
(0, _partitionApplyAtRules.default)()(root, result);
3007+
(0, _expandApplyAtRules.default)(context)(root, result);
3008+
(0, _evaluateTailwindFunctions.default)(context)(root, result);
3009+
(0, _substituteScreenAtRules.default)(context)(root, result);
3010+
(0, _resolveDefaultsAtRules.default)(context)(root, result);
3011+
(0, _collapseAdjacentRules.default)(context)(root, result);
3012+
(0, _collapseDuplicateDeclarations.default)(context)(root, result);
3013+
return context;
3014+
};
3015+
}",
3016+
}
3017+
`;

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
exports[`postcss > getCss 0.common 1`] = `
44
"/*
5-
! tailwindcss v3.4.3 | MIT License | https://tailwindcss.com
5+
! tailwindcss v3.4.4 | MIT License | https://tailwindcss.com
66
*//*
77
1. Prevent padding and border from affecting element width. (https://github.com/mozdevs/cssremedy/issues/4)
88
2. Allow adding a border to an element by just adding a border-width. (https://github.com/tailwindcss/tailwindcss/pull/116)
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
"use strict";
2+
module.exports = require("./plugin");
Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
"use strict";
2+
Object.defineProperty(exports, "__esModule", {
3+
value: true
4+
});
5+
const _setupTrackingContext = /*#__PURE__*/ _interop_require_default(require("./lib/setupTrackingContext"));
6+
const _processTailwindFeatures = /*#__PURE__*/ _interop_require_default(require("./processTailwindFeatures"));
7+
const _sharedState = require("./lib/sharedState");
8+
const _findAtConfigPath = require("./lib/findAtConfigPath");
9+
function _interop_require_default(obj) {
10+
return obj && obj.__esModule ? obj : {
11+
default: obj
12+
};
13+
}
14+
module.exports = function tailwindcss(configOrPath) {
15+
return {
16+
postcssPlugin: "tailwindcss",
17+
plugins: [
18+
_sharedState.env.DEBUG && function(root) {
19+
console.log("\n");
20+
console.time("JIT TOTAL");
21+
return root;
22+
},
23+
async function(root, result) {
24+
var _findAtConfigPath1;
25+
// Use the path for the `@config` directive if it exists, otherwise use the
26+
// path for the file being processed
27+
configOrPath = (_findAtConfigPath1 = (0, _findAtConfigPath.findAtConfigPath)(root, result)) !== null && _findAtConfigPath1 !== void 0 ? _findAtConfigPath1 : configOrPath;
28+
let context = (0, _setupTrackingContext.default)(configOrPath);
29+
if (root.type === "document") {
30+
let roots = root.nodes.filter((node)=>node.type === "root");
31+
for (const root of roots){
32+
if (root.type === "root") {
33+
await (0, _processTailwindFeatures.default)(context)(root, result);
34+
}
35+
}
36+
return;
37+
}
38+
await (0, _processTailwindFeatures.default)(context)(root, result);
39+
},
40+
_sharedState.env.DEBUG && function(root) {
41+
console.timeEnd("JIT TOTAL");
42+
console.log("\n");
43+
return root;
44+
}
45+
].filter(Boolean)
46+
};
47+
};
48+
module.exports.postcss = true;
Lines changed: 62 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,62 @@
1+
"use strict";
2+
Object.defineProperty(exports, "__esModule", {
3+
value: true
4+
});
5+
Object.defineProperty(exports, "default", {
6+
enumerable: true,
7+
get: function() {
8+
return processTailwindFeatures;
9+
}
10+
});
11+
const _normalizeTailwindDirectives = /*#__PURE__*/ _interop_require_default(require("./lib/normalizeTailwindDirectives"));
12+
const _expandTailwindAtRules = /*#__PURE__*/ _interop_require_default(require("./lib/expandTailwindAtRules"));
13+
const _expandApplyAtRules = /*#__PURE__*/ _interop_require_default(require("./lib/expandApplyAtRules"));
14+
const _evaluateTailwindFunctions = /*#__PURE__*/ _interop_require_default(require("./lib/evaluateTailwindFunctions"));
15+
const _substituteScreenAtRules = /*#__PURE__*/ _interop_require_default(require("./lib/substituteScreenAtRules"));
16+
const _resolveDefaultsAtRules = /*#__PURE__*/ _interop_require_default(require("./lib/resolveDefaultsAtRules"));
17+
const _collapseAdjacentRules = /*#__PURE__*/ _interop_require_default(require("./lib/collapseAdjacentRules"));
18+
const _collapseDuplicateDeclarations = /*#__PURE__*/ _interop_require_default(require("./lib/collapseDuplicateDeclarations"));
19+
const _partitionApplyAtRules = /*#__PURE__*/ _interop_require_default(require("./lib/partitionApplyAtRules"));
20+
const _setupContextUtils = require("./lib/setupContextUtils");
21+
const _featureFlags = require("./featureFlags");
22+
function _interop_require_default(obj) {
23+
return obj && obj.__esModule ? obj : {
24+
default: obj
25+
};
26+
}
27+
function processTailwindFeatures(setupContext) {
28+
return async function(root, result) {
29+
let { tailwindDirectives , applyDirectives } = (0, _normalizeTailwindDirectives.default)(root);
30+
// Partition apply rules that are found in the css
31+
// itself.
32+
(0, _partitionApplyAtRules.default)()(root, result);
33+
let context = setupContext({
34+
tailwindDirectives,
35+
applyDirectives,
36+
registerDependency (dependency) {
37+
result.messages.push({
38+
plugin: "tailwindcss",
39+
parent: result.opts.from,
40+
...dependency
41+
});
42+
},
43+
createContext (tailwindConfig, changedContent) {
44+
return (0, _setupContextUtils.createContext)(tailwindConfig, changedContent, root);
45+
}
46+
})(root, result);
47+
if (context.tailwindConfig.separator === "-") {
48+
throw new Error("The '-' character cannot be used as a custom separator in JIT mode due to parsing ambiguity. Please use another character like '_' instead.");
49+
}
50+
(0, _featureFlags.issueFlagNotices)(context.tailwindConfig);
51+
await (0, _expandTailwindAtRules.default)(context)(root, result);
52+
// Partition apply rules that are generated by
53+
// addComponents, addUtilities and so on.
54+
(0, _partitionApplyAtRules.default)()(root, result);
55+
(0, _expandApplyAtRules.default)(context)(root, result);
56+
(0, _evaluateTailwindFunctions.default)(context)(root, result);
57+
(0, _substituteScreenAtRules.default)(context)(root, result);
58+
(0, _resolveDefaultsAtRules.default)(context)(root, result);
59+
(0, _collapseAdjacentRules.default)(context)(root, result);
60+
(0, _collapseDuplicateDeclarations.default)(context)(root, result);
61+
};
62+
}

0 commit comments

Comments
 (0)