Skip to content

Commit

Permalink
Adding notes about JS BC breaks
Browse files Browse the repository at this point in the history
  • Loading branch information
escopecz committed May 17, 2023
1 parent 7eee5c7 commit 1342067
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions UPGRADE-5.0.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,11 @@
* Services
* Repository service `mautic.user.token.repository` for `Mautic\UserBundle\Entity\UserTokenRepository` was removed as it was duplicated. Use `mautic.user.repository.user_token` instead.
* In tests replace `self::$container->get('mautic.http.client.mock_handler')` with `self::$container->get(\GuzzleHttp\Handler\MockHandler::class)` to get HTTP client mock handler.
* JS Dependencies
* Most of the JS libraries were moved from hard-coded location in the CoreBundle to package.json so we can manage them with NPM
* This means that when you run `composer install` then it will also run `npm install` to download JS dependencies and `bin/console mautic:assets:generate` to build the production assets.
* Libraries `jquery-color`, `jquery-play-sound` and `html5notifications` were removed as unused.
* Library `jvectormap` was replaced with its accessor `jvectormap-next` as it was unmaintaned.
* Other
* `Mautic\UserBundle\Security\Firewall\AuthenticationListener::class` no longer implements the deprecated `Symfony\Component\Security\Http\Firewall\ListenerInterface` and was made final. The `public function handle(GetResponseEvent $event)` method was changed to `public function __invoke(RequestEvent $event): void` to support Symfony 5.
* `Mautic\IntegrationsBundle\Configuration\PluginConfiguration` removed - we don't use it
Expand Down

0 comments on commit 1342067

Please sign in to comment.