Skip to content

Commit 0284b49

Browse files
chore(deps): update dependency typescript to v5.9.2 (#2863)
This PR contains the following updates: | Package | Change | Age | Confidence | |---|---|---|---| | [typescript](https://www.typescriptlang.org/) ([source](https://redirect.github.com/microsoft/TypeScript)) | [`5.8.3` -> `5.9.2`](https://renovatebot.com/diffs/npm/typescript/5.8.3/5.9.2) | [![age](https://developer.mend.io/api/mc/badges/age/npm/typescript/5.9.2?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/typescript/5.8.3/5.9.2?slim=true)](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes <details> <summary>microsoft/TypeScript (typescript)</summary> ### [`v5.9.2`](https://redirect.github.com/microsoft/TypeScript/compare/v5.8.3...5be33469d551655d878876faa9e30aa3b49f8ee9) [Compare Source](https://redirect.github.com/microsoft/TypeScript/compare/v5.8.3...v5.9.2) </details> --- ### Configuration 📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box --- This PR was generated by [Mend Renovate](https://mend.io/renovate/). View the [repository job log](https://developer.mend.io/github/RobinTail/express-zod-api). <!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiI0MS40Ni4zIiwidXBkYXRlZEluVmVyIjoiNDEuNDYuMyIsInRhcmdldEJyYW5jaCI6Im1hc3RlciIsImxhYmVscyI6W119--> --------- Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: Anna Bocharova <[email protected]> Co-authored-by: Anna Bocharova <[email protected]>
1 parent 7a73108 commit 0284b49

6 files changed

Lines changed: 103 additions & 82 deletions

File tree

example/__snapshots__/index.spec.ts.snap

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,19 +17,22 @@ exports[`Example > Client > Should perform the request with a positive response
1717
{
1818
"features": [
1919
{
20+
"features": [],
2021
"title": "Above 180cm",
2122
},
2223
],
2324
"title": "Tall",
2425
},
2526
{
27+
"features": [],
2628
"title": "Young",
2729
},
2830
{
2931
"features": [
3032
{
3133
"features": [
3234
{
35+
"features": [],
3336
"title": "About Typescript",
3437
},
3538
],
@@ -100,6 +103,45 @@ exports[`Example > Positive > Should accept raw data 1 1`] = `
100103
}
101104
`;
102105

106+
exports[`Example > Positive > Should handle valid GET request 1`] = `
107+
{
108+
"data": {
109+
"features": [
110+
{
111+
"features": [
112+
{
113+
"features": [],
114+
"title": "Above 180cm",
115+
},
116+
],
117+
"title": "Tall",
118+
},
119+
{
120+
"features": [],
121+
"title": "Young",
122+
},
123+
{
124+
"features": [
125+
{
126+
"features": [
127+
{
128+
"features": [],
129+
"title": "About Typescript",
130+
},
131+
],
132+
"title": "Tells funny jokes",
133+
},
134+
],
135+
"title": "Cute",
136+
},
137+
],
138+
"id": 50,
139+
"name": "John Doe",
140+
},
141+
"status": "success",
142+
}
143+
`;
144+
103145
exports[`Example > Positive > Should send an image with a correct header 1`] = `"f39beeff92379dc935586d726211c2620be6f879"`;
104146

105147
exports[`Example > Positive > Should serve static files 1`] = `"f39beeff92379dc935586d726211c2620be6f879"`;

example/endpoints/retrieve-user.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import { methodProviderMiddleware } from "../middlewares";
88
const feature = z.object({
99
title: z.string(),
1010
get features() {
11-
return z.array(feature).optional();
11+
return z.array(feature);
1212
},
1313
});
1414

@@ -39,14 +39,14 @@ export const retrieveUserEndpoint = defaultEndpointsFactory
3939
id,
4040
name,
4141
features: [
42-
{ title: "Tall", features: [{ title: "Above 180cm" }] },
43-
{ title: "Young" },
42+
{ title: "Tall", features: [{ title: "Above 180cm", features: [] }] },
43+
{ title: "Young", features: [] },
4444
{
4545
title: "Cute",
4646
features: [
4747
{
4848
title: "Tells funny jokes",
49-
features: [{ title: "About Typescript" }],
49+
features: [{ title: "About Typescript", features: [] }],
5050
},
5151
],
5252
},

example/example.client.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
type Type1 = {
22
title: string;
3-
features?: Type1[] | undefined;
3+
features: Type1[];
44
};
55

66
type SomeOf<T> = T[keyof T];

example/example.documentation.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -842,6 +842,7 @@ components:
842842
$ref: "#/components/schemas/Schema1"
843843
required:
844844
- title
845+
- features
845846
additionalProperties: false
846847
responses: {}
847848
parameters: {}

example/index.spec.ts

Lines changed: 1 addition & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -106,29 +106,7 @@ describe("Example", async () => {
106106
);
107107
expect(response.status).toBe(200);
108108
const json = await response.json();
109-
expect(json).toEqual({
110-
status: "success",
111-
data: {
112-
id: 50,
113-
name: "John Doe",
114-
features: [
115-
{
116-
title: "Tall",
117-
features: [{ title: "Above 180cm" }],
118-
},
119-
{ title: "Young" },
120-
{
121-
title: "Cute",
122-
features: [
123-
{
124-
title: "Tells funny jokes",
125-
features: [{ title: "About Typescript" }],
126-
},
127-
],
128-
},
129-
],
130-
},
131-
});
109+
expect(json).toMatchSnapshot();
132110
await vi.waitFor(() =>
133111
assert([/v1\/user\/retrieve/, /50, method get/].every(matchOut)),
134112
);

0 commit comments

Comments
 (0)