@orpc/vue-colada 0.39.0 → 0.41.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +2 -10
- package/dist/src/procedure-utils.d.ts +1 -1
- package/dist/src/router-utils.d.ts +1 -1
- package/dist/src/types.d.ts +1 -1
- package/package.json +5 -6
package/dist/index.js
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
// src/key.ts
|
2
|
-
import { serializeRPCJson } from "@orpc/
|
2
|
+
import { serializeRPCJson } from "@orpc/client/rpc";
|
3
3
|
function buildKey(path, options) {
|
4
4
|
return [
|
5
5
|
...path,
|
@@ -19,16 +19,8 @@ function createGeneralUtils(path) {
|
|
19
19
|
// src/procedure-utils.ts
|
20
20
|
import { computed } from "vue";
|
21
21
|
|
22
|
-
// ../shared/src/object.ts
|
23
|
-
function isObject(value) {
|
24
|
-
if (!value || typeof value !== "object") {
|
25
|
-
return false;
|
26
|
-
}
|
27
|
-
const proto = Object.getPrototypeOf(value);
|
28
|
-
return proto === Object.prototype || !proto || !proto.constructor;
|
29
|
-
}
|
30
|
-
|
31
22
|
// src/utils.ts
|
23
|
+
import { isObject } from "@orpc/shared";
|
32
24
|
import { isRef } from "vue";
|
33
25
|
function unrefDeep(value) {
|
34
26
|
if (isRef(value)) {
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import type { Client, ClientContext } from '@orpc/
|
1
|
+
import type { Client, ClientContext } from '@orpc/client';
|
2
2
|
import type { MaybeOptionalOptions } from '@orpc/shared';
|
3
3
|
import type { MutationOptions, MutationOptionsIn, QueryOptions, QueryOptionsIn } from './types';
|
4
4
|
export interface ProcedureUtils<TClientContext extends ClientContext, TInput, TOutput, TError extends Error> {
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import type { Client, NestedClient } from '@orpc/
|
1
|
+
import type { Client, NestedClient } from '@orpc/client';
|
2
2
|
import { type GeneralUtils } from './general-utils';
|
3
3
|
import { type ProcedureUtils } from './procedure-utils';
|
4
4
|
export type RouterUtils<T extends NestedClient<any>> = T extends Client<infer UClientContext, infer UInput, infer UOutput, infer UError> ? ProcedureUtils<UClientContext, UInput, UOutput, UError> & GeneralUtils<UInput> : {
|
package/dist/src/types.d.ts
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
import type { ClientContext } from '@orpc/
|
1
|
+
import type { ClientContext } from '@orpc/client';
|
2
2
|
import type { AnyFunction, SetOptional } from '@orpc/shared';
|
3
3
|
import type { UseMutationOptions, UseQueryOptions } from '@pinia/colada';
|
4
4
|
import type { MaybeRef } from 'vue';
|
package/package.json
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
{
|
2
2
|
"name": "@orpc/vue-colada",
|
3
3
|
"type": "module",
|
4
|
-
"version": "0.
|
4
|
+
"version": "0.41.0",
|
5
5
|
"license": "MIT",
|
6
6
|
"homepage": "https://orpc.unnoq.com",
|
7
7
|
"repository": {
|
@@ -33,13 +33,12 @@
|
|
33
33
|
"dist"
|
34
34
|
],
|
35
35
|
"peerDependencies": {
|
36
|
-
"@pinia/colada": "
|
37
|
-
"vue": ">=3.3.0"
|
38
|
-
"@orpc/client": "0.39.0",
|
39
|
-
"@orpc/contract": "0.39.0"
|
36
|
+
"@pinia/colada": ">=0.13.5",
|
37
|
+
"vue": ">=3.3.0"
|
40
38
|
},
|
41
39
|
"dependencies": {
|
42
|
-
"@orpc/
|
40
|
+
"@orpc/client": "0.41.0",
|
41
|
+
"@orpc/shared": "0.41.0"
|
43
42
|
},
|
44
43
|
"devDependencies": {
|
45
44
|
"pinia": "^2.3.0"
|