Icing .iced files by jdmarshall · Pull Request #902 · node-config/node-config · GitHub
Skip to content

Icing .iced files#902

Merged
markstos merged 1 commit into
node-config:masterfrom
jdmarshall:IceIceBaby
Mar 10, 2026
Merged

Icing .iced files#902
markstos merged 1 commit into
node-config:masterfrom
jdmarshall:IceIceBaby

Conversation

@jdmarshall

@jdmarshall jdmarshall commented Mar 9, 2026

Copy link
Copy Markdown
Collaborator

.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

coderabbitai Bot commented Mar 9, 2026

Copy link
Copy Markdown

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown

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
Copy Markdown
Collaborator Author

addresses #900

@markstos

Copy link
Copy Markdown
Collaborator

I accept this as a non-breaking change based on your rationale that it never worked.

@markstos markstos left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

QA Log

  • Reviewed diff
  • Noted there is nothing in package.json to remove.

@markstos markstos merged commit 951afdb into node-config:master Mar 10, 2026
4 checks passed
@jdmarshall

Copy link
Copy Markdown
Collaborator Author

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.

2 participants