Оновлення victory-cursor-container з 37.x до 38.x
Порівняння публічного API victory-cursor-container 37.4.1 і 38.0.0, обчислене автоматично за їхніми типами TypeScript. Змінена сигнатура — можлива несумісна зміна, а не гарантія.
Підсумок
| Видалені шляхи імпорту | 0 |
|---|---|
| Видалені експорти | 0 |
| Змінені сигнатури | 3 |
| Видалені члени класів або інтерфейсів | 0 |
| Змінені члени класів або інтерфейсів | 0 |
| Нові застарівання | 0 |
| Зміни вимог (engines, peer-залежності) | 1 |
| Нові експорти | 0 |
Видалені експорти
Не виявлено.
Змінені сигнатури
| export | Було | Стало |
|---|---|---|
victory-cursor-container · VictoryCursorContainer | (initialProps: VictoryCursorContainerProps): JSX.Element | (initialProps: VictoryCursorContainerProps): React.JSX.Element |
victory-cursor-container · useVictoryCursorContainer | (initialProps: VictoryCursorContainerProps): { props: { cursorValue: any; domain: { x: DomainTuple; y: DomainTuple; }; cursorComponent: JSX.Element; cursorDimension?: "x" | "y" | undefined; cursorLabel?: any; cursorLabelComponent: JSX.Element; cursorLabelOffset: any; defaultCursorValue?: any; disable?: boolean | undefined; horizontal?: boolean | undefined; padding?: any; onCursorChange?: ((value: any, props: VictoryCursorContainerProps) => void) | undefined; "aria-describedby"?: string | undefined; "aria-labelledby"?: string | undefined; children?: any; className?: string | undefined; containe… | (initialProps: VictoryCursorContainerProps): { props: { cursorValue: any; domain: { x: DomainTuple; y: DomainTuple; }; cursorComponent: React.JSX.Element; cursorDimension?: "x" | "y" | undefined; cursorLabel?: any; cursorLabelComponent: React.JSX.Element; cursorLabelOffset: number | { x: number; y: number; }; defaultCursorValue?: any; disable?: boolean | undefined; horizontal?: boolean | undefined; padding?: any; onCursorChange?: ((value: any, props: VictoryCursorContainerProps) => void) | undefined; "aria-describedby"?: string | undefined; "aria-labelledby"?: string | undefined; children?: an… |
victory-cursor-container · VICTORY_CURSOR_CONTAINER_DEFAULT_PROPS | { cursorLabelComponent: JSX.Element; cursorLabelOffset: { x: number; y: number; }; cursorComponent: JSX.Element; } | { cursorLabelComponent: React.JSX.Element; cursorLabelOffset: { x: number; y: number; }; cursorComponent: React.JSX.Element; } |
Видалені члени класів або інтерфейсів
Не виявлено.
Змінені члени класів або інтерфейсів
Не виявлено.
Нові застарівання
Не виявлено.
Зміни вимог (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.Передайте ці дані своєму ШІ-агенту
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 для pull request
Поширені запитання
Які несумісні зміни під час оновлення victory-cursor-container з 37 до 38?
Між victory-cursor-container 37.4.1 і 38.0.0 Vigia знайшла видалених експортів: 0, змінених сигнатур: 3, видалених або змінених членів класів та інтерфейсів: 0.
Що застаріло в victory-cursor-container 38?
У victory-cursor-container 38.0.0 новими застарілими позначено експортів або членів: 0.
Для агентів
GET https://vigia.coredls.cloud/v1/packages/npm/victory-cursor-container/upgrade?from=37.4.1&to=38.0.0