Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: Upgrade dependencies #373

Merged
merged 7 commits into from
Aug 21, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions .changeset/short-pets-love.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
---
'@gql.tada/cli-utils': patch
'@gql.tada/internal': patch
'gql.tada': patch
---

Upgrade dependencies
44 changes: 22 additions & 22 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@
},
"dependencies": {
"@0no-co/graphql.web": "^1.0.5",
"@0no-co/graphqlsp": "^1.12.9",
"@0no-co/graphqlsp": "^1.12.13",
"@gql.tada/cli-utils": "workspace:*",
"@gql.tada/internal": "workspace:*"
},
Expand Down Expand Up @@ -111,35 +111,35 @@
"devDependencies": {
"@0no-co/typescript.js": "5.3.2-2",
"@actions/core": "^1.10.0",
"@actions/github": "^5.1.1",
"@babel/plugin-transform-block-scoping": "^7.23.4",
"@babel/plugin-transform-typescript": "^7.23.6",
"@changesets/cli": "^2.27.1",
"@actions/github": "^6.0.0",
"@babel/plugin-transform-block-scoping": "^7.25.0",
"@babel/plugin-transform-typescript": "^7.25.2",
"@changesets/cli": "^2.27.7",
"@changesets/get-github-info": "^0.6.0",
"@rollup/plugin-babel": "^6.0.4",
"@rollup/plugin-commonjs": "^25.0.7",
"@rollup/plugin-commonjs": "^26.0.1",
"@rollup/plugin-node-resolve": "^15.2.3",
"@rollup/plugin-terser": "^0.4.4",
"@types/node": "^20.11.0",
"@typescript-eslint/eslint-plugin": "^6.18.1",
"@typescript-eslint/parser": "^6.18.1",
"dotenv": "^16.3.1",
"@types/node": "^22.4.0",
"@typescript-eslint/eslint-plugin": "^8.1.0",
"@typescript-eslint/parser": "^8.1.0",
"dotenv": "^16.4.5",
"eslint": "^8.56.0",
"eslint-config-prettier": "^9.1.0",
"eslint-plugin-prettier": "^5.1.3",
"eslint-plugin-tsdoc": "^0.2.17",
"expect-type": "^0.17.3",
"graphql": "^16.8.1",
"lint-staged": "^15.2.0",
"eslint-plugin-prettier": "^5.2.1",
"eslint-plugin-tsdoc": "^0.3.0",
"expect-type": "^0.19.0",
"graphql": "^16.9.0",
"lint-staged": "^15.2.9",
"npm-run-all": "^4.1.5",
"prettier": "^3.1.1",
"rimraf": "^5.0.5",
"rollup": "^4.9.4",
"prettier": "^3.3.3",
"rimraf": "^6.0.1",
"rollup": "^4.21.0",
"rollup-plugin-cjs-check": "^1.0.3",
"rollup-plugin-dts": "^6.1.0",
"terser": "^5.26.0",
"typescript": "^5.5.2",
"vitest": "1.1.3"
"rollup-plugin-dts": "^6.1.1",
"terser": "^5.31.6",
"typescript": "^5.5.4",
"vitest": "2.0.5"
},
"publishConfig": {
"access": "public",
Expand Down
6 changes: 3 additions & 3 deletions packages/cli-utils/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@
"devDependencies": {
"@clack/prompts": "^0.7.0",
"@types/node": "^20.11.0",
"@volar/source-map": "^2.1.6",
"@volar/source-map": "~2.1.6",
"clipanion": "4.0.0-rc.3",
"execa": "^8.0.1",
"rollup": "^4.9.4",
Expand All @@ -54,7 +54,7 @@
"wonka": "^6.3.4"
},
"dependencies": {
"@0no-co/graphqlsp": "^1.12.9",
"@0no-co/graphqlsp": "^1.12.13",
"@gql.tada/internal": "workspace:*",
"graphql": "^15.5.0 || ^16.0.0 || ^17.0.0"
},
Expand All @@ -67,7 +67,7 @@
}
},
"peerDependencies": {
"@0no-co/graphqlsp": "^1.12.9",
"@0no-co/graphqlsp": "^1.12.13",
"@gql.tada/svelte-support": "workspace:*",
"@gql.tada/vue-support": "workspace:*",
"graphql": "^15.5.0 || ^16.0.0 || ^17.0.0",
Expand Down
3 changes: 2 additions & 1 deletion packages/cli-utils/src/commands/check/index.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import * as t from 'typanion';
import { Command, Option } from 'clipanion';

import { exitCode } from '../../utils/error';
import { initTTY } from '../../term';
import { run } from './runner';

Expand Down Expand Up @@ -30,6 +31,6 @@ export class CheckCommand extends Command {
tsconfig: this.tsconfig,
})
);
return process.exitCode || (typeof result === 'object' ? result.exit : 0);
return exitCode() || (typeof result === 'object' ? result.exit : 0);
}
}
4 changes: 2 additions & 2 deletions packages/cli-utils/src/commands/check/thread.ts
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,8 @@ async function* _runDiagnostics(
...pluginInfo.config,
shouldCheckForColocatedFragments: isVueOrSvelte
? false
: pluginInfo.config.shouldCheckForColocatedFragments ?? false,
trackFieldUsage: isVueOrSvelte ? false : pluginInfo.config.trackFieldUsage ?? false,
: (pluginInfo.config.shouldCheckForColocatedFragments ?? false),
trackFieldUsage: isVueOrSvelte ? false : (pluginInfo.config.trackFieldUsage ?? false),
};
const diagnostics = getGraphQLDiagnostics(filePath, schemaRef, pluginInfo);
const messages: DiagnosticMessage[] = [];
Expand Down
3 changes: 2 additions & 1 deletion packages/cli-utils/src/commands/doctor/index.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import { Command } from 'clipanion';
import { exitCode } from '../../utils/error';
import { initTTY } from '../../term';
import { run } from './runner';

