@scayle/storefront-core 7.42.0 → 7.42.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # @scayle/storefront-core
2
2
 
3
+ ## 7.42.1
4
+
5
+ ### Patch Changes
6
+
7
+ - Fix usage of the same cache key prefix for `getCategoryByPath`
8
+
3
9
  ## 7.42.0
4
10
 
5
11
  ### Minor Changes
@@ -36,7 +36,7 @@ const getCategoryByPath = exports.getCategoryByPath = async function getCategory
36
36
  } = context;
37
37
  const sanitizedPath = (0, _helpers.splitAndRemoveEmpty)(path);
38
38
  return await cached(bapiClient.categories.getByPath, {
39
- cacheKeyPrefix: `getByPath-categories-${sanitizedPath}`
39
+ cacheKeyPrefix: `getByPath-category-${sanitizedPath}`
40
40
  })(sanitizedPath, {
41
41
  with: {
42
42
  children
@@ -15,7 +15,7 @@ export const getCategoryByPath = async function getCategoryByPath2({ path, child
15
15
  const { cached, bapiClient } = context;
16
16
  const sanitizedPath = splitAndRemoveEmpty(path);
17
17
  return await cached(bapiClient.categories.getByPath, {
18
- cacheKeyPrefix: `getByPath-categories-${sanitizedPath}`
18
+ cacheKeyPrefix: `getByPath-category-${sanitizedPath}`
19
19
  })(sanitizedPath, { with: { children }, includeHidden });
20
20
  };
21
21
  export const getCategoriesByPath = async function getCategoriesByPath2({ path, children = 1, includeHidden }, context) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@scayle/storefront-core",
3
- "version": "7.42.0",
3
+ "version": "7.42.1",
4
4
  "description": "Collection of essential utilities to work with the Storefront API",
5
5
  "author": "SCAYLE Commerce Engine",
6
6
  "license": "MIT",