Vigia

将 victory-brush-container 从 37.x 升级到 38.x

根据 TypeScript 类型自动比较 victory-brush-container 37.4.1 与 38.0.0 的公开 API。签名变化表示可能存在不兼容变更,并非确定结论。

概要

已删除的导入路径0
已删除的导出0
已修改的签名3
已删除的类或接口成员0
已修改的类或接口成员0
新增弃用0
要求变化(engines、peer 依赖)1
新增导出0

已删除的导出

未发现。

已修改的签名

export之前之后
victory-brush-container · VictoryBrushContainer(initialProps: VictoryBrushContainerProps): JSX.Element(initialProps: VictoryBrushContainerProps): React.JSX.Element
victory-brush-container · useVictoryBrushContainer(initialProps: VictoryBrushContainerProps): { props: { domain: { x: DomainTuple; y: DomainTuple; }; currentDomain: { x: DomainTuple; y: DomainTuple; } | undefined; cachedBrushDomain: { x: DomainTuple; y: DomainTuple; } | undefined; allowDrag: boolean; allowDraw: boolean; allowResize: boolean; brushComponent: JSX.Element; brushDimension?: "x" | "y" | undefined; brushDomain?: { x?: any; y?: any; } | undefined; brushStyle: any; defaultBrushArea?: "all" | "none" | "disable" | "move" | undefined; disable?: boolean | undefined; handleComponent: JSX.Element; handleStyle: any; handleWidth: number; onB…(initialProps: VictoryBrushContainerProps): { props: { domain: { x: DomainTuple; y: DomainTuple; }; currentDomain: { x: DomainTuple; y: DomainTuple; } | undefined; cachedBrushDomain: { x: DomainTuple; y: DomainTuple; } | undefined; allowDrag: boolean; allowDraw: boolean; allowResize: boolean; brushComponent: React.JSX.Element; brushDimension?: "x" | "y" | undefined; brushDomain?: { x?: any; y?: any; } | undefined; brushStyle: any; defaultBrushArea?: "all" | "none" | "disable" | "move" | undefined; disable?: boolean | undefined; handleComponent: React.JSX.Element; handleStyle: any; handleWidth:…
victory-brush-container · VICTORY_BRUSH_CONTAINER_DEFAULT_PROPS{ allowDrag: boolean; allowDraw: boolean; allowResize: boolean; brushComponent: JSX.Element; brushStyle: { stroke: string; fill: string; fillOpacity: number; }; handleComponent: JSX.Element; handleStyle: { stroke: string; fill: string; }; handleWidth: number; mouseMoveThreshold: number; }{ allowDrag: boolean; allowDraw: boolean; allowResize: boolean; brushComponent: React.JSX.Element; brushStyle: { stroke: string; fill: string; fillOpacity: number; }; handleComponent: React.JSX.Element; handleStyle: { stroke: string; fill: string; }; handleWidth: number; mouseMoveThreshold: number; }

已删除的类或接口成员

未发现。

已修改的类或接口成员

未发现。

新增弃用

未发现。

要求变化(engines、peer 依赖)

之前之后
peerDependencies.react>=16.6.0>=18

这些版本之间的 changelog

软件包作者发布的文本,按原样显示。

38.0.0
### Major Changes

- [#3138](https://github.com/FormidableLabs/victory/pull/3138) [`b7ebc3e`](https://github.com/FormidableLabs/victory/commit/b7ebc3e316d05740f11d4e8b8072d420db6ccfad) - Require React 18 or later: the `react` peer dependency is now `>=18` (was `>=16.6.0`). If you're on React 16 or 17, stay on Victory 37.x until you upgrade React.

- [#3107](https://github.com/FormidableLabs/victory/pull/3107) [`4c436bd`](https://github.com/FormidableLabs/victory/commit/4c436bd47b835e795e96bc205cdf9c590fe92ddb) - Remove the UMD bundles (`dist/<package>.js` and `dist/<package>.min.js`). To use Victory in the browser without a build step, import it as ESM from a CDN with an import map; see [Using Victory in the browser](https://commerce.nearform.com/open-source/victory/docs/introduction/browser).

- [#3108](https://github.com/FormidableLabs/victory/pull/3108) [`8f16467`](https://github.com/FormidableLabs/victory/commit/8f1646767d6059d764541118284cf71cc1da5c95) - Packages are now built with tsdown and published from `dist/`, with an `exports` map:
  
  - ESM is `dist/*.mjs` and CommonJS is `dist/*.cjs`, with matching `.d.mts`/`.d.cts` types. `main`, `module` and `types` still point at them for older tooling.
  - Only the package root (and `package.json`) can be imported. Deep imports into `lib/`, `es/` or `src/` no longer resolve; import from the package root instead (for example `import { Helpers } from "victory-core"`).
  - The output targets ES2022 and is no longer down-leveled further. If you support older browsers, transpile `node_modules` in your bundler.
  - `src/` is no longer published.

把这些数据交给你的 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" } } }

智能体技能(SKILL.md):告诉智能体何时使用 Vigia · 用于拉取请求的 GitHub Action

常见问题

将 victory-brush-container 从 37 升级到 38 有哪些不兼容变更?

在 victory-brush-container 37.4.1 与 38.0.0 之间,Vigia 发现 0 个已删除的导出、3 个已修改的签名,以及 0 个已删除或修改的类或接口成员。

victory-brush-container 38 中弃用了哪些内容?

victory-brush-container 38.0.0 中有 0 个导出或成员新被标记为弃用。

供智能体使用

GET https://vigia.coredls.cloud/v1/packages/npm/victory-brush-container/upgrade?from=37.4.1&to=38.0.0