Skip to content

Conversation

TimothyJones
Copy link
Contributor

In #882 the StateHandlers type was changed so that it was incompatible with the other StateHandlers type, resulting in conflicts when Typescript merged the two. This caused problems where it was impossible to correctly type StateHandlers (see #1057).

This PR is a breaking change that simply renames the message StateHandlers interface to MessageStateHandlers, and therefore fixes #1057.

Probably the better fix would be to introduce a breaking change that makes both types the same again - but I didn't want to get in to untangling what is supposed to happen.

This must not be squash merged, otherwise you won't get the breaking change in the changelog.

  • npm run dist works locally (this will run tests, lint and build)
  • Commit messages are ready to go in the changelog (see below for details)
  • PR template filled in (see below for details)

…lers` from `StateHandlers` avoiding the conflicting type problem introduced in pact-foundation#882. Fixes pact-foundation#1057
@TimothyJones TimothyJones mentioned this pull request Feb 28, 2023
5 tasks
@TimothyJones
Copy link
Contributor Author

@mefellows is there a reason this one is stalled? It affects everyone using typescript and states ... which these days might be everyone.

@mefellows mefellows merged commit 1241970 into pact-foundation:master Mar 2, 2023
@mefellows
Copy link
Member

Thanks for the reminder, it just got lost in the pile - merging and releasing ASAP!

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.

Two StateHandler types defined
2 participants