houdini-svelte 0.17.3 → 0.17.4

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 8589c0ef7533f9d6
1
+ houdini-svelte:compile: cache hit, replaying output 63a8657f1d957c94
2
2
  houdini-svelte:compile:
3
- houdini-svelte:compile: > houdini-svelte@0.17.3 compile /home/runner/work/houdini/houdini/packages/houdini-svelte
3
+ houdini-svelte:compile: > houdini-svelte@0.17.4 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 3e116b9f3acd2c9f
1
+ houdini-svelte:typedefs: cache hit, replaying output c4e270bb2bacdf50
2
2
  houdini-svelte:typedefs:
3
- houdini-svelte:typedefs: > houdini-svelte@0.17.3 typedefs /home/runner/work/houdini/houdini/packages/houdini-svelte
3
+ houdini-svelte:typedefs: > houdini-svelte@0.17.4 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
@@ -2,33 +2,24 @@
2
2
 
3
3
  ## 0.17.3
4
4
 
5
- ### Patch Changes
5
+ ### 🐛 Fixes
6
6
 
7
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
8
 
9
- - Updated dependencies []:
10
- - houdini@0.17.3
11
-
12
9
  ## 0.17.2
13
10
 
14
- ### Patch Changes
11
+ ### 🐛 Fixes
15
12
 
16
13
  - [#639](https://github.com/HoudiniGraphql/houdini/pull/639) [`cfdb009`](https://github.com/HoudiniGraphql/houdini/commit/cfdb00907829576b142366bad8835e2d32f3ea78) Thanks [@AlecAivazis](https://github.com/AlecAivazis)! - Fix error with generated route types
17
14
 
18
15
  - [#633](https://github.com/HoudiniGraphql/houdini/pull/633) [`8e52a90`](https://github.com/HoudiniGraphql/houdini/commit/8e52a907642003c3b9c9f9b2a4c9824e49136b5d) Thanks [@jycouet](https://github.com/jycouet)! - fix: queries will be sent once if they are defined in +(page|layout).gql
19
16
 
20
- - Updated dependencies []:
21
- - houdini@0.17.2
22
-
23
17
  ## 0.17.1
24
18
 
25
- ### Patch Changes
19
+ ### 🐛 Fixes
26
20
 
27
21
  - [#630](https://github.com/HoudiniGraphql/houdini/pull/630) [`02d8fc4`](https://github.com/HoudiniGraphql/houdini/commit/02d8fc47f71980bd2b6492162b8e57808447bdbc) Thanks [@AlecAivazis](https://github.com/AlecAivazis)! - Fix relative imports from root layout
28
22
 
29
- - Updated dependencies [[`02d8fc4`](https://github.com/HoudiniGraphql/houdini/commit/02d8fc47f71980bd2b6492162b8e57808447bdbc)]:
30
- - houdini@0.17.1
31
-
32
23
  ## 0.17.0
33
24
 
34
25
  ### ⚠️ Breaking Changes
@@ -96895,8 +96895,12 @@ async function loadSchemaFile(schemaPath) {
96895
96895
  )
96896
96896
  });
96897
96897
  }
96898
- if (!stat(schemaPath)) {
96899
- throw new Error(`Schema file does not exist! Create it using houdini generate -p`);
96898
+ try {
96899
+ await stat(schemaPath);
96900
+ } catch {
96901
+ throw new HoudiniError({
96902
+ message: `Schema file does not exist! Create it using houdini pull-schema`
96903
+ });
96900
96904
  }
96901
96905
  const contents = await readFile(schemaPath);
96902
96906
  if (schemaPath.endsWith("gql") || schemaPath.endsWith("graphql")) {
@@ -96911,6 +96915,7 @@ async function loadSchemaFile(schemaPath) {
96911
96915
  var pendingConfigPromise = null;
96912
96916
  async function getConfig({
96913
96917
  configPath = DEFAULT_CONFIG_PATH,
96918
+ noSchema,
96914
96919
  ...extraConfig
96915
96920
  } = {}) {
96916
96921
  if (_config) {
@@ -96927,7 +96932,7 @@ async function getConfig({
96927
96932
  resolve22 = res;
96928
96933
  reject = rej;
96929
96934
  });
96930
- const configFile = await readConfigFile(configPath);
96935
+ let configFile = await readConfigFile(configPath);
96931
96936
  if (!configFile.plugins) {
96932
96937
  throw new HoudiniError({
96933
96938
  message: "Welcome to 0.17.0! Please following the migration guide here: http://www.houdinigraphql.com/guides/release-notes#0170"
@@ -96952,7 +96957,7 @@ This will prevent your schema from being pulled.`
96952
96957
  schemaOk = await pullSchema(_config.apiUrl, _config.schemaPath);
96953
96958
  }
96954
96959
  }
96955
- if (schemaOk) {
96960
+ if (schemaOk && !noSchema) {
96956
96961
  _config.schema = await loadSchemaFile(_config.schemaPath);
96957
96962
  }
96958
96963
  }
@@ -96888,8 +96888,12 @@ async function loadSchemaFile(schemaPath) {
96888
96888
  )
96889
96889
  });
96890
96890
  }
96891
- if (!stat(schemaPath)) {
96892
- throw new Error(`Schema file does not exist! Create it using houdini generate -p`);
96891
+ try {
96892
+ await stat(schemaPath);
96893
+ } catch {
96894
+ throw new HoudiniError({
96895
+ message: `Schema file does not exist! Create it using houdini pull-schema`
96896
+ });
96893
96897
  }
96894
96898
  const contents = await readFile(schemaPath);
96895
96899
  if (schemaPath.endsWith("gql") || schemaPath.endsWith("graphql")) {
@@ -96904,6 +96908,7 @@ async function loadSchemaFile(schemaPath) {
96904
96908
  var pendingConfigPromise = null;
96905
96909
  async function getConfig({
96906
96910
  configPath = DEFAULT_CONFIG_PATH,
96911
+ noSchema,
96907
96912
  ...extraConfig
96908
96913
  } = {}) {
96909
96914
  if (_config) {
@@ -96920,7 +96925,7 @@ async function getConfig({
96920
96925
  resolve22 = res;
96921
96926
  reject = rej;
96922
96927
  });
96923
- const configFile = await readConfigFile(configPath);
96928
+ let configFile = await readConfigFile(configPath);
96924
96929
  if (!configFile.plugins) {
96925
96930
  throw new HoudiniError({
96926
96931
  message: "Welcome to 0.17.0! Please following the migration guide here: http://www.houdinigraphql.com/guides/release-notes#0170"
@@ -96945,7 +96950,7 @@ This will prevent your schema from being pulled.`
96945
96950
  schemaOk = await pullSchema(_config.apiUrl, _config.schemaPath);
96946
96951
  }
96947
96952
  }
96948
- if (schemaOk) {
96953
+ if (schemaOk && !noSchema) {
96949
96954
  _config.schema = await loadSchemaFile(_config.schemaPath);
96950
96955
  }
96951
96956
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "houdini-svelte",
3
- "version": "0.17.3",
3
+ "version": "0.17.4",
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.3",
12
+ "houdini": "^0.17.4",
13
13
  "minimatch": "^5.1.0",
14
14
  "recast": "^0.21.5",
15
15
  "svelte": "^3.52.0"