Skip to content

Drop node: prefix on imports in app-ember-satisfies to accomodate node < 16#2571

Merged
NullVoxPopuli merged 8 commits intomainfrom
nvp/test-macros-against-oldest-supported-node
Oct 2, 2025
Merged

Drop node: prefix on imports in app-ember-satisfies to accomodate node < 16#2571
NullVoxPopuli merged 8 commits intomainfrom
nvp/test-macros-against-oldest-supported-node

Conversation

@NullVoxPopuli
Copy link
Copy Markdown
Collaborator

@NullVoxPopuli NullVoxPopuli commented Oct 1, 2025

Fixes: #2570

The PR that added appEmberSatisfies broke folks using super old node versions.

The features that the PR is using:

  • node:url
  • node:module
  • node:path

However,

@NullVoxPopuli NullVoxPopuli changed the title Test macros against oldest declared node Drop node: prefix on imports in app-ember-satisfies to accomodate node < 16 Oct 1, 2025
@NullVoxPopuli NullVoxPopuli marked this pull request as ready for review October 1, 2025 21:32
Comment thread .github/workflows/ci.yml
Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

Turns out we don't prettier ignore this

import { satisfies, coerce } from 'semver';
import error from './error';
import { assertArray } from './evaluate-json';
import { pathToFileURL } from 'node:url';
Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

So simple. But ugh

Comment thread .github/workflows/ci.yml
node: ['20', '22', '24']
os: [ubuntu-latest, 'macos-latest'] # TODO add windows here
node: ["20", "22", "24"]
os: [ubuntu-latest, "macos-latest"] # TODO add windows here
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

should ubuntu-latest be between quotes like macos-latest?

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

Idk, it appears to not matter somehow

@mansona mansona force-pushed the nvp/test-macros-against-oldest-supported-node branch from 9c83642 to beb5926 Compare October 2, 2025 15:13
@NullVoxPopuli NullVoxPopuli added the bug Something isn't working label Oct 2, 2025
@NullVoxPopuli NullVoxPopuli merged commit 5e2ecb9 into main Oct 2, 2025
270 of 271 checks passed
@NullVoxPopuli NullVoxPopuli deleted the nvp/test-macros-against-oldest-supported-node branch October 2, 2025 17:48
@github-actions github-actions bot mentioned this pull request Oct 2, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Problem with running projects that uses node < 16 after the latest release

4 participants