Skip to content

Releases: alineacms/alinea

v0.9.7

25 Apr 14:54
Compare
Choose a tag to compare
  • Add Edit.link and Edit.links to create link values in the Edit api. These
    are currently not optimally typed and will be improved in the future.

    const imageField = Field.link('Image', {
      fields: {
        alt: Field.text('Alt text')
      }
    })
    const imageValue = Edit.link(imageField)
      .addImage(imageId, {alt: 'An image'})
      .value()

v0.9.6

25 Apr 13:30
Compare
Choose a tag to compare
  • Fix double language in urls for entries created through the Edit api

v0.9.5

20 Mar 16:48
Compare
Choose a tag to compare
  • Entries in the dashboard sidebar can now be ordered by a field value.
    Use the orderChildrenBy configuration option to set which field to order by.

    const Type = Config.type('Type', {
      orderChildrenBy: Query.title.asc() // Order by Entry title
      // ...
    })
  • Add subscript and superscript options to rich text Fields.

  • Stop using the porter stemming FTS5 tokenizer in search queries. The algorithm
    does not work well with non-english languages and so is not a good default.

  • Fix select box not showing a checkmark in the explorer while replacing file or
    image links.

  • Unset validation errors when fields are no longer used.

v0.9.4

08 Mar 12:14
Compare
Choose a tag to compare
  • Remove 'use server' directive from the Next.js driver because it does not
    contain server actions at all and newer Next.js version will throw an error
    when it is included.

v0.9.3

04 Mar 13:54
Compare
Choose a tag to compare
  • Fix inserting blocks in rich text fields causing issues after trying to
    publish

v0.9.2

04 Mar 11:26
Compare
Choose a tag to compare
  • Fix inserting blocks in rich text fields causing issues after trying to
    publish

v0.9.1

01 Mar 09:04
Compare
Choose a tag to compare
  • Fix whereId on Cursor typed as returning a single result but actually
    returning multiple
  • Fix inserting blocks in rich text fields

v0.9.0

28 Feb 13:27
Compare
Choose a tag to compare
  • Reserve Alinea generated properties (#378)

    Until now Alinea generated properties that define the content structure as
    normal identifiers. This means that in a list a row would contain a "type",
    "id" and "index" property while also containing user defined fields. This
    had a lot of potential for name clashes: you could choose to name a field
    "type" for example. It is also not future-proof as Alinea might want to add
    more properties later on. To solve this issue Alinea now reserves all
    properties starting with an underscore as internal. It's not needed to
    upgrade content files manually. The old format will automatically be picked up
    for some time. It's possible to upgrade all files in one go by running the
    following, which will write any changes in content back to disk.

    npx alinea build --fix

    When querying content please pay mind that those internal properties are now
    accessed by the underscored property and will need to be updated.
    This becomes most apparent in getting results out of the Link field.

    const MyType = Config.type('MyType', {
      link: Field.link('Link', {
        fields: {
          label: Field.text('Label')
        }
      })
    })
    const result = await cms.get(Query(MyType).select(MyType.link))
    // before:
    //   EntryReference & {label: string}
    //   ^? {id: string, type: string, ..., url: string, label: string}
    // after:
    //   EntryLink<{label: string}>
    //   ^? {_id: string, _type: string, ..., url: string, fields: {label: string}}
  • Use of Type.isContainer is now deprecated, use a list of types in contains
    instead.

  • Use of Type.isHidden is now deprecated, use hidden instead.

v0.8.4

23 Feb 11:23
Compare
Choose a tag to compare
  • Fix select field not using field options such as width or required.

v0.8.3

23 Feb 11:09
Compare
Choose a tag to compare
  • Fix publishing shared fields when the parent paths are not the same.