X Tutup
Skip to content

Icing .iced files#902

Open
jdmarshall wants to merge 1 commit intonode-config:masterfrom
jdmarshall:IceIceBaby
Open

Icing .iced files#902
jdmarshall wants to merge 1 commit intonode-config:masterfrom
jdmarshall:IceIceBaby

Conversation

@jdmarshall
Copy link
Collaborator

@jdmarshall jdmarshall commented Mar 9, 2026

.iced files have never worked, not once, since introduction. And there are no tests to assert that it does. A function that never worked cannot be a breaking change, so this isn't.

Addresses #900

This should ever so slightly improve the speed of scan() and thus library initialization.

Summary by CodeRabbit

  • Chores
    • Removed iced-coffee-script parser support. The parser will no longer recognize or process files of this type.

.iced files have never worked, not once, since introduction. And
there are no tests to assert that it does. A function that
never worked cannot be a breaking change, so this isn't.

Addresses node-config#900
@coderabbitai
Copy link

coderabbitai bot commented Mar 9, 2026

📝 Walkthrough

Walkthrough

The pull request removes support for iced-coffee-script from the parser module. The ICED_DEP constant, icedParser function, and iced entry from the definitions map and load order are deleted, eliminating the Parser.icedParser public API and its related functionality.

Changes

Cohort / File(s) Summary
Iced-coffee-script Support Removal
parser.js
Removed ICED_DEP declaration, icedParser function, iced entry from definitions map, and iced element from parser resolution order array. Reduces public API surface by eliminating Parser.icedParser. Net change: +1/-19 lines.

Estimated code review effort

🎯 2 (Simple) | ⏱️ ~8 minutes

Poem

Frost melts away on the morning brew,
Iced coffee departs—no longer in view,
The parser hops lighter, unburdened and spry,
One less language file means less to apply. ☕❄️✨

🚥 Pre-merge checks | ✅ 2 | ❌ 1

❌ Failed checks (1 warning)

Check name Status Explanation Resolution
Title check ⚠️ Warning The title "Icing .iced files" is misleading - it suggests fixing/improving .iced file support, but the actual change removes all iced-coffee-script support entirely, including deletion of Parser.icedParser and iced from the definitions map. Revise the title to accurately reflect the removal of iced-coffee-script support, such as "Remove iced-coffee-script support" or "Drop iced-coffee-script parser."
✅ Passed checks (2 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Post copyable unit tests in a comment

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.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

Copy link

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Caution

Some comments are outside the diff and can’t be posted inline due to platform limitations.

⚠️ Outside diff range comments (1)
parser.js (1)

285-304: ⚠️ Potential issue | 🔴 Critical

Don't remove the built-in .iced registration.

Dropping iced from order and definitions makes .iced files unresolvable through the built-in parser path: Parser.parse('config.iced', ...) now falls through to undefined, and callers also lose getParser('iced') / built-in file-order discovery. That is the opposite of this PR's stated goal of restoring .iced support, so the extension needs to stay registered here until the replacement implementation is wired back in.

🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.

In `@parser.js` around lines 285 - 304, The change removed the built-in `.iced`
registration causing Parser.parse('config.iced', ...) and getParser('iced') to
fail; re-add 'iced' into the order array and restore an entry in definitions
mapping 'iced' to the built-in parser (e.g., Parser.icedParser) so the extension
is discoverable and resolvable via the existing Parser.parse and getParser
flows; update both the order variable and the definitions object (referencing
the symbols order, definitions, and Parser.icedParser) to restore behavior.
🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.

Outside diff comments:
In `@parser.js`:
- Around line 285-304: The change removed the built-in `.iced` registration
causing Parser.parse('config.iced', ...) and getParser('iced') to fail; re-add
'iced' into the order array and restore an entry in definitions mapping 'iced'
to the built-in parser (e.g., Parser.icedParser) so the extension is
discoverable and resolvable via the existing Parser.parse and getParser flows;
update both the order variable and the definitions object (referencing the
symbols order, definitions, and Parser.icedParser) to restore behavior.

ℹ️ Review info
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro

Run ID: e3e0d646-7a3f-4a0a-9079-659b48fc5a8a

📥 Commits

Reviewing files that changed from the base of the PR and between b0c9c9d and 4aaec6c.

📒 Files selected for processing (1)
  • parser.js

@jdmarshall
Copy link
Collaborator Author

addresses #900

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant

X Tutup