Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: Merge supported and backport properties #177

Merged
merged 1 commit into from
Jan 29, 2024

Conversation

scagood
Copy link

@scagood scagood commented Jan 29, 2024

Here I am aiming to improve the generating of the node: module definitions. I have done this by normalising the properties to experimental, supported, deprecated.

image

@@ -3441,7 +3441,7 @@ new RuleTester({ languageOptions: { sourceType: "module" } }).run(
data: {
name: "module.builtinModules",
supported:
"9.3.0 (backported: ^6.13.0, ^8.10.0)",
"9.3.0 (backported: ^8.10.0, ^6.13.0)",
Copy link
Author

Choose a reason for hiding this comment

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

This will now always be sorted highest -> lowest for everything!

@@ -16,604 +16,604 @@ const trackMap = {
globals: {
// Core js builtins
AggregateError: {
[READ]: { supported: "15.0.0" },
[READ]: { supported: ["15.0.0"] },
Copy link
Author

Choose a reason for hiding this comment

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

There is only one supported version in this entire file, dispite that I converted them all to a range!

doesNotReject: { [READ]: { supported: "10.0.0" } },
notDeepStrictEqual: { [READ]: { supported: "4.0.0" } },
rejects: { [READ]: { supported: "10.0.0" } },
[READ]: { supported: ["9.9.0", "8.13.0"] },
Copy link
Author

Choose a reason for hiding this comment

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

This is just a little simpler to generate :)

@scagood scagood marked this pull request as ready for review January 29, 2024 07:42
Copy link

@aladdin-add aladdin-add left a comment

Choose a reason for hiding this comment

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

LGTM, hopefully it will help us to automate this information.

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