Bot releases are visible (Hide)
Published by github-actions[bot] 9 months ago
526a01a0843807387415e41f3df3227dff2fbc68
,cb1af698a2254dcc5400750582f4df09fb07b9b9
,526a01a0843807387415e41f3df3227dff2fbc68
,526a01a0843807387415e41f3df3227dff2fbc68
,526a01a0843807387415e41f3df3227dff2fbc68
,526a01a0843807387415e41f3df3227dff2fbc68
,526a01a0843807387415e41f3df3227dff2fbc68
,526a01a0843807387415e41f3df3227dff2fbc68
,526a01a0843807387415e41f3df3227dff2fbc68
,526a01a0843807387415e41f3df3227dff2fbc68
,526a01a0843807387415e41f3df3227dff2fbc68
,595ec8431de0d4be2edc4f60809988bda0cf2833
,526a01a0843807387415e41f3df3227dff2fbc68
,526a01a0843807387415e41f3df3227dff2fbc68
,526a01a0843807387415e41f3df3227dff2fbc68
,526a01a0843807387415e41f3df3227dff2fbc68
,f865cafd34698b23e96ae7a3fb67ff89ec28e244
,526a01a0843807387415e41f3df3227dff2fbc68
,526a01a0843807387415e41f3df3227dff2fbc68
]:
Published by github-actions[bot] 9 months ago
526a01a0843807387415e41f3df3227dff2fbc68
,cb1af698a2254dcc5400750582f4df09fb07b9b9
,526a01a0843807387415e41f3df3227dff2fbc68
,526a01a0843807387415e41f3df3227dff2fbc68
,526a01a0843807387415e41f3df3227dff2fbc68
,526a01a0843807387415e41f3df3227dff2fbc68
,526a01a0843807387415e41f3df3227dff2fbc68
,526a01a0843807387415e41f3df3227dff2fbc68
,526a01a0843807387415e41f3df3227dff2fbc68
,526a01a0843807387415e41f3df3227dff2fbc68
,526a01a0843807387415e41f3df3227dff2fbc68
,595ec8431de0d4be2edc4f60809988bda0cf2833
,526a01a0843807387415e41f3df3227dff2fbc68
,526a01a0843807387415e41f3df3227dff2fbc68
,526a01a0843807387415e41f3df3227dff2fbc68
,526a01a0843807387415e41f3df3227dff2fbc68
,f865cafd34698b23e96ae7a3fb67ff89ec28e244
,526a01a0843807387415e41f3df3227dff2fbc68
,526a01a0843807387415e41f3df3227dff2fbc68
]:
Published by github-actions[bot] about 2 years ago
Published by github-actions[bot] about 2 years ago
Published by github-actions[bot] over 2 years ago
Published by github-actions[bot] over 2 years ago
323ecbe: A new option enumsAsConsts
is added to the GQtyConfig
Here's a sample of how it differs from enum
enum Enum {
A_B_C = 'A_B_C',
X_Y_Z = 'X_Y_Z',
_TEST = '_TEST',
My_Value = 'My_Value',
}
export const EnumAsConst = {
ABC: 'A_B_C',
XYZ: 'X_Y_Z',
Test: '_TEST',
MyValue: 'My_Value',
} as const;
export type EnumAsConst = typeof EnumAsConst[keyof typeof EnumAsConst];
function useEnum(value: Enum) {}
function useEnumAsConst(value: EnumAsConst) {}
useEnum(Enum.A_B_C); // Ok
useEnum('A_B_C'); // Error: Argument of type '"A_B_C"' is not assignable to parameter of type 'Enum'.
useEnumAsConst(Enum.A_B_C); // Ok
useEnumAsConst(EnumAsConst.ABC); // Ok
useEnumAsConst('A_B_C'); // Ok
See also:
Published by github-actions[bot] over 2 years ago
dd47986: New option "fetchOptions"
, added to the resolved
client function, that allows for giving extra configurations to the expected fetch call.
This enables, for example, the customization of the headers sent for a specific query or to pass an AbortSignal.
import { resolved, query } from '../gqty';
// ...
const controller = new AbortController();
await resolved(() => query.currentUser?.email, {
fetchOptions: {
headers: {
'Content-Type': 'application/json',
authorization: 'secret_token',
},
signal: controller.signal,
},
});
For already generated clients to be able to use this new option, it is required manually modify the existing query fetcher, to do for example:
const queryFetcher: QueryFetcher = async function (
query,
variables,
fetchOptions
) {
const response = await fetch(endpoint, {
method: 'POST',
headers: {
'Content-Type': 'application/json',
},
body: JSON.stringify({
query,
variables,
}),
...fetchOptions,
});
const json = await response.json();
return json;
};
b7c8710: Fix generator: Argument is required only if it is non-null and does not have default value. Previously only checking if it is non-null.
Published by github-actions[bot] over 2 years ago
dd47986: New option "fetchOptions"
, added to the resolved
client function, that allows for giving extra configurations to the expected fetch call.
This enables, for example, the customization of the headers sent for a specific query or to pass an AbortSignal.
import { resolved, query } from '../gqty';
// ...
const controller = new AbortController();
await resolved(() => query.currentUser?.email, {
fetchOptions: {
headers: {
'Content-Type': 'application/json',
authorization: 'secret_token',
},
signal: controller.signal,
},
});
For already generated clients to be able to use this new option, it is required manually modify the existing query fetcher, to do for example:
const queryFetcher: QueryFetcher = async function (
query,
variables,
fetchOptions
) {
const response = await fetch(endpoint, {
method: 'POST',
headers: {
'Content-Type': 'application/json',
},
body: JSON.stringify({
query,
variables,
}),
...fetchOptions,
});
const json = await response.json();
return json;
};
Published by github-actions[bot] almost 3 years ago
undici
for network schema introspectionPublished by github-actions[bot] almost 3 years ago
Published by github-actions[bot] almost 3 years ago
Published by github-actions[bot] almost 3 years ago
Published by github-actions[bot] almost 3 years ago
96ab370: Change export syntax to fix bundling issues, show a warning on existent generated clients with export const {
syntax.
Closes #292
Published by github-actions[bot] almost 3 years ago
6ced359: New "$state.error" property in "useQuery" which gives the last scheduler Error, for more in-depth error management it's still recommended to use useMetaState
hook
Closes #111
Published by github-actions[bot] almost 3 years ago
Published by github-actions[bot] almost 3 years ago
"depthLimit"
(by default is 15
), needed to prevent possible infinite recursion, after the specified depth is reached, the proxy creation is stopped returning null
.Published by github-actions[bot] almost 3 years ago
Published by github-actions[bot] almost 3 years ago
Published by github-actions[bot] almost 3 years ago
cba5c43: Don't skip config read on NODE_ENV === "test"
a4fc294: New Envelop / graphql-ez plugin that automatically generates gqty code based on schema and gqty.config.cjs
// graphql-ez
// ...
import { useGenerateGQty } from '@gqty/cli/envelop';
const ezApp = CreateApp({
// ...
envelop: {
plugins: [
// ...
useGenerateGQty({
// ...
}),
],
},
});
// Envelop
import { envelop } from '@envelop/core';
import { useGenerateGQty } from '@gqty/cli/envelop';
//...
const getEnveloped = envelop({
plugins: [
// ...
useGenerateGQty({
// ...
}),
],
});
aab8e48: Fix: don't put invalid default generate endpoint
f72aa23: GraphQL v16 compatibility
closes #268
Published by github-actions[bot] about 3 years ago