stack/packages
Mantra 998b3662a5
Enhance error handling and logging in Emailable response validation (#1292)
- Updated `validateVerifyResponse` to capture errors for invalid or
unexpected responses.
- Improved handling of malformed responses in `checkEmailWithEmailable`,
ensuring a consistent return structure.
- Refactored `getDerivedSignUpCountryCode` to log errors for non-ISO
country codes.
- Simplified country code determination logic in
`createOrUpgradeAnonymousUserWithRules`.

<!--

Make sure you've read the CONTRIBUTING.md guidelines:
https://github.com/stack-auth/stack-auth/blob/dev/CONTRIBUTING.md

-->


<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->
## Summary by CodeRabbit

* **New Features**
* Replaced country code dropdown selection with a direct text input
field for simpler data entry.
* Updated country code validation to accept any 2-letter code format,
improving flexibility.

* **Bug Fixes**
* Refined country code normalization logic across sign-up rules and user
profile pages for consistency.

* **Documentation**
* Clarified country code field messaging from "ISO code" to "2-letter
country code" terminology for better user guidance.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->
2026-04-01 09:21:43 -07:00
..
dashboard-ui-components chore: update package versions 2026-03-31 10:54:12 -07:00
init-stack chore: update package versions 2026-03-31 10:54:12 -07:00
js chore: update package versions 2026-03-31 10:54:12 -07:00
react chore: update package versions 2026-03-31 10:54:12 -07:00
stack chore: update package versions 2026-03-31 10:54:12 -07:00
stack-cli chore: update package versions 2026-03-31 10:54:12 -07:00
stack-sc chore: update package versions 2026-03-31 10:54:12 -07:00
stack-shared Enhance error handling and logging in Emailable response validation (#1292) 2026-04-01 09:21:43 -07:00
stack-ui chore: update package versions 2026-03-31 10:54:12 -07:00
template Fix default redirectMethod for Node.js environments (#1301) 2026-03-31 16:00:22 -07:00