v0.2.0
Minor Changes
-
8fd819b: # Changes
BREAKING:
generateAssignmentObjecthas been removed. Use the exportedassignmentObjectdirectly. If you need additional fields on assignments (e.g. channel, market, region), define your own schema type withname: 'assignment'and register it viaworkflowsPlugin({schemaTypes: [yourAssignment]})— the plugin merges schema types by name, so yours replaces the default.The
assignmentGroup/assignmentGroupLabel/assignmentGroupOptionsoptions are gone with the generator. Existing documents that stored these values will retain them as orphan data; run a one-offunsetmigration if you want to tidy them up.New feature:
withWorkflownow auto-injects anassignmentsarray field on every workflow-aware document by default. Opt out withworkflowsPlugin({injectAssignments: false}), or by declaring your ownassignmentsfield on the document type.Nicety:
workflowsPlugincan now be called with no arguments (workflowsPlugin()) for the default setup. PassingworkflowsPlugin({})still works.