v0.8.0
-
Two changes that impact how to write config files:
-
Bundle configuration function in
Config
, and fields in aField
namespace
which is exported from thealinea
package (this is optional). -
Deprecate
alinea.meta
style configuration.
This change is applied toSchema
(types
),Workspace
(roots
),
Root
(entries
),Type
(fields
),Document
(fields
) andSelect
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