@scayle/storefront-nuxt 8.30.3 → 8.31.0

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,37 @@
1
1
  # @scayle/storefront-nuxt
2
2
 
3
+ ## 8.31.0
4
+
5
+ ### Patch Changes
6
+
7
+ **Dependencies**
8
+
9
+ **@scayle/storefront-core v8.31.0**
10
+
11
+ - Minor
12
+
13
+ - Added `minReduction` and `maxReduction` filter parameters to `FetchProductsByCategoryParams.where` and `FetchFiltersParams.where` types, and updated the `getProductsByCategory` and `getFilters` RPC methods to accept and handle these new reduction-based filtering conditions.
14
+
15
+ ```ts
16
+ const { data } = useRpc('getFilters', 'getFiltersKey', () => ({
17
+ where: {
18
+ minReduction: 10,
19
+ maxReduction: 20,
20
+ },
21
+ }))
22
+
23
+ const { data } = useRpc(
24
+ 'getProductsByCategory',
25
+ 'getProductsByCategoryKey',
26
+ () => ({
27
+ where: {
28
+ minReduction: 10,
29
+ maxReduction: 20,
30
+ },
31
+ }),
32
+ )
33
+ ```
34
+
3
35
  ## 8.30.3
4
36
 
5
37
  ### Patch Changes
package/dist/module.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@scayle/storefront-nuxt",
3
- "version": "8.30.3",
3
+ "version": "8.31.0",
4
4
  "configKey": "storefront",
