nushell/crates/nu-command
Michael Albers 6c13c67528
Ensure consistent map ordering when reading YAML (#9155)
# Description

This change ensures that the ordering of map keys when reading YAML
files is consistent. Previously a `HashMap` was used to store the
mappings, but that would result in non-deterministic ordering of the
keys. Switching to an `IndexMap` fixes this.

Fixes https://github.com/nushell/nushell/issues/8662

# User-Facing Changes

User's can rely on consistent ordering of map keys from YAML.

# Tests + Formatting

A unit test ensuring the ordering has been added.

# After Submitting

None.
2023-05-10 06:30:55 -05:00
..
assets refactor html module (#5246) 2022-04-20 08:50:14 -05:00
src Ensure consistent map ordering when reading YAML (#9155) 2023-05-10 06:30:55 -05:00
tests Fix negative precision round with ints (issue #9049) (#9073) 2023-05-03 23:07:32 +02:00
Cargo.toml Update polars to 0.28 (#9136) 2023-05-08 10:42:53 -05:00
LICENSE Fix rest of license year ranges (#8727) 2023-04-04 09:03:29 +12:00