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",
}
- Link to the release branch: https://github.com/livingdocsIO/livingdocs-server/tree/release-2018-02
Livingdocs Editor
How to require the editor in your package.json:
"dependencies": {
"@livingdocs/editor": "27.4.9",
}
- Link to the release branch: https://github.com/livingdocsIO/livingdocs-editor/tree/release-2018-02
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 ./node_modules/@livingdocs/server/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
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.
Reduce image flashing when uploading an image 🪲
Scroll to inlined errors 🎁
When publishing a document and having a validation error, the browser now scrolls automatically to the erroneous metadata field.
Example:
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 withchannel.getContentType
.
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 toapp.articles
- method
documentCreator.createArticle()
changed to the more genericdocumentCreator.createDocument()
. The createDocument method also optionally accepts title and metadata parameters. This gives you more flexibility when creating articles.
Other Changes
Editor
- UI Improvements
- UX Improvements
- 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
Server
Icon Legend
- Breaking changes: 🔥
- Feature: 🎁
- Bugfix: 🪲
- Chore: 🔧