Skip to content

Meta: Avoid failing silently for DOM searches - #9246

Merged
fregante merged 4 commits into
mainfrom
strict-selection
Apr 25, 2026
Merged

fregante merged 4 commits into
mainfrom
strict-selection

Conversation

@fregante

@fregante fregante commented Apr 23, 2026 •

Copy link
Copy Markdown
Member

This PR only drops legacy/implicit usage of "optional" select-dom. Existing $optional/$$optional calls have not been verified.

@fregante fregante added the meta Related to Refined GitHub itself label Apr 23, 2026
@fregante
fregante marked this pull request as draft April 23, 2026 09:11
@fregante

This comment was marked as outdated.

@fregante
fregante marked this pull request as ready for review April 24, 2026 08:05
Comment on lines +5 to +7
import {
$, $$, $optional, lastElementOptional,
} from 'select-dom/strict.js';

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Why not:

Suggested change
import {
$, $$, $optional, lastElementOptional,
} from 'select-dom/strict.js';
import {$, $$, $optional, lastElementOptional} from 'select-dom/strict.js';

?

@fregante fregante Apr 24, 2026 •

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

If we keep #9240 and then enable dprint permanently, this will be resolved

@SunsetTechuila

Copy link
Copy Markdown
Contributor

That's a lot of $/$$ calls to check 😬

@fregante

Copy link
Copy Markdown
Member Author

Yeah, that's why I had to cancel Copilot's previous attempt. Each replacement was to be checked manually anyway. 😬

@fregante

Copy link
Copy Markdown
Member Author

Let's YOLO and look for errors in the console, if any

@fregante
fregante merged commit 84ddb0d into main Apr 25, 2026
13 checks passed
@fregante
fregante deleted the strict-selection branch April 25, 2026 06:27
@JosephDoUrden JosephDoUrden mentioned this pull request Apr 25, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

meta Related to Refined GitHub itself

Development

Successfully merging this pull request may close these issues.

2 participants