Skip to content

feat(machines)!: switch machines to signals#342

Open
bowheart wants to merge 1 commit intomasterfrom
josh/machines-package-signalification
Open

feat(machines)!: switch machines to signals#342
bowheart wants to merge 1 commit intomasterfrom
josh/machines-package-signalification

Conversation

@bowheart
Copy link
Collaborator

Description

The @zedux/machines package has still been using the Zedux v1 store-based API. In v2, this package should use the new signals implementation.

Rework MachineStore to be a MachineSignal and injectMachineStore to be injectMachineSignal. Replace .setContextDeep with .mutateContext which defers to signal.mutate for the .context field. Fix all the types and tests and add tons more tests. Remove the @zedux/core dependency.

This is a completely breaking change for the @zedux/machines package - almost every export is renamed and some MachineSignal methods are different. The states themselves - the API for defining transitions, hooks, and guards - is largely the same, just with hook parameters accepting the MachineSignal and Events objects now.

I've already written the v2 migration guide section for this change, but will wait to PR it until a Zedux version is published that contains this new code, since there are live sandbox examples that rely on it.

@bowheart bowheart force-pushed the josh/machines-package-signalification branch from 3ce2b31 to ffcff5f Compare February 27, 2026 17:28
@trumid-prow
Copy link

@bowheart: PR needs rebase.

Details

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

17 similar comments
@trumid-prow
Copy link

@bowheart: PR needs rebase.

Details

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

@trumid-prow
Copy link

@bowheart: PR needs rebase.

Details

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

@trumid-prow
Copy link

@bowheart: PR needs rebase.

Details

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

@trumid-prow
Copy link

@bowheart: PR needs rebase.

Details

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

@trumid-prow
Copy link

@bowheart: PR needs rebase.

Details

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

@trumid-prow
Copy link

@bowheart: PR needs rebase.

Details

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

@trumid-prow
Copy link

@bowheart: PR needs rebase.

Details

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

@trumid-prow
Copy link

@bowheart: PR needs rebase.

Details

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

@trumid-prow
Copy link

@bowheart: PR needs rebase.

Details

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

@trumid-prow
Copy link

@bowheart: PR needs rebase.

Details

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

@trumid-prow
Copy link

@bowheart: PR needs rebase.

Details

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

@trumid-prow
Copy link

@bowheart: PR needs rebase.

Details

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

@trumid-prow
Copy link

@bowheart: PR needs rebase.

Details

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

@trumid-prow
Copy link

@bowheart: PR needs rebase.

Details

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

@trumid-prow
Copy link

@bowheart: PR needs rebase.

Details

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

@trumid-prow
Copy link

@bowheart: PR needs rebase.

Details

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

@trumid-prow
Copy link

@bowheart: PR needs rebase.

Details

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

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