Skip to content

2.0.0

Compare
Choose a tag to compare
@Chrico Chrico released this 28 Jun 06:54
· 67 commits to master since this release
94fa669

Breaking changes

This version removes the custom psr/container-implementation and upgrades to inpsyde/modularity as base.

You now need to use inspyde/modularity to hook into the Plugin like following:

<?php

use Inpsyde\Modularity\Package;

use function Inpsyde\GoogleTagManager\plugin;

add_action(
    plugin()->hookName(Package::ACTION_INIT),
    static function (Package $plugin): void {
       $plugin->addModule(new MyModule());
    }
);

Read more about "Access from external" in our documentation: https://inpsyde.github.io/modularity/Package/#access-from-external.

Removed BootstrapEvent

Due the change to inpsyde/modularity, we now no longer need Inpsyde\GoogleTagManager\Event\BootstrapEvent::ACTION.

Removed ConfigBuilder and PluginConfig

Those 2 classes were no longer needed. We can now use the Inpsyde\Modularity\Properties\PluginProperties to access all required data.

Restructure of code

The code structure is now more flat which was also adapted to the identifier in the container.

*Provider
All providers were moved from Inpsyde\GoogleTagManager\App\Provider to Inpsyde\GoogleTagManager\Provider

SiteInfoDataCollector

  • namespace from Inpsyde\GoogleTagManager\DataLayer\Site to Inpsyde\GoogleTagManager\DataLayer
  • identfier from DataLayer.Site.SiteInfoDataCollector to DataLayer.SiteInfoDataCollector.

UserDataCollector

  • namespace from Inpsyde\GoogleTagManager\DataLayer\User to Inpsyde\GoogleTagManager\DataLayer
  • identfier from DataLayer.User.UserDataCollector to DataLayer.UserDataCollector.

Upgrade of chrico/wp-fields

Additionally we now support chrico/wp-fields version 2, which also removes pimple/pimple, inpsyde/validator and inpsyde/filter as dependency.

PHP min version

The PHP min support was raised fro 7.2 to 8.0.

QoL

  • php-qa.yml // ad lint-php and coding-standards via inpsyde/reusable-workflows.
  • assets-compiler // update GA and configuration to make use of wordpress/scripts.
  • package.json // add "license", "keywords", "homepage" and "bugs".