tailwindcss-patch 9.3.0 → 9.3.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/cli.js CHANGED
@@ -1,6 +1,6 @@
1
1
  const require_chunk = require("./chunk-8l464Juk.js");
2
- const require_validate = require("./validate-DzKStQUM.js");
3
- const require_index_bundle = require("./index.bundle-DSIUuQAH.js");
2
+ const require_validate = require("./validate-Bd1fbQsd.js");
3
+ const require_index_bundle = require("./index.bundle-Y1jzXpYx.js");
4
4
  let node_process = require("node:process");
5
5
  node_process = require_chunk.__toESM(node_process);
6
6
  //#region src/cli.bundle.ts
package/dist/cli.mjs CHANGED
@@ -1,5 +1,5 @@
1
- import { j as logger, r as ValidateCommandError } from "./validate-B_jsptz9.mjs";
2
- import { t as createTailwindcssPatchCli } from "./index.bundle-CsMNxjyL.mjs";
1
+ import { j as logger, r as ValidateCommandError } from "./validate-CVInpab6.mjs";
2
+ import { t as createTailwindcssPatchCli } from "./index.bundle-BKRsKEHP.mjs";
3
3
  import process from "node:process";
4
4
  //#region src/cli.bundle.ts
5
5
  async function main() {
@@ -1,6 +1,6 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
2
  const require_chunk = require("../chunk-8l464Juk.js");
3
- const require_validate = require("../validate-DzKStQUM.js");
3
+ const require_validate = require("../validate-Bd1fbQsd.js");
4
4
  let node_process = require("node:process");
5
5
  node_process = require_chunk.__toESM(node_process);
6
6
  let fs_extra = require("fs-extra");
@@ -1,4 +1,4 @@
1
- import { D as loadPatchOptionsForWorkspace, O as loadWorkspaceConfigModule, a as tailwindcssPatchCommands, b as groupTokensByFile, i as classifyValidateError, j as logger, n as VALIDATE_FAILURE_REASONS, o as migrateConfigFiles, r as ValidateCommandError, s as restoreConfigFiles, t as VALIDATE_EXIT_CODES, u as TailwindcssPatcher } from "../validate-B_jsptz9.mjs";
1
+ import { D as loadPatchOptionsForWorkspace, O as loadWorkspaceConfigModule, a as tailwindcssPatchCommands, b as groupTokensByFile, i as classifyValidateError, j as logger, n as VALIDATE_FAILURE_REASONS, o as migrateConfigFiles, r as ValidateCommandError, s as restoreConfigFiles, t as VALIDATE_EXIT_CODES, u as TailwindcssPatcher } from "../validate-CVInpab6.mjs";
2
2
  import process from "node:process";
3
3
  import fs from "fs-extra";
4
4
  import path from "pathe";
@@ -1,4 +1,4 @@
1
- import { C as canonicalizeBareArbitraryValueCandidates, E as resolveValidTailwindV4Candidates, S as loadTailwindV4DesignSystem, T as replaceBareArbitraryValueSelectors, _ as extractRawCandidates, k as normalizeOptions, v as extractRawCandidatesWithPositions, w as extractTailwindV4InlineSourceCandidates, x as compileTailwindV4Source } from "./validate-B_jsptz9.mjs";
1
+ import { C as canonicalizeBareArbitraryValueCandidates, E as resolveValidTailwindV4Candidates, S as loadTailwindV4DesignSystem, T as replaceBareArbitraryValueSelectors, _ as extractRawCandidates, k as normalizeOptions, v as extractRawCandidatesWithPositions, w as extractTailwindV4InlineSourceCandidates, x as compileTailwindV4Source } from "./validate-CVInpab6.mjs";
2
2
  import { createRequire } from "node:module";
3
3
  import process from "node:process";
4
4
  import path from "pathe";
@@ -1,5 +1,5 @@
1
1
  const require_chunk = require("./chunk-8l464Juk.js");
2
- const require_validate = require("./validate-DzKStQUM.js");
2
+ const require_validate = require("./validate-Bd1fbQsd.js");
3
3
  let node_module = require("node:module");
4
4
  let node_process = require("node:process");
5
5
  node_process = require_chunk.__toESM(node_process);
package/dist/index.js CHANGED
@@ -1,6 +1,6 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
- const require_validate = require("./validate-DzKStQUM.js");
3
- const require_index_bundle = require("./index.bundle-DSIUuQAH.js");
2
+ const require_validate = require("./validate-Bd1fbQsd.js");
3
+ const require_index_bundle = require("./index.bundle-Y1jzXpYx.js");
4
4
  exports.CacheStore = require_validate.CacheStore;
5
5
  exports.MIGRATION_REPORT_KIND = require_validate.MIGRATION_REPORT_KIND;
6
6
  exports.MIGRATION_REPORT_SCHEMA_VERSION = require_validate.MIGRATION_REPORT_SCHEMA_VERSION;
package/dist/index.mjs CHANGED
@@ -1,3 +1,3 @@
1
- import { A as CacheStore, E as resolveValidTailwindV4Candidates, S as loadTailwindV4DesignSystem, _ as extractRawCandidates, a as tailwindcssPatchCommands, b as groupTokensByFile, c as MIGRATION_REPORT_KIND, d as getPatchStatusReport, f as runTailwindBuild, g as extractProjectCandidatesWithPositions, h as collectClassesFromTailwindV4, j as logger, k as normalizeOptions, l as MIGRATION_REPORT_SCHEMA_VERSION, m as collectClassesFromContexts, n as VALIDATE_FAILURE_REASONS, o as migrateConfigFiles, p as loadRuntimeContexts, r as ValidateCommandError, s as restoreConfigFiles, t as VALIDATE_EXIT_CODES, u as TailwindcssPatcher, v as extractRawCandidatesWithPositions, y as extractValidCandidates } from "./validate-B_jsptz9.mjs";
2
- import { a as resolveTailwindV4SourceFromPatchOptions, i as resolveTailwindV4Source, n as defineConfig, o as createTailwindV4Engine, r as mountTailwindcssPatchCommands, t as createTailwindcssPatchCli } from "./index.bundle-CsMNxjyL.mjs";
1
+ import { A as CacheStore, E as resolveValidTailwindV4Candidates, S as loadTailwindV4DesignSystem, _ as extractRawCandidates, a as tailwindcssPatchCommands, b as groupTokensByFile, c as MIGRATION_REPORT_KIND, d as getPatchStatusReport, f as runTailwindBuild, g as extractProjectCandidatesWithPositions, h as collectClassesFromTailwindV4, j as logger, k as normalizeOptions, l as MIGRATION_REPORT_SCHEMA_VERSION, m as collectClassesFromContexts, n as VALIDATE_FAILURE_REASONS, o as migrateConfigFiles, p as loadRuntimeContexts, r as ValidateCommandError, s as restoreConfigFiles, t as VALIDATE_EXIT_CODES, u as TailwindcssPatcher, v as extractRawCandidatesWithPositions, y as extractValidCandidates } from "./validate-CVInpab6.mjs";
2
+ import { a as resolveTailwindV4SourceFromPatchOptions, i as resolveTailwindV4Source, n as defineConfig, o as createTailwindV4Engine, r as mountTailwindcssPatchCommands, t as createTailwindcssPatchCli } from "./index.bundle-BKRsKEHP.mjs";
3
3
  export { CacheStore, MIGRATION_REPORT_KIND, MIGRATION_REPORT_SCHEMA_VERSION, TailwindcssPatcher, VALIDATE_EXIT_CODES, VALIDATE_FAILURE_REASONS, ValidateCommandError, collectClassesFromContexts, collectClassesFromTailwindV4, createTailwindV4Engine, createTailwindcssPatchCli, defineConfig, extractProjectCandidatesWithPositions, extractRawCandidates, extractRawCandidatesWithPositions, extractValidCandidates, getPatchStatusReport, groupTokensByFile, loadRuntimeContexts, loadTailwindV4DesignSystem, logger, migrateConfigFiles, mountTailwindcssPatchCommands, normalizeOptions, resolveTailwindV4Source, resolveTailwindV4SourceFromPatchOptions, resolveValidTailwindV4Candidates, restoreConfigFiles, runTailwindBuild, tailwindcssPatchCommands };
@@ -23,7 +23,7 @@ _babel_traverse = require_chunk.__toESM(_babel_traverse);
23
23
  let _babel_parser = require("@babel/parser");
24
24
  let tailwindcss_config = require("tailwindcss-config");
25
25
  //#region package.json
26
- var version = "9.3.0";
26
+ var version = "9.3.1";
27
27
  //#endregion
28
28
  //#region src/constants.ts
29
29
  const pkgName = "tailwindcss-patch";
@@ -184,6 +184,8 @@ function cloneEntry(entry) {
184
184
  };
185
185
  }
