将 json-schema-typed 从 8.x 升级到 9.x
根据 TypeScript 类型自动比较 json-schema-typed 8.0.2 与 9.0.0 的公开 API。签名变化表示可能存在不兼容变更,并非确定结论。
概要
| 已删除的导入路径 | 0 |
|---|---|
| 已删除的导出 | 0 |
| 已修改的签名 | 6 |
| 已删除的类或接口成员 | 0 |
| 已修改的类或接口成员 | 0 |
| 新增弃用 | 0 |
| 要求变化(engines、peer 依赖) | 0 |
| 新增导出 | 4 |
已删除的导出
未发现。
已修改的签名
| export | 之前 | 之后 |
|---|---|---|
json-schema-typed · keywords | readonly ["$anchor", "$comment", "$defs", "$dynamicAnchor", "$dynamicRef", "$id", "$ref", "$schema", "$vocabulary", "additionalItems", "additionalProperties", "allOf", "anyOf", "const", "contains", "contentEncoding", "contentMediaType", "contentSchema", "default", "definitions", "dependencies", "dependentRequired", "dependentSchemas", "deprecated", "description", "else", "enum", "examples", "exclusiveMaximum", "exclusiveMinimum", "format", "if", "items", "maxContains", "maximum", "maxItems", "maxLength", "maxProperties", "minContains", "minimum", "minItems", "minLength", "minProperties", "mult… | readonly ["$anchor", "$comment", "$defs", "$dynamicAnchor", "$dynamicRef", "$id", "$recursiveAnchor", "$recursiveRef", "$ref", "$schema", "$vocabulary", "additionalItems", "additionalProperties", "allOf", "anyOf", "const", "contains", "contentEncoding", "contentMediaType", "contentSchema", "default", "definitions", "dependencies", "dependentRequired", "dependentSchemas", "deprecated", "description", "else", "enum", "examples", "exclusiveMaximum", "exclusiveMinimum", "format", "if", "items", "maxContains", "maximum", "maxItems", "maxLength", "maxProperties", "minContains", "minimum", "minItems"… |
json-schema-typed · JSONSchema | boolean | { $anchor?: string | undefined; $comment?: string | undefined; $defs?: Record<string, JSONSchema<any, TypeValue>> | undefined; $dynamicAnchor?: string | undefined; $dynamicRef?: string | undefined; $id?: string | undefined; $ref?: string | undefined; $schema?: string | undefined; $vocabulary?: Record<string, string> | undefined; additionalItems?: JSONSchema<any, TypeValue> | undefined; additionalProperties?: JSONSchema<any, TypeValue> | undefined; allOf?: MaybeReadonlyArray<JSONSchema<Value, SchemaType>> | undefined; anyOf?: MaybeReadonlyArray<JSONSchema<Value, SchemaType>> | undefin… | boolean | Interface<Value, SchemaType, JSONSchema<any, TypeValue | (string & {})>> |
json-schema-typed/draft-07 · JSONSchema | boolean | { $comment?: string | undefined; $id?: string | undefined; $ref?: string | undefined; $schema?: string | undefined; additionalItems?: JSONSchema<any, TypeValue> | undefined; additionalProperties?: JSONSchema<any, TypeValue> | undefined; allOf?: MaybeReadonlyArray<JSONSchema<Value, SchemaType>> | undefined; anyOf?: MaybeReadonlyArray<JSONSchema<Value, SchemaType>> | undefined; const?: Value | undefined; contains?: JSONSchema<Value, SchemaType> | undefined; contentEncoding?: "7bit" | "8bit" | "base64" | "binary" | "ietf-token" | "quoted-printable" | "x-token" | undefined; contentMediaT… | boolean | Interface<Value, SchemaType, JSONSchema<any, (string & {}) | TypeValue>> |
json-schema-typed/draft-2019-09 · JSONSchema | boolean | { $anchor?: string | undefined; $comment?: string | undefined; $defs?: Record<string, JSONSchema<any, TypeValue>> | undefined; $id?: string | undefined; $recursiveAnchor?: boolean | undefined; $recursiveRef?: string | undefined; $ref?: string | undefined; $schema?: string | undefined; $vocabulary?: Record<string, string> | undefined; additionalItems?: JSONSchema<any, TypeValue> | undefined; additionalProperties?: JSONSchema<any, TypeValue> | undefined; allOf?: MaybeReadonlyArray<JSONSchema<Value, SchemaType>> | undefined; anyOf?: MaybeReadonlyArray<JSONSchema<Value, SchemaType>> | un… | boolean | Interface<Value, SchemaType, JSONSchema<any, (string & {}) | TypeValue>> |
json-schema-typed/draft-2020-12 · keywords | readonly ["$anchor", "$comment", "$defs", "$dynamicAnchor", "$dynamicRef", "$id", "$ref", "$schema", "$vocabulary", "additionalItems", "additionalProperties", "allOf", "anyOf", "const", "contains", "contentEncoding", "contentMediaType", "contentSchema", "default", "definitions", "dependencies", "dependentRequired", "dependentSchemas", "deprecated", "description", "else", "enum", "examples", "exclusiveMaximum", "exclusiveMinimum", "format", "if", "items", "maxContains", "maximum", "maxItems", "maxLength", "maxProperties", "minContains", "minimum", "minItems", "minLength", "minProperties", "mult… | readonly ["$anchor", "$comment", "$defs", "$dynamicAnchor", "$dynamicRef", "$id", "$recursiveAnchor", "$recursiveRef", "$ref", "$schema", "$vocabulary", "additionalItems", "additionalProperties", "allOf", "anyOf", "const", "contains", "contentEncoding", "contentMediaType", "contentSchema", "default", "definitions", "dependencies", "dependentRequired", "dependentSchemas", "deprecated", "description", "else", "enum", "examples", "exclusiveMaximum", "exclusiveMinimum", "format", "if", "items", "maxContains", "maximum", "maxItems", "maxLength", "maxProperties", "minContains", "minimum", "minItems"… |
json-schema-typed/draft-2020-12 · JSONSchema | boolean | { $anchor?: string | undefined; $comment?: string | undefined; $defs?: Record<string, JSONSchema<any, TypeValue>> | undefined; $dynamicAnchor?: string | undefined; $dynamicRef?: string | undefined; $id?: string | undefined; $ref?: string | undefined; $schema?: string | undefined; $vocabulary?: Record<string, string> | undefined; additionalItems?: JSONSchema<any, TypeValue> | undefined; additionalProperties?: JSONSchema<any, TypeValue> | undefined; allOf?: MaybeReadonlyArray<JSONSchema<Value, SchemaType>> | undefined; anyOf?: MaybeReadonlyArray<JSONSchema<Value, SchemaType>> | undefin… | boolean | Interface<Value, SchemaType, JSONSchema<any, TypeValue | (string & {})>> |
已删除的类或接口成员
未发现。
已修改的类或接口成员
未发现。
新增弃用
未发现。
要求变化(engines、peer 依赖)
未发现。
新增导出 (4)
| import | export | kind |
|---|---|---|
json-schema-typed | KeywordByType | namespace |
json-schema-typed/draft-07 | KeywordByType | namespace |
json-schema-typed/draft-2019-09 | KeywordByType | namespace |
json-schema-typed/draft-2020-12 | KeywordByType | namespace |
把这些数据交给你的 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" } } }常见问题
将 json-schema-typed 从 8 升级到 9 有哪些不兼容变更?
在 json-schema-typed 8.0.2 与 9.0.0 之间,Vigia 发现 0 个已删除的导出、6 个已修改的签名,以及 0 个已删除或修改的类或接口成员。
json-schema-typed 9 中弃用了哪些内容?
json-schema-typed 9.0.0 中有 0 个导出或成员新被标记为弃用。
供智能体使用
GET https://vigia.coredls.cloud/v1/packages/npm/json-schema-typed/upgrade?from=8.0.2&to=9.0.0