houdini 0.15.4 → 0.15.5

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,13 @@
1
1
  # houdini
2
2
 
3
+ ## 0.15.5
4
+
5
+ ### Patch Changes
6
+
7
+ - [#377](https://github.com/HoudiniGraphql/houdini/pull/377) [`9836c94`](https://github.com/HoudiniGraphql/houdini/commit/9836c94f36a0cba387a86ef31075cf318a5df557) Thanks [@jycouet](https://github.com/jycouet)! - avoid manipulating scalars with null values
8
+
9
+ * [#384](https://github.com/HoudiniGraphql/houdini/pull/384) [`0c567cd`](https://github.com/HoudiniGraphql/houdini/commit/0c567cd3c4c9eb44f63e54712582e15837472773) Thanks [@AlecAivazis](https://github.com/AlecAivazis)! - fix bug with incorrect page info type
10
+
3
11
  ## 0.15.4
4
12
 
5
13
  ### Patch Changes
package/build/cmd.js CHANGED
@@ -8090,7 +8090,7 @@ function mergeDeep(sources, respectPrototype = false) {
8090
8090
  Object.setPrototypeOf(output, Object.create(Object.getPrototypeOf(target)));
8091
8091
  }
8092
8092
  for (const source of sources) {
8093
- if (isObject$3(target) && isObject$3(source)) {
8093
+ if (isObject$2(target) && isObject$2(source)) {
8094
8094
  if (respectPrototype) {
8095
8095
  const outputPrototype = Object.getPrototypeOf(output);
8096
8096
  const sourcePrototype = Object.getPrototypeOf(source);
@@ -8104,7 +8104,7 @@ function mergeDeep(sources, respectPrototype = false) {
8104
8104
  }
8105
8105
  }
8106
8106
  for (const key in source) {
8107
- if (isObject$3(source[key])) {
8107
+ if (isObject$2(source[key])) {
8108
8108
  if (!(key in output)) {
8109
8109
  Object.assign(output, { [key]: source[key] });
8110
8110
  }
@@ -8120,7 +8120,7 @@ function mergeDeep(sources, respectPrototype = false) {
8120
8120
  }
8121
8121
  return output;
8122
8122
  }
8123
- function isObject$3(item) {
8123
+ function isObject$2(item) {
8124
8124
  return item && typeof item === 'object' && !Array.isArray(item);
8125
8125
  }
8126
8126
 
@@ -15015,13 +15015,13 @@ var nonASCIIwhitespace = /[\u1680\u2000-\u200a\u202f\u205f\u3000\ufeff]/;
15015
15015
  var skipWhiteSpace$1 = /(?:\s|\/\/.*|\/\*[^]*?\*\/)*/g;
15016
15016
 
15017
15017
  var ref = Object.prototype;
15018
- var hasOwnProperty$4 = ref.hasOwnProperty;
15018
+ var hasOwnProperty$3 = ref.hasOwnProperty;
15019
15019
  var toString$2 = ref.toString;
15020
15020
 
15021
15021
  // Checks if an object has a property.
15022
15022
 
15023
15023
  function has(obj, propName) {
15024
- return hasOwnProperty$4.call(obj, propName)
15024
+ return hasOwnProperty$3.call(obj, propName)
15025
15025
  }
15026
15026
 
15027
15027
  var isArray$8 = Array.isArray || (function (obj) { return (
@@ -72965,7 +72965,7 @@ export * from "${definitionsDir}"
72965
72965
 
72966
72966
  async function metaGenerator(config) {
72967
72967
  const meta = {
72968
- version: '0.15.4',
72968
+ version: '0.15.5',
72969
72969
  };
72970
72970
  await writeFile(config.metaFilePath, JSON.stringify(meta));
72971
72971
  }
@@ -74671,7 +74671,7 @@ async function runPipeline(config, docs) {
74671
74671
  }
74672
74672
  catch { }
74673
74673
  // if the previous version is different from the current version
74674
- const versionChanged = previousVersion && previousVersion !== '0.15.4';
74674
+ const versionChanged = previousVersion && previousVersion !== '0.15.5';
74675
74675
  await runPipeline$1(config, [
74676
74676
  typeCheck,
74677
74677
  uniqueDocumentNames,
@@ -74698,7 +74698,7 @@ async function runPipeline(config, docs) {
74698
74698
  if (config.logLevel === LogLevel.Quiet) ;
74699
74699
  else if (versionChanged) {
74700
74700
  console.log('💣 Detected new version of Houdini. Regenerating all documents...');
74701
- console.log('🎉 Welcome to 0.15.4!');
74701
+ console.log('🎉 Welcome to 0.15.5!');
74702
74702
  // if the user is coming from a version pre-15, point them to the migration guide
74703
74703
  const major = parseInt(previousVersion.split('.')[1]);
74704
74704
  if (major < 15) {
@@ -77664,31 +77664,31 @@ var freeGlobal = _freeGlobal;
77664
77664
  var freeSelf = typeof self == 'object' && self && self.Object === Object && self;
77665
77665
 
77666
77666
  /** Used as a reference to the global object. */
77667
- var root$2 = freeGlobal || freeSelf || Function('return this')();
77667
+ var root$1 = freeGlobal || freeSelf || Function('return this')();
77668
77668
 
77669
- var _root = root$2;
77669
+ var _root = root$1;
77670
77670
 
77671
- var root$1 = _root;
77671
+ var root = _root;
77672
77672
 
77673
77673
  /** Built-in value references. */
77674
- var Symbol$4 = root$1.Symbol;
77674
+ var Symbol$4 = root.Symbol;
77675
77675
 
77676
77676
  var _Symbol = Symbol$4;
77677
77677
 
77678
77678
  var Symbol$3 = _Symbol;
77679
77679
 
77680
77680
  /** Used for built-in method references. */
77681
- var objectProto$5 = Object.prototype;
77681
+ var objectProto$4 = Object.prototype;
77682
77682
 
77683
77683
  /** Used to check objects for own properties. */
77684
- var hasOwnProperty$3 = objectProto$5.hasOwnProperty;
77684
+ var hasOwnProperty$2 = objectProto$4.hasOwnProperty;
77685
77685
 
77686
77686
  /**
77687
77687
  * Used to resolve the
77688
77688
  * [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring)
77689
77689
  * of values.
77690
77690
  */
77691
- var nativeObjectToString$1 = objectProto$5.toString;
77691
+ var nativeObjectToString$1 = objectProto$4.toString;
77692
77692
 
77693
77693
  /** Built-in value references. */
77694
77694
  var symToStringTag$1 = Symbol$3 ? Symbol$3.toStringTag : undefined;
@@ -77701,7 +77701,7 @@ var symToStringTag$1 = Symbol$3 ? Symbol$3.toStringTag : undefined;
77701
77701
  * @returns {string} Returns the raw `toStringTag`.
77702
77702
  */
77703
77703
  function getRawTag$1(value) {
77704
- var isOwn = hasOwnProperty$3.call(value, symToStringTag$1),
77704
+ var isOwn = hasOwnProperty$2.call(value, symToStringTag$1),
77705
77705
  tag = value[symToStringTag$1];
77706
77706
 
77707
77707
  try {
@@ -77724,14 +77724,14 @@ var _getRawTag = getRawTag$1;
77724
77724
 
77725
77725
  /** Used for built-in method references. */
77726
77726
 
77727
- var objectProto$4 = Object.prototype;
77727
+ var objectProto$3 = Object.prototype;
77728
77728
 
77729
77729
  /**
77730
77730
  * Used to resolve the
77731
77731
  * [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring)
77732
77732
  * of values.
77733
77733
  */
77734
- var nativeObjectToString = objectProto$4.toString;
77734
+ var nativeObjectToString = objectProto$3.toString;
77735
77735
 
77736
77736
  /**
77737
77737
  * Converts `value` to a string using `Object.prototype.toString`.
@@ -77838,17 +77838,17 @@ var baseGetTag$1 = _baseGetTag,
77838
77838
  var objectTag = '[object Object]';
77839
77839
 
77840
77840
  /** Used for built-in method references. */
77841
- var funcProto$1 = Function.prototype,
77842
- objectProto$3 = Object.prototype;
77841
+ var funcProto = Function.prototype,
77842
+ objectProto$2 = Object.prototype;
77843
77843
 
77844
77844
  /** Used to resolve the decompiled source of functions. */
77845
- var funcToString$1 = funcProto$1.toString;
77845
+ var funcToString = funcProto.toString;
77846
77846
 
77847
77847
  /** Used to check objects for own properties. */
77848
- var hasOwnProperty$2 = objectProto$3.hasOwnProperty;
77848
+ var hasOwnProperty$1 = objectProto$2.hasOwnProperty;
77849
77849
 
77850
77850
  /** Used to infer the `Object` constructor. */
77851
- var objectCtorString = funcToString$1.call(Object);
77851
+ var objectCtorString = funcToString.call(Object);
77852
77852
 
77853
77853
  /**
77854
77854
  * Checks if `value` is a plain object, that is, an object created by the
@@ -77886,9 +77886,9 @@ function isPlainObject(value) {
77886
77886
  if (proto === null) {
77887
77887
  return true;
77888
77888
  }
77889
- var Ctor = hasOwnProperty$2.call(proto, 'constructor') && proto.constructor;
77889
+ var Ctor = hasOwnProperty$1.call(proto, 'constructor') && proto.constructor;
77890
77890
  return typeof Ctor == 'function' && Ctor instanceof Ctor &&
77891
- funcToString$1.call(Ctor) == objectCtorString;
77891
+ funcToString.call(Ctor) == objectCtorString;
77892
77892
  }
77893
77893
 
77894
77894
  var isPlainObject_1 = isPlainObject;
@@ -78007,12 +78007,12 @@ var _isKey = isKey$1;
78007
78007
  * // => false
78008
78008
  */
78009
78009
 
78010
- function isObject$2(value) {
78010
+ function isObject$1(value) {
78011
78011
  var type = typeof value;
78012
78012
  return value != null && (type == 'object' || type == 'function');
78013
78013
  }
78014
78014
 
78015
- var isObject_1 = isObject$2;
78015
+ var isObject_1 = isObject$1;
78016
78016
 
78017
78017
  var isFunction_1$q;
78018
78018
  var hasRequiredIsFunction;
@@ -78060,33 +78060,49 @@ function requireIsFunction () {
78060
78060
  return isFunction_1$q;
78061
78061
  }
78062
78062
 
78063
- var root = _root;
78063
+ var _coreJsData;
78064
+ var hasRequired_coreJsData;
78064
78065
 
78065
- /** Used to detect overreaching core-js shims. */
78066
- var coreJsData$1 = root['__core-js_shared__'];
78066
+ function require_coreJsData () {
78067
+ if (hasRequired_coreJsData) return _coreJsData;
78068
+ hasRequired_coreJsData = 1;
78069
+ var root = _root;
78067
78070
 
78068
- var _coreJsData = coreJsData$1;
78071
+ /** Used to detect overreaching core-js shims. */
78072
+ var coreJsData = root['__core-js_shared__'];
78069
78073
 
78070
- var coreJsData = _coreJsData;
78074
+ _coreJsData = coreJsData;
78075
+ return _coreJsData;
78076
+ }
78071
78077
 
78072
- /** Used to detect methods masquerading as native. */
78073
- var maskSrcKey = (function() {
78074
- var uid = /[^.]+$/.exec(coreJsData && coreJsData.keys && coreJsData.keys.IE_PROTO || '');
78075
- return uid ? ('Symbol(src)_1.' + uid) : '';
78076
- }());
78078
+ var _isMasked;
78079
+ var hasRequired_isMasked;
78077
78080
 
78078
- /**
78079
- * Checks if `func` has its source masked.
78080
- *
78081
- * @private
78082
- * @param {Function} func The function to check.
78083
- * @returns {boolean} Returns `true` if `func` is masked, else `false`.
78084
- */
78085
- function isMasked$1(func) {
78086
- return !!maskSrcKey && (maskSrcKey in func);
78087
- }
78081
+ function require_isMasked () {
78082
+ if (hasRequired_isMasked) return _isMasked;
78083
+ hasRequired_isMasked = 1;
78084
+ var coreJsData = require_coreJsData();
78088
78085
 
78089
- var _isMasked = isMasked$1;
78086
+ /** Used to detect methods masquerading as native. */
78087
+ var maskSrcKey = (function() {
78088
+ var uid = /[^.]+$/.exec(coreJsData && coreJsData.keys && coreJsData.keys.IE_PROTO || '');
78089
+ return uid ? ('Symbol(src)_1.' + uid) : '';
78090
+ }());
78091
+
78092
+ /**
78093
+ * Checks if `func` has its source masked.
78094
+ *
78095
+ * @private
78096
+ * @param {Function} func The function to check.
78097
+ * @returns {boolean} Returns `true` if `func` is masked, else `false`.
78098
+ */
78099
+ function isMasked(func) {
78100
+ return !!maskSrcKey && (maskSrcKey in func);
78101
+ }
78102
+
78103
+ _isMasked = isMasked;
78104
+ return _isMasked;
78105
+ }
78090
78106
 
78091
78107
  /** Used for built-in method references. */
78092
78108
 
@@ -78124,53 +78140,61 @@ function require_toSource () {
78124
78140
  return _toSource;
78125
78141
  }
78126
78142
 
78127
- var isFunction$2 = requireIsFunction(),
78128
- isMasked = _isMasked,
78129
- isObject$1 = isObject_1,
78130
- toSource = require_toSource();
78143
+ var _baseIsNative;
78144
+ var hasRequired_baseIsNative;
78131
78145
 
78132
- /**
78133
- * Used to match `RegExp`
78134
- * [syntax characters](http://ecma-international.org/ecma-262/7.0/#sec-patterns).
78135
- */
78136
- var reRegExpChar = /[\\^$.*+?()[\]{}|]/g;
78146
+ function require_baseIsNative () {
78147
+ if (hasRequired_baseIsNative) return _baseIsNative;
78148
+ hasRequired_baseIsNative = 1;
78149
+ var isFunction = requireIsFunction(),
78150
+ isMasked = require_isMasked(),
78151
+ isObject = isObject_1,
78152
+ toSource = require_toSource();
78137
78153
 
78138
- /** Used to detect host constructors (Safari). */
78139
- var reIsHostCtor = /^\[object .+?Constructor\]$/;
78154
+ /**
78155
+ * Used to match `RegExp`
78156
+ * [syntax characters](http://ecma-international.org/ecma-262/7.0/#sec-patterns).
78157
+ */
78158
+ var reRegExpChar = /[\\^$.*+?()[\]{}|]/g;
78140
78159
 
78141
- /** Used for built-in method references. */
78142
- var funcProto = Function.prototype,
78143
- objectProto$2 = Object.prototype;
78160
+ /** Used to detect host constructors (Safari). */
78161
+ var reIsHostCtor = /^\[object .+?Constructor\]$/;
78144
78162
 
78145
- /** Used to resolve the decompiled source of functions. */
78146
- var funcToString = funcProto.toString;
78163
+ /** Used for built-in method references. */
78164
+ var funcProto = Function.prototype,
78165
+ objectProto = Object.prototype;
78147
78166
 
78148
- /** Used to check objects for own properties. */
78149
- var hasOwnProperty$1 = objectProto$2.hasOwnProperty;
78167
+ /** Used to resolve the decompiled source of functions. */
78168
+ var funcToString = funcProto.toString;
78150
78169
 
78151
- /** Used to detect if a method is native. */
78152
- var reIsNative = RegExp('^' +
78153
- funcToString.call(hasOwnProperty$1).replace(reRegExpChar, '\\$&')
78154
- .replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, '$1.*?') + '$'
78155
- );
78170
+ /** Used to check objects for own properties. */
78171
+ var hasOwnProperty = objectProto.hasOwnProperty;
78156
78172
 
78157
- /**
78158
- * The base implementation of `_.isNative` without bad shim checks.
78159
- *
78160
- * @private
78161
- * @param {*} value The value to check.
78162
- * @returns {boolean} Returns `true` if `value` is a native function,
78163
- * else `false`.
78164
- */
78165
- function baseIsNative$1(value) {
78166
- if (!isObject$1(value) || isMasked(value)) {
78167
- return false;
78168
- }
78169
- var pattern = isFunction$2(value) ? reIsNative : reIsHostCtor;
78170
- return pattern.test(toSource(value));
78171
- }
78173
+ /** Used to detect if a method is native. */
78174
+ var reIsNative = RegExp('^' +
78175
+ funcToString.call(hasOwnProperty).replace(reRegExpChar, '\\$&')
78176
+ .replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, '$1.*?') + '$'
78177
+ );
78178
+
78179
+ /**
78180
+ * The base implementation of `_.isNative` without bad shim checks.
78181
+ *
78182
+ * @private
78183
+ * @param {*} value The value to check.
78184
+ * @returns {boolean} Returns `true` if `value` is a native function,
78185
+ * else `false`.
78186
+ */
78187
+ function baseIsNative(value) {
78188
+ if (!isObject(value) || isMasked(value)) {
78189
+ return false;
78190
+ }
78191
+ var pattern = isFunction(value) ? reIsNative : reIsHostCtor;
78192
+ return pattern.test(toSource(value));
78193
+ }
78172
78194
 
78173
- var _baseIsNative = baseIsNative$1;
78195
+ _baseIsNative = baseIsNative;
78196
+ return _baseIsNative;
78197
+ }
78174
78198
 
78175
78199
  /**
78176
78200
  * Gets the value at `key` of `object`.
@@ -78181,29 +78205,45 @@ var _baseIsNative = baseIsNative$1;
78181
78205
  * @returns {*} Returns the property value.
78182
78206
  */
78183
78207
 
78184
- function getValue$1(object, key) {
78185
- return object == null ? undefined : object[key];
78208
+ var _getValue;
78209
+ var hasRequired_getValue;
78210
+
78211
+ function require_getValue () {
78212
+ if (hasRequired_getValue) return _getValue;
78213
+ hasRequired_getValue = 1;
78214
+ function getValue(object, key) {
78215
+ return object == null ? undefined : object[key];
78216
+ }
78217
+
78218
+ _getValue = getValue;
78219
+ return _getValue;
78186
78220
  }
78187
78221
 
78188
- var _getValue = getValue$1;
78222
+ var _getNative;
78223
+ var hasRequired_getNative;
78189
78224
 
78190
- var baseIsNative = _baseIsNative,
78191
- getValue = _getValue;
78225
+ function require_getNative () {
78226
+ if (hasRequired_getNative) return _getNative;
78227
+ hasRequired_getNative = 1;
78228
+ var baseIsNative = require_baseIsNative(),
78229
+ getValue = require_getValue();
78192
78230
 
78193
- /**
78194
- * Gets the native function at `key` of `object`.
78195
- *
78196
- * @private
78197
- * @param {Object} object The object to query.
78198
- * @param {string} key The key of the method to get.
78199
- * @returns {*} Returns the function if it's native, else `undefined`.
78200
- */
78201
- function getNative$1(object, key) {
78202
- var value = getValue(object, key);
78203
- return baseIsNative(value) ? value : undefined;
78204
- }
78231
+ /**
78232
+ * Gets the native function at `key` of `object`.
78233
+ *
78234
+ * @private
78235
+ * @param {Object} object The object to query.
78236
+ * @param {string} key The key of the method to get.
78237
+ * @returns {*} Returns the function if it's native, else `undefined`.
78238
+ */
78239
+ function getNative(object, key) {
78240
+ var value = getValue(object, key);
78241
+ return baseIsNative(value) ? value : undefined;
78242
+ }
78205
78243
 
78206
- var _getNative = getNative$1;
78244
+ _getNative = getNative;
78245
+ return _getNative;
78246
+ }
78207
78247
 
78208
78248
  var _nativeCreate;
78209
78249
  var hasRequired_nativeCreate;
@@ -78211,7 +78251,7 @@ var hasRequired_nativeCreate;
78211
78251
  function require_nativeCreate () {
78212
78252
  if (hasRequired_nativeCreate) return _nativeCreate;
78213
78253
  hasRequired_nativeCreate = 1;
78214
- var getNative = _getNative;
78254
+ var getNative = require_getNative();
78215
78255
 
78216
78256
  /* Built-in method references that are verified to be native. */
78217
78257
  var nativeCreate = getNative(Object, 'create');
@@ -78694,7 +78734,7 @@ var hasRequired_Map;
78694
78734
  function require_Map () {
78695
78735
  if (hasRequired_Map) return _Map;
78696
78736
  hasRequired_Map = 1;
78697
- var getNative = _getNative,
78737
+ var getNative = require_getNative(),
78698
78738
  root = _root;
78699
78739
 
78700
78740
  /* Built-in method references that are verified to be native. */
@@ -79265,7 +79305,7 @@ function get(object, path, defaultValue) {
79265
79305
 
79266
79306
  var get_1 = get;
79267
79307
 
79268
- var getNative = _getNative;
79308
+ var getNative = require_getNative();
79269
79309
 
79270
79310
  var defineProperty$1 = (function() {
79271
79311
  try {
@@ -89876,7 +89916,7 @@ var hasRequired_DataView;
89876
89916
  function require_DataView () {
89877
89917
  if (hasRequired_DataView) return _DataView;
89878
89918
  hasRequired_DataView = 1;
89879
- var getNative = _getNative,
89919
+ var getNative = require_getNative(),
89880
89920
  root = _root;
89881
89921
 
89882
89922
  /* Built-in method references that are verified to be native. */
@@ -89892,7 +89932,7 @@ var hasRequired_Promise;
89892
89932
  function require_Promise () {
89893
89933
  if (hasRequired_Promise) return _Promise;
89894
89934
  hasRequired_Promise = 1;
89895
- var getNative = _getNative,
89935
+ var getNative = require_getNative(),
89896
89936
  root = _root;
89897
89937
 
89898
89938
  /* Built-in method references that are verified to be native. */
@@ -89908,7 +89948,7 @@ var hasRequired_Set;
89908
89948
  function require_Set () {
89909
89949
  if (hasRequired_Set) return _Set;
89910
89950
  hasRequired_Set = 1;
89911
- var getNative = _getNative,
89951
+ var getNative = require_getNative(),
89912
89952
  root = _root;
89913
89953
 
89914
89954
  /* Built-in method references that are verified to be native. */
@@ -89924,7 +89964,7 @@ var hasRequired_WeakMap;
89924
89964
  function require_WeakMap () {
89925
89965
  if (hasRequired_WeakMap) return _WeakMap;
89926
89966
  hasRequired_WeakMap = 1;
89927
- var getNative = _getNative,
89967
+ var getNative = require_getNative(),
89928
89968
  root = _root;
89929
89969
 
89930
89970
  /* Built-in method references that are verified to be native. */
@@ -107,6 +107,9 @@ function unmarshalSelection(config, selection, data) {
107
107
  unmarshalSelection(config, fields, value),
108
108
  ];
109
109
  }
110
+ if (value === null) {
111
+ return [fieldName, value];
112
+ }
110
113
  // is the type something that requires marshaling
111
114
  if (config.scalars?.[type]?.marshal) {
112
115
  const unmarshalFn = config.scalars[type].unmarshal;
@@ -231,7 +231,7 @@ function queryStore({ config, artifact, storeName, paginationMethods, paginated,
231
231
  queryVariables: getVariables,
232
232
  });
233
233
  // we only want to add page info if we have to
234
- relevantStores.push((0, store_1.derived)([handlers.pageInfo], (pageInfo) => ({ pageInfo })));
234
+ relevantStores.push((0, store_1.derived)([handlers.pageInfo], ([pageInfo]) => ({ pageInfo })));
235
235
  extraMethods = Object.fromEntries(Object.entries(paginationMethods).map(([key, value]) => [key, handlers[value]]));
236
236
  }
237
237
  // mix any of the stores we care about
@@ -107,6 +107,9 @@ function unmarshalSelection(config, selection, data) {
107
107
  unmarshalSelection(config, fields, value),
108
108
  ];
109
109
  }
110
+ if (value === null) {
111
+ return [fieldName, value];
112
+ }
110
113
  // is the type something that requires marshaling
111
114
  if (config.scalars?.[type]?.marshal) {
112
115
  const unmarshalFn = config.scalars[type].unmarshal;
@@ -231,7 +231,7 @@ function queryStore({ config, artifact, storeName, paginationMethods, paginated,
231
231
  queryVariables: getVariables,
232
232
  });
233
233
  // we only want to add page info if we have to
234
- relevantStores.push((0, store_1.derived)([handlers.pageInfo], (pageInfo) => ({ pageInfo })));
234
+ relevantStores.push((0, store_1.derived)([handlers.pageInfo], ([pageInfo]) => ({ pageInfo })));
235
235
  extraMethods = Object.fromEntries(Object.entries(paginationMethods).map(([key, value]) => [key, handlers[value]]));
236
236
  }
237
237
  // mix any of the stores we care about
@@ -105,6 +105,9 @@ export function unmarshalSelection(config, selection, data) {
105
105
  unmarshalSelection(config, fields, value),
106
106
  ];
107
107
  }
108
+ if (value === null) {
109
+ return [fieldName, value];
110
+ }
108
111
  // is the type something that requires marshaling
109
112
  if ((_b = (_a = config.scalars) === null || _a === void 0 ? void 0 : _a[type]) === null || _b === void 0 ? void 0 : _b.marshal) {
110
113
  const unmarshalFn = config.scalars[type].unmarshal;
@@ -202,7 +202,7 @@ export function queryStore({ config, artifact, storeName, paginationMethods, pag
202
202
  queryVariables: getVariables,
203
203
  });
204
204
  // we only want to add page info if we have to
205
- relevantStores.push(derived([handlers.pageInfo], (pageInfo) => ({ pageInfo })));
205
+ relevantStores.push(derived([handlers.pageInfo], ([pageInfo]) => ({ pageInfo })));
206
206
  extraMethods = Object.fromEntries(Object.entries(paginationMethods).map(([key, value]) => [key, handlers[value]]));
207
207
  }
208
208
  // mix any of the stores we care about
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "houdini",
3
- "version": "0.15.4",
3
+ "version": "0.15.5",
4
4
  "description": "The disappearing graphql client for SvelteKit",
5
5
  "workspaces": [
6
6
  "example",
@@ -157,7 +157,9 @@ export function unmarshalSelection(
157
157
  unmarshalSelection(config, fields, value),
158
158
  ]
159
159
  }
160
-
160
+ if (value === null) {
161
+ return [fieldName, value]
162
+ }
161
163
  // is the type something that requires marshaling
162
164
  if (config.scalars?.[type]?.marshal) {
163
165
  const unmarshalFn = config.scalars[type].unmarshal
@@ -260,7 +260,7 @@ export function queryStore<_Data extends GraphQLObject, _Input>({
260
260
  })
261
261
 
262
262
  // we only want to add page info if we have to
263
- relevantStores.push(derived([handlers.pageInfo], (pageInfo) => ({ pageInfo })))
263
+ relevantStores.push(derived([handlers.pageInfo], ([pageInfo]) => ({ pageInfo })))
264
264
 
265
265
  extraMethods = Object.fromEntries(
266
266
  Object.entries(paginationMethods).map(([key, value]) => [key, handlers[value]])