@wordpress/components को 43.x से 44.x पर अपग्रेड करना
@wordpress/components 43.0.0 और 44.0.0 के सार्वजनिक API की तुलना, उनके TypeScript टाइप से अपने-आप निकाली गई। बदला हुआ सिग्नेचर संभावित असंगत बदलाव है, निश्चितता नहीं।
सारांश
| हटाए गए इम्पोर्ट पाथ | 0 |
|---|---|
| हटाए गए एक्सपोर्ट | 0 |
| बदले गए सिग्नेचर | 3 |
| क्लास या इंटरफ़ेस के हटाए गए सदस्य | 0 |
| क्लास या इंटरफ़ेस के बदले गए सदस्य | 0 |
| नए डिप्रिकेटेड | 5 |
| आवश्यकताओं में बदलाव (engines, peer निर्भरताएँ) | 4 |
| नए एक्सपोर्ट | 0 |
हटाए गए एक्सपोर्ट
कुछ नहीं मिला।
बदले गए सिग्नेचर
| export | पहले | बाद में |
|---|---|---|
@wordpress/components · Autocomplete | ({ children, isSelected, ...options }: AutocompleteProps): any | <TReplacement = RichTextValue>({ children, isSelected, ...options }: AutocompleteProps<TReplacement>): any |
@wordpress/components · CustomGradientPicker | ({ value, onChange, enableAlpha, __experimentalIsRenderedInSidebar, }: CustomGradientPickerProps): any | (props: CustomGradientPickerProps): any |
@wordpress/components · __unstableUseAutocompleteProps | (options: Omit<UseAutocompleteProps, "contentRef">): { ref: any; children?: undefined; 'aria-autocomplete'?: undefined; 'aria-haspopup'?: undefined; 'aria-controls'?: undefined; 'aria-owns'?: undefined; 'aria-activedescendant'?: undefined; } | { ref: any; children: any; 'aria-autocomplete': "list" | undefined; 'aria-haspopup': "listbox" | undefined; 'aria-controls': string | undefined; 'aria-owns': string | undefined; 'aria-activedescendant': string | undefined; } | <TReplacement = RichTextValue>(options: Omit<UseAutocompleteProps<TReplacement>, "contentRef">): { ref: any; children?: undefined; 'aria-autocomplete'?: undefined; 'aria-haspopup'?: undefined; 'aria-controls'?: undefined; 'aria-owns'?: undefined; 'aria-activedescendant'?: undefined; } | { ref: any; children: any; 'aria-autocomplete': "list" | undefined; 'aria-haspopup': "listbox" | undefined; 'aria-controls': string | undefined; 'aria-owns': string | undefined; 'aria-activedescendant': string | undefined; } |
क्लास या इंटरफ़ेस के हटाए गए सदस्य
कुछ नहीं मिला।
क्लास या इंटरफ़ेस के बदले गए सदस्य
कुछ नहीं मिला।
नए डिप्रिकेटेड
| export | @deprecated |
|---|---|
@wordpress/components · Tooltip | Use `Tooltip` from `@wordpress/ui` instead. |
@wordpress/components · FormToggle | Use `Switch` from `@wordpress/ui` instead. ```jsx import { FormToggle } from '@wordpress/components'; import { useState } from '@wordpress/element'; const MyFormToggle = () => { const [ isChecked, setChecked ] = useState( true ); return ( <FormToggle checked={ isChecked } onChange={ () => setChec… |
@wordpress/components · ProgressBar | Use `Progress` from `@wordpress/ui` instead. ```jsx import { ProgressBar } from '@wordpress/components'; const MyLoadingComponent = () => { return <ProgressBar />; }; ``` |
@wordpress/components · TabbableContainer | ```jsx import { TabbableContainer, Button, } from '@wordpress/components'; function onNavigate( index, target ) { console.log( `Navigates to ${ index }`, target ); } const MyTabbableContainer = () => ( <div> <span>Tabbable Container:</span> <TabbableContainer onNavigate… |
@wordpress/components · CustomGradientPicker | Use `GradientPicker` with `clearable={ false }` instead. ```jsx import { GradientPicker } from '@wordpress/components'; import { useState } from '@wordpress/element'; const MyGradientEditor = () => { const [ gradient, setGradient ] = useState(); return ( <GradientPicker clearable={ false } value=… |
आवश्यकताओं में बदलाव (engines, peer निर्भरताएँ)
| पहले | बाद में | |
|---|---|---|
engines.node | >=22.13.0 | — |
peerDependencies.react | ^18 || ^19 | — |
peerDependencies.react-dom | ^18 || ^19 | — |
peerDependencies.@types/react | ^18 || ^19 | — |
अपने 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
अक्सर पूछे जाने वाले प्रश्न
@wordpress/components को 43 से 44 पर अपग्रेड करने पर कौन-से असंगत बदलाव हैं?
@wordpress/components 43.0.0 और 44.0.0 के बीच Vigia को 0 हटाए गए एक्सपोर्ट, 3 बदले गए सिग्नेचर और 0 हटाए या बदले गए क्लास/इंटरफ़ेस सदस्य मिले।
@wordpress/components 44 में क्या डिप्रिकेट हुआ?
@wordpress/components 44.0.0 में 5 एक्सपोर्ट या सदस्य नए रूप से डिप्रिकेटेड चिह्नित हैं।
एजेंटों के लिए
GET https://vigia.coredls.cloud/v1/packages/npm/@wordpress/components/upgrade?from=43.0.0&to=44.0.0