@orpc/contract 0.0.0-next.aac73c2 → 0.0.0-next.ac2c329

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.d.mts CHANGED
@@ -1,6 +1,7 @@
1
1
  import { ORPCErrorCode, ORPCError, HTTPMethod, HTTPPath, ClientContext, Client } from '@orpc/client';
2
- export { ORPCError } from '@orpc/client';
3
- import { Promisable, IsEqual } from '@orpc/shared';
2
+ export { HTTPMethod, HTTPPath, ORPCError } from '@orpc/client';
3
+ import { Promisable, IsEqual, ThrowableError } from '@orpc/shared';
4
+ export { Registry, ThrowableError } from '@orpc/shared';
4
5
  import { StandardSchemaV1 } from '@standard-schema/spec';
5
6
 
6
7
  type Schema<TInput, TOutput> = StandardSchemaV1<TInput, TOutput>;
@@ -32,7 +33,7 @@ declare function mergeErrorMap<T1 extends ErrorMap, T2 extends ErrorMap>(errorMa
32
33
  type ORPCErrorFromErrorMap<TErrorMap extends ErrorMap> = {
33
34
  [K in keyof TErrorMap]: K extends string ? TErrorMap[K] extends ErrorMapItem<infer TDataSchema extends Schema<unknown, unknown>> ? ORPCError<K, InferSchemaOutput<TDataSchema>> : never : never;
34
35
  }[keyof TErrorMap];
35
- type ErrorFromErrorMap<TErrorMap extends ErrorMap> = Error | ORPCErrorFromErrorMap<TErrorMap>;
36
+ type ErrorFromErrorMap<TErrorMap extends ErrorMap> = ORPCErrorFromErrorMap<TErrorMap> | ThrowableError;
36
37
 
37
38
  type Meta = Record<string, any>;
38
39
  declare function mergeMeta<T extends Meta>(meta1: T, meta2: T): T;
package/dist/index.d.ts CHANGED
@@ -1,6 +1,7 @@
1
1
  import { ORPCErrorCode, ORPCError, HTTPMethod, HTTPPath, ClientContext, Client } from '@orpc/client';
2
- export { ORPCError } from '@orpc/client';
3
- import { Promisable, IsEqual } from '@orpc/shared';
2
+ export { HTTPMethod, HTTPPath, ORPCError } from '@orpc/client';
3
+ import { Promisable, IsEqual, ThrowableError } from '@orpc/shared';
4
+ export { Registry, ThrowableError } from '@orpc/shared';
4
5
  import { StandardSchemaV1 } from '@standard-schema/spec';
5
6
 
6
7
  type Schema<TInput, TOutput> = StandardSchemaV1<TInput, TOutput>;
@@ -32,7 +33,7 @@ declare function mergeErrorMap<T1 extends ErrorMap, T2 extends ErrorMap>(errorMa
32
33
  type ORPCErrorFromErrorMap<TErrorMap extends ErrorMap> = {
33
34
  [K in keyof TErrorMap]: K extends string ? TErrorMap[K] extends ErrorMapItem<infer TDataSchema extends Schema<unknown, unknown>> ? ORPCError<K, InferSchemaOutput<TDataSchema>> : never : never;
34
35
  }[keyof TErrorMap];
35
- type ErrorFromErrorMap<TErrorMap extends ErrorMap> = Error | ORPCErrorFromErrorMap<TErrorMap>;
36
+ type ErrorFromErrorMap<TErrorMap extends ErrorMap> = ORPCErrorFromErrorMap<TErrorMap> | ThrowableError;
36
37
 
37
38
  type Meta = Record<string, any>;
38
39
  declare function mergeMeta<T extends Meta>(meta1: T, meta2: T): T;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@orpc/contract",
3
3
  "type": "module",
4
- "version": "0.0.0-next.aac73c2",
4
+ "version": "0.0.0-next.ac2c329",
5
5
  "license": "MIT",
6
6
  "homepage": "https://orpc.unnoq.com",
7
7
  "repository": {
@@ -25,13 +25,12 @@
25
25
  ],
26
26
  "dependencies": {
27
27
  "@standard-schema/spec": "^1.0.0",
28
- "@orpc/client": "0.0.0-next.aac73c2",
29
- "@orpc/shared": "0.0.0-next.aac73c2",
30
- "@orpc/standard-server": "0.0.0-next.aac73c2"
28
+ "@orpc/client": "0.0.0-next.ac2c329",
29
+ "@orpc/shared": "0.0.0-next.ac2c329"
31
30
  },
32
31
  "devDependencies": {
33
- "arktype": "2.0.0-rc.26",
34
- "valibot": "1.0.0-beta.9",
32
+ "arktype": "2.1.19",
33
+ "valibot": "1.0.0",
35
34
  "zod": "^3.24.2"
36
35
  },
37
36
  "scripts": {