Apostrophe 3 Beta 2 #3096
agilbert
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.
-
Release of Beta 2
Hey everyone, our latest release was published late last week.
The team is excited to be in a phase of tightening bolts and getting A3 ready for a stable release in June. You'll see below that we've been focusing on QA and polish of the overall editorial flow now that we have draft/live toggle and a full permissions system in place in the core.
Read on for the detailed release notes.
Apostrophe 3.0.0-beta.2
Breaks
updateModified: falseoption, formerly supported only byapos.doc.update, has been renamed tosetModified: falseand is now supported byapos.doc.insertas well. If explicitly set to false, the insert and update methods will leave themodifiedproperty alone, rather than trying to detect or infer whether a change has been made to the draft relative to the published version.permissionmodule no longer takes aninterestingTypesoption. Instead, doc type managers may set theirshowPermissionsoption totrueto always be broken out separately in the permissions explorer, or explicitly set it tofalseto never be mentioned at all, even on a list of typical piece types that have the same permissions. This allows module creators to ship the right options with their modules rather than requiring the developer to hand-configureinterestingTypes.apos.adminBar.groupmethod, which is unlikely to be needed in 3.x. One can group admin bar items into dropdowns via thegroupsoption.apos.notifymessage parameter. Instead,options.buttonsis available. If present, it must be an array of objects withtypeandlabelproperties. Iftypeis'event'then that button object must havenameanddataproperties, and when clicked the button will trigger an apos bus event of the givennamewith the provideddataobject. Currently'event'is the only supported value fortype.Adds
@apostrophecms/any-page-typeis now accepted for relationships that should match any page. With this change, the doc type manager module name and the type name are now identical for all types in 3.x. However, for backwards compatibility@apostrophecms/pageis still accepted.apos.doc.getManagerwill accept either name.viewsdirectory as the default fallback views directory. This is no longer a necessary configuration in projects unless they want to change it on the@apostrophecms/templateoptionviewsFolderFallback.afterAposScriptsnunjucks block allows for pushing markup after Apostrophe's asset bundle script tag, at the end of the body. This is a useful way to add a script tag for Webpack's hot reload capabilities in development while still ensuring that Apostrophe's utility methods are available first, like they are in production.uploadfsoption may be passed to the@apostrophecms/assetmodule, in order to pass options configuring a separate instance ofuploadfsspecifically for the static assets. The@apostrophecms/uploadfsmodule now exports a method to instantiate an uploadfs instance. The default behavior, in which user-uploaded attachments and static assets share a single instance of uploadfs, is unchanged. Note that asset builds never use uploadfs unlessAPOS_UPLOADFS_ASSETS=1is set in the environment.AposButtonSplitis a new UI component that combines a button with a context menu. Users can act on a primary action or change the button's function via menu button to the right of the button itself.colorschema field by passing apickerOptionsobject through your field. This allows for modifying/removing the default color palette, changing the resulting color format, and disabling various UI. For full set of options see this example.AposModalnow emits areadyevent when it is fully painted and can be interacted with by users or code.Fixes
nameoption to widget modules, which never worked in 3.x, has been officially removed. The name of the widget type is always the name of the module, with thewidgetsuffix removed.#), enabling the use of the hash for project-specific work. Thanks to Štěpán Jákl for reporting the issue.apos.http.addQueryToUrlmethod preserves the hash of the URL intact.apos.http.parseQueryfunction now handles objects and arrays properly again.stylesarray with noptags properly. A newly added rich text widget initially contains an element with the first style, rather than always a paragraph. If no styles are configured, aptag is assumed. Thanks to Stepan Jakl for reporting the issue.Changes
AposSplitButtoncomponent. Editors can choose from several follow-up actions that occur after save, including creating another piece of content of the same type, being taken to the in-context version of the document, or being returned to the manager. Editor's selection is saved in localstorage, creating a remembered preference per content type.Apostrophe 2.119
apostrophe (core) 2.119.0
enableAltFieldoption is set totrue, we now copy thealtfield fromapostrophe-imagesschema to theattachmentpiece when usingapos.attachments.all(and methods that use it).editprivilege on all piece types if a user has theadminprivilege for any piece type. Passing thetypeAdminsCanEditAllTypes: falseoption to theapostrophe-permissionsmodule now disables this surprising behavior. Thanks to zindarato for this contribution.apostrophe-seo 1.5.0
apostrophe-headless 2.12.0
apostrophe-pieces-export 2.4.0
apostrophe-pieces-import 2.2.0
apostrophe-multisite 2.11.0
shortNameandprodHostnameare now normalized to lower case. Without this they do not match any web requests, resulting in anotfoundmessage. A migration is included to take care of this in existing databases.oembetter 1.0.0
uploadfs 1.18.2
npm auditcomplaints aboutmkdirpby using a simplemkdirpimplementation that has no legacy compatibility issues.npm auditcomplaints aboutmochaand friends by upgradingmocha.npm auditwarnings aboutazure-storage, however a fix for this is forthcoming according to the upstream maintainers, and the existing semver ranges in this package will pick it up onnpm auditwhen released.Beta Was this translation helpful? Give feedback.
All reactions