victory-core을(를) 37.x에서 38.x로 업그레이드하기
victory-core 37.4.1과 38.0.0의 공개 API를 TypeScript 타입에서 자동으로 비교한 결과입니다. 시그니처 변경은 호환성이 깨질 가능성이 있다는 뜻이며 확정은 아닙니다.
요약
| 삭제된 import 경로 | 0 |
|---|---|
| 삭제된 export | 0 |
| 변경된 시그니처 | 10 |
| 삭제된 클래스·인터페이스 멤버 | 0 |
| 변경된 클래스·인터페이스 멤버 | 5 |
| 새로 지원 중단됨 | 0 |
| 요구 사항 변경 (engines, peer 의존성) | 1 |
| 새 export | 1 |
삭제된 export
감지되지 않았습니다.
변경된 시그니처
| export | 이전 | 이후 |
|---|---|---|
victory-core · Text | (props: TextProps): JSX.Element | (props: TextProps): React.JSX.Element |
victory-core · TSpan | (props: VictoryCommonPrimitiveProps): JSX.Element | (props: VictoryCommonPrimitiveProps): React.JSX.Element |
victory-core · ClipPath | (props: ClipPathProps): JSX.Element | (props: ClipPathProps): React.JSX.Element |
victory-core · PortalProvider | ({ children }: PortalProviderProps): JSX.Element | ({ children }: PortalProviderProps): React.JSX.Element |
victory-core · AnimationEasing | "linear" | "back" | "backIn" | "backOut" | "backInOut" | "bounce" | "bounceIn" | "bounceOut" | "bounceInOut" | "circle" | "circleIn" | "circleOut" | "circleInOut" | "linearIn" | "linearOut" | "linearInOut" | "cubic" | "cubicIn" | "cubicOut" | "cubicInOut" | "elastic" | "elasticIn" | "elasticOut" | "elasticInOut" | "exp" | "expIn" | "expOut" | "expInOut" | "poly" | "polyIn" | "polyOut" | "polyInOut" | "quad" | "quadIn" | "quadOut" | "quadInOut" | "sin" | "sinIn" | "sinOut" | "sinInOut" | "back" | "backIn" | "backOut" | "backInOut" | "bounce" | "bounceIn" | "bounceOut" | "bounceInOut" | "circle" | "circleIn" | "circleOut" | "circleInOut" | "linear" | "linearIn" | "linearOut" | "linearInOut" | "cubic" | "cubicIn" | "cubicOut" | "cubicInOut" | "elastic" | "elasticIn" | "elasticOut" | "elasticInOut" | "exp" | "expIn" | "expOut" | "expInOut" | "poly" | "polyIn" | "polyOut" | "polyInOut" | "quad" | "quadIn" | "quadOut" | "quadInOut" | "sin" | "sinIn" | "sinOut" | "sinInOut" |
victory-core · VictoryContainer | (initialProps: VictoryContainerProps): JSX.Element | (initialProps: VictoryContainerProps): React.JSX.Element |
victory-core · PaddingOrCallback | number | VictoryPaddingCallback | BlockProps | number | BlockProps | VictoryPaddingCallback |
victory-core · useVictoryContainer | <TProps extends VictoryContainerProps>(initialProps: TProps): { className: string; portalComponent: JSX.Element; portalZIndex: number; responsive: boolean; role: string; } & TProps & { titleId: string; descId: string; dimensions: { width: string; height: string; } | { width: number | undefined; height: number | undefined; }; viewBox: string | undefined; preserveAspectRatio: string | undefined; ariaLabelledBy: string | undefined; ariaDescribedBy: string | undefined; userProps: Record<string, string>; localContainerRef: React.RefObject<HTMLDivElement>; } | <TProps extends VictoryContainerProps>(initialProps: TProps): { className: string; portalComponent: React.JSX.Element; portalZIndex: number; responsive: boolean; role: string; } & TProps & { titleId: string; descId: string; dimensions: { width: string; height: string; } | { width: number | undefined; height: number | undefined; }; viewBox: string | undefined; preserveAspectRatio: string | undefined; ariaLabelledBy: string | undefined; ariaDescribedBy: string | undefined; userProps: Record<string, string>; localContainerRef: React.RefObject<HTMLDivElement>; } |
victory-core · OrientationOrCallback | VictoryOrientationCallback | OrientationTypes | OrientationTypes | VictoryOrientationCallback |
victory-core · VictoryAccessibleGroup | ({ desc, children, tabIndex, className, ...props }: VictoryAccessibleGroupProps): JSX.Element | ({ desc, children, tabIndex, className, ...props }: VictoryAccessibleGroupProps): React.JSX.Element |
삭제된 클래스·인터페이스 멤버
감지되지 않았습니다.
변경된 클래스·인터페이스 멤버
| member | 이전 | 이후 |
|---|---|---|
VictoryLabelProps.text | StringOrNumberOrCallback | string[] | undefined | string[] | StringOrNumberOrCallback | undefined |
VictoryLabelProps.lineHeight | StringOrNumberOrCallback | (string | number)[] | undefined | (string | number)[] | StringOrNumberOrCallback | undefined |
VictoryTransition.render | (): JSX.Element | (): React.JSX.Element |
VictoryClipContainer.static defaultProps | { circleComponent: JSX.Element; rectComponent: JSX.Element; clipPathComponent: JSX.Element; groupComponent: JSX.Element; } | { circleComponent: React.JSX.Element; rectComponent: React.JSX.Element; clipPathComponent: React.JSX.Element; groupComponent: React.JSX.Element; } |
EventPropTypeInterface.eventHandlers | { [key: string]: ((event: React.SyntheticEvent<any>, props?: any) => EventCallbackInterface<TTarget, TEventKey>) | ((event: React.SyntheticEvent<any>, props?: any) => EventCallbackInterface<TTarget, TEventKey>[]) | ((event: React.SyntheticEvent<any>, props?: any) => void); } | { [key: string]: ((event: React$1.SyntheticEvent<any>, props?: any) => EventCallbackInterface<TTarget, TEventKey>) | ((event: React$1.SyntheticEvent<any>, props?: any) => EventCallbackInterface<TTarget, TEventKey>[]) | ((event: React$1.SyntheticEvent<any>, props?: any) => void); } |
새로 지원 중단됨
감지되지 않았습니다.
요구 사항 변경 (engines, peer 의존성)
| 이전 | 이후 | |
|---|---|---|
peerDependencies.react | >=16.6.0 | >=18 |
새 export (1)
| import | export | kind |
|---|---|---|
victory-core | ComponentEvent | interface |
두 버전 사이의 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.
### Patch Changes
- [#3108](https://github.com/FormidableLabs/victory/pull/3108) [`8f16467`](https://github.com/FormidableLabs/victory/commit/8f1646767d6059d764541118284cf71cc1da5c95) - Export the `ComponentEvent` type. Component declarations that use it (such as `componentEvents` on `VictoryArea`) now reference `victory-core` instead of an internal path.
- [#3115](https://github.com/FormidableLabs/victory/pull/3115) [`1864919`](https://github.com/FormidableLabs/victory/commit/18649193d7c8d42a8f5f58ade9c63288af68a7f8) - Fix `VictoryLabel`'s default `fontFamily`: an invisible soft hyphen inside `'Seravek'` meant that font never matched. Remove the unused `lodash` dependency from `victory-canvas`, `victory-histogram` and `victory-scatter`.
- [#3123](https://github.com/FormidableLabs/victory/pull/3123) [`4261e04`](https://github.com/FormidableLabs/victory/commit/4261e0453733d19154dc0700f14c03e8e0aad539) - Stop the primitives (`Circle`, `Line`, `Path`, `Rect`, `Text`, `TSpan`) from writing Victory props such as `standalone`, `polar`, `theme` and `stringMap` to the DOM. `VictoryChart`, `VictoryGroup` and `VictoryStack` inject these into every child, so a primitive placed directly in a chart triggered React warnings like "Received `false` for a non-boolean attribute `standalone`" ([#3118](https://github.com/FormidableLabs/victory/issues/3118)).
- [#3132](https이 데이터를 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-core을(를) 37에서 38(으)로 업그레이드할 때 호환성이 깨지는 변경은 무엇인가요?
victory-core 37.4.1과 38.0.0 사이에서 Vigia는 삭제된 export 0개, 변경된 시그니처 10개, 삭제되거나 변경된 클래스·인터페이스 멤버 5개를 찾았습니다.
victory-core 38에서 지원 중단된 것은 무엇인가요?
victory-core 38.0.0에서 export 또는 멤버 0개가 새로 지원 중단으로 표시되었습니다.
에이전트용
GET https://vigia.coredls.cloud/v1/packages/npm/victory-core/upgrade?from=37.4.1&to=38.0.0