Skip to content

Conversation

@vitalijusv
Copy link
Contributor

FormatJs Babel plugin allows using any binary-to-text encoding supported by NodeJS Buffer. Currently, this includes "base64", "base64url", and "hex". See https://nodejs.org/api/buffer.html#buffers-and-character-encodings.

Add support for "hex" and "base64url" encodings. Use "hex" by default to match the behavior of the Babel plugin.

fixes #401

@changeset-bot
Copy link

changeset-bot bot commented Apr 15, 2025

🦋 Changeset detected

Latest commit: a038a39

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 Minor

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

@CLAassistant
Copy link

CLAassistant commented Apr 15, 2025

CLA assistant check
All committers have signed the CLA.

@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.

Thank you! Can you rebase?

FormatJs Babel plugin allows using any binary-to-text encoding supported
by NodeJS Buffer. Currently, this includes "base64", "base64url", and "hex".
See <https://nodejs.org/api/buffer.html#buffers-and-character-encodings>.

Add support for "hex" and "base64url" encodings. Use "hex" by default
to match the behavior of the Babel plugin.

fixes swc-project#401
@vitalijusv
Copy link
Contributor Author

Rebased, thanks!

@kdy1 kdy1 changed the title feat(formatjs): support hash encodings in id interpolation pattern feat(formatjs): Support hash encodings in id interpolation pattern Apr 16, 2025
@kdy1 kdy1 merged commit 648faf7 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.

@swc/plugin-formatjs idInterpolationPattern digestType support

3 participants