Expand All @@ -7,6 +8,6 @@ export class DoctorCommand extends Command {

async execute() {
const result = await initTTY().start(run());
return process.exitCode || (typeof result === 'object' ? result.exit : 0);
return exitCode() || (typeof result === 'object' ? result.exit : 0);
}
}
3 changes: 2 additions & 1 deletion packages/cli-utils/src/commands/generate-output/index.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import { Command, Option } from 'clipanion';

import type { OutputOptions } from './runner';
import { exitCode } from '../../utils/error';
import { initTTY } from '../../term';
import { run } from './runner';

Expand Down Expand Up @@ -36,7 +37,7 @@ export class GenerateOutputCommand extends Command {
tsconfig: this.tsconfig,
})
);
return process.exitCode || (typeof result === 'object' ? result.exit : 0);
return exitCode() || (typeof result === 'object' ? result.exit : 0);
}
}

Expand Down
3 changes: 2 additions & 1 deletion packages/cli-utils/src/commands/generate-persisted/index.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import { Command, Option } from 'clipanion';

import type { PersistedOptions } from './runner';
import { exitCode } from '../../utils/error';
import { initTTY } from '../../term';
import { run } from './runner';

Expand Down Expand Up @@ -35,7 +36,7 @@ export class GeneratePersisted extends Command {
tsconfig: this.tsconfig,
})
);
return process.exitCode || (typeof result === 'object' ? result.exit : 0);
return exitCode() || (typeof result === 'object' ? result.exit : 0);
}
}

Expand Down
3 changes: 2 additions & 1 deletion packages/cli-utils/src/commands/generate-schema/index.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import * as t from 'typanion';
import { Command, Option } from 'clipanion';

import { exitCode } from '../../utils/error';
import type { SchemaOptions } from './runner';
import { initTTY } from '../../term';
import { run } from './runner';
Expand Down Expand Up @@ -53,7 +54,7 @@ export class GenerateSchema extends Command {
tsconfig: this.tsconfig,
})
);
return process.exitCode || (typeof result === 'object' ? result.exit : 0);
return exitCode() || (typeof result === 'object' ? result.exit : 0);
}
}

Expand Down
3 changes: 2 additions & 1 deletion packages/cli-utils/src/commands/turbo/index.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import { Command, Option } from 'clipanion';

import type { TurboOptions } from './runner';
import { exitCode } from '../../utils/error';
import { initTTY } from '../../term';
import { run } from './runner';

Expand Down Expand Up @@ -30,7 +31,7 @@ export class TurboCommand extends Command {
tsconfig: this.tsconfig,
})
);
return process.exitCode || (typeof result === 'object' ? result.exit : 0);
return exitCode() || (typeof result === 'object' ? result.exit : 0);
}
}

Expand Down
5 changes: 5 additions & 0 deletions packages/cli-utils/src/utils/error.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,3 +16,8 @@ export class TadaError extends Error {
this.name = 'TadaError';
}
}

export const exitCode = () => {
const { exitCode } = process;
return typeof exitCode === 'string' ? parseInt(exitCode, 10) || 0 : exitCode;
};
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ describe('getPeerSupportedFeatures', () => {
"directiveArgumentsIsDeprecated": true,
"directiveIsRepeatable": true,
"fieldArgumentsIsDeprecated": true,
"inputOneOf": false,
"inputOneOf": true,
"inputValueDeprecation": true,
"specifiedByURL": true,
}
Expand Down
Loading
Loading