Apostrophe 3.40.0: Fix all the things! #4054
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
Uh oh!
There was an error while loading. Please reload this page.
-
Well Met, Apostrophiles!
Some cycles are about making all-new, shiny things and others are about making the tools we already have a little better. This cycle is one of the latter. A number of the existing packages had
apostropheas marked as a “peer dependency” inpackage.json. We removed this because npm’s policy on peer dependencies has become too strict to be really useful. Instead, we’ll be noting any required upgrade ofapostrophein the changelog when updating other modules. But, keep in mind that you should always stay up to date with the coreapostrophemodule to get important bug fixes.You may have noticed lately that your Apostrophe project was a little noisier in the console, letting you know about shortcut conflicts when there weren't any. We squelched that message, and while we were under the hood, we freshened up the
selectandrangeschema fields. See the changelog below for more details.Moving forward into the next cycle we will be back to creating shiny new features! We plan on releasing per-document permissions and improvements to both inline arrays and the rich text editor. We also plan to begin work on the A3 onboarding tutorials for engineers. Reminder, you can have a voice on what is included - just give it a read here and then leave some feedback on our product roadmap.
Thanks for reading and helping us keep this vibrant community moving forward!
Apostrophe 3.40.0
Adds
APOS_BASE_URLenvironment variable is now respected as an override of thebaseUrloption.Fixes
defattribute set to0now. Thedefproperty will be used when the field has no value provided; a value going over the max or below the min threshold still returnsnull.selectfields now work properly when thevalueof a choice is a boolean rather than a string or a number.Apostrophe 2.225.0
Adds
APOS_BASE_URLenvironment variable as an override of the globalbaseUrloption. Useful in devops.Apostrophe 3.x modules
@apostrophecms/seo1.1.2Add useful meta fields to all pages and pieces.
Changed
apostropheas a peer dependency.@apostrophecms/login-totp1.0.1This login verification module adds a TOTP (Time-based One-Time Password) check when any user logs into the site, compatible with Google Authenticator or any TOTP app.
When activated, it will ask unregistered users to add a token to their app through a QR code. Once done, it will ask users to enter the code provided by their app after the initial login step.
Changed
apostropheas a peer dependency.@apostrophecms/login-recaptcha1.0.1This login verification module adds a reCAPTCHA check when any user logs into the site. It uses reCAPTCHA v3, which means that the test is invisible aside from a reCAPTCHA logo at the bottom of the screen.
Changed
apostropheas a peer dependency.@apostrophecms/login-hcaptcha1.1.1This login verification module adds a hCaptcha check when any user logs into the site.
Changed
apostropheas a peer dependency.@apostrophecms/form1.1.1Allow ApostropheCMS editors to build their own forms. They can then place any form in one or more content areas across the website.
Changed
apostropheas a peer dependency.@apostrophecms/passport-bridge1.1.1apostrophe-passportworks together withpassport-google-oauth20,passport-gitlab2and similar passport strategy modules to let users log in to Apostrophe CMS sites via Google, Gitlab and other identity providers. This feature is often called federation or single sign-on.Fixed
retainAccessTokenInSessionfrom working properly. Note that this option can only work with Passport strategies that honor thepassReqToCallback: trueoption (passed for you automatically). Strategies derived frompassport-oauth2, such aspassport-githuband many others, support this and others may as well.@apostrophecms/blog1.0.3This module bundle helps developers quickly add blog articles to Apostrophe 3 websites. It provides the blog post piece type (
@apostrophecms/blog) as well as a special page type (@apostrophecms/blog-page) for editors to create a blog.Fixed
futurefilter when "both" choice is selected.Apostrophe 2.x modules
apostrophe-caches-redis2.1.6This module enhances
apostrophe-caches, the standard caching mechanism of Apostrophe, to use Redis rather than MongoDB.Fixes
removeBadIndexMigrationmigration to not cause an error due to the lack of collections when using redis. Thanks to Felix.Changes
quit()in place of the soon to be deprecatedremoveAllListeners()anddestroy()methods. Thanks to Felix.Utilities
sanitize-html2.10.0This module provides a simple HTML sanitizer with a clear API.
Adds
tagAllowed()helper function which takes a tag name and checks it againstoptions.allowedTagsand returnstrueif the tag is allowed andfalseif it is not.Fixes
disallowedTagModeis set to any variant ofescape-- just escape the disallowed tags that are present. This fixes issue #464. Thanks to Daniel Liebneruploadfs1.21.0uploadfscopies files to a web-accessible location and provides a consistent way to get the URLs that correspond to those files.uploadfscan also resize, crop and autorotate uploaded images.uploadfsincludes S3-based, Azure-based, GCS-based and local filesystem-based backends and you may supply others.Changes
httpsis now the default protocol for S3. As it is always supported and there are no uploadfs+S3 use cases wherehttpis preferred this is not considered a bc break.Adds
webpfiles, updates the package scripts to include "webp" to run the tests, and a webp test image (Note: one test commented out becausesharpcurrently fails to reorient webp files). Thanks to Isaac Preston for this contribution.random-words1.3.0random-wordsgenerates random words for use as sample text. We use it to generate random blog posts when testing Apostrophe.Adds
seedoption. Thanks to Nathan Klingensmith.absolution1.0.3absolutionaccepts HTML and a base URL, and returns HTML with absolute URLs. Great for generating valid RSS feeds.Changes
using quotation marks that are compatible with the escaped values, e.g.
if the escaped values contain unescaped double-quotes, then we must
single-quote the attribute, and vice versa. Note that it is not the task
of
absolutionto verify that the escapes are valid overall, only todo no harm when transforming the document's URLs.
Beta Was this translation helpful? Give feedback.
All reactions