Skip to content

Commit

Permalink
Fix deps and regenerate
Browse files Browse the repository at this point in the history
  • Loading branch information
paul-sachs committed Nov 15, 2024
1 parent 42d7e9d commit 7e10f7c
Show file tree
Hide file tree
Showing 16 changed files with 169 additions and 161 deletions.
2 changes: 1 addition & 1 deletion examples/react/basic/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,6 @@
"react": "^18.3.1",
"react-dom": "^18.3.1",
"typescript": "^5.6.3",
"vite": "^5.4.10"
"vite": "^5.4.11"
}
}
10 changes: 5 additions & 5 deletions packages/connect-query-core/src/create-infinite-query-options.ts
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ function createUnaryInfiniteQueryFn<
pageParamKey,
}: {
pageParamKey: ParamKey;
}
},
): QueryFunction<
MessageShape<O>,
ConnectQueryKey,
Expand Down Expand Up @@ -97,7 +97,7 @@ export function createInfiniteQueryOptions<
transport,
getNextPageParam,
pageParamKey,
}: ConnectInfiniteQueryOptions<I, O, ParamKey> & { transport: Transport }
}: ConnectInfiniteQueryOptions<I, O, ParamKey> & { transport: Transport },
): {
getNextPageParam: ConnectInfiniteQueryOptions<
I,
Expand All @@ -124,7 +124,7 @@ export function createInfiniteQueryOptions<
transport,
getNextPageParam,
pageParamKey,
}: ConnectInfiniteQueryOptions<I, O, ParamKey> & { transport: Transport }
}: ConnectInfiniteQueryOptions<I, O, ParamKey> & { transport: Transport },
): {
getNextPageParam: ConnectInfiniteQueryOptions<
I,
Expand All @@ -149,7 +149,7 @@ export function createInfiniteQueryOptions<
transport,
getNextPageParam,
pageParamKey,
}: ConnectInfiniteQueryOptions<I, O, ParamKey> & { transport: Transport }
}: ConnectInfiniteQueryOptions<I, O, ParamKey> & { transport: Transport },
): {
getNextPageParam: ConnectInfiniteQueryOptions<
I,
Expand Down Expand Up @@ -180,7 +180,7 @@ export function createInfiniteQueryOptions<
transport,
getNextPageParam,
pageParamKey,
}: ConnectInfiniteQueryOptions<I, O, ParamKey> & { transport: Transport }
}: ConnectInfiniteQueryOptions<I, O, ParamKey> & { transport: Transport },
): {
getNextPageParam: ConnectInfiniteQueryOptions<
I,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ describe("createQueryOptions", () => {
{ sentence: "hi" },
{
transport: mockedElizaTransport,
}
},
);
expect(opt.queryKey).toStrictEqual(want);
});
Expand Down
34 changes: 23 additions & 11 deletions packages/connect-query-core/src/gen/bigint_pb.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,17 +16,29 @@
// @generated from file bigint.proto (syntax proto3)
/* eslint-disable */

import type { GenFile, GenMessage, GenService } from "@bufbuild/protobuf/codegenv1";
import { fileDesc, messageDesc, serviceDesc } from "@bufbuild/protobuf/codegenv1";
import type {
GenFile,
GenMessage,
GenService,
} from "@bufbuild/protobuf/codegenv1";
import {
fileDesc,
messageDesc,
serviceDesc,
} from "@bufbuild/protobuf/codegenv1";
import type { EmptySchema } from "@bufbuild/protobuf/wkt";
import { file_google_protobuf_empty } from "@bufbuild/protobuf/wkt";
import type { Message } from "@bufbuild/protobuf";

/**
* Describes the file bigint.proto.
*/
export const file_bigint: GenFile = /*@__PURE__*/
fileDesc("CgxiaWdpbnQucHJvdG8iGwoMQ291bnRSZXF1ZXN0EgsKA2FkZBgBIAEoAyIeCg1Db3VudFJlc3BvbnNlEg0KBWNvdW50GAEgASgDMmsKDUJpZ0ludFNlcnZpY2USJgoFQ291bnQSDS5Db3VudFJlcXVlc3QaDi5Db3VudFJlc3BvbnNlEjIKCEdldENvdW50EhYuZ29vZ2xlLnByb3RvYnVmLkVtcHR5Gg4uQ291bnRSZXNwb25zZWIGcHJvdG8z", [file_google_protobuf_empty]);
export const file_bigint: GenFile =
/*@__PURE__*/
fileDesc(
"CgxiaWdpbnQucHJvdG8iGwoMQ291bnRSZXF1ZXN0EgsKA2FkZBgBIAEoAyIeCg1Db3VudFJlc3BvbnNlEg0KBWNvdW50GAEgASgDMmsKDUJpZ0ludFNlcnZpY2USJgoFQ291bnQSDS5Db3VudFJlcXVlc3QaDi5Db3VudFJlc3BvbnNlEjIKCEdldENvdW50EhYuZ29vZ2xlLnByb3RvYnVmLkVtcHR5Gg4uQ291bnRSZXNwb25zZWIGcHJvdG8z",
[file_google_protobuf_empty],
);

