Repository navigation
refactor(wasm): use internal/api instead of local DTOs - #546
Merged
Merged
Conversation
zeroshade
force-pushed
the
refactor/wasm-internal-api
branch
from
October 28, 2026 22:51
88cba98 to
2c80d9d
Compare
zeroshade
force-pushed
the
refactor/wasm-internal-api
branch
from
October 28, 2026 23:29
2c80d9d to
4174c86
Compare
zeroshade
force-pushed
the
refactor/wasm-internal-api
branch
from
October 29, 2026 17:07
4174c86 to
fa62564
Compare
zeroshade
force-pushed
the
refactor/wasm-internal-api
branch
from
November 3, 2026 18:21
fa62564 to
580ca34
Compare
zeroshade
marked this pull request as ready for review
November 3, 2026 19:27
amoeba
approved these changes
Nov 3, 2026
zeroshade
force-pushed
the
refactor/wasm-internal-api
branch
from
November 4, 2026 15:23
25e9b23 to
81c60fd
Compare
zeroshade
added a commit
that referenced
this pull request
Nov 4, 2026
Every dbc.Client in the wasm build gets its own fetch-backed http.Client from newFetchClient, and nothing on that path reads the deprecated dbc.DefaultClient. Keep the http.DefaultClient override: the auth package calls it directly for token refresh and license fetch, and Go's own network is disabled under Node js/wasm. Per review on #546.
zeroshade
force-pushed
the
refactor/wasm-internal-api
branch
from
November 4, 2026 17:22
c56b725 to
cf825f0
Compare
Member
|
I had Opus 5.5 do a review across my manual reviews and it caught that there's no test for disabling signature verification here. Can we check? |
Every dbc.Client in the wasm build gets its own fetch-backed http.Client from newFetchClient, and nothing on that path reads the deprecated dbc.DefaultClient. Keep the http.DefaultClient override: the auth package calls it directly for token refresh and license fetch, and Go's own network is disabled under Node js/wasm. Per review on #546.
zeroshade
force-pushed
the
refactor/wasm-internal-api
branch
from
November 4, 2026 18:16
cf825f0 to
afd2dab
Compare
Member
Author
|
Same gap as on 545, answered in #545 (comment): |
amoeba
approved these changes
Nov 4, 2026
zeroshade
added a commit
that referenced
this pull request
Nov 4, 2026
`capi/` builds as a Go `c-archive` exposing 13 functions: an opaque `dbc_client` configured with ADBC-style key/value options, and a single `dbc_list` result type read with `dbc_list_get`/`dbc_list_info` (`DBC_FIELD_*` ids). `libdbc.h` is generated by cgo from `capi/exports.go`; there is no hand-written header. Stacked on #546.
This branch was previously deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The WASM bindings drop their local DTOs and call
internal/api, so they share one implementation with the C API. npminstall(name, location, { allowUnsigned })exposes the signature opt-out.Stacked on #545.