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 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 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 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 Slide

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

    View 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 Slide

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

    View Slide

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

    View 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 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 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 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 Slide

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

    View 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 Slide

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

    View Slide

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

    View Slide

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

    View 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 Slide

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

    View Slide

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

    View 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 Slide

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

    View Slide

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

    View Slide

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

    View Slide

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

    View Slide

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

    View Slide

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

    View 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 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 Slide

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

    View 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 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 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 Slide

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

    View Slide

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

    View 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 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 Slide

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

    View Slide

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

    View Slide

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

    • Removing jQuery

    • Webpack 5 Upgrade

    View 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 Slide

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

    View Slide

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

    View Slide

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

    View Slide

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

    View Slide

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

    View Slide

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

    View Slide

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

    • Opensearch in Administration
    • ESD

    • Flowbuilder Share

    View Slide

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

    View 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 Slide

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

    View Slide

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

    • https://issues.shopware.com

    • Shopware Slack

    View 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 Slide

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

    View Slide

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

    View Slide