/**
* @generated from message CountRequest
Expand All @@ -42,7 +54,8 @@ export type CountRequest = Message<"CountRequest"> & {
* Describes the message CountRequest.
* Use `create(CountRequestSchema)` to create a new message.
*/
export const CountRequestSchema: GenMessage<CountRequest> = /*@__PURE__*/
export const CountRequestSchema: GenMessage<CountRequest> =
/*@__PURE__*/
messageDesc(file_bigint, 0);

/**
Expand All @@ -59,7 +72,8 @@ export type CountResponse = Message<"CountResponse"> & {
* Describes the message CountResponse.
* Use `create(CountResponseSchema)` to create a new message.
*/
export const CountResponseSchema: GenMessage<CountResponse> = /*@__PURE__*/
export const CountResponseSchema: GenMessage<CountResponse> =
/*@__PURE__*/
messageDesc(file_bigint, 1);

/**
Expand All @@ -73,15 +87,13 @@ export const BigIntService: GenService<{
methodKind: "unary";
input: typeof CountRequestSchema;
output: typeof CountResponseSchema;
},
};
/**
* @generated from rpc BigIntService.GetCount
*/
getCount: {
methodKind: "unary";
input: typeof EmptySchema;
output: typeof CountResponseSchema;
},
}> = /*@__PURE__*/
serviceDesc(file_bigint, 0);

};
}> = /*@__PURE__*/ serviceDesc(file_bigint, 0);
31 changes: 21 additions & 10 deletions packages/connect-query-core/src/gen/eliza_pb.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,15 +16,26 @@
// @generated from file eliza.proto (package connectrpc.eliza.v1, syntax proto3)
/* eslint-disable */

import type { GenFile, GenMessage, GenService } from "@bufbuild/protobuf/codegenv1";
import { fileDesc, messageDesc, serviceDesc } from "@bufbuild/protobuf/codegenv1";
import type {
GenFile,
GenMessage,
GenService,
} from "@bufbuild/protobuf/codegenv1";
import {
fileDesc,
messageDesc,
serviceDesc,
} from "@bufbuild/protobuf/codegenv1";
import type { Message } from "@bufbuild/protobuf";

/**
* Describes the file eliza.proto.
*/
export const file_eliza: GenFile = /*@__PURE__*/
fileDesc("CgtlbGl6YS5wcm90bxITY29ubmVjdHJwYy5lbGl6YS52MSIeCgpTYXlSZXF1ZXN0EhAKCHNlbnRlbmNlGAEgASgJIh8KC1NheVJlc3BvbnNlEhAKCHNlbnRlbmNlGAEgASgJMloKDEVsaXphU2VydmljZRJKCgNTYXkSHy5jb25uZWN0cnBjLmVsaXphLnYxLlNheVJlcXVlc3QaIC5jb25uZWN0cnBjLmVsaXphLnYxLlNheVJlc3BvbnNlIgBiBnByb3RvMw");
export const file_eliza: GenFile =
/*@__PURE__*/
fileDesc(
"CgtlbGl6YS5wcm90bxITY29ubmVjdHJwYy5lbGl6YS52MSIeCgpTYXlSZXF1ZXN0EhAKCHNlbnRlbmNlGAEgASgJIh8KC1NheVJlc3BvbnNlEhAKCHNlbnRlbmNlGAEgASgJMloKDEVsaXphU2VydmljZRJKCgNTYXkSHy5jb25uZWN0cnBjLmVsaXphLnYxLlNheVJlcXVlc3QaIC5jb25uZWN0cnBjLmVsaXphLnYxLlNheVJlc3BvbnNlIgBiBnByb3RvMw",
);

