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

feat(biome_deserialize): implement necessary traits for #[deserializable(rest)] #2857

Merged

Conversation

NicholasLYang
Copy link
Contributor

Summary

To facilitate #2757, we need a generic Value. We decided on implementing Deserializable on serde_json::Value. This also implements PartialOrd and Order on Text, so we can collect fields into a BTreeMap

Test Plan

@NicholasLYang NicholasLYang force-pushed the feat/impl-deserializable-for-serde-value branch from d55f312 to 7f825e4 Compare May 14, 2024 16:25
@NicholasLYang NicholasLYang force-pushed the feat/impl-deserializable-for-serde-value branch from 7f825e4 to 9d07721 Compare May 14, 2024 16:31
Copy link

codspeed-hq bot commented May 14, 2024

CodSpeed Performance Report

Merging #2857 will not alter performance

Comparing NicholasLYang:feat/impl-deserializable-for-serde-value (e7bd82c) with main (9c920a1)

Summary

✅ 99 untouched benchmarks

Copy link
Member

@Conaclos Conaclos left a comment

Choose a reason for hiding this comment

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

Looks good! I left some suggestions.

crates/biome_deserialize/src/impls.rs Show resolved Hide resolved
crates/biome_deserialize/src/json.rs Show resolved Hide resolved
crates/biome_deserialize/src/json.rs Outdated Show resolved Hide resolved
crates/biome_deserialize/src/impls.rs Outdated Show resolved Hide resolved
@Conaclos Conaclos merged commit 753ed41 into biomejs:main May 14, 2024
11 checks passed
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