Skip to content

Commit

Permalink
cool
Browse files Browse the repository at this point in the history
  • Loading branch information
KATT committed Jan 19, 2024
1 parent 2025b87 commit 3140eca
Show file tree
Hide file tree
Showing 4 changed files with 24 additions and 12 deletions.
9 changes: 6 additions & 3 deletions examples/next-prisma-websockets-starter/src/utils/trpc.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
import { httpBatchLink } from '@trpc/client/links/httpBatchLink';
import { loggerLink } from '@trpc/client/links/loggerLink';
import { wsLink, createWSClient } from '@trpc/client/links/wsLink';
import {
createWSClient,
httpBatchLink,
loggerLink,
wsLink,
} from '@trpc/client';
import { createTRPCNext } from '@trpc/next';
import type { inferRouterOutputs } from '@trpc/server';
import type { NextPageContext } from 'next';
Expand Down
6 changes: 1 addition & 5 deletions packages/client/rollup.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,8 @@ import type { RollupOptions } from 'rollup';
import { buildConfig } from '../../scripts/getRollupConfig';

export const input = [
//
'src/index.ts',
'src/links/httpLink.ts',
'src/links/httpBatchLink.ts',
'src/links/splitLink.ts',
'src/links/loggerLink.ts',
'src/links/wsLink.ts',
];

export default function rollup(): RollupOptions[] {
Expand Down
14 changes: 14 additions & 0 deletions www/docs/migration/migrate-from-v10-to-v11.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,20 @@ import { InstallSnippet } from '@site/src/components/InstallSnippet';
> This is a draft document. It will be updated to a proper guide as we get closer to the v11 release.
> The only major thing that will incur work for you is that you will need to do is to update TanStack Query to v5.0.0.
### Removed `@trpc/client/links/*`-entrypoints

```diff
- import { httpBatchLink } from '@trpc/client/links/httpBatchLink';
+ import { httpBatchLink } from '@trpc/client';
- import { loggerLink } from '@trpc/client/links/loggerLink';
+ import { loggerLink } from '@trpc/client';
- import {
- createWSClient,
- wsLink,
- } from '@trpc/client';
+ import { createWSClient, wsLink } from '@trpc/client';
```

### Added a `@trpc/core`-package

We moved a bunch of internals of `@trpc/server` to a new package called `@trpc/core` that is **not meant for public consumption**
Expand Down
7 changes: 3 additions & 4 deletions www/docusaurus.typedoc.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,15 +35,14 @@ function generateTypedocDocusaurusPlugins(directories) {
}
switch (directory) {
case 'client': {
// omit links entrypoints
return !it.includes('/links/');
return true;
}
case 'next':
// FIXME: remove this
// FIXME: this shouldn't be excluded
return it === 'index.ts';
case 'server':
// FIXME: remove this
return (
// FIXME: this shouldn't be excluded
!it.includes('adapters/next') ||
/**
* @deprecated remove in v12
Expand Down

0 comments on commit 3140eca

Please sign in to comment.