@scayle/storefront-nuxt 7.55.0 → 7.55.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # @scayle/storefront-nuxt
2
2
 
3
+ ## 7.55.1
4
+
5
+ ### Patch Changes
6
+
7
+ - Skip basic auth when `auth.username` or `auth.password` is nullish
8
+
3
9
  ## 7.55.0
4
10
 
5
11
  ### Minor Changes
@@ -105,6 +111,11 @@
105
111
  ### Minor Changes
106
112
 
107
113
  - Support `Response` returns in RPC methods
114
+
115
+ BREAKING: As part of this change, the return type of `ParamRpcHandler` and `NoParamRpcHandler` has been changed to also allow `Response`. This should have no impact on calling RPCs because the return will automatically be normalized. However, if you also importing the functions explicitly typed as `ParamRpcHandler` or `NoParamRpcHandler` and calling them directly, you may have to updated your code to handle the more expansive return type.
116
+
117
+ There is an `unwrap` function exported by this package (>=7.55.0) that can be used to normalize the type.
118
+
108
119
  - Handle 401 from CO and delete session
109
120
 
110
121
  ### Patch Changes
package/dist/module.json CHANGED
@@ -4,5 +4,5 @@
4
4
  "compatibility": {
5
5
  "nuxt": "^3.9.0"
6
6
  },
7
- "version": "7.54.0"
7
+ "version": "7.55.0"
8
8
  }
@@ -9,7 +9,7 @@ import { useRuntimeConfig } from "#imports";
9
9
  export const eventHandlerWithCacheAuth = (handler) => defineEventHandler(async (event) => {
10
10
  const config = useRuntimeConfig();
11
11
  const auth = config.storefront.cache?.auth;
12
- if (!auth) {
12
+ if (!auth || !auth.username || !auth.password) {
13
13
  return await handler(event);
14
14
  }
15
15
  return await eventHandlerWithBasicAuth(
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@scayle/storefront-nuxt",
3
3
  "type": "module",
4
- "version": "7.55.0",
4
+ "version": "7.55.1",
5
5
  "description": "Nuxt integration for the SCAYLE Commerce Engine and Storefront API",
6
6
  "author": "SCAYLE Commerce Engine",
7
7
  "license": "MIT",
@@ -85,7 +85,7 @@
85
85
  "@nuxt/test-utils": "3.11.0",
86
86
  "@scayle/eslint-config-storefront": "3.2.6",
87
87
  "@scayle/prettier-config-storefront": "2.0.2",
88
- "@types/node": "20.11.13",
88
+ "@types/node": "20.11.16",
89
89
  "eslint": "8.56.0",
90
90
  "eslint-formatter-gitlab": "5.1.0",
91
91
  "node-mocks-http": "1.14.1",