Skip to content

2.2.8

Compare
Choose a tag to compare
@ocmachineuser ocmachineuser released this 17 Apr 06:52
· 18 commits to master since this release

See changelog and completed issues

API changes

2730ac6

Added ability to specify release guards per state according to #90. Example:

schema: {
  states: [
    { 
      name: "open",
      description: "Open",
      release: [              // this section is new  
        {
          to: "approved"      // optional
          guards: [...]       // the same what we have in transitions
        },
        ...
      ]
    }
  ]
}

df6476a

Added new configuration property for editor:

schemaConfig = {
    state: {
      releaseGuards: {
        toState: 'single' // all, single, multiple (default)
    },
  }
}

See issue for details about these options.