Apostrophe 4.10.0: Small Fixes, Big Impact - REST API Enhancements, Vite tweaks, and Import-Export Updates #4812
BoDonkey
announced in
Release Notes
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Howdy from Apostrophe Central!
This release cycle was brief, thanks to the upcoming holidays in the United States, but it's packed with impactful refinements and useful improvements to enhance your ApostropheCMS experience. Read on for the details.
Widget rendering options for the REST API
Headless CMS users rejoice! You now have more options for accessing the rendered HTML of areas in REST API responses. Choose between query parameters for fetching the HTML of entire areas or individual widgets. Bonus: the rich text widget now provides full URLs (rather than just internal IDs) for links and inline images during RESTful rendering.
Tweaks to the Apostrophe build
Our beta Vite build tool is shaping up to make ApostropheCMS development faster and more efficient. We’ve added more options to streamline workflows, especially around hot module replacement. Stay tuned in the coming weeks for guidance on taking full advantage of these features. Our stable release is planned for December 18. In the meantime, explore how to migrate your project to ESM and unlock new possibilities and share your experiences in Discord.
Import-Export extension improvements
The Import-Export extension just got better! You can now choose to import all documents as drafts—even if they were published in the original site. This provides more control and flexibility when moving content between projects.
We’ve got one more release planned before the year ends, so stay tuned. In the meantime, remember: a simple
npm update
keeps your project up-to-date with all the latest and greatest from ApostropheCMS!Apostrophe 4.10.0
Fixes
widges/module.js
) and dot-folders (e.g..DS_Store
).express-bearer-token
dependency to address a low-severitynpm audit
warning regarding noncompliant cookie names and values. Apostrophedid not actually use any noncompliant cookie names or values, so there was no vulnerability in Apostrophe.
renderPermalinks
andrenderImages
methods of the@apostrophecms/rich-text
module now correctly resolve the final URLs of page links and inline images in rich text widgets, even when the user has editing privileges. Formerly this was mistakenly prevented by logic intended to preserve the editing experience. The editing experience never actually relied on therendered output.
Adds
template.append
andtemplate.prepend
. Usewhen: 'hmr:public'
orwhen: 'hmr:apos'
that will be evaluated against the current assetoptions.hmr
configuration.options.modulePreloadPolyfill
(defaulttrue
) to allow disabling the polyfill preload for e.g. external front-ends.bundleMarkup
to the data sent to the external front-end, containing all markup for injecting Apostrophe UI in the front-end.GET
REST APIs now support?render-areas=inline
. When this parameter is used, an HTML rendering of each widget is added to that specific widget in each area'sitems
array as a new_rendered
property. The existing?render-areas=1
parameter is still supported to render the entire area as a single_rendered
property. Note that this older option also causesitems
to be omitted from the response.Changes
postcss-viewport-to-container-toggle
plugin in the webpack config.vue-color
directly in Apostrophe rather than as a dependencytinycolor2
to@ctrl/tinycolor
Apostrophe modules
@apostrophecms/import-export
2.5.0 (2024-11-08)This module enables import and export of pages and pieces, with or without related documents such as files, images and other related types.
Adds
importDraftsOnlyDefault: true
option selects this checkbox by default.@apostrophecms/vite
1.0.0-beta.2This extension provides Vite integration for ApostropheCMS projects, enabling module bundling and hot module replacement (HMR) during development.
Adds
postcss-viewport-to-container-toggle
that allows the breakpoint preview feature to work.autoprefixer
plugin only for apos builds.APOS_ASSET_DEBUG=1
).synthetic
entrypoints, that will only process the entrypointprologue
.Modules/...
alias for the public builds (Webpack BC).Modules/
alias resolver fails.Modules/
alias. It works for both public and private builds in exactly the same way as the JS resolver.Fixes
index
.Utilities
@apostrophecms/apostrophe-astro
1.1.0This module integrates ApostropheCMS into your Astro application.
Adds
Beta Was this translation helpful? Give feedback.
All reactions