@evumi/berth 0.0.6 → 0.0.8

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.
Files changed (2) hide show
  1. package/README.md +2 -0
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -4,6 +4,8 @@ Berth 项目 Queues(队列)和 Alarms(定时器)的客户端,用法照
4
4
 
5
5
  项目开了 `queues` 或 `alarms` 能力后,Berth 会给容器注入 `BERTH_CONFIG_URL`、`BERTH_CONFIG_TOKEN` 和 `BERTH_SIGNING_SECRET`。环境是请求来源的那个环境:预览环境只会用到自己的队列和定时器。
6
6
 
7
+ 此 SDK 用于服务端(包括 API 路由和 edge Worker)。平台 Token、签名密钥、Cron 密钥和 KV 连接凭据都不能下发到浏览器。前端通过应用后端操作,后端负责鉴权并只返回业务结果。不要把这些变量复制到 `NEXT_PUBLIC_*`、`VITE_*`、打包器环境变量映射或客户端 props,也不要把处理器收到的 `env` 快照返回给客户端。
8
+
7
9
  ## 发消息(producer)
8
10
 
9
11
  ```ts
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@evumi/berth",
3
- "version": "0.0.6",
3
+ "version": "0.0.8",
4
4
  "description": "Client for Berth project Queues and Alarms, and the verifier for signed push deliveries.",
5
5
  "license": "MIT",
6
6
  "repository": {