Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
25 commits
Select commit Hold shift + click to select a range
4e24b10
feat: improve input and argument usage
StarpTech Nov 18, 2025
9c233aa
fix: operation checks for input and argument changes
JivusAyrus Nov 18, 2025
6169226
chore: add bench
StarpTech Nov 20, 2025
613829a
chore: implement advanced schema usage
StarpTech Nov 21, 2025
70dc6df
chore: add more tests
StarpTech Nov 22, 2025
bbe19fa
chore: track input usage also when variables are empty
StarpTech Nov 24, 2025
4678124
fix: operation checks for input and argument usage
JivusAyrus Nov 28, 2025
ae3c079
refactor: update field type change categories for clarity and consist…
JivusAyrus Nov 28, 2025
58531dc
test: enhance schema change tests for clarity and coverage
JivusAyrus Nov 28, 2025
cd95ed2
refactor: unify inspector schema change handling by removing group st…
JivusAyrus Nov 28, 2025
b42ec8e
fix: correct SQL query formatting in SchemaUsageTrafficInspector
JivusAyrus Nov 28, 2025
52609fe
refactor: remove redundant comment in SchemaUsageTrafficInspector
JivusAyrus Nov 28, 2025
66dd9bf
Merge branch 'main' of github.com:wundergraph/cosmo into dustin/eng-8…
JivusAyrus Dec 1, 2025
06d81a9
fix: pr suggestions
JivusAyrus Dec 1, 2025
a1ebd48
fix: nil check for variables, handle null lists
StarpTech Dec 1, 2025
64e14cd
fix: variable usage for empty list, refactor to use just one walk ove…
StarpTech Dec 1, 2025
d2a5722
fix: improve condition handling for SchemaUsageTrafficInspector
JivusAyrus Dec 1, 2025
9ec6f06
chore: add test for nested arguments
StarpTech Dec 2, 2025
3bcc363
Merge branch 'main' of github.com:wundergraph/cosmo into dustin/eng-8…
JivusAyrus Dec 3, 2025
35b66b6
feat: enhance schema change handling with structured metadata
JivusAyrus Dec 3, 2025
9733d9a
fix: tests
JivusAyrus Dec 3, 2025
251354f
chore: revert to b.loop in benchs
StarpTech Dec 3, 2025
872ec6f
chore: revert dev config
StarpTech Dec 3, 2025
25e04d4
Merge branch 'main' of github.com:wundergraph/cosmo into dustin/eng-8…
JivusAyrus Dec 4, 2025
93d1f9e
chore: fix linter
StarpTech Dec 4, 2025
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
1 change: 0 additions & 1 deletion cli/src/core/client/client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ export const CreateClient = (opts: ClientOptions): Client => {
const transport = createConnectTransport({
// Requests will be made to <baseUrl>/<package>.<service>/method
baseUrl: opts.baseUrl,

// You have to tell the Node.js http API which HTTP version to use.
httpVersion: '1.1',
nodeOptions: {
Expand Down
7 changes: 6 additions & 1 deletion controlplane/src/core/composition/schemaCheck.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { ChangeType, CriticalityLevel, diff, TypeOfChangeType } from '@graphql-inspector/core';
import { ChangeType, CriticalityLevel, diff, TypeOfChangeType, SerializableChange } from '@graphql-inspector/core';
import { EnumStatusCode } from '@wundergraph/cosmo-connect/dist/common/common_pb';
import { GraphQLSchema } from 'graphql';
import { buildSchema } from './composition.js';
Expand All @@ -9,6 +9,8 @@ export interface SchemaDiff {
// path is the path to the field or type that changed
path: string;
isBreaking: boolean;
// meta contains structured data about the change from graphql-inspector
meta: SerializableChange['meta'];
}

export interface GetDiffBetweenGraphsSuccess {
Expand All @@ -34,6 +36,7 @@ export async function getSchemaDiff(oldSchemaSDL: GraphQLSchema, newSchemaSDL: G
message: change.message,
changeType: change.type,
path: change.path ?? '',
meta: change.meta,
isBreaking:
change.criticality.level === CriticalityLevel.Breaking ||
// We consider enum value changes as breaking changes because it is common to use enums in switch statements
Expand Down Expand Up @@ -82,6 +85,7 @@ export async function getDiffBetweenGraphs(
message: breakingChange.message,
changeType: breakingChange.changeType,
path: breakingChange.path,
meta: breakingChange.meta,
isBreaking: true,
};
});
Expand All @@ -93,6 +97,7 @@ export async function getDiffBetweenGraphs(
message: nonBreakingChange.message,
changeType: nonBreakingChange.changeType,
path: nonBreakingChange.path,
meta: nonBreakingChange.meta,
isBreaking: false,
};
});
Expand Down
Loading
Loading