5
5
  "compatibility": {
6
6
  "nuxt": "^3.9.0"
package/dist/module.mjs CHANGED
@@ -54,7 +54,7 @@ export default {
54
54
  }`;
55
55
  }
56
56
  const PACKAGE_NAME = "@scayle/storefront-nuxt";
57
- const PACKAGE_VERSION = "8.30.3";
57
+ const PACKAGE_VERSION = "8.31.0";
58
58
  const logger = createConsola({
59
59
  fancy: true,
60
60
  formatOptions: {
@@ -11,10 +11,10 @@ import type { Log } from '@scayle/storefront-core';
11
11
  *
12
12
  * @returns helper on the `NuxtApp` containing the 'log' and 'coreLog' instances.
13
13
  */
14
- declare const _default: import("#app/nuxt").Plugin<{
14
+ declare const _default: import("nuxt/app").Plugin<{
15
15
  log: Log;
16
16
  coreLog: Log;
17
- }> & import("#app/nuxt").ObjectPlugin<{
17
+ }> & import("nuxt/app").ObjectPlugin<{
18
18
  log: Log;
19
19
  coreLog: Log;
20
20
  }>;
@@ -10,10 +10,10 @@
10
10
  * @returns A helper on the `NuxtApp` containing the `log` and
11
11
  * `coreLog`instances, or undefined if ssrContext is missing.
12
12
  */
13
- declare const _default: import("#app/nuxt").Plugin<{
13
+ declare const _default: import("nuxt/app").Plugin<{
14
14
  log: import("@scayle/storefront-core").Log;
15
15
  coreLog: import("@scayle/storefront-core").Log;
16
- }> & import("#app/nuxt").ObjectPlugin<{
16
+ }> & import("nuxt/app").ObjectPlugin<{
17
17
  log: import("@scayle/storefront-core").Log;
18
18
  coreLog: import("@scayle/storefront-core").Log;
19
19
  }>;
@@ -13,10 +13,10 @@
13
13
  * const { currentShop, availableShop } = useNuxtApp()
14
14
  * ```
15
15
  */
16
- declare const _default: import("#app/nuxt").Plugin<{
16
+ declare const _default: import("nuxt/app").Plugin<{
17
17
  currentShop: import("../../index.js").PublicShopConfig;
18
18
  availableShops: import("../../index.js").PublicShopConfig[];
19
- }> & import("#app/nuxt").ObjectPlugin<{
19
+ }> & import("nuxt/app").ObjectPlugin<{
20
20
  currentShop: import("../../index.js").PublicShopConfig;
21
21
  availableShops: import("../../index.js").PublicShopConfig[];
22
22
  }>;
@@ -41,6 +41,7 @@ const shopConfigFactory = Factory.define(() => {
41
41
  user: "checkoutUser"
42
42
  },
43
43
  auth: {
44
+ // eslint-disable-next-line sonarjs/no-hardcoded-passwords
44
45
  resetPasswordUrl: "resetPasswordUrl"
45
46
  },
46
47
  paymentProviders: []
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@scayle/storefront-nuxt",
3
3
  "type": "module",
4
- "version": "8.30.3",
4
+ "version": "8.31.0",
5
5
  "description": "Nuxt integration for the SCAYLE Commerce Engine and Storefront API",
6
6
  "author": "SCAYLE Commerce Engine",
7
7
  "license": "MIT",
@@ -61,27 +61,10 @@
61
61
  "engines": {
62
62
  "node": ">= 20.7.0"
63
63
  },
64
- "scripts": {
65
- "build": "nuxt-module-build build",
66
- "dev": "nuxt dev playground",
67
- "dev:build": "nuxt build playground",
68
- "prep": "nuxt-module-build prepare && nuxt prepare playground",
69
- "format": "dprint check",
70
- "format:fix": "dprint fmt",
71
- "lint": "eslint .",
72
- "lint:ci": "eslint . --format gitlab",
73
- "lint:fix": "eslint . --fix",
74
- "typecheck": "vue-tsc --noEmit && cd playground && vue-tsc --noEmit",
75
- "package:lint": "publint",
76
- "verify-packaging": "attw --pack . --profile esm-only",
77
- "test": "vitest run",
78
- "test:ci": "vitest --run --coverage --reporter=default --reporter=junit --outputFile=./coverage/junit.xml",
79
- "test:watch": "vitest watch"
80
- },
81
64
  "dependencies": {
82
65
  "@opentelemetry/api": "^1.9.0",
83
66
  "@scayle/h3-session": "0.6.1",
84
- "@scayle/storefront-core": "8.30.3",
67
+ "@scayle/storefront-core": "8.31.0",
85
68
  "@scayle/unstorage-compression-driver": "^1.0.0",
86
69
  "@vercel/nft": "0.29.4",
87
70
  "@vueuse/core": "13.4.0",
@@ -108,10 +91,10 @@
108
91
  "@nuxt/module-builder": "1.0.1",
109
92
  "@nuxt/schema": "3.16.2",
110
93
  "@nuxt/test-utils": "3.18.0",
111
- "@scayle/eslint-config-storefront": "4.5.10",
94
+ "@scayle/eslint-config-storefront": "4.5.11",
112
95
  "@scayle/eslint-plugin-vue-composable": "0.2.1",
113
96
  "@scayle/unstorage-scayle-kv-driver": "1.0.2",
114
- "@types/node": "22.15.32",
97
+ "@types/node": "22.15.33",
115
98
  "@vitest/coverage-v8": "3.2.4",
116
99
  "dprint": "0.50.0",
117
100
  "eslint-formatter-gitlab": "6.0.1",
@@ -119,10 +102,10 @@
119
102
  "fishery": "2.3.1",
120
103
  "h3": "1.15.3",
121
104
  "nitro-test-utils": "0.9.2",
122
- "nitropack": "2.11.12",
105
+ "nitropack": "2.11.13",
123
106
  "node-mocks-http": "1.17.2",
124
107
  "nuxt": "3.16.2",
125
- "publint": "0.2.12",
108
+ "publint": "0.3.12",
126
109
  "typescript": "5.8.3",
127
110
  "unbuild": "3.5.0",
128
111
  "vitest": "3.2.4",
@@ -140,5 +123,22 @@
140
123
  },
141
124
  "volta": {
142
125
  "node": "22.16.0"
126
+ },
127
+ "scripts": {
128
+ "build": "nuxt-module-build build",
129
+ "dev": "nuxt dev playground",
130
+ "dev:build": "nuxt build playground",
131
+ "prep": "nuxt-module-build prepare && nuxt prepare playground",
132
+ "format": "dprint check",
133
+ "format:fix": "dprint fmt",
134
+ "lint": "eslint .",
135
+ "lint:ci": "eslint . --format gitlab",
136
+ "lint:fix": "eslint . --fix",
137
+ "typecheck": "vue-tsc --noEmit && cd playground && vue-tsc --noEmit",
138
+ "package:lint": "publint",
139
+ "verify-packaging": "attw --pack . --profile esm-only",
140
+ "test": "vitest run",
141
+ "test:ci": "vitest --run --coverage --reporter=default --reporter=junit --outputFile=./coverage/junit.xml",
142
+ "test:watch": "vitest watch"
143
143
  }
144
- }
144
+ }