Skip to content

Commit eb9b697

Browse files
bloodfMarcin Kwiatkowski
authored andcommitted
chore: updated dependencies & configuration management (#538)
* docs: updated docs to match missing elements * chore: added missing Redis password env * refactor(theme): added missing configuration envs Added missing configuration envs for Redis and Sentry * chore(eslint): updated dependencies - updated `eslint-plugin-unicorn` to `40.1.0` * chore(eslint-jest): updated dependencies - updated `eslint-plugin-jest` to `26.0.0` * chore(eslint-typescript): updated dependencies - updated `@typescript-eslint/eslint-plugin` to `5.10.1` - updated `@typescript-eslint/parser` to `5.10.1` * chore(eslint-vue): updated dependencies - updated `eslint-plugin-vue` to `8.4.0` * chore(api-client): updated dependencies - updated `@apollo/client` to `3.5.8` - updated `graphql` to `16.3.0` - updated `cross-fetch` to `3.1.5` - updated `dotenv` to `14.3.2` - updated `msw` to `0.36.7` - updated `typescript` to `4.5.5` * chore(theme): updated dependencies - updated `@sentry/tracing` to `6.17.3` - updated `@storefront-ui/vue` to `0.12.0` - updated `isomorphic-dompurify` to `0.18.0` - updated `@babel/core` to `7.16.12` - updated `cypress` to `9.3.1` - updated `dotenv` to `14.3.2` - updated `lint-staged` to `12.3.2` - updated `mocha` to `9.2.0` - updated `npm-check-updates` to `12.2.1` - updated `typescript` to `4.5.5` * chore: updated dependencies - updated `@babel/core` to `7.16.12` - updated `@babel/plugin-proposal-private-methods` to `7.16.11` - updated `@commitlint/cli` to `16.1.0` - updated `@graphql-codegen/cli` to `2.4.0` - updated `@types/node` to `17.0.13` - updated `@typescript-eslint/parser` to `5.10.1` - updated `eslint` to `8.8.0` - updated `lint-staged` to `12.3.2` - updated `npm-check-updates` to `12.2.1` - updated `rollup` to `2.66.1` - updated `vue-eslint-parser` to `8.2.0` * chore(eslint-typescript): updated dependencies - `@typescript-eslint/eslint-plugin` to `5.10.2` - `@typescript-eslint/parser` to `5.10.2` * chore(api-client): updated dependencies - `dotenv` to `15.0.0` - `msw` to `0.36.8` * chore(theme): rollback storefront-ui update * chore: updated dependencies - `@graphql-codegen/typescript-operations` to `2.2.3` - `@types/node` to `17.0.14` - `@typescript-eslint/parser` to `5.10.2` - `lint-staged` to `12.3.3` * chore: moved sentry package to Dockerfile * chore(theme): added dynamic nuxt.config.js generation * chore: removed REDIS__PASSWORD * chore: removed REDIS__PASSWORD from workflow
1 parent 4719fe1 commit eb9b697

File tree

17 files changed

+565
-413
lines changed

17 files changed

+565
-413
lines changed

.vuestorefrontcloud/docker/Dockerfile

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -69,9 +69,7 @@ RUN mv /var/www/packages/theme/nuxt.config.js /var/www/packages/theme/base.nuxt.
6969

7070
RUN yarn install
7171

72-
RUN npx [email protected] workspace @vue-storefront/magento-theme add @vsf-enterprise/redis-cache
73-
74-
RUN npx [email protected] workspace @vue-storefront/magento-theme add @nuxtjs/recaptcha
72+
RUN npx [email protected] workspace @vue-storefront/magento-theme add @sentry/tracing @nuxtjs/sentry @vsf-enterprise/redis-cache
7573

7674
RUN npx [email protected] workspace @vue-storefront/magento-theme add @nuxtjs/sentry
7775

Lines changed: 14 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,17 @@
11
import config from '@vue-storefront/magento-theme/config';
22
import baseNuxtConfig from '@vue-storefront/magento-theme/base.nuxt.config';
33

4-
export default {
5-
...baseNuxtConfig,
6-
modules: [
7-
...baseNuxtConfig.modules,
8-
'@nuxtjs/sentry'
9-
],
10-
sentry: {
11-
dsn: process.env.SENTRY_DSN,
12-
tracing: true,
13-
},
14-
};
4+
export default () => {
5+
const baseDefaults = baseNuxtConfig();
6+
7+
return {
8+
...baseDefaults,
9+
modules: [
10+
...baseDefaults.modules,
11+
],
12+
sentry: {
13+
dsn: process.env.SENTRY_DSN,
14+
tracing: true,
15+
},
16+
};
17+
}

docs/guide/recaptcha.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ On the `config` folder update the config file (`dev.json` for example) with your
3838
"recaptchaHideBadge": "{YOUR_RECAPTCHA_HIDE_BADGE}", // true or false, default value is false
3939
"recaptchaSize": "{YOUR_RECAPTCHA_SIZE}", // Size: 'compact', 'normal', 'invisible' (v2), default value is 'invisible'
4040
"recaptchaSiteKey": "{YOUR_RECAPTCHA_SITE_KEY}", // Site key for requests, default value is ''
41-
"recaptchaSecretkey": "{YOUR_RECAPTCHA_SECRET_KEY}", // Secret key for requests, default value is ''
41+
"recaptchaSecretKey": "{YOUR_RECAPTCHA_SECRET_KEY}", // Secret key for requests, default value is ''
4242
"recaptchaVersion": "{YOUR_RECAPTCHA_VERSION}", // Version 2 or 3, default value is 3
4343
"recaptchaMinScore": "{YOUR_RECAPTCHA_MIN_SCORE}" // The min score used for v3, default value is 0.5
4444
...
@@ -65,7 +65,7 @@ RECAPTCHA_MIN_SCORE=0.5
6565
"recaptchaHideBadge": false,
6666
"recaptchaSize": "invisible",
6767
"recaptchaSiteKey": "XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
68-
"recaptchaSecretkey": "XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
68+
"recaptchaSecretKey": "XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
6969
"recaptchaVersion": 3,
7070
"recaptchaMinScore": 0.5
7171
...

docs/guide/ssr.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
## Introduction
44

5-
VueStorefront 2 - Magento 2 integrations use @vue-storefront/cache module that adds posibility to cache some server-side
5+
VueStorefront 2 - Magento 2 integrations use @vue-storefront/cache module that adds possibility to cache some server-side
66
rendered pages.
77

88
### What is cached

internals/eslint-jest/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
"rules"
3030
],
3131
"dependencies": {
32-
"eslint-plugin-jest": "^25.3.4"
32+
"eslint-plugin-jest": "^26.0.0"
3333
},
3434
"main": "index.js"
3535
}

