Skip to content

Commit 9ddc579

Browse files
feat: add cross-runtime utilities for file system and process management
- Introduced a new module `runtime.ts` providing runtime-agnostic utilities for file operations and process management across Node.js, Bun, and Deno. feat: implement core file watcher for GraphQL files - Added `index.ts` for a core file watcher that monitors changes in GraphQL files, triggering appropriate callbacks for server and client changes. refactor: streamline Apollo Sandbox script handling - Refactored `apollo-sandbox-script.ts` to utilize a core sandbox handler for improved consistency and maintainability. refactor: update debug route to use core debug template - Changed `debug.ts` to import and use `generateDebugHtml` from the core debug module instead of a local template. refactor: enhance GraphQL Yoga route handler - Updated `graphql-yoga.ts` to use a core server factory for creating the Yoga server, improving code reuse and consistency. refactor: simplify extend loader logic - Refactored `extend-loader.ts` to leverage core extend functionality, reducing complexity and improving maintainability. refactor: optimize file watcher setup - Updated `file-watcher.ts` to utilize the core watcher module, simplifying the setup process and enhancing code clarity. test: add dynamic port allocation for tests - Introduced `ports.ts` to manage dynamic port allocation during tests, preventing conflicts when running multiple instances. test: enhance test setup configuration - Updated `setup.ts` to set CI environment variables and suppress logs during tests, improving test reliability. chore: update Vitest configuration - Modified `vitest.config.ts` to include setup files, retry flaky tests, and exclude unnecessary directories from test runs.
1 parent e9ad12c commit 9ddc579

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

51 files changed

+2858
-1051
lines changed

.gitignore

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,4 +19,7 @@ native/target/
1919
native/*.node
2020
native/index.js
2121
native/index.d.ts
22-
.nuxt
22+
.nuxt
23+
24+
# External projects (not part of this repo)
25+
vercube/

eslint.config.mjs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ const nitro = {
2121
'examples/vite-vue/src/**/*.vue',
2222
'examples/vite-react/src/**/*.{tsx,jsx}',
2323
'content/**/*',
24+
'vercube',
2425
// Test fixtures with intentional syntax errors
2526
'tests/fixtures/**/syntax-error.*',
2627
],

examples/better-auth/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,10 @@
1212
"better:init": "npx @better-auth/cli@latest generate --config ./server/utils/auth.ts"
1313
},
1414
"devDependencies": {
15-
"@better-auth/cli": "^1.4.10",
15+
"@better-auth/cli": "^1.4.11",
1616
"@graphql-tools/utils": "^11.0.0",
1717
"@types/pg": "^8.16.0",
18-
"better-auth": "^1.4.10",
18+
"better-auth": "^1.4.11",
1919
"drizzle-kit": "^0.31.8",
2020
"drizzle-orm": "^0.45.1",
2121
"drizzle-zod": "^0.8.3",

examples/nuxt/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
"@nuxt/schema": "https://pkg.pr.new/@nuxt/schema@33005",
1515
"graphql": "^16.12.0",
1616
"graphql-yoga": "^5.18.0",
17-
"nitro-graphql": "^2.0.0-beta.61",
17+
"nitro-graphql": "^2.0.0-beta.65",
1818
"nuxt": "https://pkg.pr.new/nuxt@33005",
1919
"vue": "^3.5.26",
2020
"vue-router": "^4.6.4"

examples/vite-react/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,8 @@
2323
"tailwindcss": "^4.1.18"
2424
},
2525
"devDependencies": {
26-
"@types/node": "^25.0.5",
27-
"@types/react": "^19.2.7",
26+
"@types/node": "^25.0.6",
27+
"@types/react": "^19.2.8",
2828
"@types/react-dom": "^19.2.3",
2929
"@vitejs/plugin-react": "^5.1.2",
3030
"graphql-config": "^5.1.5",

examples/vite-vue/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
"vue-router": "^4.6.4"
2424
},
2525
"devDependencies": {
26-
"@types/node": "^25.0.5",
26+
"@types/node": "^25.0.6",
2727
"@vitejs/plugin-vue": "^6.0.3",
2828
"@vue/tsconfig": "^0.8.1",
2929
"graphql-config": "^5.1.5",

package.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -180,6 +180,7 @@
180180
"oxc-parser": "catalog:",
181181
"pathe": "catalog:",
182182
"perfect-debounce": "catalog:",
183+
"srvx": "catalog:",
183184
"tinyglobby": "catalog:"
184185
},
185186
"devDependencies": {
@@ -196,6 +197,7 @@
196197
"changelogen": "catalog:",
197198
"crossws": "catalog:",
198199
"eslint": "catalog:",
200+
"get-port": "catalog:",
199201
"graphql": "catalog:",
200202
"graphql-yoga": "catalog:",
201203
"nitro": "catalog:",

playgrounds/cli/graphql/default/sdk.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ import type { ExecutionResult } from 'graphql';
99

1010
export const HelloDocument = /*#__PURE__*/ `
1111
query Hello {
12-
hello
12+
helloCI
1313
}
1414
`;
1515
export type Requester<C = {}, E = unknown> = <R, V>(doc: string, vars?: V, options?: C) => Promise<ExecutionResult<R, E>> | AsyncIterable<ExecutionResult<R, E>>
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
query Hello {
2-
hello
2+
helloCI
33
}
Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,16 @@
1+
# CLI Playground specific types (prefixed to avoid conflicts when extended)
2+
type CLIUser {
3+
id: ID!
4+
name: String!
5+
source: String!
6+
}
7+
18
extend type Query {
29
helloCI: String!
3-
}
10+
cliUser(id: ID!): CLIUser
11+
cliUsers: [CLIUser!]!
12+
}
13+
14+
extend type Mutation {
15+
createCLIUser(name: String!): CLIUser!
16+
}

0 commit comments

Comments
 (0)