You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat: add default fetch configuration and set Node 18+ requirement
## Changes
- Service getters now provide default fetch configuration when no config is passed
- Removed defensive error checking in favor of sensible defaults
- Added Node.js 18+ engine requirement to package.json
- Updated README to document Node.js 18+ requirement
## Benefits
- Simpler code without defensive error checking
- Services work "out of the box" without requiring provider or config
- Aligns with modern JavaScript ecosystem standards (Node 18 is reasonable minimum)
- Cleaner developer experience with automatic fetch fallback
## Default Behavior
When no config is provided, service getters now default to:
- Browser: `window.fetch.bind(window)`
- Node.js 18+: `globalThis.fetch`
This ensures services always have a working fetch implementation without requiring explicit configuration.
🤖 Generated with [Claude Code](https://claude.ai/code)
Co-Authored-By: Claude <noreply@anthropic.com>
0 commit comments