@empline/preflight 1.1.0 → 1.1.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/checks/runtime/zod-turbopack-compatibility.d.ts +27 -0
- package/dist/checks/runtime/zod-turbopack-compatibility.d.ts.map +1 -0
- package/dist/checks/runtime/zod-turbopack-compatibility.js +263 -0
- package/dist/checks/runtime/zod-turbopack-compatibility.js.map +1 -0
- package/package.json +1 -1
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
#!/usr/bin/env tsx
|
|
2
|
+
/**
|
|
3
|
+
* Zod Turbopack ESM Compatibility Preflight (BLOCKING)
|
|
4
|
+
*
|
|
5
|
+
* Detects Zod patterns that cause runtime errors with Next.js Turbopack bundler.
|
|
6
|
+
* This is SEPARATE from other Zod checks which focus on API deprecations.
|
|
7
|
+
*
|
|
8
|
+
* The Issue:
|
|
9
|
+
* - Turbopack has ESM bundling issues with Zod 4's internal module structure
|
|
10
|
+
* - Patterns like z.string().email(), z.email(), etc. can cause "_check is not defined" errors
|
|
11
|
+
* - These only manifest at RUNTIME in client components (not type-check or build time)
|
|
12
|
+
*
|
|
13
|
+
* Solution:
|
|
14
|
+
* - In client components ("use client"), use custom validation utilities instead
|
|
15
|
+
* - Server-side code (API routes, server components) can continue using Zod safely
|
|
16
|
+
*
|
|
17
|
+
* @see https://github.com/colinhacks/zod/issues/3891
|
|
18
|
+
*/
|
|
19
|
+
import { PreflightCheckResult } from "../../core/types";
|
|
20
|
+
export declare const id = "runtime/zod-turbopack-compatibility";
|
|
21
|
+
export declare const name = "Zod Turbopack Compatibility";
|
|
22
|
+
export declare const description = "Detects Zod patterns that cause runtime errors with Turbopack bundler";
|
|
23
|
+
export declare const category = "runtime";
|
|
24
|
+
export declare const blocking = true;
|
|
25
|
+
export declare const tags: string[];
|
|
26
|
+
export declare function run(): Promise<PreflightCheckResult>;
|
|
27
|
+
//# sourceMappingURL=zod-turbopack-compatibility.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"zod-turbopack-compatibility.d.ts","sourceRoot":"","sources":["../../../src/checks/runtime/zod-turbopack-compatibility.ts"],"names":[],"mappings":";AACA;;;;;;;;;;;;;;;;GAgBG;AAOH,OAAO,EAAE,oBAAoB,EAAoB,MAAM,kBAAkB,CAAC;AAK1E,eAAO,MAAM,EAAE,wCAAwC,CAAC;AACxD,eAAO,MAAM,IAAI,gCAAgC,CAAC;AAClD,eAAO,MAAM,WAAW,0EAA0E,CAAC;AACnG,eAAO,MAAM,QAAQ,YAAY,CAAC;AAClC,eAAO,MAAM,QAAQ,OAAO,CAAC;AAC7B,eAAO,MAAM,IAAI,UAA8D,CAAC;AAuHhF,wBAAsB,GAAG,IAAI,OAAO,CAAC,oBAAoB,CAAC,CA8GzD"}
|
|
@@ -0,0 +1,263 @@
|
|
|
1
|
+
#!/usr/bin/env tsx
|
|
2
|
+
"use strict";
|
|
3
|
+
/**
|
|
4
|
+
* Zod Turbopack ESM Compatibility Preflight (BLOCKING)
|
|
5
|
+
*
|
|
6
|
+
* Detects Zod patterns that cause runtime errors with Next.js Turbopack bundler.
|
|
7
|
+
* This is SEPARATE from other Zod checks which focus on API deprecations.
|
|
8
|
+
*
|
|
9
|
+
* The Issue:
|
|
10
|
+
* - Turbopack has ESM bundling issues with Zod 4's internal module structure
|
|
11
|
+
* - Patterns like z.string().email(), z.email(), etc. can cause "_check is not defined" errors
|
|
12
|
+
* - These only manifest at RUNTIME in client components (not type-check or build time)
|
|
13
|
+
*
|
|
14
|
+
* Solution:
|
|
15
|
+
* - In client components ("use client"), use custom validation utilities instead
|
|
16
|
+
* - Server-side code (API routes, server components) can continue using Zod safely
|
|
17
|
+
*
|
|
18
|
+
* @see https://github.com/colinhacks/zod/issues/3891
|
|
19
|
+
*/
|
|
20
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
21
|
+
if (k2 === undefined) k2 = k;
|
|
22
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
23
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
24
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
25
|
+
}
|
|
26
|
+
Object.defineProperty(o, k2, desc);
|
|
27
|
+
}) : (function(o, m, k, k2) {
|
|
28
|
+
if (k2 === undefined) k2 = k;
|
|
29
|
+
o[k2] = m[k];
|
|
30
|
+
}));
|
|
31
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
32
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
33
|
+
}) : function(o, v) {
|
|
34
|
+
o["default"] = v;
|
|
35
|
+
});
|
|
36
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
37
|
+
var ownKeys = function(o) {
|
|
38
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
39
|
+
var ar = [];
|
|
40
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
41
|
+
return ar;
|
|
42
|
+
};
|
|
43
|
+
return ownKeys(o);
|
|
44
|
+
};
|
|
45
|
+
return function (mod) {
|
|
46
|
+
if (mod && mod.__esModule) return mod;
|
|
47
|
+
var result = {};
|
|
48
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
49
|
+
__setModuleDefault(result, mod);
|
|
50
|
+
return result;
|
|
51
|
+
};
|
|
52
|
+
})();
|
|
53
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
54
|
+
exports.tags = exports.blocking = exports.category = exports.description = exports.name = exports.id = void 0;
|
|
55
|
+
exports.run = run;
|
|
56
|
+
const fs = __importStar(require("fs"));
|
|
57
|
+
const glob_1 = require("glob");
|
|
58
|
+
const path = __importStar(require("path"));
|
|
59
|
+
const console_chars_1 = require("../../utils/console-chars");
|
|
60
|
+
const exclusions_1 = require("../../shared/exclusions");
|
|
61
|
+
let appExclusions = [];
|
|
62
|
+
// METADATA
|
|
63
|
+
exports.id = "runtime/zod-turbopack-compatibility";
|
|
64
|
+
exports.name = "Zod Turbopack Compatibility";
|
|
65
|
+
exports.description = "Detects Zod patterns that cause runtime errors with Turbopack bundler";
|
|
66
|
+
exports.category = "runtime";
|
|
67
|
+
exports.blocking = true;
|
|
68
|
+
exports.tags = ["runtime", "zod", "turbopack", "nextjs", "esm", "bundler"];
|
|
69
|
+
// Configuration
|
|
70
|
+
const PROBLEMATIC_PATTERNS = [
|
|
71
|
+
{
|
|
72
|
+
pattern: /z\.string\(\)\.email\(/g,
|
|
73
|
+
method: "z.string().email()",
|
|
74
|
+
replacement: "custom email validation utility",
|
|
75
|
+
},
|
|
76
|
+
{
|
|
77
|
+
pattern: /z\.string\(\)\.url\(/g,
|
|
78
|
+
method: "z.string().url()",
|
|
79
|
+
replacement: "custom URL validation utility",
|
|
80
|
+
},
|
|
81
|
+
{
|
|
82
|
+
pattern: /z\.email\(/g,
|
|
83
|
+
method: "z.email()",
|
|
84
|
+
replacement: "custom email validation utility",
|
|
85
|
+
},
|
|
86
|
+
{
|
|
87
|
+
pattern: /z\.url\(/g,
|
|
88
|
+
method: "z.url()",
|
|
89
|
+
replacement: "custom URL validation utility",
|
|
90
|
+
},
|
|
91
|
+
];
|
|
92
|
+
// These patterns trigger Zod imports but may be safe in server contexts
|
|
93
|
+
const ZOD_IMPORT_PATTERNS = [
|
|
94
|
+
/import\s+\*\s+as\s+z\s+from\s+["']zod["']/,
|
|
95
|
+
/import\s+{\s*z\s*}\s+from\s+["']zod["']/,
|
|
96
|
+
/import\s+z\s+from\s+["']zod["']/,
|
|
97
|
+
/from\s+["']zod["']/,
|
|
98
|
+
];
|
|
99
|
+
function isClientComponent(content) {
|
|
100
|
+
// Check for "use client" directive at the start of the file
|
|
101
|
+
const firstLines = content.split("\n").slice(0, 5).join("\n");
|
|
102
|
+
return firstLines.includes('"use client"') || firstLines.includes("'use client'");
|
|
103
|
+
}
|
|
104
|
+
function isServerFile(filePath) {
|
|
105
|
+
// API routes, server actions, and server components run in Node.js
|
|
106
|
+
return (filePath.includes("/api/") ||
|
|
107
|
+
filePath.includes("\\api\\") ||
|
|
108
|
+
filePath.endsWith(".server.ts") ||
|
|
109
|
+
filePath.endsWith(".server.tsx") ||
|
|
110
|
+
filePath.includes("/actions/") ||
|
|
111
|
+
filePath.includes("\\actions\\"));
|
|
112
|
+
}
|
|
113
|
+
function checkFile(filePath, content) {
|
|
114
|
+
const issues = [];
|
|
115
|
+
const lines = content.split("\n");
|
|
116
|
+
// Skip if not a client component (server code is safe)
|
|
117
|
+
if (!isClientComponent(content)) {
|
|
118
|
+
return issues;
|
|
119
|
+
}
|
|
120
|
+
// Skip if this is server-side code
|
|
121
|
+
if (isServerFile(filePath)) {
|
|
122
|
+
return issues;
|
|
123
|
+
}
|
|
124
|
+
// Check if file imports Zod
|
|
125
|
+
const hasZodImport = ZOD_IMPORT_PATTERNS.some((p) => p.test(content));
|
|
126
|
+
if (!hasZodImport) {
|
|
127
|
+
return issues;
|
|
128
|
+
}
|
|
129
|
+
// Check for problematic patterns
|
|
130
|
+
lines.forEach((line, idx) => {
|
|
131
|
+
for (const { pattern, method, replacement } of PROBLEMATIC_PATTERNS) {
|
|
132
|
+
// Reset pattern lastIndex for global patterns
|
|
133
|
+
pattern.lastIndex = 0;
|
|
134
|
+
if (pattern.test(line)) {
|
|
135
|
+
issues.push({
|
|
136
|
+
file: filePath,
|
|
137
|
+
line: idx + 1,
|
|
138
|
+
type: "turbopack-zod-incompatible",
|
|
139
|
+
severity: "error",
|
|
140
|
+
message: `${method} has Turbopack ESM bundling issues in client components`,
|
|
141
|
+
suggestion: `Use ${replacement} instead to avoid "_check is not defined" runtime errors`,
|
|
142
|
+
snippet: line.trim(),
|
|
143
|
+
});
|
|
144
|
+
}
|
|
145
|
+
}
|
|
146
|
+
});
|
|
147
|
+
// Also note about any Zod usage in client components as informational (not blocking)
|
|
148
|
+
if (issues.length === 0 && hasZodImport) {
|
|
149
|
+
const zodUsageLines = lines.filter((line) => /z\.\w+\(/.test(line));
|
|
150
|
+
if (zodUsageLines.length > 0) {
|
|
151
|
+
issues.push({
|
|
152
|
+
file: filePath,
|
|
153
|
+
line: 1,
|
|
154
|
+
type: "turbopack-zod-client-usage",
|
|
155
|
+
severity: "info",
|
|
156
|
+
message: "Zod is used in a client component (monitor for Turbopack issues)",
|
|
157
|
+
suggestion: "Most Zod patterns work; only z.string().email()/url() cause issues",
|
|
158
|
+
});
|
|
159
|
+
}
|
|
160
|
+
}
|
|
161
|
+
return issues;
|
|
162
|
+
}
|
|
163
|
+
async function run() {
|
|
164
|
+
const startTime = Date.now();
|
|
165
|
+
const verbose = process.argv.includes("--verbose") || process.argv.includes("-v");
|
|
166
|
+
const preflightFindings = [];
|
|
167
|
+
console.log((0, console_chars_1.createDivider)(60, "heavy"));
|
|
168
|
+
console.log(`${console_chars_1.emoji.search} Zod Turbopack Compatibility`);
|
|
169
|
+
console.log(`Checking for Zod patterns incompatible with Turbopack...\n`);
|
|
170
|
+
try {
|
|
171
|
+
appExclusions = await (0, exclusions_1.getExclusions)(exports.id);
|
|
172
|
+
}
|
|
173
|
+
catch {
|
|
174
|
+
appExclusions = [];
|
|
175
|
+
}
|
|
176
|
+
const allIssues = [];
|
|
177
|
+
// Find all TypeScript/TSX files (excluding node_modules, etc.)
|
|
178
|
+
const files = await (0, glob_1.glob)("**/*.{ts,tsx}", {
|
|
179
|
+
ignore: [
|
|
180
|
+
"**/node_modules/**",
|
|
181
|
+
"**/dist/**",
|
|
182
|
+
"**/.next/**",
|
|
183
|
+
"**/test-results/**",
|
|
184
|
+
"**/scripts/preflights/**",
|
|
185
|
+
"**/lib/client-validation.ts", // Exclude client validation fix files
|
|
186
|
+
],
|
|
187
|
+
cwd: process.cwd(),
|
|
188
|
+
absolute: true,
|
|
189
|
+
});
|
|
190
|
+
let filesScanned = 0;
|
|
191
|
+
let clientComponentsWithZod = 0;
|
|
192
|
+
for (const file of files) {
|
|
193
|
+
if ((0, exclusions_1.shouldExcludeFile)(file, appExclusions))
|
|
194
|
+
continue;
|
|
195
|
+
try {
|
|
196
|
+
const content = fs.readFileSync(file, "utf-8");
|
|
197
|
+
filesScanned++;
|
|
198
|
+
// Only check client components that use Zod
|
|
199
|
+
if (isClientComponent(content) && content.includes("zod")) {
|
|
200
|
+
clientComponentsWithZod++;
|
|
201
|
+
allIssues.push(...checkFile(file, content));
|
|
202
|
+
}
|
|
203
|
+
}
|
|
204
|
+
catch {
|
|
205
|
+
// Skip files that can't be read
|
|
206
|
+
}
|
|
207
|
+
}
|
|
208
|
+
const errors = allIssues.filter((i) => i.severity === "error");
|
|
209
|
+
const warnings = allIssues.filter((i) => i.severity === "warning");
|
|
210
|
+
const infos = allIssues.filter((i) => i.severity === "info");
|
|
211
|
+
// Report results
|
|
212
|
+
console.log(`Files scanned: ${filesScanned}`);
|
|
213
|
+
console.log(`Client components with Zod: ${clientComponentsWithZod}`);
|
|
214
|
+
if (errors.length > 0) {
|
|
215
|
+
console.log(`\n${console_chars_1.emoji.error} BLOCKING ISSUES (${errors.length}):`);
|
|
216
|
+
console.log((0, console_chars_1.createDivider)(60, "light"));
|
|
217
|
+
for (const issue of errors.slice(0, verbose ? 20 : 5)) {
|
|
218
|
+
const relativePath = path.relative(process.cwd(), issue.file);
|
|
219
|
+
console.log(`\n ${console_chars_1.chars.bullet} ${relativePath}:${issue.line}`);
|
|
220
|
+
console.log(` ${issue.message}`);
|
|
221
|
+
console.log(` ${console_chars_1.emoji.hint} ${issue.suggestion}`);
|
|
222
|
+
if (verbose && issue.snippet) {
|
|
223
|
+
console.log(` Code: ${issue.snippet.substring(0, 80)}`);
|
|
224
|
+
}
|
|
225
|
+
preflightFindings.push({
|
|
226
|
+
level: "error",
|
|
227
|
+
message: issue.message,
|
|
228
|
+
file: issue.file,
|
|
229
|
+
startLine: issue.line,
|
|
230
|
+
suggestion: issue.suggestion,
|
|
231
|
+
ruleId: `zod-turbopack/${issue.type}`,
|
|
232
|
+
});
|
|
233
|
+
}
|
|
234
|
+
if (errors.length > (verbose ? 20 : 5)) {
|
|
235
|
+
console.log(`\n ...and ${errors.length - (verbose ? 20 : 5)} more errors`);
|
|
236
|
+
}
|
|
237
|
+
}
|
|
238
|
+
if (verbose && infos.length > 0) {
|
|
239
|
+
console.log(`\n${console_chars_1.emoji.info} INFORMATIONAL (${infos.length}):`);
|
|
240
|
+
console.log((0, console_chars_1.createDivider)(60, "light"));
|
|
241
|
+
console.log(` ${infos.length} client components use Zod (monitoring for issues)`);
|
|
242
|
+
}
|
|
243
|
+
console.log((0, console_chars_1.createDivider)(60, "heavy"));
|
|
244
|
+
console.log(`Errors: ${errors.length}`);
|
|
245
|
+
console.log(`Warnings: ${warnings.length}`);
|
|
246
|
+
console.log(`Info: ${infos.length}`);
|
|
247
|
+
if (errors.length > 0) {
|
|
248
|
+
console.log(`\n${console_chars_1.emoji.error} Zod Turbopack compatibility issues found`);
|
|
249
|
+
console.log(`\n${console_chars_1.emoji.docs} Fix Guide:`);
|
|
250
|
+
console.log(` ${console_chars_1.chars.bullet} Replace Zod validation in client components with custom utilities`);
|
|
251
|
+
console.log(` ${console_chars_1.chars.bullet} Create a lib/client-validation.ts with validateEmail(), etc.`);
|
|
252
|
+
console.log(` ${console_chars_1.chars.bullet} Server-side code (API routes) can continue using Zod safely\n`);
|
|
253
|
+
return { passed: false, findings: preflightFindings, duration: Date.now() - startTime };
|
|
254
|
+
}
|
|
255
|
+
console.log(`\n${console_chars_1.emoji.success} No Zod Turbopack compatibility issues found`);
|
|
256
|
+
console.log(`${console_chars_1.emoji.hint} Reminder: Use custom validation for client-side form validation\n`);
|
|
257
|
+
return { passed: true, findings: preflightFindings, duration: Date.now() - startTime };
|
|
258
|
+
}
|
|
259
|
+
// CLI execution
|
|
260
|
+
if (require.main === module) {
|
|
261
|
+
run().then((result) => process.exit(result.passed ? 0 : 1)).catch(() => process.exit(1));
|
|
262
|
+
}
|
|
263
|
+
//# sourceMappingURL=zod-turbopack-compatibility.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"zod-turbopack-compatibility.js","sourceRoot":"","sources":["../../../src/checks/runtime/zod-turbopack-compatibility.ts"],"names":[],"mappings":";;AACA;;;;;;;;;;;;;;;;GAgBG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAwIH,kBA8GC;AApPD,uCAAyB;AACzB,+BAA4B;AAC5B,2CAA6B;AAC7B,6DAAwE;AACxE,wDAA2E;AAG3E,IAAI,aAAa,GAAa,EAAE,CAAC;AAEjC,WAAW;AACE,QAAA,EAAE,GAAG,qCAAqC,CAAC;AAC3C,QAAA,IAAI,GAAG,6BAA6B,CAAC;AACrC,QAAA,WAAW,GAAG,uEAAuE,CAAC;AACtF,QAAA,QAAQ,GAAG,SAAS,CAAC;AACrB,QAAA,QAAQ,GAAG,IAAI,CAAC;AAChB,QAAA,IAAI,GAAG,CAAC,SAAS,EAAE,KAAK,EAAE,WAAW,EAAE,QAAQ,EAAE,KAAK,EAAE,SAAS,CAAC,CAAC;AAEhF,gBAAgB;AAChB,MAAM,oBAAoB,GAAG;IAC3B;QACE,OAAO,EAAE,yBAAyB;QAClC,MAAM,EAAE,oBAAoB;QAC5B,WAAW,EAAE,iCAAiC;KAC/C;IACD;QACE,OAAO,EAAE,uBAAuB;QAChC,MAAM,EAAE,kBAAkB;QAC1B,WAAW,EAAE,+BAA+B;KAC7C;IACD;QACE,OAAO,EAAE,aAAa;QACtB,MAAM,EAAE,WAAW;QACnB,WAAW,EAAE,iCAAiC;KAC/C;IACD;QACE,OAAO,EAAE,WAAW;QACpB,MAAM,EAAE,SAAS;QACjB,WAAW,EAAE,+BAA+B;KAC7C;CACF,CAAC;AAEF,wEAAwE;AACxE,MAAM,mBAAmB,GAAG;IAC1B,2CAA2C;IAC3C,yCAAyC;IACzC,iCAAiC;IACjC,oBAAoB;CACrB,CAAC;AAYF,SAAS,iBA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