Skip to content

v0.2.0

Choose a tag to compare

@github-actions github-actions released this 17 Apr 13:06
· 19 commits to main since this release
bfa9c7a

Minor Changes

  • 8fd819b: # Changes

    BREAKING: generateAssignmentObject has been removed. Use the exported assignmentObject directly. If you need additional fields on assignments (e.g. channel, market, region), define your own schema type with name: 'assignment' and register it via workflowsPlugin({schemaTypes: [yourAssignment]}) — the plugin merges schema types by name, so yours replaces the default.

    The assignmentGroup / assignmentGroupLabel / assignmentGroupOptions options are gone with the generator. Existing documents that stored these values will retain them as orphan data; run a one-off unset migration if you want to tidy them up.

    New feature: withWorkflow now auto-injects an assignments array field on every workflow-aware document by default. Opt out with workflowsPlugin({injectAssignments: false}), or by declaring your own assignments field on the document type.

    Nicety: workflowsPlugin can now be called with no arguments (workflowsPlugin()) for the default setup. Passing workflowsPlugin({}) still works.