Only pkg/machine
and pkg/states
adhere to semver. Semver of other packages is not guaranteed at the moment.
FooBar
handlers get execute later and more oftenFooAny
,AnyFoo
handlers have been removedAnyAny
is nowAnyEnter
Event.Machine
is nowEvent.Machine()
Machine.RegisterDisposalHandler(func())
is nowHandleDispose(func(id, ctx))
Step.FromState
is nowStep.GetFromState()
Step.ToState
is nowStep.GetToState()
Step.Data
is nowStep.RelType
Machine.ID
is nowId()
Machine.Tracers
is nowTracers() Tracers
Machine.LogID
is nowGetLogId() bool
Machine.Switch(ss... string)
is nowSwitch(states S)
Machine.StatesVerified
is nowStatesVerified()
Machine.ParentID
is nowParentId()
Transition.StatesBefore
is nowStatesBefore()
Transition.TargetStates
is nowTargetStates()
Tracer.TransitionInit
now returns an optionalContext
Machine.Ctx
is nowCtx()
Machine.PrintExceptions
is nowMachine.LogStackTrace
Machine.Resolver
is nowMachine.Resolver()
Machine.StateNames
is nowMachine.StateNames()
Machine.Transition
is nowMachine.Transition()
Machine.Err
is nowMachine.Err()
Machine.AddErrStr()
is now removedMachine.AddErr(error)
is nowMachine.AddErr(error, Args)
Machine.AddErrState(string, error)
is nowMachine.AddErrState(state, error, Args)
Machine.WhenTicksEq()
now acceptsuint64
Machine.IsClock()
andMachine.Clock()
are nowMachine.Time()
Machine.OnEvent()
is now removedMachine.DuringTransition()
is nowMachine.Transition()
Machine.SetTestLogger()
is nowMachine.SetLoggerSimple()
Machine.HasStateChanged()
is nowMachine.IsClock()
Machine.HasStateChangedSince()
is nowMachine.IsTime()
Machine.Clocks()
is nowMachine.Clock()
Machine.Export()
andMachine.Import()
now useam.Serialized
Opts.DontPrintExceptions
is nowOpts.DontLogStackTrace
Transition.ClocksBefore
is nowTransition.ClockBefore()
Transition.ClocksAfter
is nowTransition.ClockAfter()
Transition.TAfter
is nowTransition.TimeAfter
Transition.IsCompleted
is nowTransition.IsCompleted()
T
is nowTime
Clocks
is nowClock
Event*
enum is now removedSMerge
is nowSAdd