Skip to content

Commit

Permalink
Merge pull request #56 from sannajammeh/changeset-release/canary
Browse files Browse the repository at this point in the history
chore: update versions (canary)
  • Loading branch information
sannajammeh authored Dec 2, 2023
2 parents 03cc2f0 + ee28d6e commit f0712c9
Show file tree
Hide file tree
Showing 9 changed files with 146 additions and 5 deletions.
4 changes: 3 additions & 1 deletion .changeset/pre.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,5 +13,7 @@
"e2e": "1.0.0",
"unit": "1.0.0"
},
"changesets": []
"changesets": [
"tender-ducks-bow"
]
}
31 changes: 31 additions & 0 deletions packages/client/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,36 @@
# @trpc-swr/client

## 3.0.0-canary.0

### Major Changes

- [#54](https://github.com/sannajammeh/trpc-swr/pull/54) [`5b020a2`](https://github.com/sannajammeh/trpc-swr/commit/5b020a2a9d01e86d125eee33192f025ce7e35462) Thanks [@sannajammeh](https://github.com/sannajammeh)! - ## What:

`@trpc-swr/ssr` - `createProxySSGHelpers` renamed to `createSSRHelpers`

`@trpc-swr/ssr` - Calling `api.endpoint.fetch` is no longer support, use api.endpoint() directly. trpc-swr will now proxy all arguments directly into appRouter.createCaller() instead of calling `caller.query`.
This allows for both mutations and queries to endpoints in React Server Components and other SSR calls

#### Before

```tsx
const data = await rsc.users.byId.fetch({ id: 1 });

const swrFallback = await rsc.dehydrate();
```

#### After

```tsx
const data = await rsc.users.byId({ id: 1 });

// Other supported methods:
const key = rsc.users.byId.getKey(); // Use to manually forward to SWRConfig.
const swrFallback = await rsc.dehydrate();
```

As always both direct access and dehydration into SWR serializable fallback is supported.

## 2.0.1

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/client/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@trpc-swr/client",
"version": "2.0.1",
"version": "3.0.0-canary.0",
"description": "",
"main": "./dist/index.js",
"module": "./dist/index.esm.js",
Expand Down
36 changes: 36 additions & 0 deletions packages/infinite/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,41 @@
# @trpc-swr/infinite

## 3.0.0-canary.0

### Major Changes

- [#54](https://github.com/sannajammeh/trpc-swr/pull/54) [`5b020a2`](https://github.com/sannajammeh/trpc-swr/commit/5b020a2a9d01e86d125eee33192f025ce7e35462) Thanks [@sannajammeh](https://github.com/sannajammeh)! - ## What:

`@trpc-swr/ssr` - `createProxySSGHelpers` renamed to `createSSRHelpers`

`@trpc-swr/ssr` - Calling `api.endpoint.fetch` is no longer support, use api.endpoint() directly. trpc-swr will now proxy all arguments directly into appRouter.createCaller() instead of calling `caller.query`.
This allows for both mutations and queries to endpoints in React Server Components and other SSR calls

#### Before

```tsx
const data = await rsc.users.byId.fetch({ id: 1 });

const swrFallback = await rsc.dehydrate();
```

#### After

```tsx
const data = await rsc.users.byId({ id: 1 });

// Other supported methods:
const key = rsc.users.byId.getKey(); // Use to manually forward to SWRConfig.
const swrFallback = await rsc.dehydrate();
```

As always both direct access and dehydration into SWR serializable fallback is supported.

### Patch Changes

- Updated dependencies [[`5b020a2`](https://github.com/sannajammeh/trpc-swr/commit/5b020a2a9d01e86d125eee33192f025ce7e35462)]:
- @trpc-swr/client@3.0.0-canary.0

## 2.0.1

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/infinite/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@trpc-swr/infinite",
"version": "2.0.1",
"version": "3.0.0-canary.0",
"description": "",
"main": "./dist/index.js",
"module": "./dist/index.esm.js",
Expand Down
36 changes: 36 additions & 0 deletions packages/next/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,41 @@
# @trpc-swr/next

## 3.0.0-canary.0

### Major Changes

- [#54](https://github.com/sannajammeh/trpc-swr/pull/54) [`5b020a2`](https://github.com/sannajammeh/trpc-swr/commit/5b020a2a9d01e86d125eee33192f025ce7e35462) Thanks [@sannajammeh](https://github.com/sannajammeh)! - ## What:

`@trpc-swr/ssr` - `createProxySSGHelpers` renamed to `createSSRHelpers`

`@trpc-swr/ssr` - Calling `api.endpoint.fetch` is no longer support, use api.endpoint() directly. trpc-swr will now proxy all arguments directly into appRouter.createCaller() instead of calling `caller.query`.
This allows for both mutations and queries to endpoints in React Server Components and other SSR calls

#### Before

```tsx
const data = await rsc.users.byId.fetch({ id: 1 });

const swrFallback = await rsc.dehydrate();
```

#### After

```tsx
const data = await rsc.users.byId({ id: 1 });

// Other supported methods:
const key = rsc.users.byId.getKey(); // Use to manually forward to SWRConfig.
const swrFallback = await rsc.dehydrate();
```

As always both direct access and dehydration into SWR serializable fallback is supported.

### Patch Changes

- Updated dependencies [[`5b020a2`](https://github.com/sannajammeh/trpc-swr/commit/5b020a2a9d01e86d125eee33192f025ce7e35462)]:
- @trpc-swr/client@3.0.0-canary.0

## 2.0.1

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/next/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@trpc-swr/next",
"version": "2.0.1",
"version": "3.0.0-canary.0",
"description": "",
"main": "./dist/index.js",
"module": "./dist/index.esm.js",
Expand Down
36 changes: 36 additions & 0 deletions packages/ssr/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,41 @@
# @trpc-swr/ssr

## 3.0.0-canary.0

### Major Changes

- [#54](https://github.com/sannajammeh/trpc-swr/pull/54) [`5b020a2`](https://github.com/sannajammeh/trpc-swr/commit/5b020a2a9d01e86d125eee33192f025ce7e35462) Thanks [@sannajammeh](https://github.com/sannajammeh)! - ## What:

`@trpc-swr/ssr` - `createProxySSGHelpers` renamed to `createSSRHelpers`

`@trpc-swr/ssr` - Calling `api.endpoint.fetch` is no longer support, use api.endpoint() directly. trpc-swr will now proxy all arguments directly into appRouter.createCaller() instead of calling `caller.query`.
This allows for both mutations and queries to endpoints in React Server Components and other SSR calls

#### Before

```tsx
const data = await rsc.users.byId.fetch({ id: 1 });

const swrFallback = await rsc.dehydrate();
```

#### After

```tsx
const data = await rsc.users.byId({ id: 1 });

// Other supported methods:
const key = rsc.users.byId.getKey(); // Use to manually forward to SWRConfig.
const swrFallback = await rsc.dehydrate();
```

As always both direct access and dehydration into SWR serializable fallback is supported.

### Patch Changes

- Updated dependencies [[`5b020a2`](https://github.com/sannajammeh/trpc-swr/commit/5b020a2a9d01e86d125eee33192f025ce7e35462)]:
- @trpc-swr/client@3.0.0-canary.0

## 2.0.1

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/ssr/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@trpc-swr/ssr",
"version": "2.0.1",
"version": "3.0.0-canary.0",
"description": "",
"main": "./dist/index.js",
"module": "./dist/index.esm.js",
Expand Down

0 comments on commit f0712c9

Please sign in to comment.