Skip to content

feat(npm): extract NpmClient to shared React context#80

Merged
ElJijuna merged 1 commit into
mainfrom
feature/79-npm-provider-singletoninstace
Apr 26, 2026
Merged

feat(npm): extract NpmClient to shared React context#80
ElJijuna merged 1 commit into
mainfrom
feature/79-npm-provider-singletoninstace

Conversation

@ElJijuna
Copy link
Copy Markdown
Owner

Replace per-hook useMemo(() => new NpmClient(), []) with a shared NpmClientProvider + useNpmClient() hook. Falls back to a local instance when no provider is present, keeping the change backwards compatible.

Closes #79

Replace per-hook useMemo(() => new NpmClient(), []) with a shared
NpmClientProvider + useNpmClient() hook. Falls back to a local instance
when no provider is present, keeping the change backwards compatible.

Closes #79
@ElJijuna ElJijuna self-assigned this Apr 25, 2026
@ElJijuna ElJijuna added enhancement New feature or request pkg:npm Related to @api-hooks/npm package labels Apr 25, 2026
@ElJijuna ElJijuna merged commit f4cfe21 into main Apr 26, 2026
2 checks passed
@ElJijuna ElJijuna deleted the feature/79-npm-provider-singletoninstace branch April 26, 2026 00:47
@github-actions
Copy link
Copy Markdown

🎉 This change is included in @api-hooks/npm@1.9.0.

@github-actions
Copy link
Copy Markdown

🎉 This change is included in @api-hooks/gh@1.9.0.

@github-actions
Copy link
Copy Markdown

🎉 This change is included in @api-hooks/bp@1.4.0.

@github-actions
Copy link
Copy Markdown

🎉 This PR is included in version 1.2.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request pkg:npm Related to @api-hooks/npm package released

Projects

None yet

Development

Successfully merging this pull request may close these issues.

feat(npm): extract NpmClient to shared context

1 participant