houdini 1.2.10 → 1.2.11

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.
Files changed (36) hide show
  1. package/build/cmd-cjs/index.js +24 -18
  2. package/build/cmd-esm/index.js +26 -20
  3. package/build/codegen-cjs/index.js +22 -16
  4. package/build/codegen-esm/index.js +24 -18
  5. package/build/lib/index.d.ts +1 -1
  6. package/build/lib/types.d.ts +1 -1
  7. package/build/lib-cjs/index.js +272 -17
  8. package/build/lib-esm/index.js +272 -19
  9. package/build/{lib/router → router}/conventions.d.ts +1 -1
  10. package/build/{lib/router → router}/index.d.ts +1 -0
  11. package/build/{lib/router → router}/manifest.d.ts +1 -1
  12. package/build/{lib/router → router}/types.d.ts +1 -1
  13. package/build/router-cjs/index.js +72353 -0
  14. package/build/router-cjs/package.json +1 -0
  15. package/build/router-esm/index.js +72345 -0
  16. package/build/router-esm/package.json +1 -0
  17. package/build/runtime/router/cookies.d.ts +41 -0
  18. package/build/runtime/router/jwt.d.ts +117 -0
  19. package/build/runtime/router/server.d.ts +25 -0
  20. package/build/runtime-cjs/router/cookies.d.ts +41 -0
  21. package/build/runtime-cjs/router/cookies.js +168 -0
  22. package/build/runtime-cjs/router/jwt.d.ts +117 -0
  23. package/build/runtime-cjs/router/jwt.js +181 -0
  24. package/build/runtime-cjs/router/server.d.ts +25 -0
  25. package/build/runtime-cjs/router/server.js +78 -0
  26. package/build/runtime-esm/router/cookies.d.ts +41 -0
  27. package/build/runtime-esm/router/cookies.js +143 -0
  28. package/build/runtime-esm/router/jwt.d.ts +117 -0
  29. package/build/runtime-esm/router/jwt.js +155 -0
  30. package/build/runtime-esm/router/server.d.ts +25 -0
  31. package/build/runtime-esm/router/server.js +53 -0
  32. package/build/test-cjs/index.js +22 -16
  33. package/build/test-esm/index.js +24 -18
  34. package/build/vite-cjs/index.js +38 -30
  35. package/build/vite-esm/index.js +40 -32
  36. package/package.json +9 -1
