Skip to content

Commit

Permalink
mg
Browse files Browse the repository at this point in the history
  • Loading branch information
OrJDev committed Sep 24, 2024
2 parents ecd9ffb + 5a8e476 commit ea7543f
Show file tree
Hide file tree
Showing 7 changed files with 15 additions and 9 deletions.
5 changes: 0 additions & 5 deletions .changeset/wicked-ears-compare.md

This file was deleted.

2 changes: 1 addition & 1 deletion docs/src/content/docs/prpc/mutation.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ description: 'API for the mutation$ function'

**API for the mutation$ function**

`mutation$` is basically a wrapper for createMutation, it should be used whenever createMutation should be used.
`mutation$` creates a factory for constructing createMutation functions. It should be used whenever createMutation should be used.

## Usage

Expand Down
4 changes: 3 additions & 1 deletion docs/src/content/docs/prpc/query.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ description: 'API for the query$ function'

**API for the query$ function**

`query$` is basically a wrapper for createQuery, it should be used whenever createQuery should be used.
`query$` creates a factory for constructing [createQuery](https://tanstack.com/query/latest/docs/framework/solid/reference/createQuery) functions. It should be used whenever createQuery should be used.

## Usage

Expand All @@ -30,6 +30,8 @@ const testQuery = query$({
// input should be an accessor
const hello = testQuery(() => ({
hello: 'JDev',
}), () => ({
deferStream: true, // additional options go here
}))
```

Expand Down
2 changes: 1 addition & 1 deletion packages/prpc/plugin/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,4 +24,4 @@ export default defineConfig({
})
```

Now read the [pRPC documentation](...)
Now read the [pRPC documentation](https://mediakit-taupe.vercel.app/prpc/install)
6 changes: 6 additions & 0 deletions packages/prpc/solid/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# @solid-mediakit/prpc

## 1.2.5

### Patch Changes

- [`6abbe9a`](https://github.com/solidjs-community/mediakit/commit/6abbe9a22f38275f9d64deba9dabdbdc889668a1) Thanks [@OrJDev](https://github.com/OrJDev)! - feat: useUtils function

## 1.2.4

### Patch Changes
Expand Down
3 changes: 3 additions & 0 deletions packages/prpc/solid/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,8 @@ const testQuery = query$({
// input should be an accessor
const hello = testQuery(() => ({
hello: 'JDev',
}), () => ({
deferStream: true,
}))
```

Expand All @@ -112,6 +114,7 @@ const __$helloQuery = cache(async ({ payload: _$$payload }) => {
const testQuery = query$({
queryFn: __$helloQuery,
key: 'hello',
deferStream: true,
})
```

Expand Down
2 changes: 1 addition & 1 deletion packages/prpc/solid/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@solid-mediakit/prpc",
"description": "A typesafed Wrapper for Solid's RPC protocol",
"version": "1.2.4",
"version": "1.2.5",
"scripts": {
"build": "rimraf dist && tsup --config ./tsup.config.ts",
"clean": "pnpm clean:dist && rimraf ./node_modules .turbo .solid",
Expand Down

0 comments on commit ea7543f

Please sign in to comment.