@scayle/storefront-nuxt 8.12.0 → 8.12.2

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,23 @@
1
1
  # @scayle/storefront-nuxt
2
2
 
3
+ ## 8.12.2
4
+
5
+ ### Patch Changes
6
+
7
+ - [OTEL] Do not create bootstrap span when bootstrapping is skipped
8
+
9
+ **Dependencies**
10
+
11
+ - Updated dependency to @scayle/storefront-core@8.14.2
12
+
13
+ ## 8.12.1
14
+
15
+ ### Patch Changes
16
+
17
+ **Dependencies**
18
+
19
+ - Updated dependency to @scayle/storefront-core@8.14.1
20
+
3
21
  ## 8.12.0
4
22
 
5
23
  ### Minor Changes
@@ -1072,2332 +1090,3 @@
1072
1090
  **Dependencies**
1073
1091
 
1074
1092
  - Updated dependency to @scayle/storefront-core@8.0.0
1075
-
1076
- ## 7.95.4
1077
-
1078
- ### Patch Changes
1079
-
1080
- **Dependencies**
1081
-
1082
- - Updated dependency to @scayle/storefront-core@7.69.3
1083
-
1084
- ## 7.95.3
1085
-
1086
- ### Patch Changes
1087
-
1088
- **Dependencies**
1089
-
1090
- - Updated dependency to @scayle/storefront-core@7.69.2
1091
-
1092
- ## 7.95.2
1093
-
1094
- ### Patch Changes
1095
-
1096
- - Updated dependency `@vueuse/core@11.2.0` to `@vueuse/core@11.3.0`
1097
-
1098
- ## 7.95.1
1099
-
1100
- ### Patch Changes
1101
-
1102
- **Dependencies**
1103
-
1104
- - Updated dependency to @scayle/storefront-core@7.69.1
1105
-
1106
- ## 7.95.0
1107
-
1108
- ### Minor Changes
1109
-
1110
- - Move test factories to separate entry point. They are now available via `@scayle/storefront-nuxt/dist/test/factories` (or `@scayle/storefront-nuxt/test/factories` when `moduleResolution` is set to `Bundler`.
1111
-
1112
- The location of the test factories within the `@scayle/storefront-nuxt` entry point unintentionally caused them to be included in the client build. This resulted in an error because the client build attempted to import the default export of `lodash.mergewith`, which is not available.
1113
-
1114
- ### Patch Changes
1115
-
1116
- **Dependencies**
1117
-
1118
- - Updated dependency to @scayle/storefront-core@7.69.0
1119
-
1120
- ## 7.94.7
1121
-
1122
- ### Patch Changes
1123
-
1124
- **Dependencies**
1125
-
1126
- - Updated dependency to @scayle/storefront-core@7.68.0
1127
-
1128
- ## 7.94.6
1129
-
1130
- ### Patch Changes
1131
-
1132
- **Dependencies**
1133
-
1134
- - Updated dependency to @scayle/storefront-core@7.67.1
1135
-
1136
- ## 7.94.5
1137
-
1138
- ### Patch Changes
1139
-
1140
- **Dependencies**
1141
-
1142
- - Updated dependency to @scayle/storefront-core@7.67.0
1143
-
1144
- ## 7.94.4
1145
-
1146
- ### Patch Changes
1147
-
1148
- - Updated dependency `@scayle/storefront-core@7.66.5` to `@scayle/storefront-core@7.66.6`
1149
- **Dependencies**
1150
-
1151
- - Updated dependency to @scayle/storefront-core@7.66.7
1152
-
1153
- ## 7.94.3
1154
-
1155
- ### Patch Changes
1156
-
1157
- **Dependencies**
1158
-
1159
- - Updated dependency to @scayle/storefront-core@7.66.6
1160
-
1161
- ## 7.94.2
1162
-
1163
- ### Patch Changes
1164
-
1165
- **Dependencies**
1166
-
1167
- - Updated dependency to @scayle/storefront-core@7.66.5
1168
-
1169
- ## 7.94.1
1170
-
1171
- ### Patch Changes
1172
-
1173
- **Dependencies**
1174
-
1175
- - Updated dependency to @scayle/storefront-core@7.66.4
1176
-
1177
- ## 7.94.0
1178
-
1179
- ### Minor Changes
1180
-
1181
- - Move `vitest` to dev dependencies
1182
-
1183
- ### Patch Changes
1184
-
1185
- - Removed dependency `vitest@2.1.4`
1186
- - Add `useNavigationTreeById` and `useNavigationTreeByName` to the list of keyed composables
1187
-
1188
- ## 7.93.0
1189
-
1190
- ### Minor Changes
1191
-
1192
- - Test factories are now exported via package source root (`./src/index.ts`).
1193
- Now, all test factories can be imported as follows:
1194
-
1195
- ```ts
1196
- import { categoryFactory } from '@scayle/storefront-nuxt'
1197
- ```
1198
-
1199
- - Add `product`, `variant`, `price`, `attribute` and `route` test factories.
1200
-
1201
- ### Patch Changes
1202
-
1203
- - Added dependency `vitest@2.1.4`
1204
-
1205
- ## 7.92.0
1206
-
1207
- ### Minor Changes
1208
-
1209
- - Add nitropack as a peer dependency
1210
-
1211
- ### Patch Changes
1212
-
1213
- - Removed dependency `nitropack@^2.9.7`
1214
- **Dependencies**
1215
-
1216
- - Updated dependency to @scayle/storefront-core@7.66.3
1217
-
1218
- ## 7.91.0
1219
-
1220
- ### Minor Changes
1221
-
1222
- - Remove `category` utils
1223
-
1224
- ### Patch Changes
1225
-
1226
- **Dependencies**
1227
-
1228
- - Updated dependency to @scayle/storefront-core@7.66.2
1229
-
1230
- ## 7.90.0
1231
-
1232
- ### Minor Changes
1233
-
1234
- - Fix RPC context test factory `Log` import
1235
-
1236
- ## 7.89.0
1237
-
1238
- ### Minor Changes
1239
-
1240
- - Add `category` test factory and expose all test factories. Moreover, `fishery` has
1241
- been added to the `peerDependencies` as it is main dependency for the test factories.
1242
- They can be used as follows:
1243
-
1244
- ```ts
1245
- import { categoryFactory } from '@scayle/storefront-nuxt/test-factories'
1246
-
1247
- categoryFactory.build()
1248
- ```
1249
-
1250
- - Introduce `seo` and `category` utilities within the module and expose them as externals.
1251
- The category utilities consist of various functions that manage category tree-structured data.
1252
- The SEO utilities focus primarily on generating schemas and manipulating URLs for SEO purposes.
1253
-
1254
- They are exposed externally and can be used as follows:
1255
-
1256
- ```ts
1257
- import { sanitizeCanonicalURL } from '@scayle/storefront-nuxt'
1258
-
1259
- sanitizeCanonicalURL('/en/women-2045')
1260
- ```
1261
-
1262
- ### Patch Changes
1263
-
1264
- - Added dependency `schema-dts@1.1.2`
1265
- - Updated dependency `ufo@^1.5.3` to `ufo@^1.5.4`
1266
- **Dependencies**
1267
-
1268
- - Updated dependency to @scayle/unstorage-compression-driver@0.1.5
1269
-
1270
- ## 7.88.1
1271
-
1272
- ### Patch Changes
1273
-
1274
- - Updated dependency `@vueuse/core@11.1.0` to `@vueuse/core@11.2.0`
1275
- - Handle error when reading from or saving to the redirect cache
1276
-
1277
- With this change, when the application fails to read from the redirect cache it will log the error and fallback to using the SAPI endpoint.
1278
- **Dependencies**
1279
-
1280
- - Updated dependency to @scayle/storefront-core@7.66.1
1281
-
1282
- ## 7.88.0
1283
-
1284
- ### Minor Changes
1285
-
1286
- - Add `useNavigationTreeByName` and `useNavigationTreeById` composables.
1287
- Deprecate `useNavigationTree` composable in favor of `useNavigationTreeById`.
1288
-
1289
- ### Patch Changes
1290
-
1291
- **Dependencies**
1292
-
1293
- - Updated dependency to @scayle/storefront-core@7.66.0
1294
-
1295
- ## 7.87.2
1296
-
1297
- ### Patch Changes
1298
-
1299
- **Dependencies**
1300
-
1301
- - Updated dependency to @scayle/storefront-core@7.65.11
1302
-
1303
- ## 7.87.1
1304
-
1305
- ### Patch Changes
1306
-
1307
- **Dependencies**
1308
-
1309
- - Updated dependency to @scayle/storefront-core@7.65.10
1310
-
1311
- ## 7.87.0
1312
-
1313
- ### Minor Changes
1314
-
1315
- - Added export entry for "./composables".
1316
-
1317
- Composables can now be directly imported using:
1318
-
1319
- `import { useCurrentShop } from '@scayle/storefront-nuxt/composables';`
1320
-
1321
- ## 7.86.0
1322
-
1323
- ### Minor Changes
1324
-
1325
- - Add `formatPercentage` to `useFormatHelpers.ts`
1326
-
1327
- ### Patch Changes
1328
-
1329
- **Dependencies**
1330
-
1331
- - Updated dependency to @scayle/storefront-core@7.65.9
1332
-
1333
- ## 7.85.16
1334
-
1335
- ### Patch Changes
1336
-
1337
- **Dependencies**
1338
-
1339
- - Updated dependency to @scayle/storefront-core@7.65.8
1340
-
1341
- ## 7.85.15
1342
-
1343
- ### Patch Changes
1344
-
1345
- **Dependencies**
1346
-
1347
- - Updated dependency to @scayle/storefront-core@7.65.7
1348
-
1349
- ## 7.85.14
1350
-
1351
- ### Patch Changes
1352
-
1353
- **Dependencies**
1354
-
1355
- - Updated dependency to @scayle/storefront-core@7.65.6
1356
-
1357
- ## 7.85.13
1358
-
1359
- ### Patch Changes
1360
-
1361
- - Updated dependency `@scayle/h3-session@^0.4.0` to `@scayle/h3-session@^0.4.1`
1362
- - Updated dependency `@scayle/unstorage-compression-driver@^0.1.3` to `@scayle/unstorage-compression-driver@^0.1.4`
1363
-
1364
- ## 7.85.12
1365
-
1366
- ### Patch Changes
1367
-
1368
- - Support passing an internal access header
1369
- **Dependencies**
1370
-
1371
- - Updated dependency to @scayle/storefront-core@7.65.5
1372
-
1373
- ## 7.85.11
1374
-
1375
- ### Patch Changes
1376
-
1377
- - Update @nuxt/module-builder to 0.8.4
1378
-
1379
- ## 7.85.10
1380
-
1381
- ### Patch Changes
1382
-
1383
- - Update @nuxt/module-builder to 0.7.1
1384
-
1385
- ## 7.85.9
1386
-
1387
- ### Patch Changes
1388
-
1389
- - Update @nuxt/module-builder to 0.6.0
1390
-
1391
- ## 7.85.8
1392
-
1393
- ### Patch Changes
1394
-
1395
- - Correct the types of `useOrder` and `useOrderConfirmation`
1396
- **Dependencies**
1397
-
1398
- - Updated dependency to @scayle/storefront-core@7.65.4
1399
-
1400
- ## 7.85.7
1401
-
1402
- ### Patch Changes
1403
-
1404
- **Dependencies**
1405
-
1406
- - Updated dependency to @scayle/storefront-core@7.65.3
1407
-
1408
- ## 7.85.6
1409
-
1410
- ### Patch Changes
1411
-
1412
- **Dependencies**
1413
-
1414
- - Updated dependency to @scayle/storefront-core@7.65.2
1415
-
1416
- ## 7.85.5
1417
-
1418
- ### Patch Changes
1419
-
1420
- **Dependencies**
1421
-
1422
- - Updated dependency to @scayle/storefront-core@7.65.1
1423
-
1424
- ## 7.85.4
1425
-
1426
- ### Patch Changes
1427
-
1428
- **Dependencies**
1429
-
1430
- - Updated dependency to @scayle/storefront-core@7.65.0
1431
-
1432
- ## 7.85.3
1433
-
1434
- ### Patch Changes
1435
-
1436
- - Replaced `radash` utils with custom native implementations
1437
- - Replace `yn` with custom `stringToBoolean` utility function.
1438
- NOTE: As the parsing of boolean environment values has been changed,
1439
- this might have unwanted effects if the respective values have been incorrectly
1440
- defined within the environment.
1441
- **Dependencies**
1442
-
1443
- - Updated dependency to @scayle/storefront-core@7.64.4
1444
-
1445
- ## 7.85.2
1446
-
1447
- ### Patch Changes
1448
-
1449
- - Fixed bootstrap middleware logging `[object Object]` by providing an appropriate log message and passing the object as optional data parameter
1450
-
1451
- ## 7.85.1
1452
-
1453
- ### Patch Changes
1454
-
1455
- - Fix `@vueuse/core` version to `11.0.3`
1456
-
1457
- ## 7.85.0
1458
-
1459
- ### Minor Changes
1460
-
1461
- - Fix typing when using `transform`, `default` or `pick` in RPC composables
1462
-
1463
- NOTE: This update corrects some broken typings and as a result may require some code changes.
1464
- Previously many composables asserted that the default value would match the response value even when relying on the fallback `default` factory function: `() => null`.
1465
- Due to this, the `data` property would be typed as `Ref<T>` even when it would be `Ref<null>` in case of error on a still pending request.
1466
- The types have now been corrected to respect the `default` factory function's return and accurately represent the behavior.
1467
- This means that you may have to add additional null checks in your code for typechecking to pass.
1468
-
1469
- For example:
1470
-
1471
- **In 7.84.6**
1472
-
1473
- ```ts
1474
- useBrand({
1475
- params: { brandId: 1 },
1476
- }).data satisfies Ref<Brand>
1477
-
1478
- useBrand({
1479
- params: { brandId: 1 },
1480
- options: {
1481
- pick: ['id', 'isActive'],
1482
- },
1483
- }).data satisfies Ref<Brand>
1484
-
1485
- useBrand({
1486
- params: { brandId: 1 },
1487
- options: {
1488
- transform: (brand) => brand.slug,
1489
- },
1490
- }).data satisfies Ref<Brand>
1491
-
1492
- useBrand({
1493
- params: { brandId: 1 },
1494
- options: {
1495
- default: () => 'Brand not found',
1496
- },
1497
- }).data satisfies Ref<Brand>
1498
- ```
1499
-
1500
- **In 7.85.0**
1501
-
1502
- ```ts
1503
- useBrand({
1504
- params: { brandId: 1 },
1505
- }).data satisfies Ref<Brand | null>
1506
-
1507
- useBrand({
1508
- params: { brandId: 1 },
1509
- options: {
1510
- pick: ['id', 'isActive'],
1511
- },
1512
- }).data satisfies Ref<Pick<Brand, 'id' | 'isActive'> | null>
1513
-
1514
- useBrand({
1515
- params: { brandId: 1 },
1516
- options: {
1517
- transform: (brand) => brand.slug,
1518
- },
1519
- }).data satisfies Ref<string | null>
1520
-
1521
- useBrand({
1522
- params: { brandId: 1 },
1523
- options: {
1524
- default: () => 'Brand not found',
1525
- },
1526
- }).data satisfies Ref<Brand | string>
1527
- ```
1528
-
1529
- For more details on `useAsyncData` usage check out the [Nuxt Docs](https://nuxt.com/docs/api/composables/use-async-data)
1530
-
1531
- ### Patch Changes
1532
-
1533
- - Updated dependencies
1534
- - @scayle/storefront-core@7.64.3
1535
-
1536
- ## 7.84.6
1537
-
1538
- ### Patch Changes
1539
-
1540
- - Updated dependencies
1541
- - @scayle/storefront-core@7.64.2
1542
-
1543
- ## 7.84.5
1544
-
1545
- ### Patch Changes
1546
-
1547
- - Updated dependencies
1548
- - @scayle/storefront-core@7.64.1
1549
-
1550
- ## 7.84.4
1551
-
1552
- ### Patch Changes
1553
-
1554
- - Improve type definitions for exported composables
1555
-
1556
- ## 7.84.3
1557
-
1558
- ### Patch Changes
1559
-
1560
- -
1561
- - Updated dependencies
1562
- - @scayle/storefront-core@7.64.0
1563
-
1564
- ## 7.84.2
1565
-
1566
- ### Patch Changes
1567
-
1568
- - Add support for removing basket items using their item key
1569
- - Updated dependencies
1570
- - @scayle/storefront-core@7.63.1
1571
-
1572
- ## 7.84.1
1573
-
1574
- ### Patch Changes
1575
-
1576
- - Improve typing of `H3EventContext` and `Session.data`
1577
-
1578
- ## 7.84.0
1579
-
1580
- ### Minor Changes
1581
-
1582
- - Migrate from `ModuleBaseOptions.stores` to `ModuleBaseOptions.shops`
1583
-
1584
- ## 7.83.0
1585
-
1586
- ### Minor Changes
1587
-
1588
- - Introduce `disableDefaultGetCachedDataOverride` flag in the public runtime configuration. Setting this to true prevents `useRpc` from sharing data across multiple instances.
1589
- Important: The `disableDefaultGetCachedDataOverride` flag currently does not affect the `useUser`, `useBasket`, and `useWishlist` composables. These composables will continue to share a common cache even when `disableDefaultGetCachedDataOverride` is set to true.
1590
- - Deprecate `useQueryFilterState` in the `@scayle/storefront-nuxt` package
1591
-
1592
- ### Patch Changes
1593
-
1594
- - Remove `shopCampaignKeyword` from ShopConfigSchema
1595
- - Migrate from using `RpcContext.bapiClient` to using `RpcContext.sapiClient`
1596
- - Updated dependencies
1597
- - @scayle/storefront-core@7.63.0
1598
-
1599
- ## 7.82.2
1600
-
1601
- ### Patch Changes
1602
-
1603
- - Fix types of `useBasket` composable
1604
- - Fix types for more composables
1605
- - Migrate from using `RpcContext.bapiClient` to using `RpcContext.sapiClient`
1606
- - Updated dependencies
1607
- - @scayle/storefront-core@7.62.0
1608
-
1609
- ## 7.82.1
1610
-
1611
- ### Patch Changes
1612
-
1613
- - Fix types of `useBasket` composable
1614
- - Updated dependencies
1615
- - @scayle/storefront-core@7.61.0
1616
-
1617
- ## 7.82.0
1618
-
1619
- ### Minor Changes
1620
-
1621
- - Add new `useRpcCall` composable to make imperative RPC calls more ergonomic
1622
-
1623
- ```vue
1624
- <script lang="ts" setup>
1625
- const getConfig = useRpcCall('getShopConfiguration)
1626
- const getProduct = useRpcCall('getProductById')
1627
- const config = await getConfig()
1628
- const product = await getProduct({ id: 1 })
1629
- </script>
1630
- ```
1631
-
1632
- ### Patch Changes
1633
-
1634
- - Updated dependencies
1635
- - @scayle/storefront-core@7.59.1
1636
-
1637
- ## 7.81.0
1638
-
1639
- ### Minor Changes
1640
-
1641
- - Support enabling or disabling optional server-side plugins
1642
-
1643
- Plugins with optional behavior can now be disabled at build time through `env` variables.
1644
-
1645
- - `SFC_PLUGIN_CONFIG_VALIDATION_ENABLED` This plugin executes during app startup and validates the runtime config, exiting with an error if a problem is found. It is enabled by default and can be disabled by setting this variable to `false`.
1646
- - `SFC_PLUGIN_POWERED_BY_ENABLED` This plugin sets the `X-Powered-By-Header` on every HTTP response to incude SCAYLE. It is enabled by default and can be disabled by setting this variable to `false`.
1647
- - `SFC_PLUGIN_RUNTIME_PERFORMANCE_ENABLED` This plugin improves performance by computing the runtime configuration at startup rather than for every request. It is enabled by default and can be disabled by setting this variable to `false`.
1648
-
1649
- - Add a plugin to cache the runtime config
1650
-
1651
- This change adds a Nitro plugin to calculate the runtime config at startup, rather than for every requests. It offers significant performance improvements for large runtime configs.
1652
-
1653
- ### Patch Changes
1654
-
1655
- - Add import for runtimeConfig plugin
1656
- - Revert type of `publicShopData` to `string[]`
1657
-
1658
- ## 7.80.0
1659
-
1660
- ### Minor Changes
1661
-
1662
- - Do not set session cookie for cached pages
1663
-
1664
- ### Patch Changes
1665
-
1666
- - Updated to `nuxt@3.12.2`
1667
- - Fix the the type off `publicShopData` in the config. This restores it to `(keyof ShopConfig)[]` instead of `string[]`, allowing its elements to be used to index a `ShopConfig`
1668
-
1669
- ## 7.79.1
1670
-
1671
- ### Patch Changes
1672
-
1673
- - Import `useNitroApp` from `#imports`
1674
-
1675
- ## 7.79.0
1676
-
1677
- ### Minor Changes
1678
-
1679
- - Add hooks before and after RPC execution (`storefront:rpc:before` and `storefront:rpc:after`) and when an RPC fails (`storefront:rpc:error`)
1680
-
1681
- These hooks allow you to execute extra logic before/after executing an RPC and even alter the properties of the RPC context/result.
1682
-
1683
- Hooks can be registered by adding a nitro plugin inside ´server/plugins/´:
1684
-
1685
- ```ts
1686
- import { defineNitroPlugin } from '#imports'
1687
-
1688
- export default defineNitroPlugin((nitroApp) => {
1689
- nitroApp.hooks.hook('storefront:rpc:before', (rpcName, rpcContext) => {
1690
- rpcContext.log.debug(`Before: ${rpcName}`)
1691
- })
1692
-
1693
- nitroApp.hooks.hook(
1694
- 'storefront:rpc:after',
1695
- (rpcName, rpcContext, result) => {
1696
- rpcContext.log.debug(`After: ${rpcName} returned ${result}`)
1697
- },
1698
- )
1699
-
1700
- nitroApp.hooks.hook(
1701
- 'storefront:rpc:error',
1702
- (rpcName, rpcContext, error) => {
1703
- rpcContext.log.error(`ERROR: ${rpcName} did throw ${error}`)
1704
- },
1705
- )
1706
- })
1707
- ```
1708
-
1709
- Added [`callHook`](https://github.com/unjs/hookable?tab=readme-ov-file#async-callhook-name-args), `callHookParallel` and [`callHookWith`](https://github.com/unjs/hookable?tab=readme-ov-file#callhookwith-name-callerfn) to `RpcContext` to allow triggering hooks within RPCs
1710
-
1711
- ### Patch Changes
1712
-
1713
- - Updated dependencies
1714
- - @scayle/storefront-core@7.59.0
1715
-
1716
- ## 7.78.1
1717
-
1718
- ### Patch Changes
1719
-
1720
- - Import `useNitroApp` from `#imports`
1721
-
1722
- ## 7.78.0
1723
-
1724
- ### Minor Changes
1725
-
1726
- - Support shops with multiple paths
1727
-
1728
- The `path` property in the shop config can now be defined as an array of strings. If this is the case, multiple path prefixes will point to the same shop. For example, with the config `{ path: ['en', 'en-US'], shopId: 1001 }` both `example.com/en` and `example.com/en-US` will use shop 1001. Because it is the same shop, `/en` and `/en-US` will have the same locale and share user sessions, baskets and wishlists. The first path in the array will be considered the default path and used for API calls.
1729
-
1730
- ## 7.77.3
1731
-
1732
- ### Patch Changes
1733
-
1734
- - Updated dependencies
1735
- - @scayle/storefront-core@7.58.3
1736
-
1737
- ## 7.77.2
1738
-
1739
- ### Patch Changes
1740
-
1741
- - Fix basket count calculation for baskets including item groups
1742
-
1743
- ## 7.77.1
1744
-
1745
- ### Patch Changes
1746
-
1747
- - Updated dependencies
1748
- - @scayle/storefront-core@7.58.2
1749
-
1750
- ## 7.77.0
1751
-
1752
- ### Minor Changes
1753
-
1754
- - Add default `getCachedData` implementation to `useRpc`
1755
-
1756
- The default implementation looks like this:
1757
-
1758
- ```
1759
- getCachedData(key, nuxtApp) {
1760
- return nuxtApp._asyncData[key]?.data.value as TResult
1761
- },
1762
- ```
1763
-
1764
- compared to the default in `useAsyncData`
1765
-
1766
- ```
1767
- getCachedData(key, nuxtApp) {
1768
- const hydrationData = nuxtApp.isHydrating ? nuxtApp.payload.data[key] : nuxtApp.static.data[key]
1769
- return hydrationData ?? nuxtApp._asyncData[key]?.data.value as TResult
1770
- }
1771
- ```
1772
-
1773
- With this change multiple calls to the same composable with the same key will reference the cache. Previously, for every call of a composable a request would be sent except in hydration. This should be more similar to the pre-7.75.0 behavior.
1774
-
1775
- The `getCachedData` implementation can be overridden when calling `useRpc` or any related composable.
1776
-
1777
- ## 7.76.6
1778
-
1779
- ### Patch Changes
1780
-
1781
- - Updated dependencies
1782
- - @scayle/storefront-core@7.58.1
1783
-
1784
- ## 7.76.5
1785
-
1786
- ### Patch Changes
1787
-
1788
- - Updated dependencies
1789
- - @scayle/storefront-core@7.58.0
1790
-
1791
- ## 7.76.4
1792
-
1793
- ### Patch Changes
1794
-
1795
- - Updated dependencies
1796
- - @scayle/storefront-core@7.57.0
1797
-
1798
- ## 7.76.3
1799
-
1800
- ### Patch Changes
1801
-
1802
- - Updated dependencies
1803
- - @scayle/storefront-core@7.56.0
1804
-
1805
- ## 7.76.2
1806
-
1807
- ### Patch Changes
1808
-
1809
- - Updated to `vue@3.4.27`
1810
- - Updated to `nuxt@3.11.2`
1811
-
1812
- ## 7.76.1
1813
-
1814
- ### Patch Changes
1815
-
1816
- - `useRpc` will watch now `params` if it is a getter or ref, whereas previously it would only watch for refs
1817
-
1818
- ## 7.76.0
1819
-
1820
- ### Minor Changes
1821
-
1822
- - `useOrder` `useOrderConfirmation` and `useIDP` are now optionally awaitable
1823
-
1824
- ## 7.75.1
1825
-
1826
- ### Patch Changes
1827
-
1828
- - Add `immediate` option to `useUser` and deprecate `autoFetch`
1829
- - Log warning when deprecated `autoFetch` option is used
1830
-
1831
- ## 7.75.0
1832
-
1833
- ### Minor Changes
1834
-
1835
- - Configure `keyedComposables` to automatically create keys for `useRpc` wrapping composables instead of relying on hardcoded defaults
1836
- - Export the `extendPromise` util
1837
- - Restore the `useAsyncData` implementation of `useRpc`
1838
-
1839
- Originally, `useRpc` was based on `useAsyncData` but in order to fix an issue with wishlists, we restricted the API and changed it to a rough emulation of `useAsyncData`. Because this emulation was similar, but not the same as `useAsyncData` it caused additional confusion. This change brings back the `useAsyncData` implementation.
1840
-
1841
- For developers, this means that `useRpc` will behave in the same manner as `useAsyncData`, be subject to the same restrictions and allow the same options.
1842
-
1843
- This also means that `useRpc` is now optionally awaitable. `const { data } = await useRpc()` now works as well as `const { data } = useRpc()`. The difference is that the former will wait for the data to load, while the latter will initially be set to the default value.
1844
-
1845
- Composables which are simply wrappers around `useRpc` also inherit this new behavior. They accept the same options as `useAsyncData`, return the same properties (and possibly some additional ones) and are optionally awaitable.
1846
-
1847
- This includes the following composables:
1848
-
1849
- - `useBrand`
1850
- - `useBrands`
1851
- - `useCategories`
1852
- - `useCategoryById`
1853
- - `useCategoryByPath`
1854
- - `useCurrentPromotions`
1855
- - `useFilters`
1856
- - `useNavigationTree`
1857
- - `useNavigationTrees`
1858
- - `useProduct`
1859
- - `useProducts`
1860
- - `useProductsByIds`
1861
- - `useProductsByReferenceKeys`
1862
- - `useProductsCount`
1863
- - `usePromotions`
1864
- - `usePromotionsByIds`
1865
- - `useShopConfiguration`
1866
- - `useUserAddresses`
1867
- - `useVariant`
1868
-
1869
- ### Patch Changes
1870
-
1871
- - It is no longer mandatory to `await` calls to `useFacet`, `useUser`, `useWishlist` and `useBasket`
1872
-
1873
- ## 7.74.0
1874
-
1875
- ### Minor Changes
1876
-
1877
- - Support for `isDefault` to be an empty string.
1878
- This resolves an issue where an `undefined` value of `isDefault` within a shop config is changed to an empty string during build-time and fails the config validation.
1879
-
1880
- ### Patch Changes
1881
-
1882
- - Updated dependencies
1883
- - @scayle/storefront-core@7.55.0
1884
-
1885
- ## 7.73.0
1886
-
1887
- ### Minor Changes
1888
-
1889
- - Breaking: Renamed ModuleOptions to ModuleBaseOptions to differentiate it from other ModuleOptions used in different modules.
1890
-
1891
- ### Patch Changes
1892
-
1893
- - Fix construction of API base path: When setting up a `baseURL` in combination with path based shop selection, the `baseURL` is now the first path segment of the API base path.
1894
- - Updated dependencies
1895
- - @scayle/storefront-core@7.54.0
1896
-
1897
- ## 7.72.5
1898
-
1899
- ### Patch Changes
1900
-
1901
- - Updated dependencies
1902
- - @scayle/storefront-core@7.53.0
1903
-
1904
- ## 7.72.4
1905
-
1906
- ### Patch Changes
1907
-
1908
- - Updated dependencies
1909
- - @scayle/storefront-core@7.52.1
1910
-
1911
- ## 7.72.3
1912
-
1913
- ### Patch Changes
1914
-
1915
- - Refactored composables to consistently use named exports rather than default exports and to use named functions instead of arrow functions
1916
-
1917
- ## 7.72.2
1918
-
1919
- ### Patch Changes
1920
-
1921
- - Add import alias `#storefront/composables` to package.json imports and explicitly added import alias to build transpilation to prevent potential build issues
1922
-
1923
- ## 7.72.1
1924
-
1925
- ### Patch Changes
1926
-
1927
- - Updated dependencies
1928
- - @scayle/storefront-core@7.52.0
1929
-
1930
- ## 7.72.0
1931
-
1932
- ### Minor Changes
1933
-
1934
- - Introduced a new feature that validates runtime configurations using Zod schemas upon server startup.
1935
- The server will exit if validation fails.
1936
- - We now log a warning when an RPC method from `@scayle/storefront-nuxt` is overridden by an RPC custom implementation.
1937
-
1938
- If the override is intentional, we provide a new config option called `rpcMethodOverrides` to silence this warning.
1939
- In the future, the warning will become an error message if the RPC is not explicitly marked as an override.
1940
-
1941
- ## 7.71.2
1942
-
1943
- ### Patch Changes
1944
-
1945
- - Provide new import alias `#storefront/composables` to allow for explicit imports of composables provided by the `@scayle/storefront-nuxt` package instead of only relying on the Nuxt auto-import functionality
1946
-
1947
- ## 7.71.1
1948
-
1949
- ### Patch Changes
1950
-
1951
- - Correctly set the `optimizeDeps` for the new `@scayle/storefront-api` package
1952
- - Updated dependencies
1953
- - @scayle/storefront-core@7.51.1
1954
-
1955
- ## 7.71.0
1956
-
1957
- ### Minor Changes
1958
-
1959
- - Add new shopSelector mode `path_or_default`
1960
-
1961
- The `path_or_default` mode is similar to `path`, but loading the root will open the default shop instead of redirecting to the first shop. So you can have a shop at `example.com/` and `example.com/de` instead of `example.com/en` and `example.com/de`. To set a default shop, add `isDefault: true` to the shop's configuration in the `nuxt.config`. When using `nuxt-i18n` the `strategy` option should be set to `prefix_except_default`. (This is the default value.)
1962
-
1963
- ## 7.70.0
1964
-
1965
- ### Minor Changes
1966
-
1967
- - `rpcContext.campaignKey` will now be set to the key of the first active campaign matching `$shopConfig.storeCampaignKeyword`. When `$shopConfig.storeCampaignKeyword` is set, campaign keys not starting with `$shopConfig.storeCampaignKeyword` will be ignored.
1968
-
1969
- This behavior, is now similar to the nuxt 2 implementation.
1970
-
1971
- - It is now also possible to extend the RPCContext using the `storefront:context:created` nitro runtime hook.
1972
-
1973
- ```ts
1974
- import { defineNitroPlugin } from 'nitropack/runtime/plugin'
1975
- // Augment RpxContext type
1976
- declare module '@scayle/storefront-nuxt' {
1977
- interface AdditionalRpcContext {
1978
- myNewProp: string
1979
- }
1980
- }
1981
-
1982
- // Set new value on rpcContext
1983
- export default defineNitroPlugin((nitroApp) => {
1984
- nitroApp.hooks.hook('storefront:context:created', (rpcContext) => {
1985
- rpcContext.myNewProp = 'My campaign key'
1986
- })
1987
- })
1988
- ```
1989
-
1990
- ### Patch Changes
1991
-
1992
- - Add campaignKey dependency to nitro
1993
- - Updated dependencies
1994
- - @scayle/storefront-core@7.51.0
1995
-
1996
- ## 7.69.1
1997
-
1998
- ### Patch Changes
1999
-
2000
- - Updated dependencies
2001
- - @scayle/storefront-core@7.50.1
2002
-
2003
- ## 7.69.0
2004
-
2005
- ### Minor Changes
2006
-
2007
- - Upgraded to `@scayle/storefront-api@v17.0.0` and replaced `@aboutyou/backbone`
2008
-
2009
- ### Patch Changes
2010
-
2011
- - Updated dependencies
2012
- - @scayle/storefront-core@7.50.0
2013
-
2014
- ## 7.68.1
2015
-
2016
- ### Patch Changes
2017
-
2018
- - Updated dependencies
2019
- - @scayle/storefront-core@7.49.4
2020
-
2021
- ## 7.68.0
2022
-
2023
- ### Minor Changes
2024
-
2025
- - Use unique session cookie names for each shop
2026
-
2027
- To simplify the implementation and improve the stability of session handling, we now use a differently named cookie for each shop instead of depending on the `Path` attribute.
2028
-
2029
- This is a change only to the framework internals, and should not have any visible impact or require any code changes.
2030
-
2031
- Before: `Set-Cookie: $session=s:fa3746f9-88c8-4065-a6c9-0c7bee473dd8.pSoaN6Q7iFHHyWKE7s9gQAqdDzGb9fS8a478P7PHLxw; Path=/de`
2032
-
2033
- After: `Set-Cookie: $session-1001=s:fa3746f9-88c8-4065-a6c9-0c7bee473dd8.pSoaN6Q7iFHHyWKE7s9gQAqdDzGb9fS8a478P7PHLxw; Path=/`
2034
-
2035
- When a cookie is found that uses the old format, it will be migrated to the new.
2036
-
2037
- ### Patch Changes
2038
-
2039
- - We stop bootstrapping requests where we can't determine a shop based on the request parameters.
2040
- Previously, we fell back to the first shop configuration, which has now been removed.
2041
-
2042
- In this case, no `$rpcContext` is available during the request event.
2043
-
2044
- We also bootstrap the Nuxt Error Page with the correct shop config now.
2045
-
2046
- - Updated dependencies
2047
- - @scayle/h3-session@0.4.0
2048
-
2049
- ## 7.67.2
2050
-
2051
- ### Patch Changes
2052
-
2053
- - Updated dependencies
2054
- - @scayle/storefront-core@7.49.3
2055
-
2056
- ## 7.67.1
2057
-
2058
- ### Patch Changes
2059
-
2060
- - `initialPath` option in `useFacet` should be optional
2061
- - Updated dependencies
2062
- - @scayle/storefront-core@7.49.2
2063
-
2064
- ## 7.67.0
2065
-
2066
- ### Minor Changes
2067
-
2068
- - Support passing initial path to `useFacet`
2069
-
2070
- ## 7.66.4
2071
-
2072
- ### Patch Changes
2073
-
2074
- - Updated dependencies
2075
- - @scayle/storefront-core@7.49.1
2076
-
2077
- ## 7.66.3
2078
-
2079
- ### Patch Changes
2080
-
2081
- - Updated dependencies
2082
- - @scayle/storefront-core@7.49.0
2083
-
2084
- ## 7.66.2
2085
-
2086
- ### Patch Changes
2087
-
2088
- - We fixed a bug where we would attach a session to a request for `/favicon.ico` when no favicon was present in the public directory.
2089
-
2090
- This leads to a session conflict when using a path-based shop selector.
2091
-
2092
- ## 7.66.1
2093
-
2094
- ### Patch Changes
2095
-
2096
- - Fix RpcContext containing outdated data for the remainder of the request after mutating the session data
2097
-
2098
- ## 7.66.0
2099
-
2100
- ### Minor Changes
2101
-
2102
- - Fix variable used before initialization in `useBasket`
2103
-
2104
- Breaking: This change removes the `useEventListener` call from `useBasket`. This code was specific to the checkout page and it has been moved to that page in the Storefront Boilerplate (v1.0.0-rc.9). To make the necessary change in your own project, add the following code to `checkout.vue`.
2105
-
2106
- ```
2107
- import type { CheckoutEvent } from '@scayle/storefront-nuxt'
2108
- const { fetching, fetch } = await useBasket()
2109
-
2110
- const onCheckoutUpdate = async (
2111
- event: MessageEvent<CheckoutEvent>,
2112
- fetching: Boolean,
2113
- fetchCallback: () => Promise<void>,
2114
- ) => {
2115
- if (fetching) {
2116
- return
2117
- } // prevent multiple fetches
2118
- if (event?.data?.type === 'tracking') {
2119
- const actionType = event.data.event?.event
2120
-
2121
- if (actionType === 'add_to_cart' || actionType === 'remove_from_cart') {
2122
- await fetchCallback()
2123
- }
2124
- }
2125
- }
2126
-
2127
- // Refresh basket if the user changes quantity or removes an item at checkout
2128
- useEventListener(
2129
- 'message',
2130
- (event) => onCheckoutUpdate(event, fetching.value, fetch),
2131
- )
2132
- ```
2133
-
2134
- ### Patch Changes
2135
-
2136
- - Fixes an issue where the `refreshToken` was not exposed on the `RPCContext` even if the user is logged in.
2137
- - Updated dependencies
2138
- - @scayle/storefront-core@7.48.2
2139
-
2140
- ## 7.65.1
2141
-
2142
- ### Patch Changes
2143
-
2144
- - Updated dependencies
2145
- - @scayle/storefront-core@7.48.1
2146
-
2147
- ## 7.65.0
2148
-
2149
- ### Minor Changes
2150
-
2151
- - Add OpenTelemetry instrumentation to RPC methods
2152
-
2153
- This release adds the beginning of native instrumentation to the `@scayle/storefront-nuxt` package.
2154
-
2155
- If you are using the OpenTelemetry SDK in your application, a `Span` will now be created for calls to RPC methods. The `Span` will be named `storefront-nuxt.rpc/[method]` and have the following attributes:
2156
-
2157
- - `rpc.method` the method name
2158
- - `rpc.server` `'storefront-nuxt.rpc'`
2159
- - `rpc.payload` the payload passed to the RPC
2160
- - `server.address` the hostname of the server
2161
- - `server.port` the port of the server
2162
-
2163
- Additionally, the `Span`'s status will be set to `ERROR` or `OK` depending on the result of the RPC call.
2164
-
2165
- If you are not using the `@opentelemetry/sdk` in your application, this change will have no impact. A reference implementation of the OpenTelemetry SDK will be included in a future Storefront Boilerplate release.
2166
-
2167
- ## 7.64.1
2168
-
2169
- ### Patch Changes
2170
-
2171
- - Format code with dprint
2172
- - Updated dependencies
2173
- - @scayle/unstorage-compression-driver@0.1.3
2174
- - @scayle/h3-session@0.3.6
2175
-
2176
- ## 7.64.0
2177
-
2178
- ### Minor Changes
2179
-
2180
- - Add `useStorefrontSearch` composable
2181
-
2182
- ## 7.63.0
2183
-
2184
- ### Minor Changes
2185
-
2186
- - Add support for dynamically adding query parameters to the IDP redirect callback URLs to be read back when the user returns from the IDP.
2187
-
2188
- ```ts
2189
- const { data: externalIDPRedirects } = await useIDP({
2190
- queryParams: { redirectTo: '/account' },
2191
- })
2192
- ```
2193
-
2194
- Please note that `code` and `state` are not supported as these are used by the SCAYLE Authentication API.
2195
-
2196
- ### Patch Changes
2197
-
2198
- - Avoid querying for redirects on pages matching the `/__nuxt_error` pattern.
2199
- - Updated dependencies
2200
- - @scayle/storefront-core@7.48.0
2201
-
2202
- ## 7.62.4
2203
-
2204
- ### Patch Changes
2205
-
2206
- - Removed direct logging of `vm` in `log.client.ts` to fix a recursive/infinite logging issue, now logging `vm.$options` instead.
2207
- - Updated dependencies
2208
- - @scayle/storefront-core@7.47.0
2209
-
2210
- ## 7.62.3
2211
-
2212
- ### Patch Changes
2213
-
2214
- - Ensure composables are not called asynchronously in `useBasket` and `useFacet`
2215
-
2216
- ## 7.62.2
2217
-
2218
- ### Patch Changes
2219
-
2220
- - Error pages should be bootstrapped based on the URL where the error occurred
2221
-
2222
- This resolves an issue where context properties such as `currentShop` and `availableShops` were not available on the error page.
2223
-
2224
- ## 7.62.1
2225
-
2226
- ### Patch Changes
2227
-
2228
- - Revert breaking change in `handleIDPLoginCallback` signature
2229
- - Updated dependencies
2230
- - @scayle/storefront-core@7.46.1
2231
-
2232
- ## 7.62.0
2233
-
2234
- ### Minor Changes
2235
-
2236
- - Add `useProductsByReferenceKeys` composable
2237
- Add `useCategoryById` composable
2238
-
2239
- ### Patch Changes
2240
-
2241
- - Do not throw error in `useRpc`. This is the reversion of a change introduced in 7.61.5. If you need a thrown error when a `useRpc` request fails, check the `error` property returned by `useRpc` and `throw` it.
2242
- - Updated dependencies
2243
- - @scayle/storefront-core@7.46.0
2244
-
2245
- ## 7.61.5
2246
-
2247
- ### Patch Changes
2248
-
2249
- - Log errors that occur when attaching the session in bootstrap
2250
- - Update the type of `data` returned by `useRpc` to indicate that it may be undefined. Note: This may cause new typechecking errors. These cases should be corrected to handle `undefined`. It was always possible for `data` to be `undefined`, but the types did not represent that.
2251
- - Updated dependencies
2252
- - @scayle/storefront-core@7.45.0
2253
-
2254
- ## 7.61.4
2255
-
2256
- ### Patch Changes
2257
-
2258
- - Fix the type of unitialized data in `useBasket` and `useWishlist`
2259
-
2260
- When the request for the basket/wishlist has not completed or has failed, the `data` property is `undefined`. In the previous release this was inadvertently changed to `null`. Now it is once again `undefined`.
2261
-
2262
- ## 7.61.3
2263
-
2264
- ### Patch Changes
2265
-
2266
- - Fix types of useBasket and useWishlist
2267
-
2268
- ## 7.61.2
2269
-
2270
- ### Patch Changes
2271
-
2272
- - Updated to `vue@3.4.21` (​For more details check the [Vue 3.4.21 Changelog](https://github.com/vuejs/core/blob/main/CHANGELOG.md#3421-2024-02-28​)
2273
- - Updated to `nuxt@3.10.3` (​For more details check the [Nuxt 3.10.3 Release Notes](https://github.com/nuxt/nuxt/releases/tag/v3.10.3)​)
2274
- - Updated dependencies
2275
- - @scayle/storefront-core@7.44.1
2276
-
2277
- ## 7.61.1
2278
-
2279
- ### Patch Changes
2280
-
2281
- - `useBasket` and `useWishlist` should no longer trigger duplicate requests when used in multiple components. Note: As part of this change, the `options` parameter has been removed from both functions.
2282
-
2283
- ## 7.61.0
2284
-
2285
- ### Minor Changes
2286
-
2287
- - Expose the `loginWithIDP` function from the `useSession` composable.
2288
- - Add error logging to RPC handler
2289
-
2290
- ### Patch Changes
2291
-
2292
- - Updated dependencies
2293
- - @scayle/storefront-core@7.44.0
2294
-
2295
- ## 7.60.1
2296
-
2297
- ### Patch Changes
2298
-
2299
- - Prioritize the execution of `bootstrap` middleware so storefront server middlewares can depend on the extended `event.context`
2300
-
2301
- If your middleware depends on the `event.context` properties, it must be registered as a `serverHandler` and not automatically scanned from the `~/server/middleware` directory.
2302
-
2303
- ## 7.60.0
2304
-
2305
- ### Minor Changes
2306
-
2307
- - ### Log Configuration changes
2308
-
2309
- Consolidate the logging configuration for `@scayle/storefront-nuxt`.
2310
-
2311
- Going forward, the logging needs to be configured on the public runtime that you can control through the `NUXT_PUBLIC_STOREFRONT_LOG_NAME` and `NUXT_PUBLIC_STOREFRONT_LOG_LEVEL` override parameters.
2312
-
2313
- We have also removed this setting from the module options and the private runtime to prevent misconfigurations.
2314
-
2315
- ### Authentication Config
2316
-
2317
- We removed the authentication config as it's not required for the Storefront Nuxt application.
2318
-
2319
- ## 7.59.0
2320
-
2321
- ### Minor Changes
2322
-
2323
- - Breaking: Change default `sameSite` cookie attribute from `none` to `lax`
2324
- - Attach `headers` to the RPC context
2325
-
2326
- ### Patch Changes
2327
-
2328
- - Updated dependencies
2329
- - @scayle/storefront-core@7.43.0
2330
-
2331
- ## 7.58.3
2332
-
2333
- ### Patch Changes
2334
-
2335
- - Update `/api/up` endpoint to also support non-GET requests
2336
-
2337
- ## 7.58.2
2338
-
2339
- ### Patch Changes
2340
-
2341
- - Fix missing IP address on the RpcContext
2342
-
2343
- ## 7.58.1
2344
-
2345
- ### Patch Changes
2346
-
2347
- - Updated dependencies
2348
- - @scayle/storefront-core@7.42.1
2349
-
2350
- ## 7.58.0
2351
-
2352
- ### Minor Changes
2353
-
2354
- - Add `useCategoryByPath` composable
2355
-
2356
- ### Patch Changes
2357
-
2358
- - Updated dependencies
2359
- - @scayle/storefront-core@7.42.0
2360
- - @scayle/unstorage-compression-driver@0.1.2
2361
-
2362
- ## 7.57.4
2363
-
2364
- ### Patch Changes
2365
-
2366
- - Updated dependencies
2367
- - @scayle/storefront-core@7.41.3
2368
-
2369
- ## 7.57.3
2370
-
2371
- ### Patch Changes
2372
-
2373
- - Updated dependencies
2374
- - @scayle/storefront-core@7.41.2
2375
-
2376
- ## 7.57.2
2377
-
2378
- ### Patch Changes
2379
-
2380
- - Updated dependencies
2381
- - @scayle/storefront-core@7.41.1
2382
-
2383
- ## 7.57.1
2384
-
2385
- ### Patch Changes
2386
-
2387
- - Update to `nuxt@3.10.2`
2388
-
2389
- ## 7.57.0
2390
-
2391
- ### Minor Changes
2392
-
2393
- - Strip sensitive data from log messages
2394
-
2395
- ### Patch Changes
2396
-
2397
- - Updated dependencies
2398
- - @scayle/storefront-core@7.41.0
2399
-
2400
- ## 7.56.0
2401
-
2402
- ### Minor Changes
2403
-
2404
- - Updated to `nuxt@3.10.1` and `vue@3.4.19` (_For more details check the [Nuxt 3.10.1 Release Notes](https://nuxt.com/blog/v3-10) and [Vue 3.4.19 Changelogs](https://github.com/vuejs/core/blob/main/CHANGELOG.md#3418-2024-02-09)_)
2405
-
2406
- ### Patch Changes
2407
-
2408
- - Updated dependencies
2409
- - @scayle/storefront-core@7.40.1
2410
-
2411
- ## 7.55.3
2412
-
2413
- ### Patch Changes
2414
-
2415
- - Updated dependencies
2416
- - @scayle/storefront-core@7.40.0
2417
-
2418
- ## 7.55.2
2419
-
2420
- ### Patch Changes
2421
-
2422
- - Updated dependencies
2423
- - @scayle/storefront-core@7.39.1
2424
-
2425
- ## 7.55.1
2426
-
2427
- ### Patch Changes
2428
-
2429
- - Skip basic auth when `auth.username` or `auth.password` is nullish
2430
-
2431
- ## 7.55.0
2432
-
2433
- ### Minor Changes
2434
-
2435
- - Export `unwrap()` from `@scayle/storefront-core`
2436
-
2437
- ## 7.54.0
2438
-
2439
- ### Minor Changes
2440
-
2441
- - Authentication RPC methods include status codes in error cases
2442
-
2443
- ### Patch Changes
2444
-
2445
- - Updated dependencies
2446
- - @scayle/storefront-core@7.39.0
2447
-
2448
- ## 7.53.1
2449
-
2450
- ### Patch Changes
2451
-
2452
- - Fix potential empty user after login
2453
- - Updated dependencies
2454
- - @scayle/storefront-core@7.38.1
2455
-
2456
- ## 7.53.0
2457
-
2458
- ### Minor Changes
2459
-
2460
- - Nest public `runtimeConfig` properties under the `storefront` key
2461
-
2462
- Breaking: `useRuntimeConfig().public.log` and `useRuntimeConfig().public.auth` should be replaced by `useRuntimeConfig().public.storefront.log` and `useRuntimeConfig().public.storefront.log`
2463
-
2464
- ## 7.52.0
2465
-
2466
- ### Minor Changes
2467
-
2468
- - Allow the session of an `RpcContext` to be undefined
2469
-
2470
- BREAKING: This changes the structure of the `RpcContext`, so it may be a breaking change if you have written custom RPC methods.
2471
-
2472
- The affected properties on the `RpcContext` are `sessionId`, `wishlistKey` and `basketKey` and the affected methods are `destroySession`, `createUserBoundSession`, `updateUser`, and `updateTokens`. If you use these methods or properties in a custom RPC method, make sure that you handle the case where they might be undefined. TypeScript will also catch these cases if you have `strictNullChecks` enabled.
2473
-
2474
- You can check `context.sessionId` (or another session-dependent property) to determine if the session is present. If one of these properties is present, all will be. Alternatively, you can call `assertSession(context)` before referencing any properties on the context. If the session is not present, an error will be thrown. For any usage of `context` after `assertSession` is called, TypeScript will understand that the session properties are present.
2475
-
2476
- - Do not attach session for cached request
2477
-
2478
- ### Patch Changes
2479
-
2480
- - Updated dependencies
2481
- - @scayle/storefront-core@7.38.0
2482
-
2483
- ## 7.51.2
2484
-
2485
- ### Patch Changes
2486
-
2487
- - Updated to `nuxt@3.9.3` and `vue@3.4.15` (\__For more details check the [Nuxt 3.9.3 Release Notes](https://github.com/nuxt/nuxt/releases/tag/v3.9.3) and [Vue 3.4.15 Changelogs](https://github.com/vuejs/core/blob/main/CHANGELOG.md#3415-2024-01-18)_)
2488
-
2489
- **NOTE: The minimum supported versions of the `@scayle/storefront-nuxt` package are `nuxt >=3.9.0` and `vue >=3.4.0`. Please update your application stack accordingly.**
2490
-
2491
- - useRpc - clear error state when re-fetching
2492
-
2493
- ## 7.51.1
2494
-
2495
- ### Patch Changes
2496
-
2497
- - Updated to `nuxt@3.9.2` and `vue@3.4.14` (_For more details check the [Nuxt 3.9.2 Release Notes](https://github.com/nuxt/nuxt/releases/tag/v3.9.2) and [Vue 3.4.14 Changelogs](https://github.com/vuejs/core/blob/main/CHANGELOG.md#3414-2024-01-15_)
2498
-
2499
- **NOTE: The minimum supported versions of the `@scayle/storefront-nuxt` package are `nuxt >=3.9.0` and `vue >=3.4.0`. Please update your application stack accordingly.**
2500
-
2501
- ## 7.51.0
2502
-
2503
- ### Minor Changes
2504
-
2505
- - Update dependency `jose` to the latest `5.2.0` version
2506
-
2507
- ### Patch Changes
2508
-
2509
- - Updated dependencies
2510
- - @scayle/storefront-core@7.37.0
2511
-
2512
- ## 7.50.1
2513
-
2514
- ### Patch Changes
2515
-
2516
- - Update to `vue@3.4.10` (​For detailed changes see [Changelog for Vue](https://github.com/vuejs/core/blob/main/CHANGELOG.md)​)
2517
-
2518
- ## 7.50.0
2519
-
2520
- ### Minor Changes
2521
-
2522
- - Update to `nuxt@3.9.1` and `vue@3.4.7` (_For detailed changes see [Blog post: Nuxt 3.9](https://nuxt.com/blog/v3-9) and [Blog post: Announcing Vue 3.4](https://blog.vuejs.org/posts/vue-3-4)_)
2523
-
2524
- **Please note that `@scayle/storefront-nuxt` is now compatible with `nuxt@9.0.0` or higher!**
2525
-
2526
- ### Patch Changes
2527
-
2528
- - Updated dependencies
2529
- - @scayle/h3-session@0.3.5
2530
-
2531
- ## 7.49.0
2532
-
2533
- ### Minor Changes
2534
-
2535
- - Support `Response` returns in RPC methods
2536
-
2537
- 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.
2538
-
2539
- There is an `unwrap` function exported by this package (>=7.55.0) that can be used to normalize the type.
2540
-
2541
- - Handle 401 from CO and delete session
2542
-
2543
- ### Patch Changes
2544
-
2545
- - Updated dependencies
2546
- - @scayle/storefront-core@7.36.0
2547
-
2548
- ## 7.48.2
2549
-
2550
- ### Patch Changes
2551
-
2552
- - Updated dependencies
2553
- - @scayle/storefront-core@7.35.0
2554
-
2555
- ## 7.48.1
2556
-
2557
- ### Patch Changes
2558
-
2559
- - Updated dependencies
2560
- - @scayle/storefront-core@7.34.1
2561
-
2562
- ## 7.48.0
2563
-
2564
- ### Minor Changes
2565
-
2566
- - We added support for Identity Provider (IDP), enhancing our authentication and identity management capabilities.
2567
-
2568
- ### Patch Changes
2569
-
2570
- - Fix runtime crash when using md5 for appKeys
2571
- - Updated dependencies
2572
- - @scayle/storefront-core@7.34.0
2573
-
2574
- ## 7.47.0
2575
-
2576
- ### Minor Changes
2577
-
2578
- - Create a shared logger instance per-server instead of per-request
2579
-
2580
- ## 7.46.1
2581
-
2582
- ### Patch Changes
2583
-
2584
- - Updated dependencies
2585
- - @scayle/storefront-core@7.33.0
2586
-
2587
- ## 7.46.0
2588
-
2589
- ### Minor Changes
2590
-
2591
- - Use new password change API when oauth is enabled
2592
-
2593
- ### Patch Changes
2594
-
2595
- - Locale is optional in formatCurrency
2596
- - Updated dependencies
2597
- - @scayle/storefront-core@7.32.0
2598
-
2599
- ## 7.45.0
2600
-
2601
- ### Minor Changes
2602
-
2603
- - Migrate currency formatters to a composable
2604
-
2605
- Because the currency formatter functions depend on the `useCurrentShop` composable, they must also be initialized through a composable. Additionally, because `formatPrice` was the same as `toCurrency` except that it excluded the symbol, the two functions have been merged into `formatCurrency`. If you don't want the currency symbol to be displayed, set the `style` option to `decimal`. These changes requires a small migration step.
2606
-
2607
- Before:
2608
-
2609
- ```typescript
2610
- toCurrency(100, { currency: 'EUR' })
2611
- formatPrice(100, { currencyFractionDigits: 2 })
2612
- ```
2613
-
2614
- After:
2615
-
2616
- ```typescript
2617
- const { formatCurrency } = useFormatHelpers()
2618
- formatCurrency(100, { currency: 'EUR' })
2619
- formatCurrency(100, { style: 'decimal', currencyFractionDigits: 2 })
2620
- ```
2621
-
2622
- ## 7.44.1
2623
-
2624
- ### Patch Changes
2625
-
2626
- - The api/up route should not be bootstrapped with the context
2627
-
2628
- ## 7.44.0
2629
-
2630
- ### Minor Changes
2631
-
2632
- - Update SAPI SDK to v16
2633
-
2634
- ### Patch Changes
2635
-
2636
- - Fix error when mounting vercelKV driver with default options
2637
- - Updated dependencies
2638
- - @scayle/storefront-core@7.31.0
2639
-
2640
- ## 7.43.1
2641
-
2642
- ### Patch Changes
2643
-
2644
- - Updated dependencies
2645
- - @scayle/storefront-core@7.30.0
2646
-
2647
- ## 7.43.0
2648
-
2649
- ### Minor Changes
2650
-
2651
- - Extend `StorageEntity` with optional `compression: 'none' | 'deflate' | 'gzip' | 'brotli'` option.
2652
- Modify [unstorage](https://unstorage.unjs.io/) driver creation during server startup to configure`@scayle/unstorage-compression-driver` if value of `compression` is set to a supported compression algorithm.
2653
-
2654
- ### Patch Changes
2655
-
2656
- - Ensure correct unstorage drivers are bundled
2657
- - Updated dependencies
2658
- - @scayle/unstorage-compression-driver@0.1.1
2659
- - @scayle/storefront-core@7.29.0
2660
-
2661
- ## 7.42.3
2662
-
2663
- ### Patch Changes
2664
-
2665
- - Fix incorrect parsing of legacy config
2666
- - Include missing unstorage drivers in final build
2667
- - Updated dependencies
2668
- - @scayle/storefront-core@7.28.2
2669
-
2670
- ## 7.42.2
2671
-
2672
- ### Patch Changes
2673
-
2674
- - Ensure `useNuxtApp` is only called from a composable context in `useCategories`
2675
-
2676
- ## 7.42.1
2677
-
2678
- ### Patch Changes
2679
-
2680
- - Ensure useNuxtApp is only called from a composable context
2681
-
2682
- ## 7.42.0
2683
-
2684
- ### Minor Changes
2685
-
2686
- - Unify Storefront Core cache handling using the [Nitro Storage Layer - Mountpoints](https://www.nitropack.org/guide/storage#mountpoints)
2687
-
2688
- This release changes how cache and session storage is managed in Storefront Core. Storefront Core will now use the `storefront-cache` mountpoint as the root for its cache storage, and `storefront-session` for sessions storage. These can be manually configured through Nitro, but Storefront Core also now includes `storefront.storage.cache` and `storefront.storage.session` config options to automatically create these mountpoints.
2689
-
2690
- `storefront.storage.cache` is used to configure the primary global cache storage mounted under `storefront-cache`. If not configured, a dedicated memory driver is used.
2691
-
2692
- `storefront.storage.session` is used to configure the global session storage mounted under `storefront-session`. If not configured, a dedicated memory driver is used.
2693
-
2694
- The config options `storefront.redis`, `storefront.stores[X].redis`, `storefront.session.provider` and `storefront.cache.provider` have been deprecated in favor of the new `storage` config. In a future version, they will be replaced.
2695
-
2696
- ### Patch Changes
2697
-
2698
- - Update to Nuxt `v3.8.2` (See [Nuxt v3.8.2 Release notes](https://github.com/nuxt/nuxt/releases/tag/v3.8.2) for details.)
2699
-
2700
- ## 7.41.0
2701
-
2702
- ### Minor Changes
2703
-
2704
- - Add `campaignKey` to the RPC context
2705
-
2706
- ## 7.40.6
2707
-
2708
- ### Patch Changes
2709
-
2710
- - Updated dependencies
2711
- - @scayle/storefront-core@7.28.1
2712
-
2713
- ## 7.40.5
2714
-
2715
- ### Patch Changes
2716
-
2717
- - Allow setting the log level in the module config
2718
- - Prevent infinite loops when log writing fails
2719
- - Updated dependencies
2720
- - @scayle/storefront-core@7.28.0
2721
-
2722
- ## 7.40.4
2723
-
2724
- ### Patch Changes
2725
-
2726
- - Resolve error with newly introduced `nitro` plugin during local dev mode
2727
-
2728
- ## 7.40.3
2729
-
2730
- ### Patch Changes
2731
-
2732
- - Introduce `nitro` server plugin to override `x-powered-by` header default value of `Nuxt` with `SCAYLE Storefront by SCAYLE Commerce Engine - www.scayle.com`
2733
-
2734
- ## 7.40.2
2735
-
2736
- ### Patch Changes
2737
-
2738
- - Updated dependencies
2739
- - @scayle/storefront-core@7.27.0
2740
-
2741
- ## 7.40.1
2742
-
2743
- ### Patch Changes
2744
-
2745
- - Updated dependencies
2746
- - @scayle/storefront-core@7.26.0
2747
-
2748
- ## 7.40.0
2749
-
2750
- ### Minor Changes
2751
-
2752
- - Update to Nuxt `v3.8.1` (See [Nuxt 3.8 Release Notes](https://github.com/nuxt/nuxt/releases/tag/v3.8.0) and [Nuxt 3.8.1 Release Notes](https://github.com/nuxt/nuxt/releases/tag/v3.8.1) for more details.)
2753
- - Refactored imports to be compatible with TypeScript `verbatimModuleSyntax` option (See [TypeScript 5.0 - verbatimModuleSyntax](https://www.typescriptlang.org/docs/handbook/release-notes/typescript-5-0.html#--verbatimmodulesyntax) for more details.)
2754
- - Update to Vue `v3.3.8` (See [Vue 3.3.8 Release notes](https://github.com/vuejs/core/blob/main/CHANGELOG.md#338-2023-11-06) for more details.)
2755
-
2756
- ## 7.39.0
2757
-
2758
- ### Minor Changes
2759
-
2760
- - Redirects should use the cache provider configured for the shop
2761
-
2762
- ### Patch Changes
2763
-
2764
- - Updated dependencies
2765
- - @scayle/storefront-core@7.25.1
2766
-
2767
- ## 7.38.1
2768
-
2769
- ### Patch Changes
2770
-
2771
- - Updated dependencies
2772
- - @scayle/storefront-core@7.25.0
2773
-
2774
- ## 7.38.0
2775
-
2776
- ### Minor Changes
2777
-
2778
- - Ensure the session is not shared between different country shops
2779
-
2780
- ## 7.37.2
2781
-
2782
- ### Patch Changes
2783
-
2784
- - Updated dependencies
2785
- - @scayle/storefront-core@7.24.1
2786
-
2787
- ## 7.37.1
2788
-
2789
- ### Patch Changes
2790
-
2791
- - Updated dependencies
2792
- - @scayle/storefront-core@7.24.0
2793
-
2794
- ## 7.37.0
2795
-
2796
- ### Minor Changes
2797
-
2798
- - Add `runtimeConfiguration` property to the `RPCContext`
2799
- - Breaking: Remove re-exported `useEventListener` composable
2800
-
2801
- Import the composable directly from @vueuse/core
2802
-
2803
- ### Patch Changes
2804
-
2805
- - Updated dependencies
2806
- - @scayle/storefront-core@7.23.0
2807
-
2808
- ## 7.36.3
2809
-
2810
- ### Patch Changes
2811
-
2812
- - Add license file
2813
- - Updated dependencies
2814
- - @scayle/storefront-core@7.22.1
2815
- - @scayle/h3-session@0.3.4
2816
-
2817
- ## 7.36.2
2818
-
2819
- ### Patch Changes
2820
-
2821
- - Fix SFC_OMIT_MD5 not being respected
2822
-
2823
- ## 7.36.1
2824
-
2825
- ### Patch Changes
2826
-
2827
- - Updated dependencies
2828
- - @scayle/storefront-core@7.22.0
2829
-
2830
- ## 7.36.0
2831
-
2832
- ### Minor Changes
2833
-
2834
- - Breaking: Remove imageBaseUrl from the config. This property is no longer used in the Nuxt3 package.
2835
-
2836
- ## 7.35.0
2837
-
2838
- ### Minor Changes
2839
-
2840
- - Updated to latest Vue version `v3.3.7`
2841
-
2842
- ## 7.34.0
2843
-
2844
- ### Minor Changes
2845
-
2846
- - Updated to latest Vue version `v3.3.6`
2847
-
2848
- ## 7.33.0
2849
-
2850
- ### Minor Changes
2851
-
2852
- - Add promotion data to the `addItemToBasket` method
2853
- - Add `usePromotions`, `useCurrentPromotions` & `usePromotionsByIds` composables
2854
-
2855
- ### Patch Changes
2856
-
2857
- - Updated dependencies
2858
- - @scayle/storefront-core@7.21.0
2859
-
2860
- ## 7.32.3
2861
-
2862
- ### Patch Changes
2863
-
2864
- - Updated dependencies
2865
- - @scayle/h3-session@0.3.3
2866
-
2867
- ## 7.32.2
2868
-
2869
- ### Patch Changes
2870
-
2871
- - Updated dependencies
2872
- - @scayle/storefront-core@7.20.0
2873
-
2874
- ## 7.32.1
2875
-
2876
- ### Patch Changes
2877
-
2878
- - The `auth` config is optional
2879
- - Updated dependencies
2880
- - @scayle/storefront-core@7.19.1
2881
-
2882
- ## 7.32.0
2883
-
2884
- ### Minor Changes
2885
-
2886
- - Make the `shop` param required in `rpcCall`
2887
-
2888
- ## 7.31.0
2889
-
2890
- ### Minor Changes
2891
-
2892
- - Support setting default `with` params in the module options
2893
-
2894
- ### Patch Changes
2895
-
2896
- - Updated dependencies
2897
- - @scayle/storefront-core@7.19.0
2898
-
2899
- ## 7.30.1
2900
-
2901
- ### Patch Changes
2902
-
2903
- - Add timing to RPC log message
2904
-
2905
- ## 7.30.0
2906
-
2907
- ### Minor Changes
2908
-
2909
- - Pass `withParams` through the private runtime storefront config
2910
-
2911
- ## 7.29.1
2912
-
2913
- ### Patch Changes
2914
-
2915
- - Updated dependencies
2916
- - @scayle/storefront-core@7.18.0
2917
-
2918
- ## 7.29.0
2919
-
2920
- ### Minor Changes
2921
-
2922
- - Improve `useFacet` & `useQueryFilterState` computed types and `useRpc` error state type
2923
-
2924
- ### Patch Changes
2925
-
2926
- - Fix build warning caused by `createError` import
2927
- - Updated dependencies
2928
- - @scayle/storefront-core@7.17.0
2929
-
2930
- ## 7.28.0
2931
-
2932
- ### Minor Changes
2933
-
2934
- - Handle errors and return proper status codes for RPC methods
2935
-
2936
- ## 7.27.0
2937
-
2938
- ### Minor Changes
2939
-
2940
- - Add `cbdExpiration` to the checkout config to support expiring CBD tokens
2941
-
2942
- ### Patch Changes
2943
-
2944
- - Updated dependencies
2945
- - @scayle/storefront-core@7.16.0
2946
-
2947
- ## 7.26.0
2948
-
2949
- ### Minor Changes
2950
-
2951
- - Breaking: Minimum node version is 20.7.0
2952
- - Import `computed` from `vue` instead of `#imports`
2953
- - Use default withParams config for `useProducts`, `useProduct`, `useProductsByIds`, `useVariant` and `usSearch`
2954
-
2955
- ### Patch Changes
2956
-
2957
- - Updated dependencies
2958
- - @scayle/storefront-core@7.15.1
2959
-
2960
- ## 7.25.3
2961
-
2962
- ### Patch Changes
2963
-
2964
- - Avoid pulling in `redis` package as an accidental dependency
2965
- - Add sideEffects false
2966
- - Updated dependencies
2967
- - @scayle/storefront-core@7.15.0
2968
-
2969
- ## 7.25.2
2970
-
2971
- ### Patch Changes
2972
-
2973
- - Updated dependencies
2974
- - @scayle/storefront-core@7.14.3
2975
-
2976
- ## 7.25.1
2977
-
2978
- ### Patch Changes
2979
-
2980
- - Improve imports of useBasket
2981
-
2982
- ## 7.25.0
2983
-
2984
- ### Minor Changes
2985
-
2986
- - Mark `autoFetch` as optional option for `useRpc`. The default is `true`.
2987
-
2988
- ## 7.24.0
2989
-
2990
- ### Minor Changes
2991
-
2992
- - Always `await` autoFetched `useRpc` during SSR
2993
-
2994
- ## 7.23.0
2995
-
2996
- ### Minor Changes
2997
-
2998
- - Add `lazy` option to `useRpc` options. This will allow fetching data without blocking client side navigation.
2999
-
3000
- ## 7.22.4
3001
-
3002
- ### Patch Changes
3003
-
3004
- - Use unstorage for all redis caches
3005
- - Updated dependencies
3006
- - @scayle/storefront-core@7.14.2
3007
-
3008
- ## 7.22.3
3009
-
3010
- ### Patch Changes
3011
-
3012
- - Updated dependencies
3013
- - @scayle/storefront-core@7.14.1
3014
-
3015
- ## 7.22.2
3016
-
3017
- ### Patch Changes
3018
-
3019
- - Remove useCurrentShop from rpcCall
3020
- - Allow setting apiBasePath on shop config
3021
-
3022
- ## 7.22.1
3023
-
3024
- ### Patch Changes
3025
-
3026
- - Fix redis connection in redirects module
3027
-
3028
- ## 7.22.0
3029
-
3030
- ### Minor Changes
3031
-
3032
- - Change storefront composables signatures to be an options object
3033
-
3034
- ## 7.21.0
3035
-
3036
- ### Minor Changes
3037
-
3038
- - Support apiBasePath option
3039
-
3040
- ## 7.20.2
3041
-
3042
- ### Patch Changes
3043
-
3044
- - Add api/up handler
3045
-
3046
- ## 7.20.1
3047
-
3048
- ### Patch Changes
3049
-
3050
- - Fix issue where errors within `useRpc` could not be serialized.
3051
-
3052
- ## 7.20.0
3053
-
3054
- ### Minor Changes
3055
-
3056
- - `useRpc` and composables that are based on `useRpc` now expose `status` and `error`, to allow error handling.
3057
-
3058
- ### Patch Changes
3059
-
3060
- - Updated dependencies
3061
- - @scayle/h3-session@0.3.2
3062
-
3063
- ## 7.19.0
3064
-
3065
- ### Minor Changes
3066
-
3067
- - Set OAuth settings when building the context to support runtime OAuth configuration
3068
- - Support enabling/disabling the cache using the runtime config
3069
-
3070
- ### Patch Changes
3071
-
3072
- - Updated dependencies
3073
- - @scayle/storefront-core@7.14.0
3074
-
3075
- ## 7.18.2
3076
-
3077
- ### Patch Changes
3078
-
3079
- - `runtimeConfig.storefront.stores` now only accepts `ShopConfigIndexed` objects as value to simplify the usage.
3080
- Passing a `ShopConfig[]` array into `runtimeConfig.storefront.stores` can lead to runtime errors.
3081
-
3082
- ## 7.18.1
3083
-
3084
- ### Patch Changes
3085
-
3086
- - Updated dependencies
3087
- - @scayle/storefront-core@7.13.0
3088
-
3089
- ## 7.18.0
3090
-
3091
- ### Minor Changes
3092
-
3093
- - Provide option to pass `shopConfig` either as an array/list (`shopConfig[]`) or as an object (`shopConfigIndexed`) to make them overridable as part of the `runtimeConfig`.
3094
- Internally they are still processed as array/list.
3095
-
3096
- ### Patch Changes
3097
-
3098
- - Add sub dependencies `isomorphic-dompurify` and `slugify` to `optimizeDeps` list
3099
-
3100
- ## 7.17.0
3101
-
3102
- ### Minor Changes
3103
-
3104
- - Add explicit vue/nuxt specific stuff imports
3105
- - Make `ToCurrencyOptions` of `toCurrency` and `FormatOptions` of `formatPrice` optional. They use the currentShop config as default.
3106
-
3107
- ## 7.16.0
3108
-
3109
- ### Minor Changes
3110
-
3111
- - `runtimeConfig.$storefront` is now just `runtimeConfig.storefront`
3112
-
3113
- ## 7.15.1
3114
-
3115
- ### Patch Changes
3116
-
3117
- - added missing slash for bapi.host default
3118
- - add missing auth section for PublicRuntimeConfig module declaration
3119
- - extend vite config as part of module setup and include storefront and axios (sapi) package for optimizeDeps include list
3120
- - set module nuxt compatibility to nuxt@3.7.0 or higher
3121
- - Updated dependencies
3122
- - @scayle/h3-session@0.3.1
3123
-
3124
- ## 7.15.0
3125
-
3126
- ### Minor Changes
3127
-
3128
- - Replace `lodash` with `radash`
3129
-
3130
- ## 7.14.0
3131
-
3132
- ### Minor Changes
3133
-
3134
- - Add auth options within the module options
3135
-
3136
- ### Patch Changes
3137
-
3138
- - Support server-side autoFetch for useUser, useWishlist and useBasket
3139
- - Updated dependencies
3140
- - @scayle/storefront-core@7.12.2
3141
-
3142
- ## 7.13.0
3143
-
3144
- ### Minor Changes
3145
-
3146
- - `withParams` are now exposed though `useRuntimeConfig().public` instead of `useRuntimeConfig().$storefront`
3147
-
3148
- ### Patch Changes
3149
-
3150
- - Remove usages of `event.node.req`
3151
- - Updated dependencies
3152
- - @scayle/h3-session@0.3.0
3153
-
3154
- ## 7.12.0
3155
-
3156
- ### Minor Changes
3157
-
3158
- - Make composables share state across every instance.
3159
-
3160
- ### Patch Changes
3161
-
3162
- - Updated dependencies
3163
- - @scayle/h3-session@0.2.1
3164
-
3165
- ## 7.11.0
3166
-
3167
- ### Minor Changes
3168
-
3169
- - Support top-level and shop-level definitions for bapi, appKeys, and redis configs
3170
-
3171
- ### Patch Changes
3172
-
3173
- - Add isEnabled to ShopConfig options
3174
- - Update `rpcCall` to accept a `NuxtApp` instance as its first parameter
3175
-
3176
- ## 7.10.0
3177
-
3178
- ### Minor Changes
3179
-
3180
- - Add useUserAddresses composable
3181
- - Add useNavigationTree and useNavigationTrees composables
3182
- - Add useOrder and useOrderConfirmation composables
3183
-
3184
- ### Patch Changes
3185
-
3186
- - Updated dependencies
3187
- - @scayle/storefront-core@7.12.1
3188
-
3189
- ## 7.9.0
3190
-
3191
- ### Minor Changes
3192
-
3193
- - Wrap `refreshProductCount` in `useFacet` composable so that have proper where condition typing
3194
-
3195
- ### Patch Changes
3196
-
3197
- - Prevent nuxt from setting wrong default value to `session.maxAge` in module options
3198
- - Add `refreshProductCount` filter params default
3199
-
3200
- ## 7.8.1
3201
-
3202
- ### Patch Changes
3203
-
3204
- - Make selection of fetch function in `rpcCall` null safe
3205
- - Make `params` parameter within the `useBasket` and `useWishlist` optional
3206
- - Ensure that the accessing `withParams` is null safe within the `useBasket`
3207
- and `useWishlist` composables
3208
-
3209
- ## 7.8.0
3210
-
3211
- ### Minor Changes
3212
-
3213
- - Add sessions module
3214
-
3215
- ### Patch Changes
3216
-
3217
- - Updated dependencies
3218
- - @scayle/h3-session@0.2.0
3219
-
3220
- ## 7.7.0
3221
-
3222
- ### Minor Changes
3223
-
3224
- - Introduce `withParams` storefront option
3225
-
3226
- ## 7.6.1
3227
-
3228
- ### Patch Changes
3229
-
3230
- - Share context between RPC requests
3231
- - Updated dependencies
3232
- - @scayle/storefront-core@7.12.0
3233
-
3234
- ## 7.6.0
3235
-
3236
- ### Minor Changes
3237
-
3238
- - Adjust `fetching` prop of useRpc to reflect more nuxt2 behavior
3239
- - Move `deserializeFilters` and `serializeFilters` to `@scayle/storefront-core`
3240
- - Extend existing composables return object with `status` and `error`
3241
- - Add `price` utils
3242
- - Add useFacet and useQueryFilterState composable
3243
-
3244
- ### Patch Changes
3245
-
3246
- - Updated dependencies
3247
- - @scayle/storefront-core@7.11.0
3248
-
3249
- ## 7.5.0
3250
-
3251
- ### Minor Changes
3252
-
3253
- - Add `useBasket`, `useWishlist` and `useEventListener` composables
3254
-
3255
- ## 7.4.0
3256
-
3257
- ### Minor Changes
3258
-
3259
- - Add redirects module
3260
-
3261
- ## 7.3.3
3262
-
3263
- ### Patch Changes
3264
-
3265
- - Updated dependencies
3266
- - @scayle/storefront-core@7.10.2
3267
-
3268
- ## 7.3.2
3269
-
3270
- ### Patch Changes
3271
-
3272
- - Updated dependencies
3273
- - @scayle/storefront-core@7.10.1
3274
-
3275
- ## 7.3.1
3276
-
3277
- ### Patch Changes
3278
-
3279
- - Updated dependencies
3280
- - @scayle/storefront-core@7.10.0
3281
-
3282
- ## 7.3.0
3283
-
3284
- ### Minor Changes
3285
-
3286
- - Add cache module
3287
-
3288
- ### Patch Changes
3289
-
3290
- - Updated dependencies
3291
- - @scayle/storefront-core@7.9.0
3292
-
3293
- ## 7.2.0
3294
-
3295
- ### Minor Changes
3296
-
3297
- - Support client- and server-side RPC calls
3298
- - Add useCurrentShop and useAvailableShops composables
3299
- - Add useSearch composable
3300
- - Add logging module and useLog composable
3301
- - Add useRpc composable
3302
- - Allow passing AsyncDataOptions to useRpc
3303
- - Add useShopConfiguration composable
3304
- - Add useFilters, useProduct, useProductsCount, useProductsByIds and useVariant composables
3305
- - Add useBrand and useBrands composables
3306
-
3307
- ### Patch Changes
3308
-
3309
- - Add useProducts composable
3310
- - Add useCategories composable
3311
- - Updated dependencies
3312
- - @scayle/storefront-core@7.8.0
3313
-
3314
- ## 7.1.5
3315
-
3316
- ### Patch Changes
3317
-
3318
- - Updated dependencies
3319
- - @scayle/storefront-core@7.7.1
3320
-
3321
- ## 7.1.4
3322
-
3323
- ### Patch Changes
3324
-
3325
- - Updated dependencies
3326
- - @scayle/storefront-core@7.7.0
3327
-
3328
- ## 7.1.3
3329
-
3330
- ### Patch Changes
3331
-
3332
- - Updated dependencies
3333
- - @scayle/storefront-core@7.6.1
3334
-
3335
- ## 7.1.2
3336
-
3337
- ### Patch Changes
3338
-
3339
- - Updated dependencies
3340
- - @scayle/storefront-core@7.6.0
3341
-
3342
- ## 7.1.1
3343
-
3344
- ### Patch Changes
3345
-
3346
- - Add exports from storefront-core
3347
-
3348
- ## 7.1.0
3349
-
3350
- ### Minor Changes
3351
-
3352
- - Add possibility to define the session config on application and store level.
3353
- - Add possibility to configure the `domain` attribute of the session cookie
3354
-
3355
- ## 7.0.0
3356
-
3357
- ### Major Changes
3358
-
3359
- - **Changed NPM package names**
3360
-
3361
- - **Breaking**: Change package scope and name of `@aboutyou/scayle-sfc-nuxt` to `@scayle/storefront-nuxt2`
3362
- - **Breaking**: Change package scope and name of `@aboutyou/sfc-nuxt3` to `@scayle/storefront-nuxt`
3363
- - **Breaking**: Change package scope and name of `@aboutyou/scayle-sfc-lib` to `@scayle/storefront-core`
3364
- - **Breaking**: Change package scope and name of `@aboutyou/eslint-config-sfc` to `@scayle/eslint-config-storefront`
3365
- - **Breaking**: Change package scope and name of `@aboutyou/prettier-config-sfc` to `@scayle/prettier-config-storefront`
3366
-
3367
- _NOTE: Due to the changes of the NPM package scope from `@aboutyou` to `@scayle`,
3368
- it is required to change the consuming projects local `.npmrc` file as follows:_
3369
-
3370
- - Before:
3371
-
3372
- ```
3373
- @aboutyou:registry=https://gitlab.com/api/v4/packages/npm/
3374
- ```
3375
-
3376
- - After:
3377
-
3378
- ```
3379
- @aboutyou:registry=https://gitlab.com/api/v4/projects/29746107/packages/npm/
3380
- @scayle:registry=https://gitlab.com/api/v4/projects/29746107/packages/npm/
3381
- ```
3382
-
3383
- - **Breaking**: Minimum `node` version raised to `18.15.0`
3384
-
3385
- ## 7.0.0-alpha.0
3386
-
3387
- ### Major Changes
3388
-
3389
- - **Changed NPM package names**
3390
-
3391
- - **Breaking**: Change package scope and name of `@aboutyou/scayle-sfc-nuxt` to `@scayle/storefront-nuxt2`
3392
- - **Breaking**: Change package scope and name of `@aboutyou/sfc-nuxt3` to `@scayle/storefront-nuxt`
3393
- - **Breaking**: Change package scope and name of `@aboutyou/scayle-sfc-lib` to `@scayle/storefront-core``
3394
- - **Breaking**: Change package scope and name of `@aboutyou/eslint-config-sfc` to `@scayle/eslint-config-storefront`
3395
- - **Breaking**: Change package scope and name of `@aboutyou/prettier-config-sfc` to `@scayle/prettier-config-storefront`
3396
-
3397
- Due to the changes of the NPM package scope from `@aboutyou` to `@scayle`,
3398
- it is required to change the consuming projects local `.npmrc` file as follows:
3399
-
3400
- - Before: `@aboutyou:registry=https://gitlab.com/api/v4/packages/npm/`
3401
- - After: `@scayle:registry=https://gitlab.com/api/v4/packages/npm/`
3402
-
3403
- - Minimum node version is 18.15.0