Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bump docusaurus #5422

Open
wants to merge 21 commits into
base: next
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
6 changes: 3 additions & 3 deletions examples/.experimental/next-app-dir/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,10 @@
"@trpc/react-query": "npm:@trpc/react-query@next",
"@trpc/server": "npm:@trpc/server@next",
"@types/node": "^20.10.0",
"@types/react": "^18.2.33",
"@types/react-dom": "^18.2.14",
"@types/react": "^18.2.48",
"@types/react-dom": "^18.2.18",
"next": "^14.0.1",
"next-auth": "^4.22.1",
"next-auth": "^4.24.5",
"react": "^18.2.0",
"react-dom": "^18.2.0",
"react-hook-form": "^7.43.3",
Expand Down
4 changes: 2 additions & 2 deletions examples/.experimental/next-formdata/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@
},
"devDependencies": {
"@types/node": "^20.10.0",
"@types/react": "^18.2.33",
"@types/react-dom": "^18.2.14",
"@types/react": "^18.2.48",
"@types/react-dom": "^18.2.18",
"eslint": "^8.40.0",
"typescript": "^5.3.3"
}
Expand Down
4 changes: 2 additions & 2 deletions examples/.test/diagnostics-big-router/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@
},
"devDependencies": {
"@types/node": "^20.10.0",
"@types/react": "^18.2.33",
"@types/react-dom": "^18.2.14",
"@types/react": "^18.2.48",
"@types/react-dom": "^18.2.18",
"eslint": "^8.40.0",
"tsx": "^4.0.0",
"typescript": "^5.3.3"
Expand Down
4 changes: 2 additions & 2 deletions examples/.test/ssg-infinite-serialization/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,8 @@
"devDependencies": {
"@playwright/test": "^1.26.1",
"@types/node": "^20.10.0",
"@types/react": "^18.2.33",
"@types/react-dom": "^18.2.14",
"@types/react": "^18.2.48",
"@types/react-dom": "^18.2.18",
"eslint": "^8.40.0",
"start-server-and-test": "^1.12.0",
"typescript": "^5.3.3"
Expand Down
4 changes: 2 additions & 2 deletions examples/.test/ssg/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@
"devDependencies": {
"@playwright/test": "^1.26.1",
"@types/node": "^20.10.0",
"@types/react": "^18.2.33",
"@types/react-dom": "^18.2.14",
"@types/react": "^18.2.48",
"@types/react-dom": "^18.2.18",
"eslint": "^8.40.0",
"start-server-and-test": "^1.12.0",
"typescript": "^5.3.3"
Expand Down
2 changes: 1 addition & 1 deletion examples/express-minimal/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
"devDependencies": {
"@types/express": "^4.17.17",
"@types/node": "^20.10.0",
"@types/react": "^18.2.33",
"@types/react": "^18.2.48",
"esbuild": "^0.17.10",
"eslint": "^8.40.0",
"npm-run-all": "^4.1.5",
Expand Down
2 changes: 1 addition & 1 deletion examples/express-server/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
"devDependencies": {
"@types/express": "^4.17.17",
"@types/node": "^20.10.0",
"@types/react": "^18.2.33",
"@types/react": "^18.2.48",
"esbuild": "^0.17.10",
"eslint": "^8.40.0",
"npm-run-all": "^4.1.5",
Expand Down
4 changes: 2 additions & 2 deletions examples/minimal-react/client/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@
"react-dom": "^18.2.0"
},
"devDependencies": {
"@types/react": "^18.2.33",
"@types/react-dom": "^18.2.14",
"@types/react": "^18.2.48",
"@types/react-dom": "^18.2.18",
"@vitejs/plugin-react": "^3.1.0",
"eslint": "^8.40.0",
"typescript": "^5.3.3",
Expand Down
4 changes: 2 additions & 2 deletions examples/next-big-router/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@
},
"devDependencies": {
"@types/node": "^20.10.0",
"@types/react": "^18.2.33",
"@types/react-dom": "^18.2.14",
"@types/react": "^18.2.48",
"@types/react-dom": "^18.2.18",
"eslint": "^8.40.0",
"tsx": "^4.0.0",
"typescript": "^5.3.3"
Expand Down
4 changes: 2 additions & 2 deletions examples/next-edge-runtime/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@
},
"devDependencies": {
"@types/node": "^20.10.0",
"@types/react": "^18.2.33",
"@types/react-dom": "^18.2.14",
"@types/react": "^18.2.48",
"@types/react-dom": "^18.2.18",
"eslint": "^8.40.0",
"typescript": "^5.3.3"
}
Expand Down
4 changes: 2 additions & 2 deletions examples/next-minimal-starter/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@
},
"devDependencies": {
"@types/node": "^20.10.0",
"@types/react": "^18.2.33",
"@types/react-dom": "^18.2.14",
"@types/react": "^18.2.48",
"@types/react-dom": "^18.2.18",
"eslint": "^8.40.0",
"typescript": "^5.3.3"
}
Expand Down
4 changes: 2 additions & 2 deletions examples/next-prisma-starter/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@
"devDependencies": {
"@playwright/test": "^1.26.1",
"@types/node": "^20.10.0",
"@types/react": "^18.2.33",
"@types/react": "^18.2.48",
"@typescript-eslint/eslint-plugin": "^6.2.1",
"@typescript-eslint/parser": "^6.2.1",
"autoprefixer": "^10.4.7",
Expand All @@ -64,7 +64,7 @@
"eslint-plugin-react": "^7.32.2",
"eslint-plugin-react-hooks": "^4.6.0",
"npm-run-all": "^4.1.5",
"postcss": "^8.4.14",
"postcss": "^8.4.33",
"prettier": "^2.8.8",
"prisma": "^5.8.1",
"start-server-and-test": "^1.12.0",
Expand Down
2 changes: 1 addition & 1 deletion examples/next-prisma-todomvc/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@
"@playwright/test": "^1.26.1",
"@tanstack/react-query-devtools": "^5.0.0",
"@types/node": "^20.10.0",
"@types/react": "^18.2.33",
"@types/react": "^18.2.48",
"eslint": "^8.40.0",
"npm-run-all": "^4.1.5",
"prisma": "^5.8.1",
Expand Down
6 changes: 3 additions & 3 deletions examples/next-prisma-websockets-starter/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@
"@trpc/server": "npm:@trpc/server@next",
"clsx": "^2.0.0",
"next": "^14.0.1",
"next-auth": "^4.22.1",
"next-auth": "^4.24.5",
"react": "^18.2.0",
"react-dom": "^18.2.0",
"superjson": "^1.12.4",
Expand All @@ -60,7 +60,7 @@
"@playwright/test": "^1.26.1",
"@tanstack/react-query-devtools": "^5.0.0",
"@types/node": "^20.10.0",
"@types/react": "^18.2.33",
"@types/react": "^18.2.48",
"@types/ws": "^8.2.0",
"@typescript-eslint/eslint-plugin": "^6.2.1",
"@typescript-eslint/parser": "^6.2.1",
Expand All @@ -73,7 +73,7 @@
"eslint-plugin-react": "^7.32.2",
"eslint-plugin-react-hooks": "^4.6.0",
"npm-run-all": "^4.1.5",
"postcss": "^8.4.14",
"postcss": "^8.4.33",
"prettier": "^2.8.8",
"prisma": "^5.8.1",
"start-server-and-test": "^1.12.0",
Expand Down
4 changes: 2 additions & 2 deletions packages/next/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -90,8 +90,8 @@
"@trpc/server": "^10.45.0",
"@types/express": "^4.17.17",
"@types/node": "^20.10.0",
"@types/react": "^18.2.33",
"@types/react-dom": "^18.2.14",
"@types/react": "^18.2.48",
"@types/react-dom": "^18.2.18",
"eslint": "^8.40.0",
"express": "^4.17.1",
"next": "^14.0.1",
Expand Down
2 changes: 1 addition & 1 deletion packages/react-query/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@
"@trpc/server": "^10.45.0",
"@types/express": "^4.17.17",
"@types/node": "^20.10.0",
"@types/react": "^18.2.33",
"@types/react": "^18.2.48",
"eslint": "^8.40.0",
"express": "^4.17.1",
"next": "^14.0.1",
Expand Down
6 changes: 3 additions & 3 deletions packages/server/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -129,8 +129,8 @@
"@types/express": "^4.17.17",
"@types/hash-sum": "^1.0.0",
"@types/node": "^20.10.0",
"@types/react": "^18.2.33",
"@types/react-dom": "^18.2.14",
"@types/react": "^18.2.48",
"@types/react-dom": "^18.2.18",
"@types/ws": "^8.2.0",
"@web3-storage/multipart-parser": "^1.0.0",
"aws-lambda": "^1.0.7",
Expand All @@ -153,7 +153,7 @@
"valibot": "^0.27.0",
"vitest": "^0.32.0",
"ws": "^8.0.0",
"yup": "^1.0.0",
"yup": "^1.3.3",
"zod": "^3.0.0"
},
"funding": [
Expand Down
6 changes: 3 additions & 3 deletions packages/server/src/observable/observable.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ test('vanilla observable - complete()', () => {
expect(next.mock.calls).toHaveLength(1);
expect(complete.mock.calls).toHaveLength(1);
expect(error.mock.calls).toHaveLength(0);
expect(next.mock.calls[0]![0]!).toBe(1);
expect(next.mock.calls[0]![0]).toBe(1);
});

test('vanilla observable - unsubscribe()', () => {
Expand All @@ -38,7 +38,7 @@ test('vanilla observable - unsubscribe()', () => {
expect(next.mock.calls).toHaveLength(1);
expect(complete.mock.calls).toHaveLength(0);
expect(error.mock.calls).toHaveLength(0);
expect(next.mock.calls[0]![0]!).toBe(1);
expect(next.mock.calls[0]![0]).toBe(1);
});

test('pipe - combine operators', () => {
Expand Down Expand Up @@ -66,7 +66,7 @@ test('pipe - combine operators', () => {
expect(next.mock.calls).toHaveLength(1);
expect(complete.mock.calls).toHaveLength(0);
expect(error.mock.calls).toHaveLength(0);
expect(next.mock.calls[0]![0]!).toBe(1);
expect(next.mock.calls[0]![0]).toBe(1);
}

{
Expand Down
4 changes: 2 additions & 2 deletions packages/server/src/observable/operators.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ test('share', () => {
expect(next.mock.calls).toHaveLength(1);
expect(complete.mock.calls).toHaveLength(0);
expect(error.mock.calls).toHaveLength(0);
expect(next.mock.calls[0]![0]!).toBe(1);
expect(next.mock.calls[0]![0]).toBe(1);
}

{
Expand Down Expand Up @@ -145,7 +145,7 @@ test('share', () => {
expect(next.mock.calls).toHaveLength(1);
expect(complete.mock.calls).toHaveLength(0);
expect(error.mock.calls).toHaveLength(0);
expect(next.mock.calls[0]![0]!).toBe(1);
expect(next.mock.calls[0]![0]).toBe(1);
subscription3.unsubscribe();
}
});
8 changes: 4 additions & 4 deletions packages/tests/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
},
"dependencies": {
"@cloudflare/workers-types": "^4.0.0",
"@decs/typeschema": "^0.12.0",
"@decs/typeschema": "^0.12.2",
"@fastify/busboy": "^2.0.0",
"@fastify/websocket": "^7.1.2",
"@miniflare/core": "^2.9.0",
Expand All @@ -33,7 +33,7 @@
"@vitest/coverage-istanbul": "^0.32.0",
"@vitest/ui": "^0.32.0",
"abort-controller": "^3.0.0",
"arktype": "1.0.14-alpha",
"arktype": "1.0.29-alpha",
"concurrently": "^8.0.0",
"dataloader": "^2.2.2",
"devalue": "^4.0.0",
Expand All @@ -48,7 +48,7 @@
"node-fetch": "^3.3.0",
"react": "^18.2.0",
"react-dom": "^18.2.0",
"runtypes": "^6.6.0",
"runtypes": "^6.7.0",
"scale-codec": "^0.13.0",
"superjson": "^1.12.4",
"superstruct": "^1.0.0",
Expand All @@ -60,7 +60,7 @@
"vitest": "^0.32.0",
"vitest-environment-miniflare": "^2.12.0",
"ws": "^8.0.0",
"yup": "^1.0.0",
"yup": "^1.3.3",
"zod": "^3.0.0",
"zod-form-data": "^2.0.1"
}
Expand Down
4 changes: 2 additions & 2 deletions packages/tests/server/createUntypedClient.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -47,12 +47,12 @@ test('query and mutation result type is Promise<any>', () => {

ignoreErrors(async () => {
const queryResult = client.query('foo');
expectTypeOf<typeof queryResult>().toEqualTypeOf<Promise<any>>();
expectTypeOf<typeof queryResult>().toEqualTypeOf<Promise<unknown>>();
const awaitedQueryResult = await queryResult;
expectTypeOf<typeof awaitedQueryResult>().toBeUnknown();

const mutationResult = client.query('foo');
expectTypeOf<typeof mutationResult>().toEqualTypeOf<Promise<any>>();
expectTypeOf<typeof mutationResult>().toEqualTypeOf<Promise<unknown>>();
const awaitedMutationResult = await mutationResult;
expectTypeOf<typeof awaitedMutationResult>().toBeUnknown();
});
Expand Down
2 changes: 1 addition & 1 deletion packages/tests/server/errors.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -367,7 +367,7 @@ test('retain stack trace', async () => {

expect(onError).toHaveBeenCalledTimes(1);

const serverOnErrorOpts = onError.mock.calls[0]![0]!;
const serverOnErrorOpts = onError.mock.calls[0]![0];
const serverError = serverOnErrorOpts.error;
expect(serverError).toBeInstanceOf(TRPCError);
expect(serverError.cause).toBeInstanceOf(CustomError);
Expand Down
5 changes: 0 additions & 5 deletions packages/tests/server/initTRPC.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -52,11 +52,6 @@ test('config types', () => {
// ^?
expectTypeOf<typeof t._config.$types.ctx>().toEqualTypeOf<object>();
expectTypeOf<typeof t._config.$types.meta>().toEqualTypeOf<object>();

// eslint-disable-next-line @typescript-eslint/ban-types
expectTypeOf<typeof t._config.$types.meta>().toEqualTypeOf<{}>();
// eslint-disable-next-line @typescript-eslint/ban-types
expectTypeOf<typeof t._config.$types.meta>().toEqualTypeOf<{}>();
}

{
Expand Down
20 changes: 10 additions & 10 deletions packages/tests/server/links.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -513,10 +513,10 @@ describe('loggerLink', () => {
.unsubscribe();

expect(logger.log.mock.calls).toHaveLength(2);
expect(logger.log.mock.calls[0]![0]!).toMatchInlineSnapshot(
expect(logger.log.mock.calls[0]![0]).toMatchInlineSnapshot(
`"%c >> query #1 %cn/a%c %O"`,
);
expect(logger.log.mock.calls[0]![1]!).toMatchInlineSnapshot(`
expect(logger.log.mock.calls[0]![1]).toMatchInlineSnapshot(`
"
background-color: #72e3ff;
color: black;
Expand All @@ -538,10 +538,10 @@ describe('loggerLink', () => {
})
.subscribe({})
.unsubscribe();
expect(logger.log.mock.calls[0]![0]!).toMatchInlineSnapshot(
expect(logger.log.mock.calls[0]![0]).toMatchInlineSnapshot(
`"%c >> subscription #1 %cn/a%c %O"`,
);
expect(logger.log.mock.calls[1]![0]!).toMatchInlineSnapshot(
expect(logger.log.mock.calls[1]![0]).toMatchInlineSnapshot(
`"%c << subscription #1 %cn/a%c %O"`,
);
});
Expand All @@ -560,10 +560,10 @@ describe('loggerLink', () => {
.subscribe({})
.unsubscribe();

expect(logger.log.mock.calls[0]![0]!).toMatchInlineSnapshot(
expect(logger.log.mock.calls[0]![0]).toMatchInlineSnapshot(
`"%c >> mutation #1 %cn/a%c %O"`,
);
expect(logger.log.mock.calls[1]![0]!).toMatchInlineSnapshot(
expect(logger.log.mock.calls[1]![0]).toMatchInlineSnapshot(
`"%c << mutation #1 %cn/a%c %O"`,
);
});
Expand All @@ -582,10 +582,10 @@ describe('loggerLink', () => {
.subscribe({})
.unsubscribe();

expect(logger.log.mock.calls[0]![0]!).toMatchInlineSnapshot(
expect(logger.log.mock.calls[0]![0]).toMatchInlineSnapshot(
`"%c >> query #1 %cn/a%c %O"`,
);
expect(logger.error.mock.calls[0]![0]!).toMatchInlineSnapshot(
expect(logger.error.mock.calls[0]![0]).toMatchInlineSnapshot(
`"%c << query #1 %cn/a%c %O"`,
);
});
Expand All @@ -611,10 +611,10 @@ describe('loggerLink', () => {
.subscribe({})
.unsubscribe();

expect(logger.log.mock.calls[0]![0]!).toMatchInlineSnapshot(
expect(logger.log.mock.calls[0]![0]).toMatchInlineSnapshot(
`"\x1b[30;46m >> query \x1b[1;30;46m #1 n/a \x1b[0m"`,
);
expect(logger.log.mock.calls[1]![0]!).toMatchInlineSnapshot(
expect(logger.log.mock.calls[1]![0]).toMatchInlineSnapshot(
`"\x1b[97;46m << query \x1b[1;97;46m #1 n/a \x1b[0m"`,
);
});
Expand Down