Skip to content

fix: remove import side effects for getAmplifyUserAgent() #14433

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

Merged
merged 4 commits into from
Jun 20, 2025

Conversation

soberm
Copy link
Contributor

@soberm soberm commented Jun 17, 2025

Description of changes

This PR fixes side effects from calling getAmplifyUserAgent() in the global scope which, e.g., throws errors in CloudFlare worker runtime.

Issue #, if available

14288

Description of how you validated changes

Run unit, E2E tests and verified manually that CF worker does not throw an error.

Checklist

  • PR description included
  • yarn test passes
  • Unit Tests are changed or added
  • Relevant documentation is changed or added (and PR referenced)

Checklist for repo maintainers

  • Verify E2E tests for existing workflows are working as expected or add E2E tests for newly added workflows
  • New source file paths included in this PR have been added to CODEOWNERS, if appropriate

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

Siteproxy
soberm added 3 commits June 17, 2025 11:34

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
@soberm soberm marked this pull request as ready for review June 18, 2025 09:00

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
@soberm soberm merged commit f94a30b into main Jun 20, 2025
30 checks passed
@soberm soberm deleted the fix/import_sideeffects branch June 20, 2025 08:45
Simone319 pushed a commit that referenced this pull request Jun 30, 2025
* fix: remove import side effects for getAmplifyUserAgent()

* chore: adjust package size limits
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.

None yet

3 participants