fix(js_analyze): temporal global#9465
Conversation
🦋 Changeset detectedLatest commit: 1d1ba52 The changes in this PR will be included in the next version bump. This PR includes changesets to release 13 packages
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Pro Run ID: ⛔ Files ignored due to path filters (1)
📒 Files selected for processing (4)
🚧 Files skipped from review as they are similar to previous changes (2)
WalkthroughAdds the Suggested reviewers
🚥 Pre-merge checks | ✅ 4✅ Passed checks (4 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 Generate unit tests (beta)
📝 Coding Plan
Comment Tip You can get early access to new features in CodeRabbit.Enable the |
There was a problem hiding this comment.
Actionable comments posted: 1
🧹 Nitpick comments (1)
crates/biome_js_analyze/src/globals/javascript/node.rs (1)
116-116: Correctly placed in sorted order.The addition is alphabetically correct between "SubtleCrypto" and "TextDecoder", and the existing
test_ordertest will validate this.One consideration: should
Temporalalso be added to theBUILTINarray (lines 4-72) for consistency? Since Temporal is now a Stage 4 ECMAScript feature, it would be available across all Node.js contexts.🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed. In `@crates/biome_js_analyze/src/globals/javascript/node.rs` at line 116, Add "Temporal" to the BUILTIN array so the global listing is consistent with the new entry in the exported list; specifically, insert "Temporal" into the BUILTIN constant (the array presently containing globals like "SubtleCrypto" and "TextDecoder") in the correct alphabetical position (between "SubtleCrypto" and "TextDecoder") so the test_order check continues to pass and the new global is available across Node contexts.
🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.
Inline comments:
In `@crates/biome_js_analyze/src/globals/javascript/web.rs`:
- Line 1145: Add the "Temporal" global to the BROWSER and WEB_WORKER arrays (in
addition to SERVICE_WORKER where it already exists) so Temporal is exposed in
main-thread and worker contexts; update the arrays named BROWSER and WEB_WORKER
to include "Temporal" in the correct alphabetical position to match the existing
ordering convention used alongside SERVICE_WORKER.
---
Nitpick comments:
In `@crates/biome_js_analyze/src/globals/javascript/node.rs`:
- Line 116: Add "Temporal" to the BUILTIN array so the global listing is
consistent with the new entry in the exported list; specifically, insert
"Temporal" into the BUILTIN constant (the array presently containing globals
like "SubtleCrypto" and "TextDecoder") in the correct alphabetical position
(between "SubtleCrypto" and "TextDecoder") so the test_order check continues to
pass and the new global is available across Node contexts.
ℹ️ Review info
⚙️ Run configuration
Configuration used: Path: .coderabbit.yaml
Review profile: CHILL
Plan: Pro
Run ID: 1208b098-ae0d-4808-8f27-cc48a7100aef
📒 Files selected for processing (3)
.changeset/some-rules-fly.mdcrates/biome_js_analyze/src/globals/javascript/node.rscrates/biome_js_analyze/src/globals/javascript/web.rs
983733e to
e7d0d85
Compare
Merging this PR will not alter performance
Comparing Footnotes
|
e7d0d85 to
1d1ba52
Compare
Summary
Added Temporal to the globals list, as it reached Stage 4
Closes #9464
Test Plan
Docs