houdini-react 0.0.0-20240311070933 → 0.0.0-20240311071844

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.
@@ -77823,6 +77823,11 @@ function unwrapType(config, type, wrappers = []) {
77823
77823
  if (type instanceof graphql3.GraphQLList) {
77824
77824
  return unwrapType(config, type.ofType, [TypeWrapper.List, ...wrappers]);
77825
77825
  }
77826
+ if (config.configFile.features?.runtimeScalars?.[type.name.value]) {
77827
+ type = config.schema.getType(
77828
+ config.configFile.features?.runtimeScalars?.[type.name.value].type
77829
+ );
77830
+ }
77826
77831
  const namedType = config.schema.getType(type.name.value || type.name);
77827
77832
  if (!namedType) {
77828
77833
  throw new Error("Unknown type: " + type.name.value || type.name);
@@ -77813,6 +77813,11 @@ function unwrapType(config, type, wrappers = []) {
77813
77813
  if (type instanceof graphql3.GraphQLList) {
77814
77814
  return unwrapType(config, type.ofType, [TypeWrapper.List, ...wrappers]);
77815
77815
  }
77816
+ if (config.configFile.features?.runtimeScalars?.[type.name.value]) {
77817
+ type = config.schema.getType(
77818
+ config.configFile.features?.runtimeScalars?.[type.name.value].type
77819
+ );
77820
+ }
77816
77821
  const namedType = config.schema.getType(type.name.value || type.name);
77817
77822
  if (!namedType) {
77818
77823
  throw new Error("Unknown type: " + type.name.value || type.name);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "houdini-react",
3
- "version": "0.0.0-20240311070933",
3
+ "version": "0.0.0-20240311071844",
4
4
  "description": "The React plugin for houdini",
5
5
  "keywords": [
6
6
  "typescript",
@@ -43,7 +43,7 @@
43
43
  "recast": "^0.23.1",
44
44
  "rollup": "^3.7.4",
45
45
  "use-deep-compare-effect": "^1.8.1",
46
- "houdini": "^0.0.0-20240311070933"
46
+ "houdini": "^0.0.0-20240311071844"
47
47
  },
48
48
  "files": [
49
49
  "build"