rust-store-node 3.0.0 → 3.2.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/index.d.ts CHANGED
@@ -176,4 +176,16 @@ export declare class Registry {
176
176
  setDenyWriteRoles(roles: Array<string>): void
177
177
  /** 未配置姿态("open" / "closed");未知值抛错(fail-fast,对齐 setRbac) */
178
178
  setUnconfiguredPolicy(policy: string): void
179
+ /**
180
+ * 定义层门禁策略(`closed=true` 时仅 internal 或 `roles` 白名单可注册/覆盖)。
181
+ * 判决唯一在 core;默认 Open(全放行,保持既有 parity)。
182
+ */
183
+ setMetaPolicy(closed: boolean, roles: Array<string>): void
184
+ /**
185
+ * 带 ctx 的 schema 注册:定义层门禁按当前 metaPolicy 判决;`ctx` 缺省 = 无上下文。
186
+ * 拒绝抛 `ERR_PERMISSION:` 前缀错误(定义不变)。
187
+ */
188
+ registerWithCtx(defn: any, ctx?: any | undefined | null): void
189
+ /** 只读定义层判决(`workflow` 宿主面复用;判决唯一在 core)。`ctx` 缺省 = 无上下文。 */
190
+ canRegister(ctx?: any | undefined | null): boolean
179
191
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "rust-store-node",
3
- "version": "3.0.0",
3
+ "version": "3.2.0",
4
4
  "description": "Node.js binding (napi-rs) for the rust-store multi-backend data engine: GQL parsing, permissions, computed columns and SQL dialect translation for MongoDB, MySQL, SQLite and PostgreSQL",
5
5
  "main": "index.js",
6
6
  "types": "index.d.ts",
@@ -68,10 +68,10 @@
68
68
  "sql.js": "^1.8.0"
69
69
  },
70
70
  "optionalDependencies": {
71
- "rust-store-node-win32-x64-msvc": "3.0.0",
72
- "rust-store-node-linux-x64-gnu": "3.0.0",
73
- "rust-store-node-linux-arm64-gnu": "3.0.0",
74
- "rust-store-node-darwin-x64": "3.0.0",
75
- "rust-store-node-darwin-arm64": "3.0.0"
71
+ "rust-store-node-win32-x64-msvc": "3.2.0",
72
+ "rust-store-node-linux-x64-gnu": "3.2.0",
73
+ "rust-store-node-linux-arm64-gnu": "3.2.0",
74
+ "rust-store-node-darwin-x64": "3.2.0",
75
+ "rust-store-node-darwin-arm64": "3.2.0"
76
76
  }
77
77
  }
Binary file
Binary file
Binary file
Binary file