-
v0.107.0: Removal of the old layout
The New layout is a series of UI/UX changes that were introduced in v0.101.0 that heavily change both existing UI elements, as well as adding some new ones. The goal of this new layout is to modernize the application and to make it more intuitive but at the same time to reduce clutter.
Starting with v0.107.0, the old layout has been completely removed. This page serves as migration instructions to better understand what changed.
The most significant change is the removal of the ribbon.
-
v0.106.0: Removal of cheerio
The api.cheerio library has been removed from the backend scripting API.
Scripts that attempt to use api.cheerio will now throw an error with migration instructions.
cheerio was deprecated in v0.103.0 in favor of api.htmlParser (node-html-parser), which Trilium already uses for all of its own HTML parsing. The scripting API was the only place that still needed cheerio.
Shipping both parsers was costly, because cheerio was loaded at startup on every platform.
-
v0.104.0: Disabling the Node integration in Electron
Before v0.104.0, code executed at renderer level (e.g. front-end scripts) could directly require @electron/remote or even Node.js APIs (e.g. process or fs). While this makes them powerful, it also exposes a significant attack surface — any XSS or untrusted script in a note becomes remote code execution on the host.
To mitigate this, the client-side no longer has access to these APIs and everything must go through the Electron API instead.
-
v0.103.0: Removal of axios
The api.axios library has been removed from the backend scripting API.
Scripts that attempt to use api.axios will now throw an error with migration instructions.
Axios was marked as deprecated at least since April 2024 in favor of the native fetch() API, which is available in both browser and Node.js environments.
-
v0.103.0: `cheerio` is now deprecated
The api.cheerio library is deprecated and will be removed in a future version.
cheerio was removed in v0.106.0. See v0.106.0: Removal of cheerio for the full migration guide.
Cheerio is only used for the scripting API while the server internally uses node-html-parser for HTML parsing. Removing cheerio reduces bundle size and maintenance overhead.
Before (cheerio):
After (htmlParser):
-
v0.102.0: Upgrade to jQuery 4.0.0
jQuery 4 removes legacy browser support (such as IE11 support), but it also removes some APIs that are considered deprecated such as:
jQuery.isArray, jQuery.parseJSON, jQuery.trim, jQuery.type, jQuery.now, jQuery.isNumeric, jQuery.isFunction, jQuery.isWindow, jQuery.camelCase, jQuery.nodeName, jQuery.cssNumber, jQuery.cssProps, and jQuery.fx.interval.
Use native equivalents like Array.isArray(), JSON.parse(), String.prototype.trim(), and Date.now() instead.