/BREAKING.md
Only pkg/machine and pkg/states adhere to semver. Semver of other packages is not guaranteed at the moment.
v0.16
IsTimeAfteris nowTime.AfterTime.Getis nowTime.TickMachine.Sum()takes astatesparam nowMachine.TimeSum()is nowTime(nil).Sum(nil)Machine.HandleDisposerenamed toMachine.OnDisposeMachine.MustParseStateshas been removed- queue length is now
uint16and affects:Machine.QueueLenMachine.QueueLimitMachine.IsQueuedMachine.IsQueuedAboveOpts.QueueLimit
Machine.IsQueuednow returns(uint16, bool)ParseSchema()now also returnserrorTimeIndex.ActiveStates()now takes an optional states paramMachine.ActiveStates()now takes an optional states paramMachine.CountActive()has been removedTime.ActiveStates(index S) Sis nowTime.ActiveStates(idxs []int) []intTime.ActiveIndexhas been removed
v0.15
Exceptionis nowStateExceptionHeartbeatis nowStateHeartbeatHealthcheckis nowStateHealthcheckAnyis nowStateAnyHandlerGlobalis nowHandlerAnyEnterEnvAmLog*moved to/pkg/helpersSemLogger.SetArgsis nowSemLogger.SetArgsMapperSemLogger.Argsis nowSemLogger.ArgsMapperTransition.LogArgsis nowMutation.LogArgsIsQueuednow usesint16IsQueuednow hasisCheckandpositionparamsEvent.Cloneis nowEvent.ExportResultNoOphas been removedWillBe*haspositionparam added
v0.14
- unreleased
v0.13
LogStepshas been removedLogChangesis now2Opts.DontLogIDis nowDontLogIdTransition.IDis nowIdSetLogIdis nowSemLogger.EnableIdGetLogIdis nowSemLogger.IsIdSetLogArgsis nowSemLogger.SetArgsGetLogArgsis nowSemLogger.ArgsSetLoggeris nowSemLogger.SetLoggerGetLoggeris nowSemLogger.LoggerSetLogLevelis nowSemLogger.SetLevelGetLogLevelis nowSemLogger.LevelSetLoggerEmptyis nowSemLogger.SetEmptySetLoggerSimpleis nowSemLogger.SetSimpleTracer.MutationQueuedaddedAddBreakpointhasstrictaddedLoggeris nowLoggerFn
v0.12
Opts.IDandOpts.ParentIDare nowOpts.Id,Opts.ParentIdRelationsResolverhad many renamesMutation.StateWasCalled(string)is nowMutation.IsCalled(int)Mutation.CalledStateshas been removedMachine.GetLogger() *Loggeris nowMachine.Logger() LoggerMachine.GetLogLevel()is nowMachine.LogLevel()Transition.IsAcceptedandTransition.IsCompletedare nowatomic.BoolMachine.DetachTracernow returnserror- added
Api.HasHandlers() Machine.Indexis nowMachine.Index1Machine.IndexNis nowMachine.Index
v0.11
am.Structis nowam.SchemaMachine.GetStruct()is nowMachine.Schema()am.StructMerge()is nowam.SchemaMerge()Tracer.StructChange()is nowTracer.SchemaChange()Machine.WhenTicksEq()is nowMachine.WhenTime1()
v0.10
FooBar()handlers get executed later and more oftenFooAny(),AnyFoo()handlers have been removedAnyAny()is nowAnyEnter()
v0.9
Event.Machineis nowEvent.Machine()Machine.RegisterDisposalHandler(func())is nowHandleDispose(func(id, ctx))Step.FromStateis nowStep.GetFromState()Step.ToStateis nowStep.GetToState()Step.Datais nowStep.RelType
v0.8
Machine.IDis nowId()Machine.Tracersis nowTracers() TracersMachine.LogIDis nowGetLogId() boolMachine.Switch(ss... string)is nowSwitch(states S)Machine.StatesVerifiedis nowStatesVerified()Machine.ParentIDis nowParentId()Transition.StatesBeforeis nowStatesBefore()Transition.TargetStatesis nowTargetStates()Tracer.TransitionInitnow returns an optionalContextMachine.Ctxis nowCtx()
v0.7
Machine.PrintExceptionsis nowMachine.LogStackTraceMachine.Resolveris nowMachine.Resolver()Machine.StateNamesis nowMachine.StateNames()Machine.Transitionis nowMachine.Transition()Machine.Erris nowMachine.Err()Machine.AddErrStr()has been removedMachine.AddErr(error)is nowMachine.AddErr(error, Args)Machine.AddErrState(string, error)is nowMachine.AddErrState(state, error, Args)Machine.WhenTicksEq()now acceptsuint64Machine.IsClock()andMachine.Clock()are nowMachine.Time()Machine.OnEvent()has been 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.SerializedOpts.DontPrintExceptionsis nowOpts.DontLogStackTraceTransition.ClocksBeforeis nowTransition.ClockBefore()Transition.ClocksAfteris nowTransition.ClockAfter()Transition.TAfteris nowTransition.TimeAfterTransition.IsCompletedis nowTransition.IsCompleted()Tis nowTimeClocksis nowClockEvent*enum has been removedSMergeis nowSAdd