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

fix: remove LocaleCode enum #7

Merged
merged 1 commit into from
Jul 23, 2024
Merged

fix: remove LocaleCode enum #7

merged 1 commit into from
Jul 23, 2024

Conversation

SimeonC
Copy link
Contributor

@SimeonC SimeonC commented Jun 25, 2024

This enum often causes tree shaking issues as it’s an Enum Value and it’s only used as a type. Changing in favour of inference based typescript types and an string literal.

Disabled useless auditjs check

BREAKING CHANGES:
LocaleCode enum -> LocaleCode string literal
locales.en -> locales.english
orderedLocales -> orderedLocaleCodes

📦 Published PR as canary version: 2.0.0--canary.7.99e624cb6936f29a3f2d413ca47480a589d4d7bb.0

✨ Test out this PR locally via:

npm install @tablecheck/locales@2.0.0--canary.7.99e624cb6936f29a3f2d413ca47480a589d4d7bb.0
# or 
yarn add @tablecheck/locales@2.0.0--canary.7.99e624cb6936f29a3f2d413ca47480a589d4d7bb.0

@SimeonC SimeonC added the major Increment the major version when merged label Jun 25, 2024
@SimeonC SimeonC force-pushed the drop-localecode-enum branch 8 times, most recently from b228bb8 to 7038850 Compare June 25, 2024 06:59
This enum often causes tree shaking issues as it’s an Enum Value and it’s only used as a type. Changing in favour of inference based typescript types and an string literal.

Disabled useless auditjs check

BREAKING CHANGE:
LocaleCode enum -> LocaleCode string literal
locales.en -> locales.english
orderedLocales -> orderedLocaleCodes
@SimeonC SimeonC enabled auto-merge (rebase) July 22, 2024 01:22
@SimeonC SimeonC merged commit 4000049 into main Jul 23, 2024
4 checks passed
@SimeonC SimeonC deleted the drop-localecode-enum branch July 23, 2024 02:15
@tablecheck-public-automation

🚀 PR was released in v2.0.0 🚀

@tablecheck-public-automation tablecheck-public-automation added the released This issue/pull request has been released. label Jul 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
major Increment the major version when merged released This issue/pull request has been released.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants