Upgrade to Pro — share decks privately, control downloads, hide ads and more …

What's new in Shopware 6.5

Shyim
January 20, 2023

What's new in Shopware 6.5

Shyim

January 20, 2023
Tweet

Other Decks in Programming

Transcript

  1. Soner Sayakci GH: @shyim, TW: @shyim97, [email protected]
    Shopware 6.5
    What’s new?

    View full-size slide

  2. Shopware 6.5 - What’s new? @shyim97
    About me
    • Soner Sayakci, Dev at Shopware

    • Mostly known as Shyim in
    GitHub, Slack, Twitter

    • Working almost 8 years with
    Shopware

    • Do too much OSS:
    FriendsOfShopware, Opensearch
    and NixOS

    View full-size slide

  3. Shopware 6.5 - What’s new? @shyim97
    Why are Major versions so special?
    • Major versions should release usually every year

    • Upgrade of all packages and increasing requirements

    • Removing deprecations

    • Introducing breaks

    View full-size slide

  4. @shyim97
    You said every year
    Other topics hold us from
    working on it:
    • App Scripts
    • Performance
    fi
    xes
    • Admin Extension SDK
    Shopware 6.5 - What’s new?

    View full-size slide

  5. Shopware 6.5 - What’s new? @shyim97
    How do we plan it?
    • First time on GitHub: shopware/
    proposal

    View full-size slide

  6. Shopware 6.5 - What’s new? @shyim97
    How do we plan it?
    • Shopware had to create issues for their topics

    • Shopware made it public to all, externals had time to do the same

    • Anyone was able to vote on issues

    • Shopware created the board based on votes

    View full-size slide

  7. Shopware 6.5 - What’s new? @shyim97

    View full-size slide

  8. Shopware 6.5 - What’s new? @shyim97
    Backend Changes

    View full-size slide

  9. Shopware 6.5 - What’s new? @shyim97
    PHP Dependency Upgrades
    • PHP 7.4 -> 8.1

    • Symfony 5.4 -> 6.2

    • DBAL: 2 -> 3

    • Flysystem 1 -> 3

    View full-size slide

  10. Shopware 6.5 - What’s new? @shyim97
    Elasticsearch to Opensearch
    • More Hoster friendly due
    licensing (AWS, Platform.sh)

    • Switch to Opensearch SDK,
    Opensearch DSL

    • Elasticsearch 7/8 does still work

    View full-size slide

  11. Shopware 6.5 - What’s new? @shyim97
    Symfony Flex by default
    • Allows us to update con
    fi
    g
    fi
    les directly with Composer

    • No more rebasing against our template

    • Switched to Symfony Runtime.

    • Decouples the HTTP to Kernel to be able to exchange it (FrankenPHP)

    • Recipes can be found at GitHub shopware/recipes

    • Abandoned development template

    View full-size slide

  12. Shopware 6.5 - What’s new? @shyim97
    Refactor Symfony Messenger integration
    Removal of Enqueue
    • We are using it since it was marked as experimental

    • Custom failure handling / rescheduling

    • Used enqueue as transport

    View full-size slide

  13. Shopware 6.5 - What’s new? @shyim97
    Refactor Symfony Messenger integration
    Removal of Enqueue

    View full-size slide

  14. Shopware 6.5 - What’s new? @shyim97
    Refactor Symfony Messenger
    integration
    Simpli
    fi
    ed con
    fi
    g
    • MESSENGER_TRANSPORT_DS
    N=redis://

    • MESSENGER_TRANSPORT_DS
    N=amqp://

    • MESSENGER_TRANSPORT_DS
    N=….

    View full-size slide

  15. Shopware 6.5 - What’s new? @shyim97
    Refactor Symfony Messenger integration
    Simpli
    fi
    ed Routing

    View full-size slide

  16. Shopware 6.5 - What’s new? @shyim97
    Refactor Symfony Messenger integration
    Simpli
    fi
    ed Routing

    View full-size slide

  17. Shopware 6.5 - What’s new? @shyim97
    Refactor Symfony Messenger integration
    Simpli
    fi
    ed Routing

    View full-size slide

  18. Shopware 6.5 - What’s new? @shyim97
    Improved Composer support for
    plugins
    • No more vendor packing

    • Automatic composer install on
    plugin installation

    • No PHP Class collision anymore

    View full-size slide

  19. Shopware 6.5 - What’s new? @shyim97
    Improved Composer support for plugins
    composer.json

    View full-size slide

  20. Shopware 6.5 - What’s new? @shyim97
    Improved Composer support for plugins
    Plugin

    View full-size slide

  21. Shopware 6.5 - What’s new? @shyim97
    Change of environment variables
    • Unify names to Symfony

    • MAILER_URL -> MAILER_DSN

    • SHOPWARE_ES_HOSTS -> OPENSEARCH_URL

    View full-size slide

  22. Shopware 6.5 - What’s new? @shyim97
    API Performance 🚀

    View full-size slide

  23. Shopware 6.5 - What’s new? @shyim97
    Partial Data Loading
    Default response

    View full-size slide

  24. Shopware 6.5 - What’s new? @shyim97
    Partial Data Loading
    Includes request

    View full-size slide

  25. Shopware 6.5 - What’s new? @shyim97
    Partial Data Loading
    Includes response

    View full-size slide

  26. Shopware 6.5 - What’s new? @shyim97
    Partial Data Loading
    Fields request

    View full-size slide

  27. Shopware 6.5 - What’s new? @shyim97
    Partial Data Loading
    Fields response

    View full-size slide

  28. Shopware 6.5 - What’s new? @shyim97
    Partial Data Loading
    Includes vs Fields
    • Includes:

    • Fetches all data as regular

    • Hydrates all
    fi
    elds

    • Serializes only required
    fi
    elds

    -> Output
    fi
    lter
    • Fields:

    • Fetches only required
    fi
    elds

    • Hydrates only required
    fi
    elds

    • Serializes only required
    fi
    elds

    -> Complete stack uses it

    View full-size slide

  29. Shopware 6.5 - What’s new? @shyim97
    Partial Data Loading
    Downsides
    • No types in PHP

    • New Entity class: PartialEntity

    • New Events: .partial_loaded

    View full-size slide

  30. Shopware 6.5 - What’s new? @shyim97
    Release changes

    View full-size slide

  31. Shopware 6.5 - What’s new? @shyim97
    New Updater
    Old Updater
    • Slim Framework 3

    • Similar to Shopware 5

    • Zip unpacking on Webspace

    View full-size slide

  32. Shopware 6.5 - What’s new? @shyim97
    New Updater
    • Uses Composer and Symfony
    Flex

    • One uni
    fi
    ed way to get Shopware

    • Thanks to Contao for inspiration

    • Github is now the source of truth

    View full-size slide

  33. Shopware 6.5 - What’s new? @shyim97
    Releases directly on GitHub
    • Changelog only in English

    • Changelog also on GitHub

    • No traditional Install/Update zips
    anymore

    View full-size slide

  34. Shopware 6.5 - What’s new? @shyim97
    Public Release Info API

    View full-size slide

  35. Shopware 6.5 - What’s new? @shyim97
    Administration

    View full-size slide

  36. Shopware 6.5 - What’s new? @shyim97
    Lazy Loading
    • Code Splitting active by default

    • Only required
    fi
    les are loaded

    • Check your E2E assertions

    View full-size slide

  37. Shopware 6.5 - What’s new? @shyim97
    Entity Typescript Definitions
    • Generated entity schema

    • Can be generated in your project

    • Available at NPM: @shopware-
    ag/entity-schema-types

    View full-size slide

  38. Shopware 6.5 - What’s new? @shyim97
    Entity Typescript Definitions

    View full-size slide

  39. Shopware 6.5 - What’s new? @shyim97
    Storefront

    View full-size slide

  40. Shopware 6.5 - What’s new? @shyim97
    Bootstrap 5
    • No IE11 anymore

    • Removing jQuery

    • Webpack 5 Upgrade

    View full-size slide

  41. Shopware 6.5 - What’s new? @shyim97
    CSRF Protection removal
    • Easier to develop storefront features

    • Easier Varnish / Fastly con
    fi
    guration

    • Rely on Browser Standard SameSite cookies

    View full-size slide

  42. Shopware 6.5 - What’s new? @shyim97
    Scheduled Features

    View full-size slide

  43. Shopware 6.5 - What’s new? @shyim97
    Custom Entities for Administration
    Custom Entities

    View full-size slide

  44. Shopware 6.5 - What’s new? @shyim97
    Custom Entities for Administration
    Custom Entities

    View full-size slide

  45. Shopware 6.5 - What’s new? @shyim97
    Custom Entities for Administration
    Custom Entities

    View full-size slide

  46. Shopware 6.5 - What’s new? @shyim97
    Custom Entities for Administration
    Custom Entities

    View full-size slide

  47. Shopware 6.5 - What’s new? @shyim97
    Tax Provider

    View full-size slide

  48. Shopware 6.5 - What’s new? @shyim97
    Scheduled Features for 6.4.x
    • Multiwarehouse

    • Opensearch in Administration
    • ESD

    • Flowbuilder Share

    View full-size slide

  49. Shopware 6.5 - What’s new? @shyim97
    When can we expect first RC
    Next few weeks

    View full-size slide

  50. Shopware 6.5 - What’s new? @shyim97
    How can I prepare my shop?
    • Use Symfony
    fl
    ex template

    • Adapts the new environment variables already

    • Use di
    ff
    erent queue than MySQL

    • Remove all existing deprecations

    View full-size slide

  51. Shopware 6.5 - What’s new? @shyim97
    How we can we help?

    View full-size slide

  52. Shopware 6.5 - What’s new? @shyim97
    Test the RC / Webupdater
    • Report problems using

    • https://issues.shopware.com

    • Shopware Slack

    View full-size slide

  53. Shopware 6.5 - What’s new? @shyim97
    Improve Rector rules
    • Rector rules for Shopware 6.5 -> FriendsOfShopware/shopware-rector

    • Still in work, feel free to contribute

    View full-size slide

  54. Shopware 6.5 - What’s new? @shyim97
    Questions?

    View full-size slide

  55. Shopware 6.5 - What’s new? @shyim97
    Thanks!

    View full-size slide