diff options
| author | Shulhan <ms@kilabit.info> | 2025-12-27 14:56:49 +0700 |
|---|---|---|
| committer | Shulhan <ms@kilabit.info> | 2025-12-27 14:56:49 +0700 |
| commit | 16b034999523d5956b60176e1ca298e0585e7008 (patch) | |
| tree | 775f00bd43086f874796a836906e8b1d84e04c50 /go.mod | |
| parent | 76f0c0b80e800cfb3dd7e982b857f9b5b41811ae (diff) | |
| download | kbbi-0.2.0.tar.xz | |
Release kbbi v0.2.0 (2025-12-27)v0.2.0
**🪵 all: rename the module and package to "kbbi"**
Since this module is connecting to KBBI server directly, the module and
package name now reflect that, hence we rename them to kbbi.
Another reason is we have an internal module named kamusku, in another
repository.
**🌼 all: add method Write to the LookupResponse**
The LookupResponse print each word and its Lookup information to the stdout.
**💧 all: realign some struct for compact layout**
Changes,
* struct Client realigned from 56 to 40 bytes (-16)
* struct Word realigned from 72 to 56 bytes (-16)
* anonymous struct in test realigned from 40 to 32 bytes (-8)
**🌼 client: use libhttp.Client instead of standard http.Client**
The libhttp.Client provides much simpler API, where we can define global
headers once, like UserAgent and does not need to manually read the
response body.
**🌼 client: fix connection being blocked by CloudFlare**
I think the admin of kbbi set the HTTPS mode minimal to version 1.3, which
cause Go (that use TLS v1.2 by default, but have 1.3 as maximum) being
rejected during handshake.
**🪵 all: add options for Client**
Currently, the options contains Debug field that print the HTML
response as text when set to 1.
**🌼 all: use login with two attempts**
The first attempt detect if we have been blocked by Cloudflare
and store the response cookies.
The second attempt request again with cookies.
Hopefully, this solve the request login being blocked.
While at it, add debug code to dump the HTTP request headers
on preLogin and Lookup.
**💧 all: replace fieldalignment and shadow with internal gocheck command**
Program gocheck implement go static analysis using [Analyzer] that are not
included in the default go vet.
See package [lib/goanalysis] for more information.
[Analyzer]: https://pkg.go.dev/golang.org/x/tools/go/analysis#hdr-Analyzer +
[lib/goanalysis]: https://pkg.go.dev/git.sr.ht/~shulhan/pakakeh.go/lib/goanalysis/
Diffstat (limited to 'go.mod')
| -rw-r--r-- | go.mod | 16 |
1 files changed, 8 insertions, 8 deletions
@@ -3,19 +3,19 @@ module git.sr.ht/~shulhan/kbbi -go 1.23.4 +go 1.24.0 require ( - git.sr.ht/~shulhan/pakakeh.go v0.60.1 - golang.org/x/net v0.39.0 + git.sr.ht/~shulhan/pakakeh.go v0.60.2 + golang.org/x/net v0.48.0 ) require ( - golang.org/x/exp v0.0.0-20250408133849-7e4ce0ab07d0 // indirect - golang.org/x/mod v0.24.0 // indirect - golang.org/x/sync v0.13.0 // indirect - golang.org/x/sys v0.32.0 // indirect - golang.org/x/tools v0.32.0 // indirect + golang.org/x/exp v0.0.0-20251219203646-944ab1f22d93 // indirect + golang.org/x/mod v0.31.0 // indirect + golang.org/x/sync v0.19.0 // indirect + golang.org/x/sys v0.39.0 // indirect + golang.org/x/tools v0.40.0 // indirect ) //replace git.sr.ht/~shulhan/pakakeh.go => ../pakakeh.go |