186
186
  var CacheStore = class {
187
+ options;
188
+ context;
187
189
  driver;
188
190
  lockPath;
189
191
  memoryCache = null;
@@ -2913,6 +2915,9 @@ function resolveTailwindExecutionOptions(normalized, majorVersion) {
2913
2915
  };
2914
2916
  }
2915
2917
  var BaseCollector = class {
2918
+ packageInfo;
2919
+ options;
2920
+ majorVersion;
2916
2921
  constructor(packageInfo, options, majorVersion) {
2917
2922
  this.packageInfo = packageInfo;
2918
2923
  this.options = options;
@@ -2937,6 +2942,7 @@ var BaseCollector = class {
2937
2942
  }
2938
2943
  };
2939
2944
  var RuntimeCollector = class extends BaseCollector {
2945
+ snapshotFactory;
2940
2946
  inFlightBuild;
2941
2947
  constructor(packageInfo, options, majorVersion, snapshotFactory) {
2942
2948
  super(packageInfo, options, majorVersion);
@@ -16,7 +16,7 @@ import _babelTraverse from "@babel/traverse";
16
16
  import { parse, parse as parse$1 } from "@babel/parser";
17
17
  import { loadConfig } from "tailwindcss-config";
18
18
  //#region package.json
19
- var version = "9.3.0";
19
+ var version = "9.3.1";
20
20
  //#endregion
21
21
  //#region src/constants.ts
22
22
  const pkgName = "tailwindcss-patch";
@@ -177,6 +177,8 @@ function cloneEntry(entry) {
177
177
  };
178
178
  }
179
179
  var CacheStore = class {
180
+ options;
181
+ context;
180
182
  driver;
181
183
  lockPath;
182
184
  memoryCache = null;
@@ -1400,7 +1402,7 @@ function normalizeOptions(options = {}) {
1400
1402
  };
1401
1403
  }
1402
1404
  //#endregion
1403
- //#region ../../node_modules/.pnpm/tsdown@0.21.10_synckit@0.11.12_typescript@6.0.3/node_modules/tsdown/esm-shims.js
1405
+ //#region ../../node_modules/.pnpm/tsdown@0.22.0_tsx@4.21.0_typescript@6.0.3_unrun@0.2.37_synckit@0.11.12_/node_modules/tsdown/esm-shims.js
1404
1406
  const getFilename = () => fileURLToPath(import.meta.url);
1405
1407
  const getDirname = () => path$1.dirname(getFilename());
1406
1408
  const __dirname = /* @__PURE__ */ getDirname();
@@ -2911,6 +2913,9 @@ function resolveTailwindExecutionOptions(normalized, majorVersion) {
2911
2913
  };
2912
2914
  }
2913
2915
  var BaseCollector = class {
2916
+ packageInfo;
2917
+ options;
2918
+ majorVersion;
2914
2919
  constructor(packageInfo, options, majorVersion) {
2915
2920
  this.packageInfo = packageInfo;
2916
2921
  this.options = options;
@@ -2935,6 +2940,7 @@ var BaseCollector = class {
2935
2940
  }
2936
2941
  };
2937
2942
  var RuntimeCollector = class extends BaseCollector {
2943
+ snapshotFactory;
2938
2944
  inFlightBuild;
2939
2945
  constructor(packageInfo, options, majorVersion, snapshotFactory) {
2940
2946
  super(packageInfo, options, majorVersion);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "tailwindcss-patch",
3
- "version": "9.3.0",
3
+ "version": "9.3.1",
4
4
  "description": "patch tailwindcss for exposing context and extract classes",
5
5
  "author": "ice breaker <1324318532@qq.com>",
6
6
  "license": "MIT",
@@ -65,21 +65,21 @@
65
65
  "@babel/parser": "^7.29.3",
66
66
  "@babel/traverse": "^7.29.0",
67
67
  "@babel/types": "^7.29.0",
68
- "@tailwindcss/node": "^4.2.4",
69
- "@tailwindcss/oxide": "^4.2.4",
68
+ "@tailwindcss/node": "^4.3.0",
69
+ "@tailwindcss/oxide": "^4.3.0",
70
70
  "cac": "6.7.14",
71
71
  "consola": "^3.4.2",
72
- "fs-extra": "^11.3.4",
72
+ "fs-extra": "^11.3.5",
73
73
  "local-pkg": "^1.1.2",
74
74
  "pathe": "^2.0.3",
75
75
  "postcss": "^8.5.14",
76
- "semver": "^7.7.4",
76
+ "semver": "^7.8.0",
77
77
  "tailwindcss-config": "^1.1.5",
78
- "@tailwindcss-mangle/config": "7.0.1"
78
+ "@tailwindcss-mangle/config": "7.0.2"
79
79
  },
80
80
  "devDependencies": {
81
- "@tailwindcss/postcss": "^4.2.4",
82
- "@tailwindcss/vite": "^4.2.4",
81
+ "@tailwindcss/postcss": "^4.3.0",
82
+ "@tailwindcss/vite": "^4.3.0",
83
83
  "tailwindcss": "^4.1.18",
84
84
  "tailwindcss-3": "npm:tailwindcss@^3.4.19",
85
85
  "tailwindcss-4": "npm:tailwindcss@^4.1.18"