@supacloud/compiler 0.31.2 → 0.33.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/README.md CHANGED
@@ -495,6 +495,11 @@ route 会自动按 HTTP status 执行内置 response decoder,并返回 schema
495
495
  OpenAPI。`buildRouteUrl` 和 `createApiClient` 可直接复用,也支持动态 headers
496
496
  和请求拦截器。
497
497
 
498
+ 每个生成 route 还会按 HTTP 方法暴露 `.query()` 或 `.mutate()` procedure
499
+ facade,并在 `API_PROCEDURES` 中输出 Command/幂等元数据。声明
500
+ `idempotency: "required"` 的 mutation 必须显式传入稳定的 `idempotencyKey`;
501
+ 客户端不会静默生成新 key。
502
+
498
503
  ### Migration from manual decoders
499
504
 
500
505
  旧版本要求调用方为每个有响应 schema 的 route 传入 decoder。升级后删除该