@scayle/storefront-nuxt 8.12.1 → 8.12.3

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