@scayle/storefront-nuxt 7.76.0 → 7.76.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.76.1
4
+
5
+ ### Patch Changes
6
+
7
+ - `useRpc` will watch now `params` if it is a getter or ref, whereas previously it would only watch for refs
8
+
3
9
  ## 7.76.0
4
10
 
5
11
  ### Minor Changes
package/dist/module.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@scayle/storefront-nuxt",
3
- "version": "7.75.1",
3
+ "version": "7.76.0",
4
4
  "configKey": "storefront",
5
5
  "compatibility": {
6
6
  "nuxt": "^3.9.0"
package/dist/module.mjs CHANGED
@@ -64,7 +64,7 @@ export default {
64
64
  }`;
65
65
  }
66
66
  const PACKAGE_NAME = "@scayle/storefront-nuxt";
67
- const PACKAGE_VERSION = "7.75.1";
67
+ const PACKAGE_VERSION = "7.76.0";
68
68
  const logger = createConsola({
69
69
  fancy: true,
70
70
  formatOptions: {
@@ -43,7 +43,8 @@ export function useRpc(method, key, params, options) {
43
43
  );
44
44
  },
45
45
  {
46
- ...isRef(params) ? { watch: [params] } : {},
46
+ // Both refs and getter functions are valid watch sources
47
+ ...isRef(params) || typeof params === "function" ? { watch: [params] } : {},
47
48
  ...options
48
49
  }
49
50
  );
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@scayle/storefront-nuxt",
3
3
  "type": "module",
4
- "version": "7.76.0",
4
+ "version": "7.76.1",
5
5
  "description": "Nuxt integration for the SCAYLE Commerce Engine and Storefront API",
6
6
  "author": "SCAYLE Commerce Engine",
7
7
  "license": "MIT",
@@ -62,7 +62,7 @@
62
62
  "@scayle/h3-session": "0.4.0",
63
63
  "@scayle/storefront-core": "7.55.0",
64
64
  "@scayle/unstorage-compression-driver": "0.1.3",
65
- "@vueuse/core": "10.10.0",
65
+ "@vueuse/core": "10.10.1",
66
66
  "consola": "3.2.3",
67
67
  "core-js": "3.37.1",
68
68
  "defu": "6.1.4",