druxt 0.25.1 → 0.25.2-dev.20261118025540

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/README.md CHANGED
@@ -66,7 +66,7 @@ As of September 2026. See the [releases](https://github.com/druxt/druxt.js/relea
66
66
  | Node | 16, the tested version. Node 16 is past upstream end of life. The 1.x line targets it deliberately. 17 and later need `NODE_OPTIONS=--openssl-legacy-provider` to build. |
67
67
  | Drupal core | 10 or 11. `drupal/druxt` 1.2.2 declares `^10 \|\| ^11 \|\| ^12` and ended 8 and 9 support. 12 is declared but waits on Decoupled Router and JSON:API Menu Items. Tested against 10 and 11. |
68
68
  | Drupal module | `drupal/druxt` ^1.2.2, which brings `decoupled_router`, `jsonapi_menu_items` and `jsonapi_views`. Earlier 1.2.x releases are incompatible with Decoupled Router 2.0.7 ([#3618675](https://www.drupal.org/i/3618675)). |
69
- | Known pins | `@nuxtjs/storybook` 4.2.0 (later majors need Nuxt 3). Axios 0.x, or add it to `build.transpile` |
69
+ | Known pins | `@nuxtjs/storybook` 4.2.0 (later majors need Nuxt 3). Axios 0.34.0 or later, which the site installs as a peer |
70
70
 
71
71
  What these bounds promise over time is stated in the
72
72
  [support and versioning policy](https://druxtjs.org/explanation/support-and-versioning).
package/dist/druxt.esm.js CHANGED
@@ -564,7 +564,7 @@ const cacheClearHandler = (secret) => (req, res) => {
564
564
  };
565
565
 
566
566
  var name = "druxt";
567
- var version = "0.25.1";
567
+ var version = "0.25.2-dev.20261118025540";
568
568
  var description = "The Fully Decoupled Drupal Framework for Nuxt.js.";
569
569
  var keywords = [
570
570
  "cms",
@@ -1003,7 +1003,7 @@ const DruxtStore = ({ store }) => {
1003
1003
  });
1004
1004
  }).flat());
1005
1005
  for (const include of resources) {
1006
- included = [...included, include.data, ...include.included || []];
1006
+ included = [...included, ...include.data ? [include.data] : [], ...include.included || []];
1007
1007
  }
1008
1008
  storedResource.included = included;
1009
1009
  }
@@ -1022,6 +1022,7 @@ const DruxtStore = ({ store }) => {
1022
1022
  fields = !!missingFields.length;
1023
1023
  queryObject.fields[type] = (missingFields || []).join(",") || void 0;
1024
1024
  }
1025
+ let error;
1025
1026
  let resource;
1026
1027
  const since = generation.value;
1027
1028
  if (bypassCache || !storedResource || fields) {
@@ -1036,7 +1037,13 @@ const DruxtStore = ({ store }) => {
1036
1037
  }
1037
1038
  return response;
1038
1039
  });
1039
- } catch (e) {
1040
+ } catch (err) {
1041
+ const response = err.response || {};
1042
+ const data = response.data || {};
1043
+ error = {
1044
+ statusCode: response.status || 500,
1045
+ message: ((data.errors || [])[0] || {}).detail || data.message || err.message
1046
+ };
1040
1047
  }
1041
1048
  }
1042
1049
  const stored = ((state.resources[type] || {})[id] || {})[prefix];
@@ -1048,6 +1055,9 @@ const DruxtStore = ({ store }) => {
1048
1055
  ];
1049
1056
  result.included = Array.from(new Set(included.filter((o) => (o || {}).id).map((o) => o.id))).map((id2) => included.find((o) => o.id === id2));
1050
1057
  }
1058
+ if (error) {
1059
+ result.error = error;
1060
+ }
1051
1061
  return result;
1052
1062
  }
1053
1063
  }
package/dist/druxt.ssr.js CHANGED
@@ -577,7 +577,7 @@ const cacheClearHandler = (secret) => (req, res) => {
577
577
  };
578
578
 
579
579
  var name = "druxt";
580
- var version = "0.25.1";
580
+ var version = "0.25.2-dev.20261118025540";
581
581
  var description = "The Fully Decoupled Drupal Framework for Nuxt.js.";
582
582
  var keywords = [
583
583
  "cms",
@@ -1016,7 +1016,7 @@ const DruxtStore = ({ store }) => {
1016
1016
  });
1017
1017
  }).flat());
1018
1018
  for (const include of resources) {
1019
- included = [...included, include.data, ...include.included || []];
1019
+ included = [...included, ...include.data ? [include.data] : [], ...include.included || []];
1020
1020
  }
1021
1021
  storedResource.included = included;
1022
1022
  }
@@ -1035,6 +1035,7 @@ const DruxtStore = ({ store }) => {
1035
1035
  fields = !!missingFields.length;
1036
1036
  queryObject.fields[type] = (missingFields || []).join(",") || void 0;
1037
1037
  }
1038
+ let error;
1038
1039
  let resource;
1039
1040
  const since = generation.value;
1040
1041
  if (bypassCache || !storedResource || fields) {
@@ -1049,7 +1050,13 @@ const DruxtStore = ({ store }) => {
1049
1050
  }
1050
1051
  return response;
1051
1052
  });
1052
- } catch (e) {
1053
+ } catch (err) {
1054
+ const response = err.response || {};
1055
+ const data = response.data || {};
1056
+ error = {
1057
+ statusCode: response.status || 500,
1058
+ message: ((data.errors || [])[0] || {}).detail || data.message || err.message
1059
+ };
1053
1060
  }
1054
1061
  }
1055
1062
  const stored = ((state.resources[type] || {})[id] || {})[prefix];
@@ -1061,6 +1068,9 @@ const DruxtStore = ({ store }) => {
1061
1068
  ];
1062
1069
  result.included = Array.from(new Set(included.filter((o) => (o || {}).id).map((o) => o.id))).map((id2) => included.find((o) => o.id === id2));
1063
1070
  }
1071
+ if (error) {
1072
+ result.error = error;
1073
+ }
1064
1074
  return result;
1065
1075
  }
1066
1076
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "druxt",
3
- "version": "0.25.1",
3
+ "version": "0.25.2-dev.20261118025540",
4
4
  "description": "The Fully Decoupled Drupal Framework for Nuxt.js.",
5
5
  "keywords": [
6
6
  "cms",