Skip to content

Use ordered maps for options and users #370

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

Merged
merged 4 commits into from
Feb 19, 2025
Merged

Conversation

jakebailey
Copy link
Member

@jakebailey jakebailey commented Feb 19, 2025

This swaps out the unordered maps like map[string]any, map[string][]string for OrderedMaps. This should make paths handling no longer nondeterministic.

This required some changes to OrderedMap to handle nil.

Fixes #369

@@ -2,7 +2,7 @@ Args::
["--module", "commonjs", "--target", "es5", "0.ts", "--lib", "es5,es2015.symbol.wellknown"]

CompilerOptions::
{"lib":["lib.es5.d.ts","lib.es2015.symbol.wellknown.d.ts"],"module":1,"target":1}
{"module":1,"target":1,"lib":["lib.es5.d.ts","lib.es2015.symbol.wellknown.d.ts"]}
Copy link
Member Author

Choose a reason for hiding this comment

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

Note that this is now in flag order, so that shows that this is working at least.

Copy link
Member

@DanielRosenwasser DanielRosenwasser left a comment

Choose a reason for hiding this comment

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

Seems reasonable to me, but I want to check in about string keys.

@jakebailey jakebailey merged commit c7288d7 into main Feb 19, 2025
16 checks passed
@jakebailey jakebailey deleted the jabaile/ordered-maps branch February 19, 2025 23:55
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.

paths does not consistently work
2 participants