"Fossies" - the Fresh Open Source Software Archive

Member "neos-development-collection-7.0.1/Neos.Neos/Documentation/Appendixes/ChangeLogs/700.rst" (23 Feb 2021, 48782 Bytes) of package /linux/www/neos-development-collection-7.0.1.tar.gz:

As a special service "Fossies" has tried to format the requested source page into HTML format (assuming markdown format). Alternatively you can here view or download the uninterpreted source code file. A member file download can also be achieved by clicking within a package contents listing on the according byte size field. See also the latest Fossies "Diffs" side-by-side code changes report for "700.rst": 7.0.0_vs_7.0.1.

7.0.0 (2020-12-10)

Overview of merged pull requests

TASK: Remove old code migrations

Removes 38 code migrations that are not longer relevant

BUGFIX: Add missing return tag for the flow query operation

Without this, the reference documentation can not be parsed. The Eel helper was not updated since version 4.3!!!

DOCS: Add note about the read only state to the readme of fusion afx

TASK: Throw fusion exception with explanation also for afx parser errors

Previously only AfxExceptions were converted to fusion exceptions which hid valuable information about the error source from the user. This change will also catch for AfxParserExceptions and convert those to Fusion\Exceptions

This is non critical as the fusion side will catch this aswell but it should help to create error messages that are slightly easier to understand.

This replaces pr: https://github.com/neos/fusion-afx/pull/35 after moving afx to the neos development collection

TASK: Raise PHPUnit version to 9

TASK: Adjust version numbers in tooling configuration

Updates for the 7.0 branch:

TASK: Adjust phpunit version for Fusion.Afx

TASK: Extend the warning for the EmberUI

The most parts of the EmberUI has been already removed. So we should mention that.

Releates: #2531

TASK: Remove aloha legacy information

The aloha configuration is not working anymore as we removed that compatibility layer in the neos-ui. So we can also remove the information in the docs.

The aloha editor served us well but now it is time to remove the last legacy pieces.

Relates to https://github.com/neos/neos-ui/pull/2802

TASK: Use PhpUnit 9

FEATURE: Stabilize and extend Frontend Routing

This adjusts the FrontendNodeRoutePartHandler so that it can more easily be used for custom routes:

# Allow to be used in conjunction with other static/dynamic

route parts

An uriPattern of "{node}/some/custom/part" did not work with the previous version since the uriPath was replaced completely when the route resolved a given node.

# Allow custom routes to be filtered by node type.

With the bug above fixed the route part handler can be used in custom routes, but it would work for all nodes. So for every valid/uri a corresponding valid/uri/some/custom/part would match to the same node.

To prevent that, a new option nodeType was added that allows the route to only apply for nodes of the specified type:

  name:  'Custom'
  uriPattern: '{node}/custom.html'
    '@package':    'Neos.Neos'
    '@controller': 'Frontend\\Node'
    '@action':     'show'
    '@format':     'html'
    custom:         true
      handler: 'Neos\\Neos\\Routing\\FrontendNodeRoutePartHandlerInterface'
        nodeType: 'Some.Package:Some.Node.Type'

With this route (registered _before the default Neos routes) the URI valid/uri/custom.html would match the corresponding node only if it implements Some.Package:Some.Node.Type.

The Fusion rendering can react to that by evaluating the custom request argument:

