@orpc/json-schema 2.0.0-beta.52 → 2.0.0-beta.53

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/README.md CHANGED
@@ -63,7 +63,7 @@ Read the full documentation at [orpc.dev](https://orpc.dev), starting with the [
63
63
 
64
64
  | Package | Purpose | Docs |
65
65
  | -------------------------------------------------------------- | -------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
66
- | [@orpc/contract](https://www.npmjs.com/package/@orpc/contract) | Define API contract as the single source of truth. | [Procedure Contract](https://orpc.dev/docs/contract/procedure), [Contract Router](https://orpc.dev/docs/contract/router), [Implementation](https://orpc.dev/docs/contract/implementation), [Generate from OpenAPI](https://orpc.dev/docs/contract/generate-from-openapi) |
66
+ | [@orpc/contract](https://www.npmjs.com/package/@orpc/contract) | Define API contract as the single source of truth. | [Procedure Contract](https://orpc.dev/docs/contract/procedure), [Router Contract](https://orpc.dev/docs/contract/router), [Implementation](https://orpc.dev/docs/contract/implementation), [Generate from OpenAPI](https://orpc.dev/docs/contract/generate-from-openapi) |
67
67
  | [@orpc/server](https://www.npmjs.com/package/@orpc/server) | Build APIs or implement contracts. | [Procedure](https://orpc.dev/docs/procedure), [Router](https://orpc.dev/docs/router), [Middleware](https://orpc.dev/docs/middleware), [Context](https://orpc.dev/docs/context), [RPC Handler](https://orpc.dev/docs/rpc/handler) |
68
68
  | [@orpc/client](https://www.npmjs.com/package/@orpc/client) | Consume APIs with end-to-end type safety. | [Client-Side Clients](https://orpc.dev/docs/client/client-side), [Server-Side Clients](https://orpc.dev/docs/client/server-side), [RPC Link](https://orpc.dev/docs/rpc/link), [Error Handling](https://orpc.dev/docs/client/error-handling) |
69
69
  | [@orpc/openapi](https://www.npmjs.com/package/@orpc/openapi) | Add OpenAPI compatibility to APIs. | [OpenAPI Handler](https://orpc.dev/docs/openapi/handler), [OpenAPI Link](https://orpc.dev/docs/openapi/link), [Specification](https://orpc.dev/docs/openapi/specification), [Scalar](https://orpc.dev/docs/openapi/scalar) |
@@ -12,7 +12,7 @@ export interface SmartCoercionHandlerPluginOptions extends JsonSchemaCoercerOpti
12
12
  * @see {@link https://orpc.dev/docs/plugins/smart-coercion | Smart Coercion Plugin}
13
13
  */
14
14
  export declare class SmartCoercionHandlerPlugin<T extends Context> implements StandardHandlerPlugin<T> {
15
- name: string;
15
+ readonly name = "~smart-coercion";
16
16
  private readonly converter;
17
17
  private readonly coercer;
18
18
  private readonly cache;
@@ -14,11 +14,11 @@ export interface SmartCoercionLinkPluginOptions extends JsonSchemaCoercerOptions
14
14
  */
15
15
  export declare class SmartCoercionLinkPlugin<T extends ClientContext> implements StandardLinkPlugin<T> {
16
16
  private readonly contract;
17
- name: string;
17
+ readonly name = "~smart-coercion";
18
18
  /**
19
- * Output and error values should be coerced before validation.
19
+ * Runs inside response validation, so values are coerced before validation.
20
20
  */
21
- after: string[];
21
+ readonly after: readonly string[];
22
22
  private readonly converter;
23
23
  private readonly coercer;
24
24
  private readonly cache;
@@ -15,7 +15,7 @@ var SmartCoercionLinkPlugin = class {
15
15
  contract;
16
16
  name = "~smart-coercion";
17
17
  /**
18
- * Output and error values should be coerced before validation.
18
+ * Runs inside response validation, so values are coerced before validation.
19
19
  */
20
20
  after = ["~response-validation"];
21
21
  converter;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@orpc/json-schema",
3
- "version": "2.0.0-beta.52",
3
+ "version": "2.0.0-beta.53",
4
4
  "description": "JSON Schema conversion and smart request coercion for oRPC and OpenAPI",
5
5
  "keywords": [
6
6
  "coercion",
@@ -36,10 +36,10 @@
36
36
  },
37
37
  "dependencies": {
38
38
  "@openapi-spec/types": "~0.8.0",
39
- "@orpc/client": "2.0.0-beta.52",
40
- "@orpc/contract": "2.0.0-beta.52",
41
- "@orpc/server": "2.0.0-beta.52",
42
- "@orpc/shared": "2.0.0-beta.52",
39
+ "@orpc/client": "2.0.0-beta.53",
40
+ "@orpc/contract": "2.0.0-beta.53",
41
+ "@orpc/server": "2.0.0-beta.53",
42
+ "@orpc/shared": "2.0.0-beta.53",
43
43
  "@standard-schema/spec": "^1.1.0"
44
44
  },
45
45
  "devDependencies": {