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 ID Validation Error Message / refactor #835

Merged
merged 14 commits into from
Apr 12, 2023
Merged

Conversation

silesky
Copy link
Contributor

@silesky silesky commented Apr 11, 2023

This should not have any behavior change.

I'm keeping the string requirement to be consistent with mobile SDK: I think it's better to force users to coerce IDs to string on their end, rather than have them surprised when their IDs are coerced for them. However, it's important to improve the error message.

Anyone upgrading from analytics-node who is now facing more strict ID validation will continue to get a validation error, but that error won't be misleading.

https://segment.atlassian.net/browse/LIBWEB-1377

@changeset-bot
Copy link

changeset-bot bot commented Apr 11, 2023

🦋 Changeset detected

Latest commit: 42ed459

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 3 packages
Name Type
@segment/analytics-next Patch
@segment/analytics-core Patch
@segment/analytics-node Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@silesky silesky changed the title Better ID Validation Error Message Fix ID Validation Error Message Apr 11, 2023
@silesky
Copy link
Contributor Author

silesky commented Apr 11, 2023

Fixes #834

@silesky silesky changed the title Fix ID Validation Error Message Fix ID Validation Error Message / refactor Apr 11, 2023
Copy link
Contributor

@pooyaj pooyaj left a comment

Choose a reason for hiding this comment

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

Looks great! love the bundle size savings 📉

@silesky silesky merged commit 9353e09 into master Apr 12, 2023
@silesky silesky deleted the better-id-validation branch April 12, 2023 19:44
@github-actions github-actions bot mentioned this pull request Apr 12, 2023
nguyenlephong pushed a commit to nguyenlephong/analytics-next that referenced this pull request Apr 13, 2023
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