fix(windmill-utils-internal): move config to subpath export#9045
Conversation
The config module imports node:fs/promises (stat, mkdir), which breaks non-Node bundlers like the Cloudflare Workers build of the hub. The windmill SPA frontend got away with it via tree-shaking, but stricter runtimes choke on the bare node: import even when unused. Stop re-exporting ./config from the main entry and expose it via a windmill-utils-internal/config subpath instead. CLI code already deep-imports the source file, so it is unaffected. Bumps the package to 1.4.0 and updates the frontend dependency to match. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Deploying windmill with
|
| Latest commit: |
407e7ed
|
| Status: | ✅ Deploy successful! |
| Preview URL: | https://68348ea6.windmill.pages.dev |
| Branch Preview URL: | https://fix-windmill-utils-internal.windmill.pages.dev |
|
Claude finished @hugocasa's task in 2m 3s —— View job Claude Code ReviewGood to merge SummaryThe change cleanly addresses the stated problem: removing Compatibility check
AGENTS.md complianceNo violations — this is a config/packaging-only change, no Rust or Svelte code touched. Test coverageThis is a packaging change ( Manual verification before merge should cover what the PR test plan already lists: after publishing |
Pi ReviewGood to merge. Summary: This PR removes No issues found. Test coverage: This is a package-structure / exports change with no new logic. The test plan in the PR body (publish |
Codex ReviewGood to merge No issues found. Checked for bugs, security, and AGENTS.md compliance. Test coverage: This is a package metadata/export and frontend dependency update; no new frontend pure logic or backend behavior was added, so no automated tests are required by the review policy. Manual verification still useful before merge: run the frontend install/check path with |
Summary
This is a breaking change for any external consumer that imported config helpers from the main entry — they would now need `from 'windmill-utils-internal/config'`. No in-repo consumer does this.
Test plan
🤖 Generated with Claude Code
Summary by cubic
Move config helpers to a subpath export in
windmill-utils-internalso the main entry no longer importsnode:fs/promises. This fixes Cloudflare Workers builds and bumps the package to1.4.0(frontend updated).Bug Fixes
./configfrom the main entry; exposewindmill-utils-internal/configto avoid barenode:imports. CLI usage is unchanged.Migration
windmill-utils-internal, switch toimport ... from 'windmill-utils-internal/config'.Written for commit 407e7ed. Summary will update on new commits.