chore: Remove Dockerfile and docker-compose.yml, update README and migration guide for backend log checks
Some checks failed
Documentation / build-docs (push) Has been cancelled
Tests / test (macos-latest, 3.11) (push) Has been cancelled
Tests / test (macos-latest, 3.12) (push) Has been cancelled
Tests / test (macos-latest, 3.13) (push) Has been cancelled
Tests / test (macos-latest, 3.14) (push) Has been cancelled
Tests / test (ubuntu-latest, 3.11) (push) Has been cancelled
Tests / test (ubuntu-latest, 3.12) (push) Has been cancelled
Tests / test (ubuntu-latest, 3.13) (push) Has been cancelled
Tests / test (ubuntu-latest, 3.14) (push) Has been cancelled
Some checks failed
Documentation / build-docs (push) Has been cancelled
Tests / test (macos-latest, 3.11) (push) Has been cancelled
Tests / test (macos-latest, 3.12) (push) Has been cancelled
Tests / test (macos-latest, 3.13) (push) Has been cancelled
Tests / test (macos-latest, 3.14) (push) Has been cancelled
Tests / test (ubuntu-latest, 3.11) (push) Has been cancelled
Tests / test (ubuntu-latest, 3.12) (push) Has been cancelled
Tests / test (ubuntu-latest, 3.13) (push) Has been cancelled
Tests / test (ubuntu-latest, 3.14) (push) Has been cancelled
This commit is contained in:
186
frontend/node_modules/.vite/deps/@tanstack_react-query.js
generated
vendored
186
frontend/node_modules/.vite/deps/@tanstack_react-query.js
generated
vendored
@@ -333,6 +333,27 @@ function shouldThrowError(throwOnError, params) {
|
||||
}
|
||||
return !!throwOnError;
|
||||
}
|
||||
function addConsumeAwareSignal(object, getSignal, onCancelled) {
|
||||
let consumed = false;
|
||||
let signal;
|
||||
Object.defineProperty(object, "signal", {
|
||||
enumerable: true,
|
||||
get: () => {
|
||||
signal ?? (signal = getSignal());
|
||||
if (consumed) {
|
||||
return signal;
|
||||
}
|
||||
consumed = true;
|
||||
if (signal.aborted) {
|
||||
onCancelled();
|
||||
} else {
|
||||
signal.addEventListener("abort", onCancelled, { once: true });
|
||||
}
|
||||
return signal;
|
||||
}
|
||||
});
|
||||
return object;
|
||||
}
|
||||
|
||||
// node_modules/@tanstack/query-core/build/modern/focusManager.js
|
||||
var _focused, _cleanup, _setup, _a2;
|
||||
@@ -1242,7 +1263,10 @@ var Query = (_a5 = class extends Removable {
|
||||
fetchFailureCount: state.fetchFailureCount + 1,
|
||||
fetchFailureReason: error,
|
||||
fetchStatus: "idle",
|
||||
status: "error"
|
||||
status: "error",
|
||||
// flag existing data as invalidated if we get a background error
|
||||
// note that "no data" always means stale so we can set unconditionally here
|
||||
isInvalidated: true
|
||||
};
|
||||
case "invalidate":
|
||||
return {
|
||||
@@ -1763,19 +1787,11 @@ function infiniteQueryBehavior(pages) {
|
||||
const fetchFn = async () => {
|
||||
let cancelled = false;
|
||||
const addSignalProperty = (object) => {
|
||||
Object.defineProperty(object, "signal", {
|
||||
enumerable: true,
|
||||
get: () => {
|
||||
if (context.signal.aborted) {
|
||||
cancelled = true;
|
||||
} else {
|
||||
context.signal.addEventListener("abort", () => {
|
||||
cancelled = true;
|
||||
});
|
||||
}
|
||||
return context.signal;
|
||||
}
|
||||
});
|
||||
addConsumeAwareSignal(
|
||||
object,
|
||||
() => context.signal,
|
||||
() => cancelled = true
|
||||
);
|
||||
};
|
||||
const queryFn = ensureQueryFn(context.options, context.fetchOptions);
|
||||
const fetchPage = async (data, param, previous) => {
|
||||
@@ -2093,6 +2109,10 @@ var Mutation = (_a7 = class extends Removable {
|
||||
this,
|
||||
mutationFnContext
|
||||
));
|
||||
} catch (e) {
|
||||
void Promise.reject(e);
|
||||
}
|
||||
try {
|
||||
await ((_p = (_o = this.options).onError) == null ? void 0 : _p.call(
|
||||
_o,
|
||||
error,
|
||||
@@ -2100,6 +2120,10 @@ var Mutation = (_a7 = class extends Removable {
|
||||
this.state.context,
|
||||
mutationFnContext
|
||||
));
|
||||
} catch (e) {
|
||||
void Promise.reject(e);
|
||||
}
|
||||
try {
|
||||
await ((_r = (_q = __privateGet(this, _mutationCache).config).onSettled) == null ? void 0 : _r.call(
|
||||
_q,
|
||||
void 0,
|
||||
@@ -2109,6 +2133,10 @@ var Mutation = (_a7 = class extends Removable {
|
||||
this,
|
||||
mutationFnContext
|
||||
));
|
||||
} catch (e) {
|
||||
void Promise.reject(e);
|
||||
}
|
||||
try {
|
||||
await ((_t = (_s = this.options).onSettled) == null ? void 0 : _t.call(
|
||||
_s,
|
||||
void 0,
|
||||
@@ -2117,10 +2145,11 @@ var Mutation = (_a7 = class extends Removable {
|
||||
this.state.context,
|
||||
mutationFnContext
|
||||
));
|
||||
throw error;
|
||||
} finally {
|
||||
__privateMethod(this, _Mutation_instances, dispatch_fn2).call(this, { type: "error", error });
|
||||
} catch (e) {
|
||||
void Promise.reject(e);
|
||||
}
|
||||
__privateMethod(this, _Mutation_instances, dispatch_fn2).call(this, { type: "error", error });
|
||||
throw error;
|
||||
} finally {
|
||||
__privateGet(this, _mutationCache).runNext(this);
|
||||
}
|
||||
@@ -2413,37 +2442,53 @@ var MutationObserver = (_a9 = class extends Subscribable {
|
||||
mutationKey: this.options.mutationKey
|
||||
};
|
||||
if ((action == null ? void 0 : action.type) === "success") {
|
||||
(_b = (_a13 = __privateGet(this, _mutateOptions)).onSuccess) == null ? void 0 : _b.call(
|
||||
_a13,
|
||||
action.data,
|
||||
variables,
|
||||
onMutateResult,
|
||||
context
|
||||
);
|
||||
(_d = (_c = __privateGet(this, _mutateOptions)).onSettled) == null ? void 0 : _d.call(
|
||||
_c,
|
||||
action.data,
|
||||
null,
|
||||
variables,
|
||||
onMutateResult,
|
||||
context
|
||||
);
|
||||
try {
|
||||
(_b = (_a13 = __privateGet(this, _mutateOptions)).onSuccess) == null ? void 0 : _b.call(
|
||||
_a13,
|
||||
action.data,
|
||||
variables,
|
||||
onMutateResult,
|
||||
context
|
||||
);
|
||||
} catch (e) {
|
||||
void Promise.reject(e);
|
||||
}
|
||||
try {
|
||||
(_d = (_c = __privateGet(this, _mutateOptions)).onSettled) == null ? void 0 : _d.call(
|
||||
_c,
|
||||
action.data,
|
||||
null,
|
||||
variables,
|
||||
onMutateResult,
|
||||
context
|
||||
);
|
||||
} catch (e) {
|
||||
void Promise.reject(e);
|
||||
}
|
||||
} else if ((action == null ? void 0 : action.type) === "error") {
|
||||
(_f = (_e = __privateGet(this, _mutateOptions)).onError) == null ? void 0 : _f.call(
|
||||
_e,
|
||||
action.error,
|
||||
variables,
|
||||
onMutateResult,
|
||||
context
|
||||
);
|
||||
(_h = (_g = __privateGet(this, _mutateOptions)).onSettled) == null ? void 0 : _h.call(
|
||||
_g,
|
||||
void 0,
|
||||
action.error,
|
||||
variables,
|
||||
onMutateResult,
|
||||
context
|
||||
);
|
||||
try {
|
||||
(_f = (_e = __privateGet(this, _mutateOptions)).onError) == null ? void 0 : _f.call(
|
||||
_e,
|
||||
action.error,
|
||||
variables,
|
||||
onMutateResult,
|
||||
context
|
||||
);
|
||||
} catch (e) {
|
||||
void Promise.reject(e);
|
||||
}
|
||||
try {
|
||||
(_h = (_g = __privateGet(this, _mutateOptions)).onSettled) == null ? void 0 : _h.call(
|
||||
_g,
|
||||
void 0,
|
||||
action.error,
|
||||
variables,
|
||||
onMutateResult,
|
||||
context
|
||||
);
|
||||
} catch (e) {
|
||||
void Promise.reject(e);
|
||||
}
|
||||
}
|
||||
}
|
||||
this.listeners.forEach((listener) => {
|
||||
@@ -2519,7 +2564,6 @@ var QueriesObserver = (_a10 = class extends Subscribable {
|
||||
notifyManager.batch(() => {
|
||||
const prevObservers = __privateGet(this, _observers2);
|
||||
const newObserverMatches = __privateMethod(this, _QueriesObserver_instances, findMatchingObservers_fn).call(this, __privateGet(this, _queries));
|
||||
__privateSet(this, _observerMatches, newObserverMatches);
|
||||
newObserverMatches.forEach(
|
||||
(match) => match.observer.setOptions(match.defaultedQueryOptions)
|
||||
);
|
||||
@@ -2538,6 +2582,7 @@ var QueriesObserver = (_a10 = class extends Subscribable {
|
||||
});
|
||||
if (!hasStructuralChange && !hasResultChange) return;
|
||||
if (hasStructuralChange) {
|
||||
__privateSet(this, _observerMatches, newObserverMatches);
|
||||
__privateSet(this, _observers2, newObservers);
|
||||
}
|
||||
__privateSet(this, _result, newResult);
|
||||
@@ -3048,20 +3093,34 @@ function streamedQuery({
|
||||
});
|
||||
}
|
||||
let result = initialValue;
|
||||
const stream = await streamFn(context);
|
||||
let cancelled = false;
|
||||
const streamFnContext = addConsumeAwareSignal(
|
||||
{
|
||||
client: context.client,
|
||||
meta: context.meta,
|
||||
queryKey: context.queryKey,
|
||||
pageParam: context.pageParam,
|
||||
direction: context.direction
|
||||
},
|
||||
() => context.signal,
|
||||
() => cancelled = true
|
||||
);
|
||||
const stream = await streamFn(streamFnContext);
|
||||
const isReplaceRefetch = isRefetch && refetchMode === "replace";
|
||||
for await (const chunk of stream) {
|
||||
if (context.signal.aborted) {
|
||||
if (cancelled) {
|
||||
break;
|
||||
}
|
||||
if (!isRefetch || refetchMode !== "replace") {
|
||||
if (isReplaceRefetch) {
|
||||
result = reducer(result, chunk);
|
||||
} else {
|
||||
context.client.setQueryData(
|
||||
context.queryKey,
|
||||
(prev) => reducer(prev === void 0 ? initialValue : prev, chunk)
|
||||
);
|
||||
}
|
||||
result = reducer(result, chunk);
|
||||
}
|
||||
if (isRefetch && refetchMode === "replace" && !context.signal.aborted) {
|
||||
if (isReplaceRefetch && !cancelled) {
|
||||
context.client.setQueryData(context.queryKey, result);
|
||||
}
|
||||
return context.client.getQueryData(context.queryKey) ?? initialValue;
|
||||
@@ -3139,8 +3198,9 @@ var QueryErrorResetBoundary = ({
|
||||
|
||||
// node_modules/@tanstack/react-query/build/modern/errorBoundaryUtils.js
|
||||
var React4 = __toESM(require_react(), 1);
|
||||
var ensurePreventErrorBoundaryRetry = (options, errorResetBoundary) => {
|
||||
if (options.suspense || options.throwOnError || options.experimental_prefetchInRender) {
|
||||
var ensurePreventErrorBoundaryRetry = (options, errorResetBoundary, query) => {
|
||||
const throwOnError = (query == null ? void 0 : query.state.error) && typeof options.throwOnError === "function" ? shouldThrowError(options.throwOnError, [query.state.error, query]) : options.throwOnError;
|
||||
if (options.suspense || options.experimental_prefetchInRender || throwOnError) {
|
||||
if (!errorResetBoundary.isReset()) {
|
||||
options.retryOnMount = false;
|
||||
}
|
||||
@@ -3201,9 +3261,10 @@ function useQueries({
|
||||
}),
|
||||
[queries, client, isRestoring]
|
||||
);
|
||||
defaultedQueries.forEach((query) => {
|
||||
ensureSuspenseTimers(query);
|
||||
ensurePreventErrorBoundaryRetry(query, errorResetBoundary);
|
||||
defaultedQueries.forEach((queryOptions2) => {
|
||||
ensureSuspenseTimers(queryOptions2);
|
||||
const query = client.getQueryCache().get(queryOptions2.queryHash);
|
||||
ensurePreventErrorBoundaryRetry(queryOptions2, errorResetBoundary, query);
|
||||
});
|
||||
useClearResetErrorBoundary(errorResetBoundary);
|
||||
const [observer] = React5.useState(
|
||||
@@ -3271,7 +3332,7 @@ function useQueries({
|
||||
// node_modules/@tanstack/react-query/build/modern/useBaseQuery.js
|
||||
var React6 = __toESM(require_react(), 1);
|
||||
function useBaseQuery(options, Observer, queryClient) {
|
||||
var _a13, _b, _c, _d, _e;
|
||||
var _a13, _b, _c, _d;
|
||||
if (true) {
|
||||
if (typeof options !== "object" || Array.isArray(options)) {
|
||||
throw new Error(
|
||||
@@ -3287,6 +3348,7 @@ function useBaseQuery(options, Observer, queryClient) {
|
||||
_a13,
|
||||
defaultedOptions
|
||||
);
|
||||
const query = client.getQueryCache().get(defaultedOptions.queryHash);
|
||||
if (true) {
|
||||
if (!defaultedOptions.queryFn) {
|
||||
console.error(
|
||||
@@ -3296,7 +3358,7 @@ function useBaseQuery(options, Observer, queryClient) {
|
||||
}
|
||||
defaultedOptions._optimisticResults = isRestoring ? "isRestoring" : "optimistic";
|
||||
ensureSuspenseTimers(defaultedOptions);
|
||||
ensurePreventErrorBoundaryRetry(defaultedOptions, errorResetBoundary);
|
||||
ensurePreventErrorBoundaryRetry(defaultedOptions, errorResetBoundary, query);
|
||||
useClearResetErrorBoundary(errorResetBoundary);
|
||||
const isNewCacheEntry = !client.getQueryCache().get(defaultedOptions.queryHash);
|
||||
const [observer] = React6.useState(
|
||||
@@ -3329,7 +3391,7 @@ function useBaseQuery(options, Observer, queryClient) {
|
||||
result,
|
||||
errorResetBoundary,
|
||||
throwOnError: defaultedOptions.throwOnError,
|
||||
query: client.getQueryCache().get(defaultedOptions.queryHash),
|
||||
query,
|
||||
suspense: defaultedOptions.suspense
|
||||
})) {
|
||||
throw result.error;
|
||||
@@ -3346,7 +3408,7 @@ function useBaseQuery(options, Observer, queryClient) {
|
||||
fetchOptimistic(defaultedOptions, observer, errorResetBoundary)
|
||||
) : (
|
||||
// subscribe to the "cache promise" so that we can finalize the currentThenable once data comes in
|
||||
(_e = client.getQueryCache().get(defaultedOptions.queryHash)) == null ? void 0 : _e.promise
|
||||
query == null ? void 0 : query.promise
|
||||
);
|
||||
promise == null ? void 0 : promise.catch(noop).finally(() => {
|
||||
observer.updateResult();
|
||||
|
||||
Reference in New Issue
Block a user