houdini-svelte 0.17.2 → 0.17.3

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.
@@ -1,5 +1,5 @@
1
- houdini-svelte:compile: cache hit, replaying output bb0207bdc5a5b1bb
1
+ houdini-svelte:compile: cache hit, replaying output 8589c0ef7533f9d6
2
2
  houdini-svelte:compile:
3
- houdini-svelte:compile: > houdini-svelte@0.17.2 compile /home/runner/work/houdini/houdini/packages/houdini-svelte
3
+ houdini-svelte:compile: > houdini-svelte@0.17.3 compile /home/runner/work/houdini/houdini/packages/houdini-svelte
4
4
  houdini-svelte:compile: > scripts build --plugin
5
5
  houdini-svelte:compile:
@@ -1,5 +1,5 @@
1
- houdini-svelte:typedefs: cache hit, replaying output d8f39fd8ade18fe7
1
+ houdini-svelte:typedefs: cache hit, replaying output 3e116b9f3acd2c9f
2
2
  houdini-svelte:typedefs:
3
- houdini-svelte:typedefs: > houdini-svelte@0.17.2 typedefs /home/runner/work/houdini/houdini/packages/houdini-svelte
3
+ houdini-svelte:typedefs: > houdini-svelte@0.17.3 typedefs /home/runner/work/houdini/houdini/packages/houdini-svelte
4
4
  houdini-svelte:typedefs: > scripts typedefs --plugin
5
5
  houdini-svelte:typedefs:
package/CHANGELOG.md CHANGED
@@ -1,5 +1,14 @@
1
1
  # houdini-svelte
2
2
 
3
+ ## 0.17.3
4
+
5
+ ### Patch Changes
6
+
7
+ - [#643](https://github.com/HoudiniGraphql/houdini/pull/643) [`35b189f`](https://github.com/HoudiniGraphql/houdini/commit/35b189f8cc494ce4f80d54c00736e9dd8d3c69e7) Thanks [@AlecAivazis](https://github.com/AlecAivazis)! - Fix error preventing session in certain node versions
8
+
9
+ - Updated dependencies []:
10
+ - houdini@0.17.3
11
+
3
12
  ## 0.17.2
4
13
 
5
14
  ### Patch Changes
@@ -183659,7 +183659,11 @@ function virtual_file(name2, options) {
183659
183659
  };
183660
183660
  }
183661
183661
  function is_root_route(filepath) {
183662
- return filepath.toString().endsWith(path_exports.join("src", "routes")) && !filepath.toString().includes(path_exports.join(".svelte-kit", "types"));
183662
+ filepath = filepath.toString();
183663
+ if (filepath.toString().endsWith("/")) {
183664
+ filepath = filepath.slice(0, -1);
183665
+ }
183666
+ return filepath.endsWith(path_exports.join("src", "routes")) && !filepath.includes(".svelte-kit") && !filepath.includes("$houdini");
183663
183667
  }
183664
183668
  var empty_layout = "<slot />";
183665
183669
 
@@ -183655,7 +183655,11 @@ function virtual_file(name2, options) {
183655
183655
  };
183656
183656
  }
183657
183657
  function is_root_route(filepath) {
183658
- return filepath.toString().endsWith(path_exports.join("src", "routes")) && !filepath.toString().includes(path_exports.join(".svelte-kit", "types"));
183658
+ filepath = filepath.toString();
183659
+ if (filepath.toString().endsWith("/")) {
183660
+ filepath = filepath.slice(0, -1);
183661
+ }
183662
+ return filepath.endsWith(path_exports.join("src", "routes")) && !filepath.includes(".svelte-kit") && !filepath.includes("$houdini");
183659
183663
  }
183660
183664
  var empty_layout = "<slot />";
183661
183665
 
@@ -300403,7 +300403,11 @@ function virtual_file(name2, options) {
300403
300403
  };
300404
300404
  }
300405
300405
  function is_root_route(filepath) {
300406
- return filepath.toString().endsWith(path_exports.join("src", "routes")) && !filepath.toString().includes(path_exports.join(".svelte-kit", "types"));
300406
+ filepath = filepath.toString();
300407
+ if (filepath.toString().endsWith("/")) {
300408
+ filepath = filepath.slice(0, -1);
300409
+ }
300410
+ return filepath.endsWith(path_exports.join("src", "routes")) && !filepath.includes(".svelte-kit") && !filepath.includes("$houdini");
300407
300411
  }
300408
300412
  var empty_layout = "<slot />";
300409
300413
 
@@ -300392,7 +300392,11 @@ function virtual_file(name2, options) {
300392
300392
  };
300393
300393
  }
300394
300394
  function is_root_route(filepath) {
300395
- return filepath.toString().endsWith(path_exports.join("src", "routes")) && !filepath.toString().includes(path_exports.join(".svelte-kit", "types"));
300395
+ filepath = filepath.toString();
300396
+ if (filepath.toString().endsWith("/")) {
300397
+ filepath = filepath.slice(0, -1);
300398
+ }
300399
+ return filepath.endsWith(path_exports.join("src", "routes")) && !filepath.includes(".svelte-kit") && !filepath.includes("$houdini");
300396
300400
  }
300397
300401
  var empty_layout = "<slot />";
300398
300402
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "houdini-svelte",
3
- "version": "0.17.2",
3
+ "version": "0.17.3",
4
4
  "description": "The svelte plugin for houdini",
5
5
  "type": "module",
6
6
  "dependencies": {
@@ -9,7 +9,7 @@
9
9
  "ast-types": "^0.15.1",
10
10
  "estree-walker": "^3.0.1",
11
11
  "graphql": "^16.6.0",
12
- "houdini": "^0.17.2",
12
+ "houdini": "^0.17.3",
13
13
  "minimatch": "^5.1.0",
14
14
  "recast": "^0.21.5",
15
15
  "svelte": "^3.52.0"
@@ -228,10 +228,18 @@ function virtual_file(name: string, options: Parameters<typeof filesystem.readdi
228
228
  }
229
229
 
230
230
  function is_root_route(filepath: PathLike): boolean {
231
+ filepath = filepath.toString()
232
+
233
+ // if the filepath ends with / we need to strip that away
234
+ if (filepath.toString().endsWith('/')) {
235
+ filepath = filepath.slice(0, -1)
236
+ }
237
+
231
238
  return (
232
- filepath.toString().endsWith(path.join('src', 'routes')) &&
233
- // ignore the src/routes that exists in the
234
- !filepath.toString().includes(path.join('.svelte-kit', 'types'))
239
+ filepath.endsWith(path.join('src', 'routes')) &&
240
+ // ignore the src/routes that exists in the type roots
241
+ !filepath.includes('.svelte-kit') &&
242
+ !filepath.includes('$houdini')
235
243
  )
236
244
  }
237
245