mirror of
https://github.com/xtr-dev/payload-feature-flags.git
synced 2025-12-10 02:43:25 +00:00
v0.0.13: Remove useConfig dependency from client hooks
Makes client hooks work outside of Payload Admin UI context by: - Adding FeatureFlagOptions parameter to all hooks for configuration - Using window.location.origin as default serverURL when in browser - Removing @payloadcms/ui dependency from client hooks - Allowing custom serverURL, apiPath, and collectionSlug configuration This fixes the webpack error "_payloadcms_ui__WEBPACK_IMPORTED_MODULE_1__.b() is undefined" when using the hooks in frontend applications. 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@xtr-dev/payload-feature-flags",
|
||||
"version": "0.0.12",
|
||||
"version": "0.0.13",
|
||||
"description": "Feature flags plugin for Payload CMS - manage feature toggles, A/B tests, and gradual rollouts",
|
||||
"license": "MIT",
|
||||
"type": "module",
|
||||
|
||||
Reference in New Issue
Block a user