Apostrophe 3, Beta 1 #3038
localghost8000
announced in
Release Notes
Replies: 1 comment
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 1
Its ouuuuuuuuuuut. We wrote a whole blog post about it. Install it, checkout the demo, and read the changelog below 👇.
Breaks
firstNameandlastNamefields in user pieces.apos-refresh,apos-edit,apos-modeandapos-localeare nowaposRefresh,aposEdit,aposModeandaposLocale. Going forward all query parameters will be camelCase for consistency with query builders.Changes
Adds
rendercall, just like a macro call can have a body usingcall. In addition, fragments can now have named arguments, just like macros. Many thanks to Miro Yovchev for contributing this implementation.nestedModuleSubdirsoption.httpsFixoption in launder'surl()method.beforesyntax, allowing routes that are added to Express prior to the routes or middleware of another module. The syntaxbefore: 'middleware:moduleName'must be used to add the route prior to the middleware ofmoduleName. Ifmiddleware:is not used, the route is added before the routes ofmoduleName. Note that normally all middleware is added before all routes.urlproperty can now optionally be specified when adding middleware. By default all middleware is global.?count=1query parameter.AposButton.usernamefields to follow the usertitlefield to remove an extra step in user creation.outerLayoutBase.html<title>tag:data.piece.title or data.page.title.NODE_ENVis not 'production' and when:CORE_DEV=1._ids(_idOrArrayOfIds)query builder replacesexplicitOrderand accepts an array of document_ids or a single one._idcan be used as a multivalued query parameter. Documents are returned in the order you specify, and just like with single-document REST GET requests, the locale of the_ids is overridden by theaposModequery parameter if present..withPublished(true)query builder adds a_publishedDocproperty to each returned draft document that has a published equivalent.withPublished=1can be used as a query parameter. Note this is not the way to fetch only published documents. For that, use.locale('en:published')or similar.apos.http.postnow supports passing aFormDataobject created with the[form-data](https://www.npmjs.com/package/form-data)npm module. This keeps the API parallel with the browser-side implementation and allows for unit testing the attachments feature, as well as uploading files to internal and external APIs from the server.manuallyPublishedcomputed property moved to theAposPublishMixinfor the use cases where that mixin is otherwise warranted.columnsspecified for a piece type's manage view can have a name that uses "dot notation" to access a subproperty. Also, for types that are localized, the column name can begin withdraft:orpublished:to specifically display a property of the draft or published version of the document rather than the best available. When a prefix is not used, the property comes from the published version of the document if available, otherwise from the draft.childrenquery builder is now supported in query strings, including thedepthsubproperty. For instance you could fetch/api/v1/@apostrophecms/page/id-of-page?children=1or/api/v1/@apostrophecms/page/id-of-page?children[depth]=3.APOS_LOG_ALL_QUERIES=1now logs the projection, skip, limit and sort in addition to the criteria, which were previously logged.Fixes
_defaultsfeature of parked pages.aposRefresh=1when in edit mode. Also removed superfluousappendquery parameter from these.EADDRINUSEerrors during nodemon restarts./as only one page can have that slug at a time.is-activeclass if, like palette, they opt in withtoggle: true@apostrophecms/migrate:afterevent handler, which runs only after migrations, whether that is at startup (in dev) or at the end of the migration task (in production).Apostrophe 2.118
apostrophe (core) 2.118.
It's now possible to set the status code when redirecting using req.redirect by setting req.statusCode. Thanks to Jonathan Garijo for the contribution.
sluggo 0.3.1
Accepts the empty string as a legitimate value for def, as was always intended, rather than forcing none in that situation. If def is not set at all none is still the fallback default.
Beta Was this translation helpful? Give feedback.
All reactions