Skip to content

Commit

Permalink
Add support for typescript satisfies expression (#767)
Browse files Browse the repository at this point in the history
* Add support for expr satisfies Type expressions

* updating some extra packages to support ts satisfies

* update vitest snapshot

* add changeset

* Update angry-teachers-design.md
  • Loading branch information
524c authored Dec 15, 2022
1 parent 14ab976 commit 0ed1a7b
Show file tree
Hide file tree
Showing 31 changed files with 8,079 additions and 12,148 deletions.
10 changes: 10 additions & 0 deletions .changeset/angry-teachers-design.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
---
'e2e-next': patch
'sveltekit': patch
'scripts': patch
'houdini': patch
'houdini-react': patch
'houdini-svelte': patch
---

Add support for expr satisfies TS expressions
2 changes: 1 addition & 1 deletion e2e/next/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,6 @@
"eslint-config-next": "13.0.0",
"houdini": "workspace:^",
"houdini-react": "workspace:^",
"typescript": "4.8.4"
"typescript": "^4.9"
}
}
2 changes: 1 addition & 1 deletion e2e/sveltekit/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
"svelte-check": "^2.2.6",
"svelte-preprocess": "^4.10.1",
"tslib": "^2.3.1",
"typescript": "~4.6.2",
"typescript": "^4.9",
"vite": "^4.0.1",
"vite-plugin-lib-reporter": "^0.0.6"
}
Expand Down
4 changes: 2 additions & 2 deletions e2e/sveltekit/src/hooks.server.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
import { setSession } from '$houdini';
import type { Handle } from '@sveltejs/kit';

export const handle: Handle = async ({ event, resolve }) => {
export const handle = (async ({ event, resolve }) => {
// set the session information for this event
setSession(event, { user: { token: '1234-Houdini-Token-5678' } });

// pass the event onto the default handle
return await resolve(event);
};
}) satisfies Handle;
2 changes: 1 addition & 1 deletion example/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
"svelte": "^3.55.0",
"svelte-preprocess": "^4.10.1",
"tslib": "^2.3.1",
"typescript": "^4.8.4",
"typescript": "^4.9",
"vite": "^4.0.1",
"ws": "^8.8.1"
},
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,6 @@
"fs-extra": "^10.1.0",
"jest-snapshot": "^29.1.2",
"memfs": "^3.4.7",
"recast": "^0.21.5"
"recast": "^0.23.1"
}
}
2 changes: 1 addition & 1 deletion packages/_scripts/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,6 @@
"glob": "^8.0.3",
"rollup": "^3.7.4",
"rollup-plugin-typescript2": "^0.34.0",
"typescript": "^4.8.4"
"typescript": "^4.9"
}
}
2 changes: 1 addition & 1 deletion packages/houdini-react/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
"estree-walker": "^3.0.1",
"graphql": "^15.8.0",
"houdini": "workspace:^",
"recast": "^0.21.5"
"recast": "^0.23.1"
},
"files": [
"build"
Expand Down
4 changes: 2 additions & 2 deletions packages/houdini-svelte/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,12 +25,12 @@
"dependencies": {
"@kitql/helper": "^0.5.0",
"@sveltejs/kit": "^1.0.0",
"ast-types": "^0.15.1",
"ast-types": "^0.16.1",
"estree-walker": "^3.0.1",
"graphql": "^15.8.0",
"houdini": "workspace:^",
"minimatch": "^5.1.0",
"recast": "^0.21.5",
"recast": "^0.23.1",
"svelte": "^3.55.0"
},
"devDependencies": {
Expand Down
Loading

0 comments on commit 0ed1a7b

Please sign in to comment.