将 @datadog/native-appsec 从 11.x 升级到 12.x
根据 TypeScript 类型自动比较 @datadog/native-appsec 11.0.3 与 12.0.0 的公开 API。签名变化表示可能存在不兼容变更,并非确定结论。
概要
| 已删除的导入路径 | 0 |
|---|---|
| 已删除的导出 | 1 |
| 已修改的签名 | 2 |
| 已删除的类或接口成员 | 0 |
| 已修改的类或接口成员 | 3 |
| 新增弃用 | 0 |
| 要求变化(engines、peer 依赖) | 0 |
| 新增导出 | 1 |
已删除的导出
| import | export | kind | 之前 |
|---|---|---|---|
@datadog/native-appsec | payload | type | { persistent?: object | undefined; ephemeral?: object | undefined; } |
已修改的签名
| export | 之前 | 之后 |
|---|---|---|
@datadog/native-appsec · result | { timeout: boolean; duration?: number | undefined; events?: object[] | undefined; status?: "match" | undefined; actions?: object[] | undefined; attributes?: object | undefined; metrics?: TruncationMetrics | undefined; errorCode?: number | undefined; keep?: boolean | undefined; } | { timeout?: boolean | undefined; duration?: number | undefined; events?: object[] | undefined; status?: "match" | undefined; actions?: { [actionType: string]: { [parameter: string]: string | number | boolean; }; } | undefined; attributes?: object | undefined; metrics: TruncationMetrics; errorCode?: number | undefined; keep?: boolean | undefined; evaluated?: number | undefined; } |
@datadog/native-appsec · diagnosticsInfo | { addresses?: { optional: string[]; required: string[]; } | undefined; loaded: string[]; failed: string[]; errors: { [errorString: string]: string[]; }; } | { addresses?: { optional: string[]; required: string[]; } | undefined; loaded: string[]; failed: string[]; skipped?: string[] | undefined; errors: { [errorString: string]: string[]; }; warnings?: { [warningString: string]: string[]; } | undefined; } |
已删除的类或接口成员
未发现。
已修改的类或接口成员
| member | 之前 | 之后 |
|---|---|---|
DDWAF.diagnostics | { ruleset_version?: string | undefined; rules?: diagnosticsResult | undefined; custom_rules?: diagnosticsResult | undefined; exclusions?: diagnosticsResult | undefined; rules_override?: diagnosticsResult | undefined; rules_data?: diagnosticsResult | undefined; processors?: diagnosticsResult | undefi… | { error?: string | undefined; ruleset_version?: string | undefined; rules?: diagnosticsResult | undefined; custom_rules?: diagnosticsResult | undefined; exclusions?: diagnosticsResult | undefined; rules_override?: diagnosticsResult | undefined; rules_data?: diagnosticsResult | undefined; processors?… |
DDWAF.createContext | (): DDWAFContext | (): DDWAFContext | null |
DDWAFContext.run | (payload: payload, timeout: number): result | (data: object, timeout: number): result |
新增弃用
未发现。
要求变化(engines、peer 依赖)
未发现。
新增导出 (1)
| import | export | kind |
|---|---|---|
@datadog/native-appsec | DDWAFSubcontext | class |
把这些数据交给你的 AI 智能体
Vigia 是免费的 MCP 服务器:你的编程智能体在写代码之前就能检查版本、不兼容变更和安全漏洞。无需注册,无需 API 密钥。
claude mcp add --transport http vigia https://vigia.coredls.cloud/mcp
添加到 Cursor添加到 VS Code★ 在 GitHub 上加星
任何其他 MCP 客户端
{ "mcpServers": { "vigia": { "url": "https://vigia.coredls.cloud/mcp" } } }常见问题
将 @datadog/native-appsec 从 11 升级到 12 有哪些不兼容变更?
在 @datadog/native-appsec 11.0.3 与 12.0.0 之间,Vigia 发现 1 个已删除的导出、2 个已修改的签名,以及 3 个已删除或修改的类或接口成员。
@datadog/native-appsec 12 中弃用了哪些内容?
@datadog/native-appsec 12.0.0 中有 0 个导出或成员新被标记为弃用。
供智能体使用
GET https://vigia.coredls.cloud/v1/packages/npm/@datadog/native-appsec/upgrade?from=11.0.3&to=12.0.0