Closed NGMarmaduke closed 5 years ago
FYI the 4.1.3 release has a 44% compatibility: https://dependabot.com/compatibility-score/?dependency-name=statesman&package-manager=bundler&previous-version=4.1.2&new-version=4.1.3
Thanks for letting us know. We are debating releasing a new minor release without the breaking change vs yanking the broken one and will decide this today.
This has now been fixed as much as a broken release can be.
4.1.4
has the same interface as 4.1.2
and earlier.
If people have changed their code to use new mixin style e.g
include Statesman::Adapters::ActiveRecordQueries[
transition_class: OrderTransition,
initial_state: OrderStateMachine.initial_state
]
They should now use v5.0.0
which has this in its correct form.
If people changed their code so that the definitions of the class methods are before the include
e.g
from
include Statesman::Adapter::ActiveRecordQueries
def self.transition_class
OrderTransition
end
to
def self.transition_class
OrderTransition
end
include Statesman::Adapter::ActiveRecordQueries
Both v4.1.4
and v5.0.0
will work correctly.
We apologize for the inconvenience that this has caused.
When bumping to version v4.1.3 we get the following error:
We have defined the class method
transition_class
as:Using the new
[]
syntax on the module import fixes the issue, but as a patch release I assume this error was not intended to be introduced at this time.