Skip to content

v0.8.0

Compare
Choose a tag to compare
@github-actions github-actions released this 09 Feb 15:50
  • Two changes that impact how to write config files:

    • Bundle configuration function in Config, and fields in a Field namespace
      which is exported from the alinea package (this is optional).

    • Deprecate alinea.meta style configuration.
      This change is applied to Schema (types), Workspace (roots),
      Root (entries), Type (fields), Document (fields) and Select
      fields (options).

      To upgrade your config files:

      // Before
      import alinea from 'alinea'
      const Type = alinea.type('Name', {
        field: alinea.text('Field'),
        [alinea.meta]: {
          contains: ['Page']
        }
      })
      // After
      import {Config, Field} from 'alinea'
      const Type = Config.type('Name', {
        contains: ['Page'],
        fields: {
          field: Field.text('Field')
        }
      })
  • Add the mutation API (#374)

    This introduces a commit method on CMS instances that can be used to mutate
    cms content. It can be used to create, update and delete Entries.

  • Add the Query namespace