prototype(Some.Package:Some.Node.Type) < prototype(Neos.Fusion:Component) {
    renderer = Neos.Fusion:Case {
        custom {
            condition = ${request.arguments.custom}
            renderer = Some.Package:Some.Custom.Renderer
        default {
            condition = true
            renderer = Some.Package:Some.Default.Renderer
    @cache {
        mode = 'dynamic'
        entryDiscriminator = ${request.arguments.custom ? 'custom' : 'default'}
        context {
            1 = 'node'
            2 = 'documentNode'
            3 = 'site'

Vice versa, to create a link using the custom route via Fusion:

link = Neos.Neos:NodeLink {
  node = ${someNode}
  arguments {
    custom = true

...will create a link pointing to the custom rendering of the node if someNode implements the configured node type.

BUGFIX: Adjust fusion tests to match the InvalidPositionException

Invalid positions has been skipped silently. Since https://github.com/neos/flow-development-collection/pull/2214 this leads to an InvalidPositionException.

This change adjusts the tests, so that the expected errors are also respected in the tests.

Related: https://github.com/neos/flow-development-collection/pull/2214

TASK: Removes unused semantic-release

Removes dependency to the semantic-release npm package.

Semantic-release has been added 2 years ago with the image variant change. But it was never used and as we need a changelog ruleset for Neos commit messages before we are able to use it we can just drop it.

When we plan to use it we can add it again anyways.

FEATURE: Remove default prototype generator

Related to #3137

TASK: Add new login wallpaper

!!! FEATURE: Add getIconUri & getDescription to AssetSourceInterface

Extends the NeosMediaDomainModelAssetSourceAssetSourceInterface by the two methods getIconUri() and getDescription().

This is a breaking change if you created a custom Asset source (implementing the AssetSourceInterface) and didn't implement these methods yet.

Related to #3137

TASK: Adjust deprecated notices for next release

Related to #3137

TASK: Include AFX in development collection

This merges the AFX repository as subtree of the development collection, additionally the splitter configuration will have to be adapted afterwards and the Neos.Fusion.AFX repository made read-only.

Add tagMode: 0 to tag links rendered in Media.Browser.

Add tagMode: 0 to tag links rendered in Media.Browser.

BUGFIX: Respect already defined attributes in Neos.Neos:ConvertUris

BUGFIX: Respect already defined attributes in Neos.Neos:ConvertUris

BUGFIX: Add file and line information to fusion parser exceptions where possible

In many cases the currently parsed resource and line is known and it would help to editors to show this information in the parser exception.

TASK: Rename TYPO3CR where possible

Affects #2842 and #3137

BUGFIX: Align fusion caching and service

FEATURE: Replace Fusion:Collection with Fusion:Loop

FEATURE: Replace Neos.Fusion:Array with Neos.Fusion:Join

FEATURE: Replace test function names to map prototype name in Map test

TASK: Adjust Node and NodeInterface deprecation annotations

FEATURE: Replace RawArray with DataStructure


FEATURE: Replace TS in comments with Fusion


Fix doc comments in Node and NodeInterface

Tweaks some doc comments that were introduced with #3187 and referred to a non-existing class TraversableNode

TASK: Adjust Node and NodeInterface deprecation annotations

TASK: Unify indents to spaces in fusion files

Currently, we have a kind of a mess in the different fusion files. Sometimes we use spaces, sometimes tabs. This PR clean this up.

BUGFIX: Use autorotate filter to apply resize adjustments properly to images with exif-orientations

The autorotate is applied before calculating the resize dimensions to work with correct size values.

How to test: - Go to the media module - Upload an image with exif orientation like https://github.com/recurser/exif-orientation-examples/blob/master/Landscape_6.jpg - Look at the generated thumbnails (without this change the thumbnail is rotated 90°)

BUGFIX: Flush 1st level node caches after publishing

When a fresh variant is published outdated URLs may be generated if the urlPathSegment was changed on the variant.

BUGFIX: Adjust NodeIdentityConverterAspect to typed persistence

TASK: Adjust to removal of ComponentContext

This removes all usages of ComponentContext.

Related: neos/flow-development-collection#2019

TASK: Update gedmo/doctrine-extensions to 3.0

depends on #3177 Related to neos/flow-development-collection#2122 Required for neos/flow-development-collection#2247 et.al.

TASK: Remove use of resolveShortcuts argument

The LinkingService.createNodeUri() no longer uses/accepts this parameter…

See https://github.com/neos/neos-development-collection/pull/3168

!!! TASK: Adjust to doctrine/migrations v3

BUGFIX: Adjust to typed persistence code

See https://github.com/neos/flow-development-collection/issues/2231

TASK: Apply migrations

Apply core migrations to (some) Neos dev collection packages.

BUGFIX: Correct bug in migration of ContentCollectionConstraints

The adjustments were applied to all nodes with constraints because the existence of the superType "Neos.Neos:ContentCollection" was not properly checked.

The fixed migration was introduced in #3163

!!! TASK: Raise minimum PHP version to 7.3

See https://github.com/neos/flow-development-collection/issues/2236

TASK: Remove PHP 7.2 builds

See https://github.com/neos/flow-development-collection/issues/2236

What I did I set the collection mode explicitly to 0 to correct the argument in the url for switching to a custom collection. This Fixes Issue https://github.com/neos/neos-development-collection/issues/3161 How I did it I adjusted the arguments in the link generation in the template for the index action.

BUGFIX: Fix Compatibility fallback after switching from Neos.Fusion:Collection to Neos.Fusion:Loop

Close: #3169

BUGFIX: Fix Compatibility fallback after switching from Neos.Fusion:Collection to Neos.Fusion:Loop

Close: #3169

!!! FEATURE: Add Afx template for SiteKickstarter

This is the first approach for making the SiteKickstarter more versatile. Now you can easily add a custom generator package and kickstart some sorts of sites with one package.

This is a breaking change because it removes the old, Fluid-based generator service. In case you want to use the Fluid based rendering you can use the dedicated package at https://github.com/queoGmbH/FluidSiteGenerator

!!! FEATURE: Faster frontend routing

Moves most of the "expensive" logic from the LinkingService to the FrontendNodeRoutePartHandler where it will be cached.

This leads to a great performance improvement because: * The "current Site" is only determined once, not for every URI * Previously we had three routes for the frontend, now it's a single one * Shortcut resolution will happen in the handler, so it will be cached

Most of these performance improvements even hold true for uncached requests.

Breaking Change

This might be a breaking change if you...: * ...extend the FrontendNodeRoutePartHandler and rely on it's inner workings (for example with shortcut nodes¹). No methods were removed though, so chances are that you are not affected * ...created (functional) tests that cover the Neos routing behavior. The FrontendNodeRoutePartHandler expects the requestUriHost routing parameter to be set (usually done via HTTP Middleware). You can simulate that behavior via: $httpRequest = $httpRequest->withAttribute(ServerRequestAttributes::ROUTING_PARAMETERS, RouteParameters::createEmpty()->withParameter('requestUriHost', 'some-host')); * ...rely on the internal behavior of the resolveShortcuts argument of the LinkingService This is quite unlikely since we don't use that route part handler for the backend, where shortcut nodes are never resolved anyways.

---¹ The Node instance passed to resolveValue() will no longer be the target node of a shortcut

but the actual shortcut node itself. It is resolved to the target node/URI via resolveShortcutNode(). This method is protected so that it can be called from any subclass if needed.

!!! FEATURE: Respect language plurals also in XliffService

The neos-ui can not use language plurals as the UI only uses the xliff.json endpoint and the XliffService that creates the JSON returns only the singular. This change adds the plurals when they are available.

What I did

The XliffService always returned the first value of a translation unit. So even when a label has a plural the XliffService only used the singular. So I changed that and we are respecting now plural and singular.

How I did it

Added a new method getTranslationUnitValue that iterates over the translation unit values and potentially scramble the singular and plural. When we have just a singular we just use the single value for the label. If we have singular and plural we use the whole array for the label key.

TASK: Add migration to adjust constraints of `Neos.Neos:ContentCollections`

In PR #2715 the constraints in the Neos.Neos:ContentCollection were altered from allow * and disallow Neos.Neos:Document to disallow * and allowing Neos.Neos:Content.

This change adds an automatic migration to alter NodeTypes that are derived from Neos.Neos:ContentCollection and constraints of childNodes that are of type Neos.Neos:ContentCollection.

The migration will replace constraints for * with constraints for Neos.Neos:Content while preserving order.

Limitations: This will not run on nodeTypes that indirectly inherit from Neos.Neos:ContentCollection and childNodes that are of a derived ContentCollection nodeType. However i consider such cases exotic and hope this catches 99% of the cases.

TASK: Apply core migrations for Neos.ContentRepository

The core migrations are not stored in the database anymore and therefore our travis tests are failing.

What I did Applied core migrations for Neos.ContentRepository

FEATURE: Lazy loading images

This will solve issue #3084

Apply fixes from StyleCI

This pull request applies code style fixes from an analysis carried out by StyleCI.

For more information, click here.

FEATURE: Add StaticResource helper to Fusion defaults

Add the StaticResource EEL Helper from https://github.com/neos/flow-development-collection/pull/2174 to the Fusion defaultContext.

StaticResource.uri (packageKey, pathAndFilename, localize) - (string) packageKey - (string) pathAndFilename - (boolean, optional) localize = false

StaticResource.content (packageKey, pathAndFilename, localize) - (string) packageKey - (string) pathAndFilename - (boolean, optional) localize = false

This makes this helper available in afx:

<link rel="stylesheet" href={StaticResource.uri('Neos.Demo', 'Public/Styles/Main.css')} media="all" />

<style>{StaticResource.content('Neos.Demo', 'Public/Styles/Main.css')}</style>

FEATURE: Introduce NodeTypePresetPostprocessor

Introduce NodeTypePresetPostprocessor and extract IconNameMappingPostprocessor and DefaultPropertyEditorPostprocessor from NodeTypeConfigurationEnrichmentAspect.

This allows to configure nodeType presets via settings and apply them to nodeTypes via. Other than mixins this allows to ensure consistent configurations across differently named properties to ensure a consistent editor experience.

Note: This is mainly a core adaptation of the Sitegeist.Silhoettes package https://github.com/sitegeist/Sitegeist.Silhouettes.

The presets can be applied by definining the options.preset for childNodes or properties.



                'Neos.Neos:Content': true
                'Neos.NodeTypes.BaseMixins:TitleMixin': true

              type: string
            type: string
            defaultValue: ''
              inlineEditable: true
                  placeholder: 'Vendor.Site:NodeTypes.Generic:text.placeholder'
                  autoparagraph: true
                    strong: true
                    em: true
                    u: false
                    underline: false

Presets can then be applied to nodetypes via:

        preset: 'vendor.defaultConstraints'
        preset: 'vendor.defaultConstraints'
        preset: 'vendor.textBlock'

This also solves two thirds of #2867 (get rid of NodeTypeConfigurationEnrichmentAspect). The last part cannot be extracted that easily as it converts the magic value i18n to a key built from the NodeType it was defined on.

!!!TASK: Adjust constraints of `Neos.Neos:ContentCollection` to allow `Content` instead of denying `Document`

A ContentCollection did allow all children but Documents in the past which is unexpected and makes it needlessly harder to create derived nodetypes with custom constraints.

This constraint is now adjusted to allow nodes of Neos.Neos:Content inside a Neos.Neos:ContentCollection as anyone would expect given the nodetype name.

Additionally the test fixtures are adjusted as in one test a ContentCollection was moved into another. Now the respective node has a type that inherits from Content and ContentCollection.

How to update: If you created NodeTypes derived from Neos.Neos:ContentCollection and altered the constraints to forbid * you have to adjust the constraints and now forbid Neos.Neos:Content instead of `*`:

    'Neos.Neos:ContentCollection': true
      // remove constraints like:
      // '*': false
      // and add the following instead
      'Neos.Neos:Content': false
      // everything else stays the same
      'Vendor.Site:Content': true

TASK: Remove unused legacy UI setting

Part of #3137

FEATURE: Allow users to log in without access to the content module

Before, it was not possible to log in to the Neos backend without having access to the content module, as the user was automatically redirected to the content module.

With this feature, an available module is determined when a user logs in and the user is redirected to that module.

# High level features

      preferredStartModules: [ 'content', 'user/usersettings' ]

## Details

# Update notes

BUGFIX: Fix LinkingService for CLI mode

Specifies the HTTP request from the ControllerContext as fallback for the BaseUriProvider in order to prevent an exception when trying to create Node URIs on the CLI.

Note: This requires https://github.com/neos/flow-development-collection/pull/2158

TASK: Remove unused backend content container

The view helper and the "corresponding" template seems not to be used anywhere in the core anymore

BUGFIX: Require jQuery Version 3.5.1

After the https://github.com/neos/neos-development-collection/pull/3023 the image selector in the backend was broken.

TASK: Code cleanup in backend login area

Code cleanup and method typing in preparation of #2351 No functional changes.

!!! TASK: Remove the backend menu API controller

Seems as this is a leftover of the old UI and is not used anywhere in the current code.

TASK: Apply fixes from StyleCI

This pull request applies code style fixes from an analysis carried out by StyleCI.

For more information, click here.

TASK: Apply fixes from StyleCI

This pull request applies code style fixes from an analysis carried out by StyleCI.

For more information, click here.

FEATURE: Use breadcrumb for URL preview

This replaces the (preview) URL by a "breadcrumb" to the homepage node.

Essentially applies https://github.com/neos/neos-development-collection/pull/2966 to the 4.3 branch, since the breadcrumb is a lot more user-friendly than the URL.

BUGFIX: Migrate icons from TYPO3.Media to Neos.Media

TASK: Add new login wallpaper for Neos 5.3

BUGFIX: Correctly set apply values for instantiated array objects

With the introduction of lazy evaluation the apply values are stored as an array of (absolute) paths and popped accordingly to the evaluation stack. When an object is instantiated only the effective apply values for this object must be set (and not all currently set apply values).

FEATURE: third parameter "sortFlags" for FlowQuery sort()

On enabling Psmb/FlatNav I stumbled over the FlowQuery sort operation having the demand for case insensitive sort.

Here's the solution: a third optional sort() parameter for sortOptions.

The FlowQuery sort() is executed utilizing PHP arsort(). According to the sort flags of arsort() (see https://www.php.net/manual/en/function.sort) the sort options are:

A single sort option can be supplied as string. Multiple sort options are supplied as array.

Other than the above listed sort options shall throw an error.

Omitting the third parameter leaves FlowQuery sort() in SORT_REGULAR sort mode.

How to use (example for Psmb/FlatNav) in `Settings.yaml`:

        type: tree
        label: tree
        icon: tree
        label: 'Press Tags'
        icon: icon-hashtag
        type: flat
        query: 'q(node).find("[instanceof My.Site:Document.PressTag]").sort("title", "ASC", ["SORT_NATURAL", "SORT_FLAG_CASE"]).get()'
        label: 'Number Tags'
        icon: arrow-circle-up
        type: flat
        query: 'q(node).find("[instanceof My.Site:Document.NumberTag]").sort("title", "ASC", "SORT_NUMERIC").get()'

In the line query: of pressTags: you can see FlowQuery `sort()`in action:

sort("title", "ASC", ["SORT_NATURAL", "SORT_FLAG_CASE"])

with sort flags ["SORT_NATURAL", "SORT_FLAG_CASE"] passed as array for natural, case insensitive sort.

The line query:`of `numberTags: has a single sort option "SORT_NUMERIC" passed as string:

sort("title", "ASC", "SORT_NUMERIC")

BUGFIX: TransientNodeCache must be able to return null

This is an important bugfix because right now non existing nodes will result in a fatal error due to the type hint, when the $getter() actually doesn't resolve a node but null, which can happen. The current behavior is therefore broken for many installations.

Relate #2301

BUGFIX: Migrate media browser icons

In Neos prior to 4.1, the media browser uses PNG resources to show thumbnails for non graphical documents from …/Public/Icons/, like ppt.png. In 4.1 the PNG ressources were removed and replaced by SVG resources from …/Resources/Public/IconSets/vivid/. When you add new files after the upgrade, the valid SVG resources are used, but old assets still refer to their old resources, which are missing. As a result, the media browser shows the rotating “loading” icon for these old documents.

This adds Doctrine migrations to replace the old with the new icons in the database.

TASK: Bump elliptic from 6.5.0 to 6.5.3 in /Neos.Neos

Bumps elliptic from 6.5.0 to 6.5.3.

TASK: Bump jquery from 3.4.1 to 3.5.0 in /Neos.Neos

Bumps jquery from 3.4.1 to 3.5.0.

TASK: Bump acorn from 6.2.1 to 6.4.1 in /Neos.Neos

Bumps acorn from 6.2.1 to 6.4.1.

TASK: Remove deprecated code use from ContentCollectionRenderer

This replaces the use of Neos.Fusion:Collection with Neos.Fusion:Loop and Neos.Fusion:Array with Neos.Fusion:Join.

To ensure backwards compatibility there is a processor which overrides items if the property collection is set.

Bump lodash from 4.17.15 to 4.17.19 in /Neos.Neos

Bumps lodash from 4.17.15 to 4.17.19.

FEATURE: User management for non-admins

This introduces a new role Neos.Neos:UserManager. When an editor has that role, he is able to manage users with roles not exceeding his own, without being an Administrator.

!peek 2018-12-15 23-40

Detailed log

The detailed log is messed up this time, since we had to do some history-rewriting Git magic.

A more realistic view is the combination of

Even that is quite large, feel free to ignore all the Neos.Fusion.Afx commits (that has been integrated into the Neos development collection from it's original repository–which is now a reads-only split.)