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

Export functions based on return type #43

Merged
merged 2 commits into from
Aug 25, 2024
Merged

Export functions based on return type #43

merged 2 commits into from
Aug 25, 2024

Conversation

fregante
Copy link
Collaborator

@fregante fregante commented Aug 24, 2024

Breaking change.

I always found this smelly, even if I was the one who wrote it 🥲

Next:

html(linkifyUrls('See https://github.com/sindresorhus/linkify-... and https://github.com/sindresorhus/linkify-...', {
type: 'dom',
})),
html(linkifyUrlsToDom('See https://github.com/sindresorhus/linkify-... and https://github.com/sindresorhus/linkify-...')),
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

I think in a followup PR I can unify these tests via test.each([linkifyUrlsToHtml, linkifyUrlsToDom]). The output should be identical.

Or maybe even just use snapshots, it's not like these long messy strings are easy to parse visually anyway.

@sindresorhus sindresorhus merged commit 4e052ff into main Aug 25, 2024
2 checks passed
@sindresorhus sindresorhus deleted the split branch August 25, 2024 18:45
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