Summary
Three coexisting JS API-client dependencies across the network, including two divergent major-ish versions of the same client. MEMORY notes an in-flight migration from @extrachill/api-client → wp-native-client; the half-migrated state is visible.
Evidence (verified)
- @extrachill/api-client: extrachill-studio/package.json:16 (^0.7.0), extrachill-analytics/package.json:18 (^0.2.0) — TWO divergent versions of the same client
- wp-native-client: extrachill-seo/package.json:14, extrachill-admin-tools/package.json:23
- raw @wordpress/api-fetch: studio, admin-tools, analytics, content-blocks, data-machine, data-machine-editor, data-machine-socials
- extrachill-admin-tools ships BOTH @wordpress/api-fetch AND wp-native-client
(Note: the standalone "extrachill-api-client" PLUGIN does not exist — only the npm package + the extrachill-api REST wrapper.)
Why it's debt
Three ways to call the same API, duplicated request/auth/error handling, and the migration target (wp-native-client) is adopted by only 2 of 4+ consumers. The 0.2 vs 0.7 split means studio and analytics ship divergent client behavior.
Fix
Complete the migration to the single chosen client (wp-native-client per MEMORY). Migrate studio + analytics off @extrachill/api-client; standardize on one client across consumers. Track per-plugin in existing migration issues if they exist (extrachill-artist-platform#26, extrachill-community#23 are the analogous ones).
Acceptance criteria
Summary
Three coexisting JS API-client dependencies across the network, including two divergent major-ish versions of the same client. MEMORY notes an in-flight migration from @extrachill/api-client → wp-native-client; the half-migrated state is visible.
Evidence (verified)
(Note: the standalone "extrachill-api-client" PLUGIN does not exist — only the npm package + the extrachill-api REST wrapper.)
Why it's debt
Three ways to call the same API, duplicated request/auth/error handling, and the migration target (wp-native-client) is adopted by only 2 of 4+ consumers. The 0.2 vs 0.7 split means studio and analytics ship divergent client behavior.
Fix
Complete the migration to the single chosen client (wp-native-client per MEMORY). Migrate studio + analytics off @extrachill/api-client; standardize on one client across consumers. Track per-plugin in existing migration issues if they exist (extrachill-artist-platform#26, extrachill-community#23 are the analogous ones).
Acceptance criteria