Legacy
release-2018-02
February 2018 Release

Repositories

This release consists of the following new versions of the livingdocs-server and livingdocs-editor:

Package Version
@livingdocs/server 66.3.8
@livingdocs/editor 27.4.9

Livingdocs Server

How to require the server in your package.json:

"dependencies": {
  "@livingdocs/server": "66.3.8",
}

Livingdocs Editor

How to require the editor in your package.json:

"dependencies": {
  "@livingdocs/editor": "27.4.9",
}

Highlights

Manual migration script to fix content types 🪲

In the current releases (january & february) the content_type column on the publication events table is missing all the data. The script db/manual-migrations/004-write-content-type-on-events-table.js inserts that data in a non-blocking script.

We won’t do a blocking migration as that might cause downtime for big customers (we’ll need to find good solutions for that in the future). Please run the regular migration and after that apply the manual one. A blocking migration that makes sure that all columns are NOT NULLABLE will follow in the february or march release.

Required Action

./node_modules/@livingdocs/server/db/manual-migrations/003-write-content-type-v2.js
# and
./node_modules/@livingdocs/server/db/manual-migrations/004-write-content-type-on-events-table.js

Server PR #1857

Routing 🎁

The routing now supports contentType specific routing configuration. The configuration also offers more options and possibilities.

Example contentType configuration:

routing: {
  enabled: true,
  pathPatterns: {
    // type 'article' needs to have an `:id` in the path pattern
    type: 'article',
    // path pattern used to build and parse paths
    current: '/:YYYY/:MM/:DD/:slug--:id',
    // previously used path patterns, used to parse paths if current failed
    legacy: [
      '/article/:slug--:id'
    ]
  }
}

For details see: Server PR #1673

For documentation see: Documentation

Support for Animated gifs in the Images Editing API 🎁

The editor now supports animated gifs.

Server PR #1858

Reduce image flashing when uploading an image 🪲

Editor PR #1829

Scroll to inlined errors 🎁

When publishing a document and having a validation error, the browser now scrolls automatically to the erroneous metadata field.

Example: screen shot 2018-02-27 at 3 17 53 pm

Editor PR #1874

Throw an Error if there are no configured Metadata Plugins 🪲

  • Fix: Improve the warning log when the contentType can not be loaded.
  • Fix: Throw an error on workspace creation (open article), when no metadata plugins are configured

Deprecations

  • channel.getContentTypeConfig is deprecated and has been replaced with channel.getContentType.

Editor PR #1918

Add contentType selection to page creation 🪲

The page creation now includes choosing a content type before setting the page title.

Deprecations

  • ui-router state app.editor.articles moved to app.articles
  • method documentCreator.createArticle() changed to the more generic documentCreator.createDocument(). The createDocument method also optionally accepts title and metadata parameters. This gives you more flexibility when creating articles.

Editor PR #1849

Other Changes

  • Editor

    • UI Improvements
      • Еmbed code should break across lines so that everything is visible #1878 🪲
      • Position the proofreading box properly #1820 🔧
      • Increase padding on the left and right of text inputs #1835 🔧
      • Prettify project settings form #1836 🔧
    • UX Improvements
      • Migrate profile modal onto separate page #1843 🔧
      • Add contentType selection to page creation #1849 🎁
      • Show only a component transformation if there are valid transformations #1885 🔧
      • Improve a dashboards no results feedback #1859 🔧
      • Provide a better error message when the server is offline #1831 🔧
    • Bugfix
      • Fix endless redirect loop with missing pusher config #1833 🪲
      • Missing list assignment in publish screen #1873 🪲
      • Anchor links are persisted #1845 🪲
      • Hide toolbar when editing teaser image #1841 🪲
      • Properly set home page title on selection #1834 🪲
      • Use designProxy instead of removed designLoader #1815 🪲
      • The editor considers canReset: true for a li-meta-slug-form #1917 🪲
      • Prevent input selection for publication date #1879 🪲
    • Chore
      • Improved error handling for session initialisation errors #1863 🔧
      • Update material-design-icons-svg to version 2.0.0 #1822 🔧
      • Disable version check locally #1838 🔧
      • Validate editor imageService config #1884 🔧
      • Update public api documentation #1827 🔧
    • Print
      • Fix print dialogs #1902 🪲
      • Fixes print layout select for new release #1911 🪲
  • Server

    • Stability/Reliability
      • Various bugfixes for server shutdown #1795 🪲
      • Silently skip indexing for publications that have no path #1824 🔧
      • Provide a better error message when sending a mail fails #1803 🔧
      • Validate image service config #1820, #1884 🪲
    • Expose settings to the edtior
      • Expose editor.origin to the editor #1813 🪲
      • Expose editor.images to the editor #1799 🪲
    • Bugfix
      • Fix data-migration task #1818 🪲
    • Feature
      • Add a feature for running tasks #1622 🔧
    • Test
      • Support spaces in directory paths when running tests #1846 🔧

Icon Legend

  • Breaking changes: 🔥
  • Feature: 🎁
  • Bugfix: 🪲
  • Chore: 🔧