Skip to content

feat: add createFetchify HTTP client wrapper - #1

Merged
joeykamsteeg merged 1 commit into
developfrom
feature/simple-wrapper
Aug 1, 2026
Merged

feat: add createFetchify HTTP client wrapper#1
joeykamsteeg merged 1 commit into
developfrom
feature/simple-wrapper

Conversation

@joeykamsteeg

Copy link
Copy Markdown
Member

Summary

  • Adds createFetchify({ baseUrl }), returning a client with GET/POST/PUT/PATCH/DELETE/HEAD/OPTIONS methods that wrap fetch
  • Relative request paths resolve against baseUrl; absolute paths bypass it
  • Shared implementation lives in src/lib/create-fetchify.ts, re-exported from both the web (src/index.ts) and native (src/native.ts) entry points
  • Adds a minor changeset and archives the corresponding OpenSpec change, syncing the new http-client capability into openspec/specs/

Test plan

  • bun test — 18 tests passing
  • tsc --noEmit — no type errors
  • bun run builddist/index.js, dist/native.js, and their declarations build cleanly with the new lib//types/ layout

🤖 Generated with Claude Code

Exposes createFetchify({ baseUrl }) from both the web and native entry
points, returning a client with GET/POST/PUT/PATCH/DELETE/HEAD/OPTIONS
methods that wrap fetch and resolve relative paths against baseUrl.
Shared implementation lives in src/lib/create-fetchify.ts so it isn't
duplicated across entry points.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
@joeykamsteeg
joeykamsteeg merged commit 5112058 into develop Aug 1, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant