deprecate-cds-api

द्वारा coinbase

पैकेज/वेब, पैकेज/मोबाइल, पैकेज/कॉमन, पैकेज/वेब-विज़ुअलाइज़ेशन, या पैकेज/मोबाइल-विज़ुअलाइज़ेशन से निर्यात किए गए प्रतीकों के लिए मानक CDS अप्रचलन कार्यप्रवाह को स्वचालित करें।

npx skills add https://github.com/coinbase/cds --skill deprecate-cds-api

Deprecate CDS public API

Automate the standard CDS deprecation workflow for symbols exported from packages/web, packages/mobile, or packages/common.

Inputs to confirm first

  1. What is being deprecated? Component name, hook, prop, or other exported symbol.
  2. What should consumers use instead? The replacement must be named in JSDoc and in docs warning text.
  3. Which major should @deprecationExpectedRemoval use? (e.g. v11.) Ask the user to confirm if they have not already stated it. If they want a default, suggest the earliest allowed removal major from Step 2 (current major + 2) and confirm they accept it before editing.

Step 0 — Discover every public export (all packages)

Deprecate the symbol everywhere it is publicly reachable, not only where it is first implemented.

  1. For each CDS package (web, mobile, common), trace the symbol from that package’s package.json exports map → barrel / index files → the module that declares or re-exports the symbol.
  2. Grep for the symbol name under packages/<name>/src (e.g. export { Foo, export * from, Foo as) to catch re-exports and alternate entry paths.
  3. Every package that publicly exports the symbol must end up with deprecation coverage: primary implementation and any re-export site where your tooling or consumers would not see JSDoc from the source file (add JSDoc on the re-export line or duplicate the tags as needed so imports from @coinbase/cds-web, @coinbase/cds-mobile, @coinbase/cds-common, etc. all surface the deprecation).

Do not skip a package because the symbol is “originally” defined elsewhere—if consumers can import it from that package, it must be deprecated there too.


Step 1 — JSDoc on the deprecated symbol

Add or extend JSDoc immediately above the deprecated export (component, function, type alias, const, interface field, etc.).

Use the standard JSDoc tag @deprecated (not @deprecate).

Required shape:

/**
 * …existing description if any…
 *
 * @deprecated <Clear guidance referencing the replacement>. This will be removed in a future major release.
 * @deprecationExpectedRemoval v<M+2>
 */

Rules:

  • The @deprecated line must end with exactly: This will be removed in a future major release. (same sentence as the rest of the deprecation message, as in existing CDS examples).
  • @deprecationExpectedRemoval must match v + version (e.g. v11 or v11.0.0; full semver is allowed by ESLint).
  • v<M+2> is the earliest allowed removal major per Step 2 (full major undisturbed). Never use v<M+1> for a new deprecation.

The repo’s ESLint rule internal/deprecated-jsdoc-has-removal-version (libs/eslint-plugin-internal) enforces the prose ending and the presence of @deprecationExpectedRemoval; lint must pass after edits (see Step 6).


Step 2 — Removal version for @deprecationExpectedRemoval

The tag must satisfy @deprecationExpectedRemoval v… as enforced by ESLint (e.g. v11 or v11.0.0).

Policy — full major undisturbed (required)

Deprecated APIs must remain available for one full major version undisturbed before they may be removed.

That means: if you deprecate while shipping major M, the deprecation must still be present throughout all of major M+1, and the earliest allowed removal is major M+2.

Do not set @deprecationExpectedRemoval to the next major (M+1). Removal in M+1 would give consumers zero undisturbed major in which the API is only deprecated (not yet removed).

Examples (read version from packages/web, packages/mobile, or packages/common — they share semver):

Current package versionCurrent major MEarliest @deprecationExpectedRemoval
9.14.09v11 (must survive all of v10)
10.0.010v12 (must survive all of v11)

Never suggest or apply v(M+1) as the removal target for a newly introduced deprecation.

Choosing N

  1. Confirm with the user which major N to use, unless they already specified it in Inputs (e.g. “remove in v11” → use v11).
  2. Default suggestion when the user wants a recommendation: read the version field from the relevant package.json and set N = current major + 2 (the earliest allowed under the policy above).
    • Example: 9.14.0 → suggest v11, not v10.
  3. If the user asks for an earlier major than M+2, refuse that default, restate the full-major-undisturbed policy, and only proceed with a lower N if they explicitly override after that warning.
  4. After agreeing on N, use @deprecationExpectedRemoval v<N> everywhere for this deprecation (same Step 3).

Do not assume the default without checking—either the user names N, or they accept the suggested M+2 major after you show the current version.


Step 3 — Consistency across export surfaces

  • Use the same @deprecated guidance and @deprecationExpectedRemoval v<N> value everywhere the symbol is exported (adjust wording only if a platform’s API genuinely differs).
  • Components and hooks that exist as separate web and mobile implementations: deprecate both when both packages export the symbol.
  • Shared symbols in packages/common that are also re-exported from web or mobile: follow Step 0 — ensure deprecation is visible on every public import path (common barrels and web/mobile re-exports if applicable).
  • Visualization packages: same rules whenever those packages export the symbol.

Step 4 — Docsite metadata (apps/docs/docs)

Only when the symbol has existing docs under the docs app. Do not add new doc folders unless the docs workflow already expects them.

Components (apps/docs/docs/components/)

  1. Locate the folder, e.g. apps/docs/docs/components/<category>/<ComponentName>/.
  2. If present, edit webMetadata.json and/or mobileMetadata.json (some components have both; some only one).
  3. Add or update the top-level warning string:
"warning": "This component is deprecated. Please use {replacement} instead."

Examples:

  • "Please use Tabs instead."
  • "Please use MediaCard instead."

Match the tone of existing deprecations when the replacement is not a single component name (e.g. “Use indeterminate ProgressCircle for loading indicators instead.”) — still keep the opening: This component is deprecated.

Hooks (apps/docs/docs/hooks/)

  1. Locate the hook folder, e.g. apps/docs/docs/hooks/<hookName>/.
  2. Hooks may use webMetadata.json and mobileMetadata.json, or a single shared metadata.json — update whichever file(s) exist for that hook.
  3. Add or update the top-level warning string using hook wording:
"warning": "This hook is deprecated. Please use {replacement} instead."

Use the same {replacement} phrasing as in JSDoc. If the replacement is not a single hook name, adapt the sentence but keep the opening: This hook is deprecated.


Step 5 — Verification checklist

  • Every public export path across packages that expose the symbol has been found (Step 0) and carries deprecation (implementation and re-exports as needed).
  • @deprecated includes replacement guidance and the exact closing sentence about future major removal.
  • @deprecationExpectedRemoval v<N> matches the confirmed removal major (Step 2), and N is at least current major + 2 unless the user explicitly overrode the full-major-undisturbed policy after a warning.
  • Web + mobile implementations and metadata (when applicable) are updated; nothing skipped because the symbol was “only” defined in common or another package.
  • warning in metadata matches the replacement story: this component is deprecated for component docs, this hook is deprecated for hook docs (apps/docs/docs/hooks/).
  • yarn nx run <project>:lint has been run for every touched project (Step 6) and passes.

Step 6 — Run ESLint (required)

After all edits, run the lint target on every Nx project that contains changed source files so internal/deprecated-jsdoc-has-removal-version (and the rest of the package lint config) passes.

Use the workspace convention:

yarn nx run <project>:lint

Examples: web, mobile, common — run each project you touched. Fix any reported issues before finishing (most often: missing @deprecationExpectedRemoval, or @deprecated text not ending with the standard sentence).


Reference examples in-repo

  • JSDoc: search for @deprecationExpectedRemoval under packages/web/src (e.g. TabNavigation.tsx, Spinner.tsx).
  • ESLint: libs/eslint-plugin-internal — rule deprecated-jsdoc-has-removal-version (exposed as internal/deprecated-jsdoc-has-removal-version in the root eslint.config.mjs).
  • Metadata: search for "warning": "This component is deprecated under apps/docs/docs/components; hook docs live under apps/docs/docs/hooks/ (use This hook is deprecated for hook warning text).

coinbase की और Skills

git.repo-manager
coinbase
git.repo-manager — AI एजेंटों के लिए एक इंस्टॉल करने योग्य कौशल, जो coinbase/cds द्वारा प्रकाशित है।
official
agentic-wallet
coinbase
क्रिप्टो वॉलेट संचालन awal CLI के माध्यम से — साइन इन करें, बैलेंस जांचें, USDC/ETH/POL/SOL भेजें, टोकन ट्रेड करें, वॉलेट को फंड करें, और x402 भुगतान प्रोटोकॉल का उपयोग करें…
official
authenticate-wallet
coinbase
ईमेल OTP-आधारित वॉलेट प्रमाणीकरण जिसमें सत्यापन और स्थिति जांच शामिल है। दो-चरणीय लॉगिन प्रक्रिया: ईमेल से शुरू करके 6 अंकों का OTP प्राप्त करें, फिर flowId और कोड के साथ सत्यापित करके प्रमाणीकरण पूरा करें। कमांड निष्पादित करने से पहले शेल इंजेक्शन को रोकने के लिए ईमेल, flowId और OTP के लिए इनपुट सत्यापन नियम शामिल हैं। साथी CLI कमांड के माध्यम से स्थिति जांच, शेष राशि क्वेरी, पता प्राप्ति और वॉले
official
fund
coinbase
Coinbase Onramp या सीधे ट्रांसफर के माध्यम से वॉलेट में USDC जमा करें। एक सहायक UI खुलता है जहां उपयोगकर्ता पूर्व निर्धारित राशि ($10, $20, $50) या कस्टम मान चुन सकते हैं और Apple Pay, डेबिट कार्ड, बैंक ट्रांसफर, या Coinbase खाता फंडिंग में से चुन सकते हैं। विभिन्न निपटान समय के साथ कई भुगतान विधियों का समर्थन करता है: कार्ड और Apple Pay के लिए तत्काल, ACH बैंक ट्रांसफर के लिए 1-3 दिन। Base नेटवर्क पर USDC के रूप में फं
official
monetize-service
coinbase
एक सशुल्क API एंडपॉइंट तैनात करें जिसे अन्य एजेंट x402 प्रोटोकॉल के माध्यम से खोज और भुगतान कर सकें। HTTP 402 भुगतान प्रोटोकॉल का उपयोग करके Base पर प्रति अनुरोध USDC चार्ज करता है; क्लाइंट हस्ताक्षरित लेन-देन के साथ भुगतान करते हैं, कोई API कुंजी या खाते की आवश्यकता नहीं है। जब आप डिस्कवरी एक्सटेंशन घोषित करते हैं तो एजेंट खोज के लिए स्वचालित रूप से एंडपॉइंट को x402 Bazaar के साथ पंजीकृत करता है।
official
pay-for-service
coinbase
बेस पर x402 प्रोटोकॉल के माध्यम से स्वचालित USDC भुगतान के साथ भुगतान वाले API को कॉल करें। x402-सक्षम एंडपॉइंट पर HTTP अनुरोध (GET, POST, आदि) निष्पादित करता है, जिसमें परमाणु USDC भुगतान स्वचालित रूप से संभाले जाते हैं। विधि, JSON बॉडी, क्वेरी पैरामीटर और कस्टम हेडर के माध्यम से अनुरोध अनुकूलन का समर्थन करता है। भुगतान नियंत्रण शामिल हैं: प्रति अनुरोध अधिकतम USDC राशि सेट करें और सहसंबंध आईडी के साथ संबं
official
query-blockchain-data
coinbase
बेस पर CDP SQL API के माध्यम से x402 का उपयोग करके ऑनचेन ब्लॉकचेन डेटा क्वेरी करें। इसका उपयोग तब करें जब आप या आपका उपयोगकर्ता डिकोड किए गए ब्लॉकों के बारे में ऑनचेन जानकारी देखना चाहते हैं,…
official
query-onchain-data
coinbase
Base पर ऑनचेन डेटा को SQL के माध्यम से प्रति-क्वेरी x402 भुगतान के साथ क्वेरी करें। CoinbaseQL के माध्यम से डिकोड की गई घटनाओं, लेन-देन और ब्लॉकों तक पहुँच प्राप्त करें, जो ClickHouse-आधारित SQL डायलेक्ट है और जॉइन, CTE, सबक्वेरी और मानक फंक्शन का समर्थन करता है। तीन मुख्य तालिकाएँ उपलब्ध हैं: base.events (डिकोड किए गए स्मार्ट कॉन्ट्रैक्ट लॉग), base.transactions (पूर्ण लेन-देन डेटा), और base.blocks (ब्लॉक मेटाडे
official