Releases: nocode-js/sequential-workflow-editor
Releases · nocode-js/sequential-workflow-editor
0.11.1
0.11.0
This version normalizes names of functions in ValueContext
and PropertyValidatorContext
classes.
The CustomValidatorContext
class is deleted now, please use the PropertyValidatorContext
class instead.
The PropertyModelBuilder
class has deleted the customValidator
function, please use the validator
function instead.
0.10.0
0.9.3
0.9.2
0.9.1
0.9.0
0.8.0
0.7.2
We added a new type of a validator: step validator. It allows to restrict a placement of a step in a definition. For example, you can enforce that a step can be placed only inside a specific step.
createStepModel<WriteSocketStep>('writeSocket', 'task', step => {
step.validator({
validate(context: StepValidatorContext) {
const parentTypes = context.getParentStepTypes();
return parentTypes.includes('socket');
? null // No errors
: 'The write socket step must be inside a socket.';
}
});
});
Additionally we've renamed:
- the
CustomValidatorContext
class toPropertyValidatorContext
, - the
customValidator
method of thePropertyModelBuilder
class tovalidator
.
0.7.1
This version renames all *ValueModel
functions to create*ValueModel
, adding the create
prefix.
// Old
stringValueModel({ ... });
// New
createStringValueModel({ ... });
This version doesn't introduce breaking changes. The old functions are still available, but they are deprecated.