/**
* SayRequest is a single-sentence request.
Expand All @@ -42,7 +53,8 @@ export type SayRequest = Message<"connectrpc.eliza.v1.SayRequest"> & {
* Describes the message connectrpc.eliza.v1.SayRequest.
* Use `create(SayRequestSchema)` to create a new message.
*/
export const SayRequestSchema: GenMessage<SayRequest> = /*@__PURE__*/
export const SayRequestSchema: GenMessage<SayRequest> =
/*@__PURE__*/
messageDesc(file_eliza, 0);

/**
Expand All @@ -61,7 +73,8 @@ export type SayResponse = Message<"connectrpc.eliza.v1.SayResponse"> & {
* Describes the message connectrpc.eliza.v1.SayResponse.
* Use `create(SayResponseSchema)` to create a new message.
*/
export const SayResponseSchema: GenMessage<SayResponse> = /*@__PURE__*/
export const SayResponseSchema: GenMessage<SayResponse> =
/*@__PURE__*/
messageDesc(file_eliza, 1);

/**
Expand All @@ -84,7 +97,5 @@ export const ElizaService: GenService<{
methodKind: "unary";
input: typeof SayRequestSchema;
output: typeof SayResponseSchema;
},
}> = /*@__PURE__*/
serviceDesc(file_eliza, 0);

};
}> = /*@__PURE__*/ serviceDesc(file_eliza, 0);
31 changes: 21 additions & 10 deletions packages/connect-query-core/src/gen/list_pb.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,15 +16,26 @@
// @generated from file list.proto (syntax proto3)
/* eslint-disable */

import type { GenFile, GenMessage, GenService } from "@bufbuild/protobuf/codegenv1";
import { fileDesc, messageDesc, serviceDesc } from "@bufbuild/protobuf/codegenv1";
import type {
GenFile,
GenMessage,
GenService,
} from "@bufbuild/protobuf/codegenv1";
import {
fileDesc,
messageDesc,
serviceDesc,
} from "@bufbuild/protobuf/codegenv1";
import type { Message } from "@bufbuild/protobuf";

/**
* Describes the file list.proto.
*/
export const file_list: GenFile = /*@__PURE__*/
fileDesc("CgpsaXN0LnByb3RvIiwKC0xpc3RSZXF1ZXN0EgwKBHBhZ2UYASABKAMSDwoHcHJldmlldxgCIAEoCCIrCgxMaXN0UmVzcG9uc2USDAoEcGFnZRgBIAEoAxINCgVpdGVtcxgCIAMoCTIyCgtMaXN0U2VydmljZRIjCgRMaXN0EgwuTGlzdFJlcXVlc3QaDS5MaXN0UmVzcG9uc2ViBnByb3RvMw");
export const file_list: GenFile =
/*@__PURE__*/
fileDesc(
"CgpsaXN0LnByb3RvIiwKC0xpc3RSZXF1ZXN0EgwKBHBhZ2UYASABKAMSDwoHcHJldmlldxgCIAEoCCIrCgxMaXN0UmVzcG9uc2USDAoEcGFnZRgBIAEoAxINCgVpdGVtcxgCIAMoCTIyCgtMaXN0U2VydmljZRIjCgRMaXN0EgwuTGlzdFJlcXVlc3QaDS5MaXN0UmVzcG9uc2ViBnByb3RvMw",
);

/**
* @generated from message ListRequest
Expand All @@ -45,7 +56,8 @@ export type ListRequest = Message<"ListRequest"> & {
* Describes the message ListRequest.
* Use `create(ListRequestSchema)` to create a new message.
*/
export const ListRequestSchema: GenMessage<ListRequest> = /*@__PURE__*/
export const ListRequestSchema: GenMessage<ListRequest> =
/*@__PURE__*/
messageDesc(file_list, 0);

/**
Expand All @@ -67,7 +79,8 @@ export type ListResponse = Message<"ListResponse"> & {
* Describes the message ListResponse.
* Use `create(ListResponseSchema)` to create a new message.
*/
export const ListResponseSchema: GenMessage<ListResponse> = /*@__PURE__*/
export const ListResponseSchema: GenMessage<ListResponse> =
/*@__PURE__*/
messageDesc(file_list, 1);

