houdini-svelte 0.17.2 → 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.
- package/.turbo/turbo-compile.log +2 -2
- package/.turbo/turbo-typedefs.log +2 -2
- package/CHANGELOG.md +8 -8
- package/build/plugin-cjs/index.js +5 -1
- package/build/plugin-esm/index.js +5 -1
- package/build/preprocess-cjs/index.js +9 -4
- package/build/preprocess-esm/index.js +9 -4
- package/build/test-cjs/index.js +5 -1
- package/build/test-esm/index.js +5 -1
- package/package.json +2 -2
- package/src/plugin/fsPatch.ts +11 -3
package/.turbo/turbo-compile.log
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
houdini-svelte:compile: cache hit, replaying output
|
|
1
|
+
houdini-svelte:compile: cache hit, replaying output 63a8657f1d957c94
|
|
2
2
|
houdini-svelte:compile:
|
|
3
|
-
houdini-svelte:compile: > houdini-svelte@0.17.
|
|
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
|
|
1
|
+
houdini-svelte:typedefs: cache hit, replaying output c4e270bb2bacdf50
|
|
2
2
|
houdini-svelte:typedefs:
|
|
3
|
-
houdini-svelte:typedefs: > houdini-svelte@0.17.
|
|
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
|
@@ -1,25 +1,25 @@
|
|
|
1
1
|
# houdini-svelte
|
|
2
2
|
|
|
3
|
+
## 0.17.3
|
|
4
|
+
|
|
5
|
+
### 🐛 Fixes
|
|
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
|
+
|
|
3
9
|
## 0.17.2
|
|
4
10
|
|
|
5
|
-
###
|
|
11
|
+
### 🐛 Fixes
|
|
6
12
|
|
|
7
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
|
|
8
14
|
|
|
9
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
|
|
10
16
|
|
|
11
|
-
- Updated dependencies []:
|
|
12
|
-
- houdini@0.17.2
|
|
13
|
-
|
|
14
17
|
## 0.17.1
|
|
15
18
|
|
|
16
|
-
###
|
|
19
|
+
### 🐛 Fixes
|
|
17
20
|
|
|
18
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
|
|
19
22
|
|
|
20
|
-
- Updated dependencies [[`02d8fc4`](https://github.com/HoudiniGraphql/houdini/commit/02d8fc47f71980bd2b6492162b8e57808447bdbc)]:
|
|
21
|
-
- houdini@0.17.1
|
|
22
|
-
|
|
23
23
|
## 0.17.0
|
|
24
24
|
|
|
25
25
|
### ⚠️ Breaking Changes
|
|
@@ -183659,7 +183659,11 @@ function virtual_file(name2, options) {
|
|
|
183659
183659
|
};
|
|
183660
183660
|
}
|
|
183661
183661
|
function is_root_route(filepath) {
|
|
183662
|
-
|
|
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
|
-
|
|
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
|
|
|
@@ -96895,8 +96895,12 @@ async function loadSchemaFile(schemaPath) {
|
|
|
96895
96895
|
)
|
|
96896
96896
|
});
|
|
96897
96897
|
}
|
|
96898
|
-
|
|
96899
|
-
|
|
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
|
-
|
|
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
|
-
|
|
96892
|
-
|
|
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
|
-
|
|
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/build/test-cjs/index.js
CHANGED
|
@@ -300403,7 +300403,11 @@ function virtual_file(name2, options) {
|
|
|
300403
300403
|
};
|
|
300404
300404
|
}
|
|
300405
300405
|
function is_root_route(filepath) {
|
|
300406
|
-
|
|
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
|
|
package/build/test-esm/index.js
CHANGED
|
@@ -300392,7 +300392,11 @@ function virtual_file(name2, options) {
|
|
|
300392
300392
|
};
|
|
300393
300393
|
}
|
|
300394
300394
|
function is_root_route(filepath) {
|
|
300395
|
-
|
|
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.
|
|
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.
|
|
12
|
+
"houdini": "^0.17.4",
|
|
13
13
|
"minimatch": "^5.1.0",
|
|
14
14
|
"recast": "^0.21.5",
|
|
15
15
|
"svelte": "^3.52.0"
|
package/src/plugin/fsPatch.ts
CHANGED
|
@@ -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.
|
|
233
|
-
// ignore the src/routes that exists in the
|
|
234
|
-
!filepath.
|
|
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
|
|