Skip to content

Commit 983eb70

Browse files
feat: update middleware to 5.1.0 (#1549)
* feat: update middleware to 5.1.0-rc * ci: release (rc) (#1550) Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com> * chore: fix the middleware version * ci: release (rc) (#1551) Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com> * chore: update middleware to 5.1.0 --------- Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
1 parent da80e49 commit 983eb70

File tree

6 files changed

+82
-20
lines changed

6 files changed

+82
-20
lines changed

.changeset/olive-terms-stare.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
---
2+
"@vue-storefront/magento-api": major
3+
"@vue-storefront/magento-sdk": major
4+
---
5+
6+
**[CHANGE]** - Update middleware to 5.1.0

.changeset/pre.json

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
{
2+
"mode": "exit",
3+
"tag": "rc",
4+
"initialVersions": {
5+
"@vue-storefront/magento-api": "5.0.0",
6+
"@vue-storefront/magento-types": "2.0.0",
7+
"@vue-storefront/magento-load-tests": "1.1.0",
8+
"method-bootstrapper": "1.1.0",
9+
"@vue-storefront/magento-sdk": "3.0.1"
10+
},
11+
"changesets": ["olive-terms-stare"]
12+
}

packages/api-client/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@vue-storefront/magento-api",
3-
"version": "5.0.1",
3+
"version": "6.0.0-rc.1",
44
"sideEffects": false,
55
"homepage": "https://github.com/vuestorefront/magento2",
66
"bugs": {
@@ -24,7 +24,7 @@
2424
"dependencies": {
2525
"@apollo/client": "3.8.7",
2626
"@vue-storefront/magento-types": "2.0.0",
27-
"@vue-storefront/middleware": "^4.1.0",
27+
"@vue-storefront/middleware": "^5.1.0",
2828
"agentkeepalive": "^4.2.1",
2929
"consola": "^3.1.0",
3030
"dotenv": "^16.0.1",

packages/sdk/CHANGELOG.md

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -65,15 +65,12 @@
6565
- [CHANGED] Deprecated the `MagentoModuleType` interface in `index.ts`. It is no longer necessary to use this type. Please, check documentation of `magentoModule` for alternatives. Below you can find a snippet of the new way of using `magentoModule`. Pay attention to the `buildModule` function that is used to create a module instance, it no longer requires the `MagentoModuleType` type as a generic parameter.
6666

6767
```ts
68-
import { initSDK, buildModule } from "@vue-storefront/sdk";
69-
import {
70-
magentoModule,
71-
MagentoModuleType,
72-
} from "@vue-storefront/magento2-sdk";
68+
import { initSDK, buildModule } from '@vue-storefront/sdk';
69+
import { magentoModule, MagentoModuleType } from '@vue-storefront/magento2-sdk';
7370

7471
const sdkConfig = {
7572
magento: buildModule(magentoModule, {
76-
apiUrl: "http://localhost:8181/magento",
73+
apiUrl: 'http://localhost:8181/magento',
7774
}),
7875
};
7976

packages/sdk/package.json

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@vue-storefront/magento-sdk",
3-
"version": "3.0.1",
3+
"version": "4.0.0-rc.0",
44
"main": "lib/index.cjs.js",
55
"module": "lib/index.es.js",
66
"types": "lib/index.d.ts",
@@ -27,11 +27,12 @@
2727
},
2828
"devDependencies": {
2929
"@types/node": "^12.12.14",
30-
"@vue-storefront/magento-api": "^5.0.0",
30+
"@vue-storefront/magento-api": "^6.0.0-rc.1",
31+
"@vue-storefront/middleware": "^5.1.0",
3132
"nock": "^13.2.9"
3233
},
3334
"peerDependencies": {
34-
"@vue-storefront/middleware": "^4.1.0"
35+
"@vue-storefront/middleware": "^5.1.0"
3536
},
3637
"publishConfig": {
3738
"access": "public",

yarn.lock

Lines changed: 55 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -893,6 +893,13 @@
893893
resolved "https://registry.yarnpkg.com/@eslint/js/-/js-8.57.0.tgz#a5417ae8427873f1dd08b70b3574b453e67b5f7f"
894894
integrity sha512-Ys+3g2TaW7gADOJzPt83SJtCDhMjndcDMFVQ/Tj9iA1BfJzFKD9mAUXT3OenpuPHbI6P/myECxRJrofUsDx/5g==
895895

896+
"@godaddy/terminus@^4.12.1":
897+
version "4.12.1"
898+
resolved "https://registrynpm.storefrontcloud.io/@godaddy/terminus/-/terminus-4.12.1.tgz#c4fdc280a4ac9655d4734250e22299a4ad46c54c"
899+
integrity sha512-Tm+wVu1/V37uZXcT7xOhzdpFoovQReErff8x3y82k6YyWa1gzxWBjTyrx4G2enjEqoXPnUUmJ3MOmwH+TiP6Sw==
900+
dependencies:
901+
stoppable "^1.1.0"
902+
896903
"@graphql-codegen/cli@^2.4.0":
897904
version "2.16.5"
898905
resolved "https://registry.yarnpkg.com/@graphql-codegen/cli/-/cli-2.16.5.tgz#b3b5eeec357af01c1cb72f6a4ea96e52bd49e662"
@@ -2222,16 +2229,27 @@
22222229
ts-jest "^29.1.0"
22232230
ts-node "^10.9.1"
22242231

2225-
"@vue-storefront/middleware@^4.1.0":
2226-
version "4.1.0"
2227-
resolved "https://registry.yarnpkg.com/@vue-storefront/middleware/-/middleware-4.1.0.tgz#dc6ebf58b1d9f518c8a3ae4fad6f14d561ef502d"
2228-
integrity sha512-RwHzVsGSFCmp7YpIVkUNYMiTUdHYE2lzupG6wxGXgGkMDcc4b1FnI93pZnO5Adjf0T4PKV27tjUZCtMm5gmClQ==
2232+
"@vue-storefront/logger@^1.0.0":
2233+
version "1.0.0"
2234+
resolved "https://registrynpm.storefrontcloud.io/@vue-storefront/logger/-/logger-1.0.0.tgz#6b5120ec01cfb40dd135a57df38092306b99c267"
2235+
integrity sha512-BRZLdJGxAsnGdPjS9kpDij96h4bSjbyscoAVwl9IUbHpK5jXPKL9qoqJj+zTvnjwe5IpY15iSgQ+QR14CkofLw==
22292236
dependencies:
2230-
consola "^2.15.3"
2237+
consola "^3"
2238+
dotenv "^16"
2239+
2240+
"@vue-storefront/middleware@^5.1.0":
2241+
version "5.1.0"
2242+
resolved "https://registrynpm.storefrontcloud.io/@vue-storefront/middleware/-/middleware-5.1.0.tgz#d5d235dced08dd79daa5fff1fdd455830c280aa9"
2243+
integrity sha512-G9NknbWTWjV3AwwyzO43ugYaiOQaTCgJXphK4+EZjsC/NETNxFa9twVGTegRYGRBTUJ9OhZ4WhSKOnAcgETFZg==
2244+
dependencies:
2245+
"@godaddy/terminus" "^4.12.1"
2246+
"@vue-storefront/logger" "^1.0.0"
22312247
cookie-parser "^1.4.6"
22322248
cors "^2.8.5"
22332249
express "^4.18.1"
22342250
helmet "^5.1.1"
2251+
lodash.merge "^4.6.2"
2252+
xss "^1.0.15"
22352253

22362254
"@vue-storefront/rollup-config@^0.0.7":
22372255
version "0.0.7"
@@ -3093,6 +3111,11 @@ commander@^10.0.0:
30933111
resolved "https://registry.yarnpkg.com/commander/-/commander-10.0.1.tgz#881ee46b4f77d1c1dccc5823433aa39b022cbe06"
30943112
integrity sha512-y4Mg2tXshplEbSGzx7amzPwKKOCGuoSRP/CjEdwwk0FOGlUbq6lKuoyDZTNZkmxHdJtp54hdfY/JUrdL7Xfdug==
30953113

3114+
commander@^2.20.3:
3115+
version "2.20.3"
3116+
resolved "https://registrynpm.storefrontcloud.io/commander/-/commander-2.20.3.tgz#fd485e84c03eb4881c20722ba48035e8531aeb33"
3117+
integrity sha512-GpVkmM8vF2vQUkj2LvZmD35JxeJOLCwJ9cUkugyk2nuhbv3+mJvpLYYt+0+USMxE+oj+ey/lJEnhZw75x/OMcQ==
3118+
30963119
commander@^9.3.0:
30973120
version "9.5.0"
30983121
resolved "https://registry.yarnpkg.com/commander/-/commander-9.5.0.tgz#bc08d1eb5cedf7ccb797a96199d41c7bc3e60d30"
@@ -3118,10 +3141,10 @@ confusing-browser-globals@^1.0.10:
31183141
resolved "https://registry.yarnpkg.com/confusing-browser-globals/-/confusing-browser-globals-1.0.11.tgz#ae40e9b57cdd3915408a2805ebd3a5585608dc81"
31193142
integrity sha512-JsPKdmh8ZkmnHxDk55FZ1TqVLvEQTvoByJZRN9jzI0UjxK/QgAmsphz7PGtqgPieQZ/CQcHWXCR7ATDNhGe+YA==
31203143

3121-
consola@^2.15.3:
3122-
version "2.15.3"
3123-
resolved "https://registry.yarnpkg.com/consola/-/consola-2.15.3.tgz#2e11f98d6a4be71ff72e0bdf07bd23e12cb61550"
3124-
integrity sha512-9vAdYbHj6x2fLKC4+oPH0kFzY/orMZyG2Aj+kNylHxKGJ/Ed4dpNyAQYwJOdqO4zdM7XpVHmyejQDcQHrnuXbw==
3144+
consola@^3:
3145+
version "3.2.3"
3146+
resolved "https://registrynpm.storefrontcloud.io/consola/-/consola-3.2.3.tgz#0741857aa88cfa0d6fd53f1cff0375136e98502f"
3147+
integrity sha512-I5qxpzLv+sJhTVEoLYNcTW+bThDCPsit0vLNKShZx6rLtpilNpmmeTPaeqJb9ZE9dV3DGaeby6Vuhrw38WjeyQ==
31253148

31263149
consola@^3.1.0:
31273150
version "3.2.2"
@@ -3251,6 +3274,11 @@ cross-spawn@^7.0.0, cross-spawn@^7.0.2, cross-spawn@^7.0.3:
32513274
shebang-command "^2.0.0"
32523275
which "^2.0.1"
32533276

3277+
3278+
version "0.0.10"
3279+
resolved "https://registrynpm.storefrontcloud.io/cssfilter/-/cssfilter-0.0.10.tgz#c6d2672632a2e5c83e013e6864a42ce8defd20ae"
3280+
integrity sha1-xtJnJjKi5cg+AT5oZKQs6N79IK4=
3281+
32543282
csv-generate@^3.4.3:
32553283
version "3.4.3"
32563284
resolved "https://registry.yarnpkg.com/csv-generate/-/csv-generate-3.4.3.tgz#bc42d943b45aea52afa896874291da4b9108ffff"
@@ -3434,6 +3462,11 @@ dot-case@^3.0.4:
34343462
no-case "^3.0.4"
34353463
tslib "^2.0.3"
34363464

3465+
dotenv@^16:
3466+
version "16.4.5"
3467+
resolved "https://registrynpm.storefrontcloud.io/dotenv/-/dotenv-16.4.5.tgz#cdd3b3b604cb327e286b4762e13502f717cb099f"
3468+
integrity sha512-ZmdL2rui+eB2YwhsWzjInR8LldtZHGDoQ1ugH85ppHKwpUHL7j7rN0Ti9NCnGiQbhaZ11FpR+7ao1dNsmduNUg==
3469+
34373470
dotenv@^16.0.0, dotenv@^16.0.1:
34383471
version "16.3.1"
34393472
resolved "https://registry.yarnpkg.com/dotenv/-/dotenv-16.3.1.tgz#369034de7d7e5b120972693352a3bf112172cc3e"
@@ -7089,6 +7122,11 @@ [email protected], statuses@^2.0.0:
70897122
resolved "https://registry.yarnpkg.com/statuses/-/statuses-2.0.1.tgz#55cb000ccf1d48728bd23c685a063998cf1a1b63"
70907123
integrity sha512-RwNA9Z/7PrK06rYLIzFMlaF+l73iwpzsqRIFgbMLbTcLD6cOao82TaWefPXQvB2fOC4AjuYSEndS7N/mTCbkdQ==
70917124

7125+
stoppable@^1.1.0:
7126+
version "1.1.0"
7127+
resolved "https://registrynpm.storefrontcloud.io/stoppable/-/stoppable-1.1.0.tgz#32da568e83ea488b08e4d7ea2c3bcc9d75015d5b"
7128+
integrity sha512-KXDYZ9dszj6bzvnEMRYvxgeTHU74QBFL54XKtP3nyMuJ81CFYtABZ3bAzL2EdFUaEwJOBOgENyFj3R7oTzDyyw==
7129+
70927130
stream-transform@^2.1.3:
70937131
version "2.1.3"
70947132
resolved "https://registry.yarnpkg.com/stream-transform/-/stream-transform-2.1.3.tgz#a1c3ecd72ddbf500aa8d342b0b9df38f5aa598e3"
@@ -7851,6 +7889,14 @@ [email protected], ws@^8.12.0:
78517889
resolved "https://registry.yarnpkg.com/ws/-/ws-8.13.0.tgz#9a9fb92f93cf41512a0735c8f4dd09b8a1211cd0"
78527890
integrity sha512-x9vcZYTrFPC7aSIbj7sRCYo7L/Xb8Iy+pW0ng0wt2vCJv7M9HOMy0UoN3rr+IFC7hb7vXoqS+P9ktyLLLhO+LA==
78537891

7892+
xss@^1.0.15:
7893+
version "1.0.15"
7894+
resolved "https://registrynpm.storefrontcloud.io/xss/-/xss-1.0.15.tgz#96a0e13886f0661063028b410ed1b18670f4e59a"
7895+
integrity sha512-FVdlVVC67WOIPvfOwhoMETV72f6GbW7aOabBC3WxN/oUdoEMDyLz4OgRv5/gck2ZeNqEQu+Tb0kloovXOfpYVg==
7896+
dependencies:
7897+
commander "^2.20.3"
7898+
cssfilter "0.0.10"
7899+
78547900
y18n@^4.0.0:
78557901
version "4.0.3"
78567902
resolved "https://registry.yarnpkg.com/y18n/-/y18n-4.0.3.tgz#b5f259c82cd6e336921efd7bfd8bf560de9eeedf"

0 commit comments

Comments
 (0)