/**
Expand All @@ -81,7 +94,5 @@ export const ListService: GenService<{
methodKind: "unary";
input: typeof ListRequestSchema;
output: typeof ListResponseSchema;
},
}> = /*@__PURE__*/
serviceDesc(file_list, 0);

};
}> = /*@__PURE__*/ serviceDesc(file_list, 0);
11 changes: 7 additions & 4 deletions packages/connect-query-core/src/gen/proto2_pb.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,11 @@ import type { Message } from "@bufbuild/protobuf";
/**
* Describes the file proto2.proto.
*/
export const file_proto2: GenFile = /*@__PURE__*/
fileDesc("Cgxwcm90bzIucHJvdG8SBHRlc3QiOgoNUHJvdG8yTWVzc2FnZRIUCgxzdHJpbmdfZmllbGQYASABKAkSEwoLaW50MzJfZmllbGQYAyABKAU");
export const file_proto2: GenFile =
/*@__PURE__*/
fileDesc(
"Cgxwcm90bzIucHJvdG8SBHRlc3QiOgoNUHJvdG8yTWVzc2FnZRIUCgxzdHJpbmdfZmllbGQYASABKAkSEwoLaW50MzJfZmllbGQYAyABKAU",
);

/**
* @generated from message test.Proto2Message
Expand All @@ -45,6 +48,6 @@ export type Proto2Message = Message<"test.Proto2Message"> & {
* Describes the message test.Proto2Message.
* Use `create(Proto2MessageSchema)` to create a new message.
*/
export const Proto2MessageSchema: GenMessage<Proto2Message> = /*@__PURE__*/
export const Proto2MessageSchema: GenMessage<Proto2Message> =
/*@__PURE__*/
messageDesc(file_proto2, 0);

49 changes: 30 additions & 19 deletions packages/connect-query-core/src/gen/proto3_pb.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,15 +16,22 @@
// @generated from file proto3.proto (package test, syntax proto3)
/* eslint-disable */

import type { GenEnum, GenFile, GenMessage } from "@bufbuild/protobuf/codegenv1";
import type {
GenEnum,
GenFile,
GenMessage,
} from "@bufbuild/protobuf/codegenv1";
import { enumDesc, fileDesc, messageDesc } from "@bufbuild/protobuf/codegenv1";
import type { Message } from "@bufbuild/protobuf";

/**
* Describes the file proto3.proto.
*/
export const file_proto3: GenFile = /*@__PURE__*/
fileDesc("Cgxwcm90bzMucHJvdG8SBHRlc3QirgcKDVByb3RvM01lc3NhZ2USFAoMc3RyaW5nX2ZpZWxkGAEgASgJEhMKC2J5dGVzX2ZpZWxkGAIgASgMEhMKC2ludDMyX2ZpZWxkGAMgASgFEhMKC2ludDY0X2ZpZWxkGAQgASgDEhQKDGRvdWJsZV9maWVsZBgFIAEoARISCgpib29sX2ZpZWxkGAYgASgIEiQKCmVudW1fZmllbGQYByABKA4yEC50ZXN0LlByb3RvM0VudW0SKgoNbWVzc2FnZV9maWVsZBgIIAEoCzITLnRlc3QuUHJvdG8zTWVzc2FnZRIiChVvcHRpb25hbF9zdHJpbmdfZmllbGQYCSABKAlIAYgBARIdChVyZXBlYXRlZF9zdHJpbmdfZmllbGQYESADKAkSMwoWcmVwZWF0ZWRfbWVzc2FnZV9maWVsZBgSIAMoCzITLnRlc3QuUHJvdG8zTWVzc2FnZRItChNyZXBlYXRlZF9lbnVtX2ZpZWxkGBMgAygOMhAudGVzdC5Qcm90bzNFbnVtEhwKEm9uZW9mX3N0cmluZ19maWVsZBgfIAEoCUgAEhsKEW9uZW9mX2ludDMyX2ZpZWxkGCEgASgFSAASTAoWbWFwX3N0cmluZ19pbnQ2NF9maWVsZBgnIAMoCzIsLnRlc3QuUHJvdG8zTWVzc2FnZS5NYXBTdHJpbmdJbnQ2NEZpZWxkRW50cnkSUAoYbWFwX3N0cmluZ19tZXNzYWdlX2ZpZWxkGCggAygLMi4udGVzdC5Qcm90bzNNZXNzYWdl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nZV9maWVsZBgSIAMoCzITLnRlc3QuUHJvdG8zTWVzc2FnZRItChNyZXBlYXRlZF9lbnVtX2ZpZWxkGBMgAygOMhAudGVzdC5Qcm90bzNFbnVtEhwKEm9uZW9mX3N0cmluZ19maWVsZBgfIAEoCUgAEhsKEW9uZW9mX2ludDMyX2ZpZWxkGCEgASgFSAASTAoWbWFwX3N0cmluZ19pbnQ2NF9maWVsZBgnIAMoCzIsLnRlc3QuUHJvdG8zTWVzc2FnZS5NYXBTdHJpbmdJbnQ2NEZpZWxkRW50cnkSUAoYbWFwX3N0cmluZ19tZXNzYWdlX2ZpZWxkGCggAygLMi4udGVzdC5Qcm90bzNNZXNzYWdlLk1hcFN0cmluZ01lc3NhZ2VGaWVsZEVudHJ5EkoKFW1hcF9zdHJpbmdfZW51bV9maWVsZBgpIAMoCzIrLnRlc3QuUHJvdG8zTWVzc2FnZS5NYXBTdHJpbmdFbnVtRmllbGRFbnRyeRo6ChhNYXBTdHJpbmdJbnQ2NEZpZWxkRW50cnkSCwoDa2V5GAEgASgJEg0KBXZhbHVlGAIgASgDOgI4ARpRChpNYXBTdHJpbmdNZXNzYWdlRmllbGRFbnRyeRILCgNrZXkYASABKAkSIgoFdmFsdWUYAiABKAsyEy50ZXN0LlByb3RvM01lc3NhZ2U6AjgBGksKF01hcFN0cmluZ0VudW1GaWVsZEVudHJ5EgsKA2tleRgBIAEoCRIfCgV2YWx1ZRgCIAEoDjIQLnRlc3QuUHJvdG8zRW51bToCOAFCCAoGZWl0aGVyQhgKFl9vcHRpb25hbF9zdHJpbmdfZmllbGQqUgoKUHJvdG8zRW51bRIbChdQUk9UTzNfRU5VTV9VTlNQRUNJRklFRBAAEhMKD1BST1RPM19FTlVNX1lFUxABEhIKDlBST1RPM19FTlVNX05PEAJiBnByb3RvMw",
);

