Skip to content

fix: pin @formatjs/intl-locale to 5.3.1#3343

Open
aresnik11 wants to merge 5 commits intomainfrom
ajr-datepicker-polyfill-fix
Open

fix: pin @formatjs/intl-locale to 5.3.1#3343
aresnik11 wants to merge 5 commits intomainfrom
ajr-datepicker-polyfill-fix

Conversation

@aresnik11
Copy link
Copy Markdown
Contributor

@aresnik11 aresnik11 commented May 7, 2026

Overview

Pin @formatjs/intl-locale to 5.3.1. Starting in 5.3.2 the library uses static class blocks (modern JS). Any test runner that runs that file through Babel needs either a recent @babel/preset-env setup that transpiles that syntax, or @babel/plugin-transform-class-static-block. So to avoid having every repo using Gamut need to do this, we just pin to 5.3.1 for now.

PR Checklist

  • Related to designs:
  • Related to JIRA ticket: [ABC-123]
  • Version plan added/updated (or not needed)
  • I have run this code to verify it works
  • This PR includes unit tests for the code change
  • This PR includes testing instructions tests for the code change
  • The alpha package of this PR is passing end-to-end tests in all relevant Codecademy repositories

Testing Instructions

Don't make me tap the sign.

  1. Go to mono PR
  2. Confirm all checks pass
  3. Go to monolith PR
  4. Confirm all checks pass
  5. Read the new Installation section and make sure it makes sense

PR Links and Envs

Repository PR Link
Monolith Monolith PR
Mono Mono PR

@nx-cloud
Copy link
Copy Markdown

nx-cloud Bot commented May 7, 2026

View your CI Pipeline Execution ↗ for commit b474136


☁️ Nx Cloud last updated this comment at 2026-05-08 17:05:28 UTC

@codecov
Copy link
Copy Markdown

codecov Bot commented May 7, 2026

⚠️ JUnit XML file not found

The CLI was unable to find any JUnit XML files to upload.
For more help, visit our troubleshooting guide.

@aresnik11 aresnik11 changed the title pin polyfill version fix: pin @formatjs/intl-locale to 5.3.1 May 7, 2026
@aresnik11 aresnik11 marked this pull request as ready for review May 8, 2026 14:42
@aresnik11 aresnik11 requested a review from a team as a code owner May 8, 2026 14:42
@aresnik11 aresnik11 requested a review from dreamwasp May 8, 2026 14:42

Gamut depends on packages that ship modern JavaScript from `node_modules`. Jest often skips transpiling `node_modules`, so importing Gamut in tests can surface parse or syntax errors unless your repo opts those dependencies into your test transform.

If tests only fail after upgrading Gamut or a transitive dependency, compare your Jest and Babel setup with the above and adjust `transformIgnorePatterns` and plugins accordingly.
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

what is above referring to here?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

idk lol, this line was last and i moved it but ill reword

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

better? "If tests only fail after upgrading Gamut or a transitive dependency, compare your Jest and Babel setup with Gamut's and adjust transformIgnorePatterns and plugins accordingly."

@codecademydev
Copy link
Copy Markdown
Collaborator

📬 Published Alpha Packages:

Package Version npm Diff
@codecademy/gamut 68.5.1-alpha.3bda34.0 npm diff
@codecademy/gamut-icons 9.57.5-alpha.3bda34.0 npm diff
@codecademy/gamut-illustrations 0.58.11-alpha.3bda34.0 npm diff
@codecademy/gamut-kit 0.6.597-alpha.3bda34.0 npm diff
@codecademy/gamut-patterns 0.10.30-alpha.3bda34.0 npm diff
@codecademy/gamut-styles 17.14.1-alpha.3bda34.0 npm diff
@codecademy/gamut-tests 6.0.1-alpha.3bda34.0 npm diff
@codecademy/variance 0.26.2-alpha.3bda34.0 npm diff
eslint-plugin-gamut 2.4.4-alpha.3bda34.0 npm diff

@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented May 8, 2026

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.

3 participants