@@ -2288,7 +2288,7 @@ var require_parse = __commonJS({
2288
2288
  CHAR_NO_BREAK_SPACE,
2289
2289
  CHAR_ZERO_WIDTH_NOBREAK_SPACE
2290
2290
  } = require_constants();
2291
- var parse7 = (input, options = {}) => {
2291
+ var parse8 = (input, options = {}) => {
2292
2292
  if (typeof input !== "string") {
2293
2293
  throw new TypeError("Expected a string");
2294
2294
  }
@@ -2494,7 +2494,7 @@ var require_parse = __commonJS({
2494
2494
  push({ type: "eos" });
2495
2495
  return ast;
2496
2496
  };
2497
- module.exports = parse7;
2497
+ module.exports = parse8;
2498
2498
  }
2499
2499
  });
2500
2500
 
@@ -2505,7 +2505,7 @@ var require_braces = __commonJS({
2505
2505
  var stringify2 = require_stringify();
2506
2506
  var compile2 = require_compile();
2507
2507
  var expand = require_expand();
2508
- var parse7 = require_parse();
2508
+ var parse8 = require_parse();
2509
2509
  var braces = (input, options = {}) => {
2510
2510
  let output = [];
2511
2511
  if (Array.isArray(input)) {
@@ -2525,7 +2525,7 @@ var require_braces = __commonJS({
2525
2525
  }
2526
2526
  return output;
2527
2527
  };
2528
- braces.parse = (input, options = {}) => parse7(input, options);
2528
+ braces.parse = (input, options = {}) => parse8(input, options);
2529
2529
  braces.stringify = (input, options = {}) => {
2530
2530
  if (typeof input === "string") {
2531
2531
  return stringify2(braces.parse(input, options), options);
@@ -3114,7 +3114,7 @@ var require_parse2 = __commonJS({
3114
3114
  var syntaxError = (type, char) => {
3115
3115
  return `Missing ${type}: "${char}" - use "\\\\${char}" to match literal characters`;
3116
3116
  };
3117
- var parse7 = (input, options) => {
3117
+ var parse8 = (input, options) => {
3118
3118
  if (typeof input !== "string") {
3119
3119
  throw new TypeError("Expected a string");
3120
3120
  }
@@ -3264,7 +3264,7 @@ var require_parse2 = __commonJS({
3264
3264
  output = token.close = `)$))${extglobStar}`;
3265
3265
  }
3266
3266
  if (token.inner.includes("*") && (rest = remaining()) && /^\.[^\\/.]+$/.test(rest)) {
3267
- const expression = parse7(rest, { ...options, fastpaths: false }).output;
3267
+ const expression = parse8(rest, { ...options, fastpaths: false }).output;
3268
3268
  output = token.close = `)${expression})${extglobStar})`;
3269
3269
  }
3270
3270
  if (token.prev.type === "bos") {
@@ -3793,7 +3793,7 @@ var require_parse2 = __commonJS({
3793
3793
  }
3794
3794
  return state;
3795
3795
  };
3796
- parse7.fastpaths = (input, options) => {
3796
+ parse8.fastpaths = (input, options) => {
3797
3797
  const opts = { ...options };
3798
3798
  const max = typeof opts.maxLength === "number" ? Math.min(MAX_LENGTH, opts.maxLength) : MAX_LENGTH;
3799
3799
  const len = input.length;
@@ -3862,7 +3862,7 @@ var require_parse2 = __commonJS({
3862
3862
  }
3863
3863
  return source;
3864
3864
  };
3865
- module.exports = parse7;
3865
+ module.exports = parse8;
3866
3866
  }
3867
3867
  });
3868
3868
 
@@ -3872,7 +3872,7 @@ var require_picomatch = __commonJS({
3872
3872
  "use strict";
3873
3873
  var path2 = __require("path");
3874
3874
  var scan = require_scan();
3875
- var parse7 = require_parse2();
3875
+ var parse8 = require_parse2();
3876
3876
  var utils = require_utils2();
3877
3877
  var constants = require_constants2();
3878
3878
  var isObject2 = (val) => val && typeof val === "object" && !Array.isArray(val);
@@ -3962,7 +3962,7 @@ var require_picomatch = __commonJS({
3962
3962
  picomatch.parse = (pattern, options) => {
3963
3963
  if (Array.isArray(pattern))
3964
3964
  return pattern.map((p) => picomatch.parse(p, options));
3965
- return parse7(pattern, { ...options, fastpaths: false });
3965
+ return parse8(pattern, { ...options, fastpaths: false });
3966
3966
  };
3967
3967
  picomatch.scan = (input, options) => scan(input, options);
3968
3968
  picomatch.compileRe = (state, options, returnOutput = false, returnState = false) => {
@@ -3988,10 +3988,10 @@ var require_picomatch = __commonJS({
3988
3988
  }
3989
3989
  let parsed = { negated: false, fastpaths: true };
3990
3990
  if (options.fastpaths !== false && (input[0] === "." || input[0] === "*")) {
3991
- parsed.output = parse7.fastpaths(input, options);
3991
+ parsed.output = parse8.fastpaths(input, options);
3992
3992
  }
3993
3993
  if (!parsed.output) {
3994
- parsed = parse7(input, options);
3994
+ parsed = parse8(input, options);
3995
3995
  }
3996
3996
  return picomatch.compileRe(parsed, options, returnOutput, returnState);
3997
3997
  };
@@ -5628,7 +5628,7 @@ var require_parser = __commonJS({
5628
5628
  Object.defineProperty(exports, "__esModule", {
5629
5629
  value: true
5630
5630
  });
5631
- exports.parse = parse7;
5631
+ exports.parse = parse8;
5632
5632
  exports.parseValue = parseValue;
5633
5633
  exports.parseType = parseType;
5634
5634
  exports.Parser = void 0;
@@ -5639,7 +5639,7 @@ var require_parser = __commonJS({
5639
5639
  var _source = require_source();
5640
5640
  var _directiveLocation = require_directiveLocation();
5641
5641
  var _lexer = require_lexer();
5642
- function parse7(source, options) {
5642
+ function parse8(source, options) {
5643
5643
  var parser = new Parser(source, options);
5644
5644
  return parser.parseDocument();
5645
5645
  }
@@ -36268,14 +36268,14 @@ var require_lib3 = __commonJS({
36268
36268
  super.checkParams(node, false, true);
36269
36269
  this.scope.exit();
36270
36270
  }
36271
- forwardNoArrowParamsConversionAt(node, parse8) {
36271
+ forwardNoArrowParamsConversionAt(node, parse9) {
36272
36272
  let result;
36273
36273
  if (this.state.noArrowParamsConversionAt.indexOf(node.start) !== -1) {
36274
36274
  this.state.noArrowParamsConversionAt.push(this.state.start);
36275
- result = parse8();
36275
+ result = parse9();
36276
36276
  this.state.noArrowParamsConversionAt.pop();
36277
36277
  } else {
36278
- result = parse8();
36278
+ result = parse9();
36279
36279
  }
36280
36280
  return result;
36281
36281
  }
@@ -45330,7 +45330,7 @@ var require_lib3 = __commonJS({
45330
45330
  }
45331
45331
  return pluginMap;
45332
45332
  }
45333
- function parse7(input, options) {
45333
+ function parse8(input, options) {
45334
45334
  var _options;
45335
45335
  if (((_options = options) == null ? void 0 : _options.sourceType) === "unambiguous") {
45336
45336
  options = Object.assign({}, options);
@@ -45400,7 +45400,7 @@ var require_lib3 = __commonJS({
45400
45400
  }
45401
45401
  return cls;
45402
45402
  }
45403
- exports.parse = parse7;
45403
+ exports.parse = parse8;
45404
45404
  exports.parseExpression = parseExpression;
45405
45405
  exports.tokTypes = tokTypes;
45406
45406
  }
@@ -51346,7 +51346,7 @@ var require_esprima2 = __commonJS({
51346
51346
  var jsx_parser_1 = __webpack_require__(3);
51347
51347
  var parser_1 = __webpack_require__(8);
51348
51348
  var tokenizer_1 = __webpack_require__(15);
51349
- function parse7(code, options, delegate) {
51349
+ function parse8(code, options, delegate) {
51350
51350
  var commentHandler = null;
51351
51351
  var proxyDelegate = function(node, metadata) {
51352
51352
  if (delegate) {
@@ -51391,17 +51391,17 @@ var require_esprima2 = __commonJS({
51391
51391
  }
51392
51392
  return ast;
51393
51393
  }
51394
- exports2.parse = parse7;
51394
+ exports2.parse = parse8;
51395
51395
  function parseModule(code, options, delegate) {
51396
51396
  var parsingOptions = options || {};
51397
51397
  parsingOptions.sourceType = "module";
51398
- return parse7(code, parsingOptions, delegate);
51398
+ return parse8(code, parsingOptions, delegate);
51399
51399
  }
51400
51400
  exports2.parseModule = parseModule;
51401
51401
  function parseScript(code, options, delegate) {
51402
51402
  var parsingOptions = options || {};
51403
51403
  parsingOptions.sourceType = "script";
51404
- return parse7(code, parsingOptions, delegate);
51404
+ return parse8(code, parsingOptions, delegate);
51405
51405
  }
51406
51406
  exports2.parseScript = parseScript;
51407
51407
  function tokenize(code, options, delegate) {
@@ -57465,7 +57465,7 @@ var require_esprima3 = __commonJS({
57465
57465
  Object.defineProperty(exports, "__esModule", { value: true });
57466
57466
  exports.parse = void 0;
57467
57467
  var util_1 = require_util2();
57468
- function parse7(source, options) {
57468
+ function parse8(source, options) {
57469
57469
  var comments = [];
57470
57470
  var ast = require_esprima2().parse(source, {
57471
57471
  loc: true,
@@ -57483,7 +57483,7 @@ var require_esprima3 = __commonJS({
57483
57483
  }
57484
57484
  return ast;
57485
57485
  }
57486
- exports.parse = parse7;
57486
+ exports.parse = parse8;
57487
57487
  }
57488
57488
  });
57489
57489
 
@@ -58605,7 +58605,7 @@ var require_parser2 = __commonJS({
58605
58605
  var lines_1 = require_lines();
58606
58606
  var comments_1 = require_comments();
58607
58607
  var util = tslib_1.__importStar(require_util2());
58608
- function parse7(source, options) {
58608
+ function parse8(source, options) {
58609
58609
  options = (0, options_1.normalize)(options);
58610
58610
  var lines = (0, lines_1.fromString)(source, options);
58611
58611
  var sourceWithoutTabs = lines.toString({
@@ -58677,7 +58677,7 @@ var require_parser2 = __commonJS({
58677
58677
  (0, comments_1.attach)(comments, program.body.length ? file.program : file, lines);
58678
58678
  return new TreeCopier(lines, tokens).copy(file);
58679
58679
  }
58680
- exports.parse = parse7;
58680
+ exports.parse = parse8;
58681
58681
  var TreeCopier = function TreeCopier2(lines, tokens) {
58682
58682
  assert_1.default.ok(this instanceof TreeCopier2);
58683
58683
  this.lines = lines;
@@ -84993,7 +84993,7 @@ var defaultDirectives = emptySchema.getDirectives().map((dir) => dir.name);
84993
84993
 
84994
84994
  // src/lib/graphql.ts
84995
84995
  var graphql3 = __toESM(require_graphql2(), 1);
84996
- import crypto from "node:crypto";
84996
+ import crypto2 from "node:crypto";
84997
84997
  function getRootType(type) {
84998
84998
  if (graphql3.isNonNullType(type)) {
84999
84999
  return getRootType(type.ofType);
@@ -85010,7 +85010,7 @@ function hashRaw({ document }) {
85010
85010
  return hashDocument(document.artifact?.raw);
85011
85011
  }
85012
85012
  function hashDocument(str) {
85013
- return crypto.createHash("sha256").update(str || "").digest("hex");
85013
+ return crypto2.createHash("sha256").update(str || "").digest("hex");
85014
85014
  }
85015
85015
  function parentField(ancestors) {
85016
85016
  return walkParentField([...ancestors].sort(() => -1));
@@ -85437,7 +85437,7 @@ async function find_graphql(config4, parsedScript, walker) {
85437
85437
  });
85438
85438
  }
85439
85439
 
85440
- // src/lib/router/conventions.ts
85440
+ // src/router/conventions.ts
85441
85441
  var conventions_exports = {};
85442
85442
  __export(conventions_exports, {
85443
85443
  fallback_unit_path: () => fallback_unit_path,
@@ -85555,7 +85555,7 @@ function serialized_manifest_path(config4, base = base_dir(config4)) {
85555
85555
  return path_exports.join(base, "manifest.json");
85556
85556
  }
85557
85557
 
85558
- // src/lib/router/manifest.ts
85558
+ // src/router/manifest.ts
85559
85559
  var t2 = __toESM(require_lib6(), 1);
85560
85560
 
85561
85561
  // src/codegen/generators/artifacts/index.ts
@@ -91640,7 +91640,9 @@ function Plugin(opts = {}) {
91640
91640
  return;
91641
91641
  }
91642
91642
  console.log("\u{1F3A9} Generating Deployment Assets...");
91643
- await fs_exports.rmdir(config3.routerBuildDirectory);
91643
+ if ((await fs_exports.stat(config3.routerBuildDirectory))?.isDirectory()) {
91644
+ await fs_exports.rmdir(config3.routerBuildDirectory);
91645
+ }
91644
91646
  await fs_exports.mkdirp(config3.routerBuildDirectory);
91645
91647
  await opts.adapter({
91646
91648
  config: config3,
@@ -91963,6 +91965,12 @@ export {
91963
91965
  find_exported_id,
91964
91966
  find_insert_index
91965
91967
  };
91968
+ /*!
91969
+ * cookie
91970
+ * Copyright(c) 2012-2014 Roman Shtylman
91971
+ * Copyright(c) 2015 Douglas Christopher Wilson
91972
+ * MIT Licensed
91973
+ */
91966
91974
  /*!
91967
91975
  * fill-range <https://github.com/jonschlinkert/fill-range>
91968
91976
  *
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "houdini",
3
- "version": "1.2.10",
3
+ "version": "1.2.11",
4
4
  "description": "The disappearing GraphQL clients",
5
5
  "keywords": [
6
6
  "typescript",
@@ -68,6 +68,11 @@
68
68
  "import": "./build/lib-esm/index.js",
69
69
  "require": "./build/lib-cjs/index.js"
70
70
  },
71
+ "./router": {
72
+ "types": "./build/router/index.d.ts",
73
+ "import": "./build/router-esm/index.js",
74
+ "require": "./build/router-cjs/index.js"
75
+ },
71
76
  "./test": {
72
77
  "types": "./build/test/index.d.ts",
73
78
  "import": "./build/test-esm/index.js",
@@ -84,6 +89,9 @@
84
89
  "codegen": [
85
90
  "build/codegen/index.d.ts"
86
91
  ],
92
+ "router": [
93
+ "build/router/index.d.ts"
94
+ ],
87
95
  "test": [
88
96
  "build/test/index.d.ts"
89
97
  ],