/**
* Note: We do not exhaust all field types
Expand Down Expand Up @@ -95,19 +102,22 @@ export type Proto3Message = Message<"test.Proto3Message"> & {
/**
* @generated from oneof test.Proto3Message.either
*/
either: {
/**
* @generated from field: string oneof_string_field = 31;
*/
value: string;
case: "oneofStringField";
} | {
/**
* @generated from field: int32 oneof_int32_field = 33;
*/
value: number;
case: "oneofInt32Field";
} | { case: undefined; value?: undefined };
either:
| {
/**
* @generated from field: string oneof_string_field = 31;
*/
value: string;
case: "oneofStringField";
}
| {
/**
* @generated from field: int32 oneof_int32_field = 33;
*/
value: number;
case: "oneofInt32Field";
}
| { case: undefined; value?: undefined };

/**
* @generated from field: map<string, int64> map_string_int64_field = 39;
Expand All @@ -129,7 +139,8 @@ export type Proto3Message = Message<"test.Proto3Message"> & {
* Describes the message test.Proto3Message.
* Use `create(Proto3MessageSchema)` to create a new message.
*/
export const Proto3MessageSchema: GenMessage<Proto3Message> = /*@__PURE__*/
export const Proto3MessageSchema: GenMessage<Proto3Message> =
/*@__PURE__*/
messageDesc(file_proto3, 0);

/**
Expand All @@ -155,6 +166,6 @@ export enum Proto3Enum {
/**
* Describes the enum test.Proto3Enum.
*/
export const Proto3EnumSchema: GenEnum<Proto3Enum> = /*@__PURE__*/
export const Proto3EnumSchema: GenEnum<Proto3Enum> =
/*@__PURE__*/
enumDesc(file_proto3, 0);

4 changes: 2 additions & 2 deletions packages/connect-query-core/src/structural-sharing.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -48,14 +48,14 @@ describe("structural sharing", () => {
const newData = create(schema, { sentence: "hi" });
const result = fn(oldData, newData);
expect(result).toStrictEqual(newData);
}
},
);
it.each([123, null, create(SayRequestSchema, { sentence: "hi" })])(
"returns new data for unexpected new data $#",
(newData) => {
const oldData = create(schema, { sentence: "hi" });
const result = fn(oldData, newData);
expect(result).toStrictEqual(newData);
}
},
);
});
Loading

0 comments on commit 7e10f7c

Please sign in to comment.