Skip to content

Limit breaking changes with types #682

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 1 commit into from
Jan 14, 2024
Merged

Limit breaking changes with types #682

merged 1 commit into from
Jan 14, 2024

Conversation

ehmicky
Copy link
Collaborator

@ehmicky ehmicky commented Jan 13, 2024

The ExecaSyncReturnValue, ExecaSyncError and SyncOptions types are for sync methods.

The ExecaReturnValue, ExecaError and Options types used to be for async methods. However, with #678, they are now for what's common between the async and sync methods. Based on your comment at #678 (comment), I reintroduced the sync methods types. This PR does the second step: to ensure those types remain for the async methods only, so that's it's not a breaking change. Also, it makes more sense, since most users need either the async types or the sync ones, not both.

Verified

This commit was signed with the committer’s verified signature.
niklasad1 Niklas Adolfsson
@ehmicky ehmicky force-pushed the sync-types-refactor branch from 83de881 to 2cc7dc0 Compare January 13, 2024 19:54
@ehmicky
Copy link
Collaborator Author

ehmicky commented Jan 13, 2024

Fixed conflict.

@sindresorhus sindresorhus merged commit 73f4b8c into main Jan 14, 2024
@sindresorhus sindresorhus deleted the sync-types-refactor branch January 14, 2024 04:43
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

2 participants