chore(structure): rename URL_file to URL_fromFile for clarity - #2712
Conversation
Fixes cedarjs#2673. URL_file's name is ambiguous next to URL_toFile - it wasn't clear from the name alone which direction the conversion goes. Renames the function (self-documented with its own TODO for the target name) and updates all internal call sites in nodes.ts, RWProject.ts, RWRouter.ts, diagnostics.ts, prisma.ts, and the test suites. Since URL_file is re-exported from the package's public barrel (index.ts), keeps a deprecated `URL_fromFile as URL_file` alias for one release cycle rather than a hard rename, since there's no way to know whether anything outside this monorepo depends on the old name.
👷 Deploy request for cedarjs pending review.Visit the deploys page to approve it
|
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Organization UI Review profile: ASSERTIVE Plan: Advanced Run ID: 📒 Files selected for processing (10)
Included review availability: Your plan provides up to 2 included reviews per hour; 0 remain after this review. 📝 SummarySummary by CodeRabbit
WalkthroughThe structure package renames ChangesURL helper rename
Priority: ⬇️ Low Merge Risk: ⚪ Minimal · up to The rename and deprecated alias are mergeable after the changeset lint concern was disproved. 🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
Full details: Docstring CoverageExplanation Docstring coverage is 40.00% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff. Analyzed 5 functions across 9 files. (1 skipped: 1 unsupported.)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
|
|
| Command | Status | Duration | Result |
|---|---|---|---|
nx run-many -t test --maxWorkers=4 |
✅ Succeeded | 4m 24s | View ↗ |
nx run-many -t test:types |
✅ Succeeded | 17s | View ↗ |
nx run-many -t build:pack --exclude create-ceda... |
✅ Succeeded | 6s | View ↗ |
nx run-many -t build --output-style=stream |
✅ Succeeded | 5s | View ↗ |
💡 Verify your cache is correct by running tasks in a sandbox. Read docs ↗
☁️ Nx Cloud last updated this comment at 2026-09-14 07:35:43 UTC
|
The changes in this PR are now available on npm. Try them out by running Or try it in a new app with |

URL_file's name is ambiguous. It's not clear from the name alone which direction the conversion goes. This renames it toURL_fromFile, which was already the target name noted in the function's ownTODOcomment.Fixes #2673.