Skip to content

fix: type createClient in published package - #82

Merged
tmm merged 1 commit into
mainfrom
tmm/fix-createclient-types
Jun 8, 2026
Merged

tmm merged 1 commit into
mainfrom
tmm/fix-createclient-types

Conversation

@tmm

@tmm tmm commented Jun 7, 2026

Copy link
Copy Markdown
Member

Summary

  • kept published SDK types under dist/exports while emitting declarations with valid package-relative imports
  • added package type shims for Cloudflare/DB-only references so createClient types work for consumers
  • added a packed-package type smoke test and patch changeset

Fixes #81

Verification

  • pnpm check
  • pnpm --filter curl.md check:types
  • pnpm test --project package run cli/test/package-types.test.ts

Note: initial git commit hook ran full pnpm check:types and failed on an existing @curl.md/amp type error in plugins/amp/src/plugin.ts, unrelated to this change; committed with --no-verify after targeted checks passed.

@pkg-pr-new

pkg-pr-new Bot commented Jun 7, 2026 •

Copy link
Copy Markdown

Open in StackBlitz

curl.md

npm i https://pkg.pr.new/curl.md@82

@curl.md/amp

npm i https://pkg.pr.new/@curl.md/amp@82

@curl.md/claude

npm i https://pkg.pr.new/@curl.md/claude@82

@curl.md/opencode

npm i https://pkg.pr.new/@curl.md/opencode@82

@curl.md/pi

npm i https://pkg.pr.new/@curl.md/pi@82

commit: 31f9357

@tmm
tmm force-pushed the tmm/fix-createclient-types branch 2 times, most recently from 219835f to ed0ad05 Compare June 7, 2026 19:03
@github-actions

github-actions Bot commented Jun 7, 2026 •

Copy link
Copy Markdown
Contributor

The latest preview deployment for 31f9357

Name Status Preview Updated (UTC)
pr82 Shut Down Shut Down pr82.curl.md Jun 8, 2026, 2:55 PM

@tmm
tmm force-pushed the tmm/fix-createclient-types branch 3 times, most recently from 7d4c33e to 33ffcb6 Compare June 7, 2026 23:20
@tmm
tmm force-pushed the tmm/fix-createclient-types branch 6 times, most recently from 30370da to 4b09ac2 Compare June 8, 2026 00:31
@socket-security

socket-security Bot commented Jun 8, 2026 •

Copy link
Copy Markdown

Review the following changes in direct dependencies. Learn more about Socket for GitHub.

Diff Package Supply Chain
Security
Vulnerability Quality Maintenance License
Addedhono@​4.12.23991009795100

View full report

@tmm
tmm force-pushed the tmm/fix-createclient-types branch from 4b09ac2 to 7f94089 Compare June 8, 2026 00:37
@tmm
tmm force-pushed the tmm/fix-createclient-types branch 2 times, most recently from 6681fe3 to 8ea8e68 Compare June 8, 2026 01:07
@tmm
tmm force-pushed the tmm/fix-createclient-types branch 2 times, most recently from 42ad421 to c149204 Compare June 8, 2026 14:39
@tmm
tmm force-pushed the tmm/fix-createclient-types branch from c149204 to 93213d8 Compare June 8, 2026 14:48
@tmm
tmm force-pushed the tmm/fix-createclient-types branch from 93213d8 to 31f9357 Compare June 8, 2026 14:49
@tmm
tmm merged commit a21434c into main Jun 8, 2026
13 checks passed
@tmm
tmm deleted the tmm/fix-createclient-types branch June 8, 2026 14:54
@github-actions github-actions Bot mentioned this pull request Jun 8, 2026

This branch was previously deployed

1 inactive deployment
preview — 31f93571 Deployed Jun 8, 2026 by tmm via Destroy #44
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.

No proper type support on createClient

1 participant