@okam/directus-next 2.2.0 → 2.2.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,3 +1,37 @@
1
+ ## 2.2.2 (2026-04-14)
2
+
3
+ ### 🩹 Fixes
4
+
5
+ - issue with setvar not correctly being applied preventing cache ([#480](https://github.com/OKAMca/stack/pull/480))
6
+
7
+ ### ❤️ Thank You
8
+
9
+ - Marie-Maxime Tanguay @marie-maxime
10
+
11
+ ## 2.2.0 (2026-04-06)
12
+
13
+ ### 🚀 Features
14
+
15
+ - **next-component:** allow formatting Link locale via i18n config ([#460](https://github.com/OKAMca/stack/pull/460))
16
+ - **directus-next:** getPageSettings props accepts gql client ([a6d983fa](https://github.com/OKAMca/stack/commit/a6d983fa))
17
+
18
+ ### 🩹 Fixes
19
+
20
+ - **directus-next:** getPageSettings also allows custom query fn ([c76c5163](https://github.com/OKAMca/stack/commit/c76c5163))
21
+ - **directus-next:** remove props client memoization to match config arg ([fb169f6a](https://github.com/OKAMca/stack/commit/fb169f6a))
22
+
23
+ ### 🧱 Updated Dependencies
24
+
25
+ - Updated core-lib to 2.1.0
26
+ - Updated next-component to 2.1.0
27
+ - Updated directus-node to 1.1.0
28
+ - Updated directus-query to 2.1.0
29
+
30
+ ### ❤️ Thank You
31
+
32
+ - Pierre-Olivier Clerson @poclerson
33
+ - poclerson
34
+
1
35
  ## 2.1.1 (2026-03-26)
2
36
 
3
37
  ### 🚀 Features
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@okam/directus-next",
3
- "version": "2.2.0",
3
+ "version": "2.2.2",
4
4
  "repository": {
5
5
  "url": "https://github.com/OKAMca/stack.git"
6
6
  },
@@ -42,11 +42,11 @@
42
42
  },
43
43
  "dependencies": {
44
44
  "@graphql-typed-document-node/core": "3.2.0",
45
- "@okam/core-lib": "2.1.0",
46
- "@okam/directus-node": "1.1.0",
47
- "@okam/directus-query": "2.1.0",
45
+ "@okam/core-lib": "2.2.0",
46
+ "@okam/directus-node": "1.2.0",
47
+ "@okam/directus-query": "2.1.1",
48
48
  "@okam/logger": "1.1.0",
49
- "@okam/next-component": "2.1.0",
49
+ "@okam/next-component": "2.1.1",
50
50
  "graphql-request": "^7.1.2",
51
51
  "radashi": "^12.3.0",
52
52
  "server-only": "0.0.1",
package/server.js CHANGED
@@ -54,7 +54,7 @@ async function getPageSettings(props, itemKey) {
54
54
  }
55
55
  router.log("Caching new page settings", { path: currentPath });
56
56
  setPageSettingsContext(currentItem);
57
- setVariables(variables);
57
+ setVariables(directusVariables);
58
58
  return currentItem;
59
59
  }
60
60
  const usePageSettings = getPageSettings;
package/server.mjs CHANGED
@@ -53,7 +53,7 @@ async function getPageSettings(props, itemKey) {
53
53
  }
54
54
  log("Caching new page settings", { path: currentPath });
55
55
  setPageSettingsContext(currentItem);
56
- setVariables(variables);
56
+ setVariables(directusVariables);
57
57
  return currentItem;
58
58
  }
59
59
  const usePageSettings = getPageSettings;