internals/eslint-typescript/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,8 @@
2929
"rules"
3030
],
3131
"dependencies": {
32-
"@typescript-eslint/eslint-plugin": "^5.9.1",
33-
"@typescript-eslint/parser": "^5.9.1"
32+
"@typescript-eslint/eslint-plugin": "^5.10.2",
33+
"@typescript-eslint/parser": "^5.10.2"
3434
},
3535
"main": "index.js"
3636
}

internals/eslint-vue/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
"rules"
3030
],
3131
"dependencies": {
32-
"eslint-plugin-vue": "^8.3.0"
32+
"eslint-plugin-vue": "^8.4.0"
3333
},
3434
"main": "index.js"
3535
}

internals/eslint/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434
"eslint-config-airbnb-typescript": "^16.1.0",
3535
"eslint-plugin-node": "^11.1.0",
3636
"eslint-plugin-promise": "^6.0.0",
37-
"eslint-plugin-unicorn": "40.0.0"
37+
"eslint-plugin-unicorn": "40.1.0"
3838
},
3939
"main": "index.js"
4040
}

package.json

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -37,30 +37,30 @@
3737
"update:update": "ncu -u && lerna run update:update --stream"
3838
},
3939
"devDependencies": {
40-
"@babel/core": "^7.16.7",
41-
"@babel/plugin-proposal-private-methods": "^7.16.7",
42-
"@commitlint/cli": "^16.0.2",
40+
"@babel/core": "^7.16.12",
41+
"@babel/plugin-proposal-private-methods": "^7.16.11",
42+
"@commitlint/cli": "^16.1.0",
4343
"@commitlint/config-conventional": "^16.0.0",
4444
"@commitlint/config-lerna-scopes": "^16.0.0",
45-
"@graphql-codegen/cli": "^2.3.1",
45+
"@graphql-codegen/cli": "^2.4.0",
4646
"@graphql-codegen/typescript": "^2.4.2",
47-
"@graphql-codegen/typescript-operations": "^2.2.2",
47+
"@graphql-codegen/typescript-operations": "^2.2.3",
4848
"@graphql-tools/utils": "^8.6.1",
4949
"@manypkg/cli": "^0.19.1",
5050
"@rollup/plugin-commonjs": "^21.0.1",
5151
"@rollup/plugin-node-resolve": "^13.1.3",
5252
"@types/graphql": "^14.5.0",
5353
"@types/jest": "^27.4.0",
5454
"@types/jsdom": "^16.2.14",
55-
"@types/node": "^17.0.8",
55+
"@types/node": "^17.0.14",
5656
"@types/webpack": "^5.28.0",
57-
"@typescript-eslint/parser": "^5.9.1",
57+
"@typescript-eslint/parser": "^5.10.2",
5858
"@vue/eslint-config-typescript": "^10.0.0",
5959
"all-contributors-cli": "^6.20.0",
6060
"babel-eslint": "^10.1.0",
6161
"commitizen": "^4.2.4",
6262
"ejs": "^3.1.6",
63-
"eslint": "8.6.0",
63+
"eslint": "8.8.0",
6464
"husky": "^7.0.4",
6565
"jest": "^27.4.7",
6666
"jest-date-mock": "^1.0.8",
@@ -70,19 +70,19 @@
7070
"jest-watch-toggle-config": "^2.0.1",
7171
"jest-watch-typeahead": "^1.0.0",
7272
"lerna": "^4.0.0",
73-
"lint-staged": "^12.1.7",
73+
"lint-staged": "^12.3.3",
7474
"majestic": "^1.8.1",
75-
"npm-check-updates": "^12.1.0",
75+
"npm-check-updates": "^12.2.1",
7676
"rimraf": "^3.0.2",
77-
"rollup": "^2.64.0",
77+
"rollup": "^2.66.1",
7878
"rollup-plugin-terser": "^7.0.2",
7979
"rollup-plugin-typescript2": "^0.31.1",
8080
"shx": "^0.3.4",
8181
"ts-jest": "^27.1.3",
8282
"ts-node": "^10.4.0",
8383
"tslib": "^2.3.1",
8484
"typescript": "^4.5.4",
85-
"vue-eslint-parser": "^8.0.1"
85+
"vue-eslint-parser": "^8.2.0"
8686
},
8787
"engines": {
8888
"node": ">=16.x.x",

packages/api-client/package.json

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,8 @@
2424
"update:update": "ncu -u"
2525
},
2626
"dependencies": {
27-
"@apollo/client": "^3.5.7",
28-
"graphql": "^16.2.0",
27+
"@apollo/client": "^3.5.8",
28+
"graphql": "^16.3.0",
2929
"graphql-tag": "^2.12.6",
3030
"isomorphic-fetch": "^3.0.0"
3131
},
@@ -34,12 +34,12 @@
3434
"@rollup/plugin-graphql": "^1.1.0",
3535
"@rollup/plugin-json": "^4.1.0",
3636
"@types/isomorphic-fetch": "^0.0.35",
37-
"cross-fetch": "^3.1.4",
38-
"dotenv": "^12.0.1",
37+
"cross-fetch": "^3.1.5",
38+
"dotenv": "^15.0.0",
3939
"graphql-tools": "^8.2.0",
4040
"jest-transform-graphql": "^2.1.0",
41-
"msw": "^0.36.4",
42-
"typescript": "^4.5.4",
41+
"msw": "^0.36.8",
42+
"typescript": "^4.5.5",
4343
"webpack": "4.46.0"
4444
},
4545
"peerDependencies": {

0 commit comments

Comments
 (0)