Skip to content

Conversation

@hamidrezahanafi
Copy link
Contributor

In my previous PR I missed the case that two description objects having the same keys but in a different order.
This will address that. Added a unit test to make sure it works.

@changeset-bot
Copy link

changeset-bot bot commented Apr 16, 2025

🦋 Changeset detected

Latest commit: 2c4b5f5

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
@swc/plugin-formatjs Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@kdy1 kdy1 self-assigned this Apr 16, 2025
Copy link
Member

@kdy1 kdy1 left a comment

Choose a reason for hiding this comment

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

hstr::Atom::clone() never allocates, while .to_string() always allocate

@hamidrezahanafi
Copy link
Contributor Author

hamidrezahanafi commented Apr 16, 2025

hstr::Atom::clone() never allocates, while .to_string() always allocate

FromIterator<(swc_core::swc_atoms::Atom, Value)> is not implemented for serde_json::Map<std::string::String, Value> it seems like it Map can't be used with Atom::clone()

Copy link
Member

@kdy1 kdy1 left a comment

Choose a reason for hiding this comment

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

You are right, my bad.

@kdy1 kdy1 merged commit 1abaa28 into swc-project:main Apr 16, 2025
9 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants