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

Use the UMD build of intl-messageformat in the testsuite #361

Merged
merged 1 commit into from
Jul 4, 2024

Conversation

stof
Copy link
Contributor

@stof stof commented Jul 4, 2024

The main file of the library is a CommonJS build, not an UMD build, making it incompatible with the usage in the testsuite setup. The UMD build is shipped in the package but is not exposed on CDNJS.

The main file of the library is a CommonJS build, not an UMD build,
making it incompatible with the usage in the testsuite setup. The UMD
build is shipped in the package but is not exposed on CDNJS.
@monteiro
Copy link
Collaborator

monteiro commented Jul 4, 2024

@stof I see the error:

Died on test #12 global code@file:///home/runner/work/BazingaJsTranslationBundle/BazingaJsTranslationBundle/Resources/js/translatorTest.js:23:5: Can't find variable: Intl

Source:
get@https://unpkg.com/[email protected]/dist/umd/intl-messageformat.min.js:1:29941
J@https://unpkg.com/[email protected]/dist/umd/intl-messageformat.min.js:1:30692
trans@file:///home/runner/work/BazingaJsTranslationBundle/BazingaJsTranslationBundle/Resources/js/translator.js:136:65
file:///home/runner/work/BazingaJsTranslationBundle/BazingaJsTranslationBundle/Resources/js/translatorTest.js:57:27

Can we fix it?

@monteiro
Copy link
Collaborator

monteiro commented Jul 4, 2024

Anyway, i will merge it, since this is an important security fix.

@monteiro monteiro merged commit b521251 into willdurand:master Jul 4, 2024
0 of 7 checks passed
@stof stof deleted the fix_tests branch July 4, 2024 13:13
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