Skip to content

Commit

Permalink
Merge pull request #159 from shopware/next-36700/replace-vuex-with-pinia
Browse files Browse the repository at this point in the history
NEXT-36700 - Replace vuex with pinia
  • Loading branch information
seggewiss authored Jun 18, 2024
2 parents c692986 + 11c5b97 commit 79bce87
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 1 deletion.
4 changes: 4 additions & 0 deletions @tool/setup-env-for-shopware.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,10 @@ const envBefore = process.env.NODE_ENV;
process.env.NODE_ENV = 'production';
const configureCompat = require(resolve(join(srcPath, 'node_modules/@vue/compat/dist/vue.cjs.js'))).configureCompat;

// Enable Pinia support
const vueUse = require(resolve(join(srcPath, 'node_modules/@vue/compat/dist/vue.cjs.js'))).use;
vueUse(Shopware.Store._rootState);

// eslint-disable-next-line @typescript-eslint/no-unsafe-call
configureCompat(compatConfig);

Expand Down
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,11 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](http://keepachangelog.com/)
and this project adheres to [Semantic Versioning](http://semver.org/).

## [v4.3.2] - 2024-06-17

### Changed
- Enabled Pinia support in `setup-env-for-shopware.js`

## [v4.3.1] - 2024-06-13

### Changed
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@shopware-ag/jest-preset-sw6-admin",
"version": "4.3.1",
"version": "4.3.2",
"description": "Jest Test preset for Shopware 6 administration unit tests",
"main": "jest-preset.js",
"keywords": [
Expand Down

0 comments on commit 79bce87

Please sign in to comment.