Repository navigation
Releases
Releases · gogf/gf
GoFrame Release v2.10.6
What's Changed
feat
- feat(contrib/rpc/grpcx): add server side timeout for unary requests by @officialasishkumar in #4996
- feat(net/ghttp): add
AutoDecodingBodyDisabledconfiguration forghttp.Serverby @gqcn in #4197
fix
- fix: update gf cli to v2.10.5 by @github-actions[bot] in #5002
- fix(cmd/gf): restore imports.Process based GoFmt after upstream fix by @hailaz in #5045
- fix(container/garray): support the documented negative end in Range by @ruziba3vich in #5020
- fix(contrib/rpc/grpcx): protect listener with a mutex to fix data race by @hailaz in #5046
- fix(contrib/rpc/grpcx): do not exit on grpc.ErrServerStopped from Serve by @LanceAdd in #5049
- fix(database/gdb): emit the PARTITION clause of Model.Partition() in SELECT queries by @lingcoder in #4976
- fix(encoding/gbinary): keep EncodeBitsToBytes from mutating the caller slice by @LanceAdd in #5011
- fix(encoding/gcompress): prevent zip path traversal on extraction by @LanceAdd in #5010
- fix(encoding/gcompress): close decompression readers by @LanceAdd in #5013
- fix(encoding/gini): parse the last line without a trailing newline by @LanceAdd in #5014
- fix(encoding/gjson): reject negative array indexes without partial writes by @LanceAdd in #5012
- fix(encoding/gurl): keep literal plus signs in RawDecode by @LanceAdd in #5016
- fix(genctrl): detect parameterized NewV1 constructor to avoid duplicate ControllerV1 by @Lizjunn in #4980
- fix(net/gclient): keep query parameters before url fragment by @LanceAdd in #5025
- fix(net/ghttp): anchor static file reads to the search root by @LanceAdd in #4985
- fix(net/ghttp): parse host and port with net.SplitHostPort by @LanceAdd in #5007
- fix(net/ghttp): escape static directory listing links by @LanceAdd in #5009
- fix(net/gipv4): fix panic of Ip2long on an IPv6 address by @ruziba3vich in #4990
- fix(net/gipv4): detect intranet addresses with netip by @LanceAdd in #5006
- fix(net/gtrace): detect gzip content encoding case-insensitively by @LanceAdd in #5026
- fix(os/gcron): reject a pattern interval below 1 instead of looping forever by @ruziba3vich in #5019
- fix(os/gfile): stop dropping over-long lines in ReadLines by @LanceAdd in #5024
- fix(os/gspath): keep search results inside the searching root by @LanceAdd in #5023
- fix(os/gtime): fix Timestamp overflow outside the UnixNano range by @ruziba3vich in #4989
- fix(os/gtime): fix zone offset lost by StrToTime across DST by @ruziba3vich in #4995
- fix(os/gtime,os/gcron,internal/tracing): use the Unix time helpers by @LanceAdd in #5005
- fix(text/gstr): fix endless loop of TrimLeftStr/TrimRightStr on empty cut by @ruziba3vich in #4991
- fix(text/gstr): fix result of Str for a needle longer than one byte by @ruziba3vich in #4992
- fix(text/gstr): fix StrLimit suffix on a string of exactly the length by @ruziba3vich in #4993
- fix(util/gutil): fix wrong sign of integer comparators on overflow by @ruziba3vich in #4994
- fix(util/gutil): compare typed values instead of subtracting them by @LanceAdd in #5004
refactor
- refactor(container,database,encoding,net,os,cmd/gf): use slices for sorting by @LanceAdd in #4997
- refactor(container/garray,text/gstr,os/gcmd): use slices helpers by @LanceAdd in #5000
- refactor(container/gset,container/gmap,util/gutil): use maps and slices helpers by @LanceAdd in #4999
- refactor(encoding): use stdlib equivalents for small helpers by @LanceAdd in #5015
- refactor(encoding,net,os,text/gstr,util/gvalid,internal/httputil): use strings.Cut and standard helpers by @LanceAdd in #4998
- refactor(encoding/gjson): drop dead nested-array extension loop by @LanceAdd in #5017
test
- test(contrib/config): add adapter_ctx unit tests for nacos and consul by @lingcoder in #5033
- test(contrib/nosql/redis): add StorageRedis and StorageRedisHashTable unit tests by @lingcoder in #5034
- test(contrib/rpc/grpcx): add tracing Inject/Extract unit tests by @lingcoder in #5035
- test(database/gdb): fix Cache Force in 10 drivers and add DryRun/Hook unit tests by @lingcoder in #5031
- test(net/gsel): add unit tests for all four selector algorithms and builders by @lingcoder in #5030
- test(net/gsvc): add unit tests for Endpoint, Endpoints, Metadata, and LocalService by @lingcoder in #5032
docs
- docs: add feature map and CLI reference to README by @hailaz in #5018
- docs: add issue review skill and bilingual pr comments by @gqcn in #5036
- docs(cmd/gf,os/gbuild): fix 'build-in' to 'built-in' in help text and docs by @kayaal34 in #5027
- docs(text/gstr): fix wrong examples in doc comments by @Kernel-Hunter in #4978
ci
- ci(codecov): tolerate a 0.1% project coverage drop by @lingcoder in #5053
chore
- chore(container/gmap): drop the stale go1.24 build tag by @LanceAdd in #5003
- chore(release): bump version to v2.10.6 by @hailaz in #5055
New Contributors
- @ruziba3vich made their first contribution in #4993
- @kayaal34 made their first contribution in #5027
- @Lizjunn made their first contribution in #4980
- @officialasishkumar made their first contribution in #4996
Full Changelog: v2.10.5...v2.10.6
更新说明
新功能 feat
- feat(contrib/rpc/grpcx):为一元请求新增服务端超时 by @officialasishkumar in #4996
- feat(net/ghttp):为
ghttp.Server新增AutoDecodingBodyDisabled配置项 by @gqcn in #4197
问题修复 fix
- fix:更新
gfCLI 依赖到 v2.10.5 by @github-actions[bot] in #5002 - fix(cmd/gf):在上游修复后恢复基于
imports.Process的GoFmtby @hailaz in #5045 - fix(container/garray):
Range支持文档约定的负数结束下标 by @ruziba3vich in #5020 - fix(contrib/rpc/grpcx):为监听器加互斥锁修复数据竞争 by @hailaz in #5046
- fix(contrib/rpc/grpcx):
Serve返回grpc.ErrServerStopped时不再退出进程 by @LanceAdd in #5049 - fix(database/gdb):
SELECT查询输出Model.Partition()设置的PARTITION子句 by @lingcoder in #4976 - fix(encoding/gbinary):
EncodeBitsToBytes不再修改调用方传入的切片 by @LanceAdd in #5011 - fix(encoding/gcompress):阻止
zip解压路径穿越 by @LanceAdd in #5010 - fix(encoding/gcompress):关闭解压读取器 by @LanceAdd in #5013
- fix(encoding/gini):解析没有结尾换行的最后一行 by @LanceAdd in #5014
- fix(encoding/gjson):拒绝负数组下标且不产生部分写入 by @LanceAdd in #5012
- fix(encoding/gurl):
RawDecode保留字面加号 by @LanceAdd in #5016 - fix(genctrl):识别带参数的
NewV1构造器,避免重复生成ControllerV1by @Lizjunn in #4980 - fix(net/gclient):保留
URL片段之前的查询参数 by @LanceAdd in #5025 - fix(net/ghttp):静态文件读取锚定到搜索根目录 by @LanceAdd in #4985
- fix(net/ghttp):使用
net.SplitHostPort解析host与端口 by @LanceAdd in #5007 - fix(net/ghttp):转义静态目录列表中的链接 by @LanceAdd in #5009
- fix(net/gipv4):修复
Ip2long处理IPv6地址时的panicby @ruziba3vich in #4990 - fix(net/gipv4):使用
netip判断内网地址 by @LanceAdd in #5006 - fix(net/gtrace):大小写不敏感地识别
gzip内容编码 by @LanceAdd in #5026 - fix(os/gcron):间隔小于
1的表达式直接报错,不再无限循环 by @ruziba3vich in #5019 - fix(os/gfile):
ReadLines不再丢弃超长行 by @LanceAdd in #5024 - fix(os/gspath):搜索结果保持在搜索根目录内 by @LanceAdd in #5023
- fix(os/gtime):修复
Timestamp在UnixNano范围外溢出 by @ruziba3vich in #4989 - fix(os/gtime):修复
StrToTime跨夏令时丢失时区偏移 by @ruziba3vich in #4995 - fix(os/gtime,os/gcron,internal/tracing):改用 Unix 时间辅助函数 by @LanceAdd in #5005
- fix(text/gstr):修复
TrimLeftStr、TrimRightStr在空切分串时的死循环 by @ruziba3vich in #4991 - fix(text/gstr):修正
Str在查找串长度大于一个字节时的返回结果 by @ruziba3vich in #4992 - fix(text/gstr):修复字符串长度恰好等于限制值时的
StrLimit后缀 by @ruziba3vich in #4993 - fix(util/gutil):修复整数比较器溢出时返回错误符号 by @ruzib...
GoFrame Release v2.10.5
What's Changed
feat
- feat: upgrade OpenTelemetry to v1.45.0 and Go to 1.25 by @houseme in #4863
- feat(os/glog): add a slog handler forwarding to glog by @LanceAdd in #4986
fix
- fix(os): stop accumulating inotify watches by @LanceAdd in #4944
- fix: update gf cli to v2.10.4 by @github-actions[bot] in #4946
- fix(contrib/drivers/sqlite): support loong64 by upgrading modernc.org/sqlite to v1.39.0 by @lingcoder in #4950
- fix(net/ghttp): log error request duration in seconds like the access log by @LuisFigueroaG in #4933
- fix(os/gres): use slash separator for virtual directory entries in pack by @ShryukGrandhi in #4936
- fix(cmd/gf): keep orm tag in do struct when removeFieldPrefix is set by @LuisFigueroaG in #4952
- fix(util/gconv): convert slices wrapped by gvar.Var into slice fields by @nk-batman21 in #4943
- fix(cmd/gf): keep import aliases when parsing existing controllers in gen ctrl by @ShryukGrandhi in #4940
- fix(os/glog): print fatal logs synchronously on async loggers by @LuisFigueroaG in #4930
- fix(net/ghttp): preserve body values in filtered query maps by @allenflux in #4909
- fix(database/gdb): keep mysql time_zone link parameter from overriding Timezone by @ShryukGrandhi in #4937
- fix(database/gdb): support FieldsEx and FieldsExPrefix on join statements by @ShryukGrandhi in #4939
- fix(database/gdb): scan records into map slices instead of empty maps by @LuisFigueroaG in #4955
- fix(os/gproc): skip unix-only pid mapping folders on windows by @b84330808 in #4956
- fix(database/gredis): accept score and lex bounds for ZRange start and stop by @ShryukGrandhi in #4959
- fix(net/ghttp): skip gzip for already committed responses by @LanceAdd in #4960
- fix(os/gfile): keep MatchGlob globstar matching separator-aware on windows by @b84330808 in #4961
- fix(database/gdb): disable model cache for queries running in a context transaction by @ShryukGrandhi in #4964
- fix(cmd/gf): find the api import by path when gen ctrl parses controllers by @nk-batman21 in #4957
- fix(container/gtree): fix deadlock and ignored stop in Iterator*From by @waw666waw666 in #4966
- fix(text/gstr): count a two-byte character as one rune in PosRune by @Kernel-Hunter in #4973
- fix(text/gstr): stop Soundex from writing "0" for vowels by @Kernel-Hunter in #4971
- fix(text/gstr): return from ReplaceI when search is empty by @Kernel-Hunter in #4972
- fix(os/gtime): accept fractions and a plus sign on days in ParseDuration by @Kernel-Hunter in #4974
- fix(os/gcache): keep missed lookups out of the memory LRU by @waw666waw666 in #4968
- fix(os/gsession): refresh the TTL of RedisHashTable sessions that are only read by @waw666waw666 in #4975
- fix(net/ghttp): correct file download response headers by @LanceAdd in #4988
- fix(contrib/drivers/gaussdb): cast the MERGE placeholders of Save and Replace to the column type by @lingcoder in #4969
perf
- perf(database/gdb): batch and chunk nested With relation scans by @LanceAdd in #4672
- perf(util/gconv): allocate the result map of Map only when it is filled by @g4lb in #4967
refactor
- refactor(os/gres): use typed BKVTree for the resource manager by @LanceAdd in #4949
- refactor(container,database/gdb,net,os,cmd/gf,contrib): apply modern Go idioms by @LanceAdd in #4983
- refactor(net/ghttp,net/gclient,container/garray): use modern standard library helpers by @LanceAdd in #4984
ci
- ci: improve Go cache hit rate & go1.27 support by @hailaz in #4951
- ci: start services per matrix group and report coverage per group by @hailaz in #4962
chore
- chore(contrib/nacos): upgrade nacos-sdk-go/v2 to v2.3.6 by @lingcoder in #4981
- chore(deps): migrate yaml dependency to go.yaml.in/yaml/v3 v3.0.6 by @angeiv in #4982
- chore(release): bump version to v2.10.5 by @lingcoder in #5001
New Contributors
- @nk-batman21 made their first contribution in #4943
- @b84330808 made their first contribution in #4956
- @waw666waw666 made their first contribution in #4966
- @g4lb made their first contribution in #4967
- @Kernel-Hunter made their first contribution in #4973
- @angeiv made their first contribution in #4982
Full Changelog: v2.10.4...v2.10.5
GoFrame Release v2.10.4
What's Changed
feat
- feat: add gf-pr-create skill and refresh root README by @gqcn in #4878
- feat(agents): parallelize gf-pr-review and honor existing comments by @gqcn in #4879
- feat(agents): extend pr review and drop openspec workflow by @gqcn in #4911
- feat(cmd/gf): add gf agents for local coding-agent setup by @gqcn in #4877
- feat(net/ghttp,net/goai): support JSON array request body by the in:"body" field tag by @LanceAdd in #4898
- feat(net/ghttp): add exported HTTP header name constants by @LanceAdd in #4899
fix
- fix: update gf cli to v2.10.3 by @github-actions[bot] in #4867
- fix: v2.10.4 by @hailaz in #4941
- fix(cmd/gf): reimplement GoFmt to avoid go env subprocess per file by @hailaz in #4929
- fix(cmd/gf): avoid duplicate imports when ensuring an existing path by @LanceAdd in #4945
- fix(contrib/drivers/clickhouse): correct conversion, inserts, rewriting by @lingcoder in #4916
- fix(contrib/drivers/dm): preserve quoted identifiers by @yuyinw in #4828
- fix(contrib/drivers/dm): read metadata columns ignoring column name case by @z312193608 in #4875
- fix(contrib/drivers/dm): apply timezone to DM DSN by @014-code in #4904
- fix(contrib/drivers/dm): expand test coverage to the Oracle baseline + 18 driver fixes by @lingcoder in #4925
- fix(contrib/drivers/gaussdb): read int1[] and int16[] arrays back as arrays by @lingcoder in #4896
- fix(contrib/drivers/mssql): expand test coverage to the MySQL baseline + 16 driver fixes by @lingcoder in #4924
- fix(contrib/drivers/oracle): fix GBK decode and quoted identifiers by @yuyinw in #4836
- fix(contrib/drivers/oracle): bring the driver up to the MySQL test baseline by @lingcoder in #4906
- fix(contrib/drivers/pgsql): preserve timetz time zone offsets by @014-code in #4903
- fix(contrib/drivers/sqlite): infer save conflict from primary keys by @gqcn in #4766
- fix(contrib/drivers/sqlite): exclude internal tables from DAO discovery by @allenflux in #4908
- fix(contrib/registry/nacos, contrib/config/nacos): update nacos-sdk-go to 70993e7 by @lingcoder in #4888
- fix(contrib/registry/nacos): add Option pattern for registry configuration by @ShryukGrandhi in #4938
- fix(contrib/registry/zookeeper): keep other instances when registering a service by @taekop in #4907
- fix(database/gdb): map database type names exactly in each driver instead of guessing from substrings by @lingcoder in #4882
- fix(database/gdb): preserve mixed values in undeclared columns by @allenflux in #4905
- fix(database/gdb): cache forced empty results by @sean0407 in #4919
- fix(database/gdb): treat empty TxOptions.Propagation as the default by @somaz94 in #4926
- fix(net/gclient): remove dead request body read in tracing tracer by @LanceAdd in #4900
- fix(net/ghttp): avoid the nil serving handler panic on the request struct parsing by @LanceAdd in #4901
- fix(net/ghttp): avoid nil serveHandler panic on unmatched route parsing by @LanceAdd in #4912
- fix(net/ghttp): strip the whole :name part when comparing router priority by @LuisFigueroaG in #4917
- fix(net/ghttp): pin default Swagger UI Redoc to v2.5.3 by @xuanwolei in #4922
- fix(net/ghttp): guard preBindItems against concurrent server starts by @somaz94 in #4927
- fix(net/ghttp): bind all values of repeated query keys to slice fields,like PHP does by @LuisFigueroaG in #4928
- fix(net/ghttp,net/goai,util/gtag): replace in:"body" with body:"*" for the whole request body by @LanceAdd in #4932
- fix(os/gcfg): recover file watchers after load errors by @014-code in #4923
- fix(os/gfpool): reopen pooled file when its path points to another file by @ShryukGrandhi in #4934
- fix(os/gproc): restore default signal handling when shutdown listenin… by @jiang-bx in #4868
- fix(os/gsession): publish atomic file snapshots on Unix by @allenflux in #4910
- fix(redis): pin dedicated connection in Conn for connection-stateful commands by @yangfei1024 in #4864
- fix(text/gstr): update StrTill function to return correct substring length and add unit tests by @hailaz in #4873
- fix(util/gconv): preserve timezone when converting typed time values by @hailaz in #4845
- fix(util/grand): keep the closed duration interval by @salapenar-max in #4915
- fix(util/gvalid): measure a container by its element count in length … by @jiang-bx in #4865
perf
- perf(internal/instance,i18n/gi18n,os/gcfg,database/gdb): check the cached instance with a reading lock by @LanceAdd in #4902
- perf(net/ghttp): skip unused request tag handling by @LanceAdd in #4889
- perf(util/gvalid): speed up struct validation by @LanceAdd in #4886
refactor
- refactor(cmd/gf,contrib/drivers,net/ghttp,database/gdb,os/glog,net/goai,os/gtime): use constants by @LanceAdd in #4931
- refactor(net/gclient): split prepareRequest into focused helper functions by @LanceAdd in #4890
test
- test(contrib/drivers/oceanbase): expand test coverage to the MySQL baseline by @lingcoder in #4894
- test(contrib/drivers/sqlite): take the colon of the path from the drive letter on Windows by @lingcoder in #4885
- test(contrib/drivers/sqlite): expand test coverage to the MySQL baseline + 2 driver fixes by @lingcoder in #4892
- test(contrib/drivers/sqlite): assert Test_DB_Ctx timeout via the context instead of the error text by @lingcoder in #4918
- test(contrib/drivers/sqlitecgo): expand test coverage to the MySQL baseline + 3 driver fixes by @lingcoder in #4897
- test(contrib/drivers/tidb): expand test coverage to the MySQL baseline by @lingcoder in #4893
New Contributors
- @z312193608 made their first contribution in #4875
- @yuyinw made their first contribution in #4828
- @allenflux made their first contribution in #4905
- @014-code made their first contribution in #4904
- @taekop made their first contribution in #4907
- @yangfei1024 made their first contribution in #4864
- @salapenar-max made their first contribution in #4915
- @xuanwolei made their first contribution in #4922
- @LuisFigueroaG made their first contribution in #4917
- @somaz94 made their first contribution in #4927
- @sean0407 made their first contribution in #4919
- @ShryukGrandhi made their first contribution in #4938
Full Changelog: v2.10.3...v2.10.4
GoFrame Release v2.10.3
What's Changed
- fix: update gf cli to v2.10.2 by @github-actions[bot] in #4773
- feat(cmd/gf): gen dao suppport for dm database by @hailaz in #4776
- fix(ghttp): resolve the issue where the GetCertificate callback in TLS listener gets overwritten by @cashtang in #4789
- fix(net/ghttp): report invalid json body errors by @puneetdixit200 in #4775
- fix(gclient): add timeout configuration methods and improve client initialization by @hailaz in #4779
- fix(cmd/gf): missing pointer in generated service file (#4741) by @UncleChair in #4742
- fix(util/gvalid): date validation allows invalid formats like Y-MMMM and invalid dates like 2026-13-33 by @cococolanosugar in #4740
- fix(container/gmap): added WithError methods for KVMap and ListKVMap by @LanceAdd in #4714
- feat(contrib/drivers/mssql): convert uniqueidentifier to uuid.UUID by @NickWilde18 in #4756
- fix(os/glog): JsonHandler outputs flat JSON suitable for ES ingestion (#4790) by @yangyanqing in #4791
- feat(database/gdb): Added OmitZero function to filter zero value parameters by @LanceAdd in #4713
- Revert "feat(database/gdb): Added OmitZero function to filter zero value parameters" by @hailaz in #4818
- fix(net/ghttp): normalize HTTP method to uppercase in getHandlersWithCache to prevent route cache pollution (#4765) by @waterWang in #4812
- fix(os/gcfg): normalize config pattern in GetWithEnv by @webguosai in #4748
- fix(encoding/ghash): PJW64 should use 64-bit width by @guoxing-li in #4728
- fix(net/goai): add style=deepObject and explode=true for query params with object schema (#4784) by @waterWang in #4813
- feat(os/grpool): let can set limit/cap dynamically by @joy999 in #4794
- test(contrib/drivers/pgsql): expand test coverage to MySQL/MariaDB baseline + 3 framework fixes by @lingcoder in #4763
- fix(net/ghttp): use a case-preserving key for the router searching cache by @lingcoder in #4833
- chore(openspec): remove openspec docs from repo by @gqcn in #4838
- fix(util/gconv): support array-backed unmarshalling values by @ErzerLP in #4810
- fix(net/ghttp): windows web admin restart only shutdowns but doesn't restart by @lonevle in #4809
- feat(container/gtree): Add the function of popping left and right nodes of red-black tree by @LanceAdd in #4793
- feat:To support the loong64 architecture upgrade, we have upgraded go-sqlite and modernc.org/libc. by @lijunting2020 in #4847
- fix(util/gconv): unwrap reflect.Value and support pointer element slices by @hailaz in #4848
- fix(net/goai): nil pointer dereference when an array with enum has an interface element (#4746) by @lingcoder in #4844
- ci: update the CI/CD dependency versions and scripts by @lingcoder in #4852
- fix(os/grpool): stop Test_Limit4 asserting a sum that has a race window by @lingcoder in #4854
- fix(contrib/nacos): move to the upstream commit that fixes the RpcClient data race by @lingcoder in #4856
- ci: make the Apollo and nacos containers actually ready before tests run by @lingcoder in #4857
- fix(database/gdb): stop reporting an aborted row iteration as success by @jiang-bx in #4858
- ci: wait for the Apollo database before starting Apollo by @lingcoder in #4860
- test(contrib/drivers): expand gaussdb coverage to the MySQL/PgSQL baseline + 8 related bug fixes by @lingcoder in #4840
- fix(os/grpool): read the array before the queue in Test_Limit4 assertions by @lingcoder in #4862
- fix: v2.10.3 by @hailaz in #4866
New Contributors
- @cashtang made their first contribution in #4789
- @puneetdixit200 made their first contribution in #4775
- @NickWilde18 made their first contribution in #4756
- @waterWang made their first contribution in #4812
- @webguosai made their first contribution in #4748
- @guoxing-li made their first contribution in #4728
- @ErzerLP made their first contribution in #4810
- @lonevle made their first contribution in #4809
- @lijunting2020 made their first contribution in #4847
- @jiang-bx made their first contribution in #4858
Full Changelog: v2.10.2...v2.10.3
GoFrame Release v2.10.2
What's Changed
- fix: update gf cli to v2.10.1 by @github-actions[bot] in #4770
- refactor(cmd/gf): improve code structure for readability and maintainability by @hailaz in #4771
Full Changelog: v2.10.1...v2.10.2
GoFrame Release v2.10.1
What's Changed
- fix: update gf cli to v2.10.0 by @github-actions[bot] in #4658
- docs: Update README Add DeepWiki badges by @hailaz in #4661
- test(contrib/drivers/gaussdb): add builder, subquery, join, struct test coverage by @lingcoder in #4688
- test(contrib/drivers/pgsql): add Builder/Subquery/Join/Struct tests by @lingcoder in #4680
- fix(registry/etcd): etcd.NewWithClient() has no DialTimeout by @shengdoushi in #4670
- fix(contrib/registry): etcd doKeepAlive does not exit even when client context done by @yuluo-yx in #4669
- chore: cleanup makefile, remove unnecessary scripts by @gqcn in #4684
- test(contrib/drivers/gaussdb): add union, DO, raw where test coverage by @lingcoder in #4687
- test(contrib/drivers/pgsql): add Union, DO and Raw Where test coverage by @lingcoder in #4679
- feat(i18n/gi18n): decoding and loading i18n files content by automatic file extension check by @The-night-elves in #4662
- test(contrib/drivers/gaussdb): add transaction, where, hook, ctx test coverage by @lingcoder in #4685
- test(contrib/drivers/pgsql): add transaction, where, hook, ctx test coverage by @lingcoder in #4675
- feat(os/gcfg): add GetEffective method with standard config priority by @lingcoder in #4673
- feat(gcrypto/gsha512): add sha512 implements by @yuluo-yx in #4667
- test(contrib/drivers/pgsql): add SoftTime, With, ScanList test coverage by @lingcoder in #4676
- test(contrib/drivers/gaussdb): add soft time, with, scanlist test coverage by @lingcoder in #4686
- test(contrib/drivers/mysql): add Lock/Omit/Cache/Batch tests by @lingcoder in #4706
- fix(database/gdb): handle empty string in Fields() gracefully by @lingcoder in #4700
- test(contrib/drivers/mysql): add concurrent/Hook/Ctx tests by @lingcoder in #4708
- test(contrib/drivers/mysql): add MySQL-specific feature tests by @lingcoder in #4709
- test(contrib/drivers/mysql): enhance complex query tests by @lingcoder in #4707
- test(contrib/drivers/mysql): enhance data type tests by @lingcoder in #4705
- test(contrib/drivers/mysql): enhance transaction tests by @lingcoder in #4704
- fix(database/gdb): treat negative Limit/Page/Offset values as zero by @lingcoder in #4702
- fix(databse/gdb): use COUNT(1) if fields number is greater than 1 even when parameter
useFieldForCountis true in AllAndCount/ScanAndCount by @lingcoder in #4701 - fix(os/gstructs): strip tag options in TagPriorityName to avoid field name pollution by @lingcoder in #4681
- fix(contrib/drivers/pgsql): preserve bytea data integrity on read and write by @lingcoder in #4678
- test(contrib/drivers/mysql): add pagination and error handling tests by @lingcoder in #4703
- test(contrib/drivers/mariadb): add pagination, error, concurrent, rawtype and sharding tests by @lingcoder in #4723
- test(contrib/drivers/mariadb): add builder, struct, join, batch, cache and omit tests by @lingcoder in #4722
- test(contrib/drivers/mariadb): add softtime, with, scanlist, union and do tests by @lingcoder in #4721
- test(contrib/drivers/mariadb): add transaction, where, hook and ctx tests by @lingcoder in #4720
- test(contrib/drivers/mariadb): add infrastructure, core and model tests by @lingcoder in #4719
- fix(contrib/drivers/mysql): use unreachable port for nodeInvalid test config by @lingcoder in #4726
- fix(database/gdb): strip quote chars from schema in Model.TableFields by @lingcoder in #4730
- test(contrib/drivers/mariadb): add layer 3 features and issue regression tests by @lingcoder in #4724
- fix: guard os.Args access for wasm which panics when building by @gqcn in #4762
- feat(cmd/gf): add gendao fileNameCase and ai coding stuffs by @gqcn in #4764
- feat: new version v2.10.1 by @gqcn in #4769
New Contributors
- @shengdoushi made their first contribution in #4670
Full Changelog: v2.10.0...v2.10.1
GoFrame Release v2.10.0
What's Changed
Feature
- feat: update linter config and deprecation notice by @houseme in #4399
- feat(ci): upgrade workflow checkout version v5 by @houseme in #4381
- feat(cmd/gendao): add wildcard pattern support for tables configuration by @lingcoder in #4632
- feat(cmd/gf): add broad matching to gf gen dao's tableEx attribute. by @joy999 in #4453
- feat(cmd/gf): Add support for the Loongson architecture (loong64) by @LanceAdd in #4467
- feat(cmd/gf): improve and enhance gen ctrl by @oldme-git in #4325
- feat(cmd/gf): improve gf run watching by @hailaz in #4573
- feat(cmd/gf): init update by @hailaz in #4572
- feat(container): Add NewXXXWithChecker function for gmap/gset/gtree by @LanceAdd in #4610
- feat(container/garray): add TArray by @joy999 in #4466
- feat(container/garray): enhance generic array implements by @joy999 in #4482
- feat(container/garray): Sorted T Array by @joy999 in #4470
- feat(container/glist): add generic list feature by @joy999 in #4483
- feat(container/gmap): add generic list map feature by @joy999 in #4520
- feat(container/gmap): add generic map feature by @joy999 in #4484
- feat(container/gpool): add generic pool feature by @joy999 in #4493
- feat(container/gqueue): add generic queuefeature by @joy999 in #4497
- feat(container/gring): add generic ring feature by @joy999 in #4496
- feat(container/gset): add generic set feature by @joy999 in #4492
- feat(container/gtree): add generic tree feature by @joy999 in #4522
- feat(contrib/drivers): more database drivers by @gqcn in #4553
- feat(contrib/drivers/dm): add
Replace/InsertIgnoresupport and field type/length enhancements for dm database by @gqcn in #4541 - feat(contrib/drivers/dm): add
WherePrisupport by @tiger1103 in #4157 - feat(contrib/drivers/dm&pgsql&mssql&oracle): add Replace/LastInsertId features support for dm/pgsql/mssql/oracle by @gqcn in #4547
- feat(contrib/drivers/gaussdb): add gaussdb driver support by @gqcn in #4563
- feat(contrib/drivers/mssql): mssql support LastInsertId by @lxy1151 in #4051
- feat(contrib/drivers/pgsql): add array type numeric[] and decimal[] converting to Go []float64 support #4457 by @The-night-elves in #4511
- feat(contrib/drivers/pgsql): more field types converting support by @ivothgle in #3737
- feat(contrib/registry): update nacos sdk to 2.3.5 by @yuluo-yx in #4628
- feat(contrib/registry/nacos): add SetDefaultEndpoint and SetDefaultMetadata methods by @wangle201210 in #4608
- feat(crypto): add gsha256 by @joy999 in #4558
- feat(crypto/grsa): Add RSA encryption and decryption function by @LanceAdd in #4571
- feat(database/gdb): add MaxIdleConnTime configuration for SetConnMaxIdleTime support by @lingcoder in #4625
- feat(database/gdb): Add the function of obtaining all configurations to facilitate business operations such as verification after addition. by @sxp20008 in #4389
- feat(database/gdb): Optimize SoftTime feature by @LanceAdd in #4559
- feat(gdb): Allow to set table field metadata and allow to generate table fields registration code when generating dao by @LanceAdd in #4460
- feat(gdb/gdb_model_lock.go): gdb support lock update skip locked by @smzgl in #4607
- feat(instance): migrate instance containers to type-safe generics by @LanceAdd in #4617
- feat(net/ghttp): enhance GetHeader method to support default values by @hailaz in #4210
- feat(os/gcfg): Add file watcher with custom callback support by @LanceAdd in #4446
- feat(os/gcfg): add Loader with automatic struct binding and config watching (like Spring Boot @ConfigurationProperties) by @LanceAdd in #4575
- feat(os/gfile): add MatchGlob function with globstar support (#4570) by @hailaz in #4574
- feat(util/gconv): Add OmitEmpty and OmitNil options to Scan function by @LanceAdd in #4584
- feat(util/gpage): marked deprecated by @gqcn in #4230
- feat(util/gvalid): add more rules: alpha,alpha-dash,alpha-num,lowercase,numeric,uppercase by @yuluo-yx in #4601
Enhancement
- perf(net/gclient): optimize default http.Transport connection pool configuration by @lxzan in #4390
- refactor: interface{} to any and reflect.Ptr to reflect.Pointer by @hailaz in #4395
- refactor(cmd/gf): Optimize run command to reload only on actual file changes by @windvalley in #4476
- refactor(container): add default nil checker, rename RegisterNilChecker to SetNilChecker, migrate instance containers to type-safe generics by @LanceAdd in #4630
- refactor(contrib/clickhouse): optimization clickhouse by @wanghaolong613 in #4499
- refactor(database/gdb): add quote for FieldsPrefix by @hicolin in #4485
- refactor(database/gdb): simplify order and group by alias quoting by @lingcoder in #4555
- refactor(encoding/gjson): enhance auto type checks when loading data without type specified by @gqcn in #4637
- refract(gerror): add ITextArgs interface and its implements, mainly for i18n that needs text and args separately by @gqcn in #4597
Bug Fixes
- fix: #4269 by @hailaz in #4412
- fix: disable specific staticcheck rules and update lint config by @houseme in #4396
- fix: Improve the typeMap check logic of "gf gen dao" by @joy999 in #4410
- fix: path ./cmd/gf by @hailaz in #4414
- fix: report coverage on the latest go version by @hailaz in #4398
- fix: revert #4388 by @hailaz in #4392
- fix: spacing in min value validation message by @houseme in #4388
- fix: the use of the deprecated variable {format} in the file util/gval… by @shubo83 in #4258
- fix: update copyright notice in multiple files to specify correct file reference by @hailaz in #4518
- fix: Update dependencies and exclude test data from go.mod processing by @hailaz in #4415
- fix: update dependencies to version v2.9.1 for various contrib modules and drivers by @hailaz in #4386
- fix:(cmd/gf): matching for table ex fix bug by @joy999 in #4458
- fix(ci): add cache cleaning step to prevent 'no space left on device' errors by @hailaz in #4513
- fix(ci): change base image from expired ubuntu-22.04 to ubuntu-latest by @gqcn in #4273
- fix(ci): Free Disk Space by @hailaz in #4529
- fix(ci): update script permissions and add docker cleanup functionality by @hailaz in #4523
- fix(cmd/gendao): fix overlapping shardingPattern matching issue by @lingcoder in #4631
- fix(cmd/gf): "unknown time zone" when using "gf gen dao" for clickhouse on windows platform by @joy999 in #4368
- fix(cmd/gf): add extra option to controller the behavior downloading … by @wanghaolong613 in #4435
- fix(cmd/gf): fix gen sharding dao in multiple shardingPattern tables … by @fainc in #4379
- fix(cmd/gf): fix genservice losing versioned import paths (#4242) by @lingcoder in #4638
- fix(cmd/gf): fix gf env and gf build --dumpEnv command error by @lingcoder in #4635
- fix(cmd/gf): fix gf gen dao with removeFieldPrefix by @zhang5788 in #4243
- fix(cmd/gf): fix gf gen enums output path error when using relative path by @lingcoder in #4636
- fix(cmd/gf): Fixed an issue where formatting caused import errors in gf init by @hailaz in #4598
- fix(cmd/gf): improve init command with version retry and gofmt support by @hailaz in #4592
- fix(cmd/gf): run AddSigHandlerShutdown cannot work well) by @wanghaolong613 in #4441
- fix(cmd/gf): The problem of the command 'gen dao' becoming very slow by @hailaz in #4498
- fix(container): Add NilChecker Support to gmap, gset, and gtree for Typed Nil Issue Resolution by @LanceAdd in https://github.com/gogf/gf...
GoFrame Release v2.9.8
What's Changed
- fix: update gf cli to v2.9.7 by @github-actions[bot] in #4579
- feat(cmd/gf): improve and enhance gen ctrl by @oldme-git in #4325
- fix(gf/gen): Fixed a problem that could cause duplication when generating wit… by @DustScribe in #4268
- test(errors/gcode,gerror): add unit tests for error handling interfaces and methods by @hailaz in #4586
- fix(cmd/gf): improve init command with version retry and gofmt support by @hailaz in #4592
- fix(contrib/drivers): resolve field duplication issue when same table/column names exist across different MySQL/MariaDB databases by @smzgl in #4577
- refract(gerror): add ITextArgs interface and its implements, mainly for i18n that needs text and args separately by @gqcn in #4597
- fix(cmd/gf): Fixed an issue where formatting caused import errors in gf init by @hailaz in #4598
- fix(os/gcfg): adjust priority of env|cmd higer than config file (#4074) by @yangyanqing in #4587
- chore: translte zh comment to en by @yuluo-yx in #4591
- ci(docker-services): change chinese printing message to english by @gqcn in #4599
- fix(container): Add NilChecker Support to gmap, gset, and gtree for Typed Nil Issue Resolution by @LanceAdd in #4605
- fix(net/goai): add openapi uuid.UUID type support by @joy999 in #4604
- fix(util/gconv): gconv unsafe str to bytes by @liov in #4600
- fix(database/gdb): skip field filtering when table/alias is unknown in FieldsPrefix by @lingcoder in #4602
- feat(gdb/gdb_model_lock.go): gdb support lock update skip locked by @smzgl in #4607
- feat(container): Add NewXXXWithChecker function for gmap/gset/gtree by @LanceAdd in #4610
- feat(contrib/registry/nacos): add SetDefaultEndpoint and SetDefaultMetadata methods by @wangle201210 in #4608
- feat(util/gvalid): add more rules: alpha,alpha-dash,alpha-num,lowercase,numeric,uppercase by @yuluo-yx in #4601
- fix(database/gdb): fix iTableName interface detection when using WithAll with .Scan on reflect.Value objects by @smzgl in #4606
- fix(util/gconv): fix nested map conversion data loss in MapToMap by @lingcoder in #4612
- feat(util/gconv): Add OmitEmpty and OmitNil options to Scan function by @LanceAdd in #4584
- fix(database/gdb): Resolve the cache error overwriting caused by the use of fixed cache keys in pagination queries. by @LanceAdd in #4339
- fix: the use of the deprecated variable {format} in the file util/gval… by @shubo83 in #4258
- fix(contrib/drivers/gaussdb): remove github.com/lib/pq dependence by @hailaz in #4615
- fix(database/gdb):Fix panic handling in DoCommit to prevent blocking on database driver panics by @Copilot in #4423
- fix(database/gdb): Raw SQL Count ignores Where condition by @lingcoder in #4611
- feat(instance): migrate instance containers to type-safe generics by @LanceAdd in #4617
- fix: v2.9.8 by @hailaz in #4616
New Contributors
- @DustScribe made their first contribution in #4268
- @smzgl made their first contribution in #4577
- @yuluo-yx made their first contribution in #4591
- @liov made their first contribution in #4600
- @shubo83 made their first contribution in #4258
Full Changelog: v2.9.7...v2.9.8
GoFrame Release v2.9.7
What's Changed
- fix: update gf cli to v2.9.6 by @github-actions[bot] in #4538
- ci(release): disable go module caching in release workflow by @Copilot in #4539
- feat(contrib/drivers/dm): add
Replace/InsertIgnoresupport and field type/length enhancements for dm database by @gqcn in #4541 - feat(contrib/drivers/pgsql): more field types converting support by @ivothgle in #3737
- fix(net/ghttp): Fix specification routing custom parameter recognition exception by @hailaz in #4549
- feat(contrib/drivers/dm&pgsql&mssql&oracle): add Replace/LastInsertId features support for dm/pgsql/mssql/oracle by @gqcn in #4547
- feat(contrib/drivers): more database drivers by @gqcn in #4553
- feat(database/gdb): Optimize SoftTime feature by @LanceAdd in #4559
- feat(crypto): add gsha256 by @joy999 in #4558
- fix(cmd/gf): fix gf gen dao with removeFieldPrefix by @zhang5788 in #4243
- feat(contrib/drivers/gaussdb): add gaussdb driver support by @gqcn in #4563
- fix(net/ghttp): fix #4567 by @LanceAdd in #4569
- feat(cmd/gf): init update by @hailaz in #4572
- feat(os/gfile): add MatchGlob function with globstar support (#4570) by @hailaz in #4574
- feat(cmd/gf): improve gf run watching by @hailaz in #4573
- refactor(database/gdb): simplify order and group by alias quoting (bu… by @lingcoder in #4555
- feat(crypto/grsa): Add RSA encryption and decryption function by @LanceAdd in #4571
New Contributors
- @zhang5788 made their first contribution in #4243
Full Changelog: v2.9.6...v2.9.7
GoFrame Release v2.9.6
What's Changed
Features (feat)
- feat(container/garray): enhance generic array implements by @joy999 in #4482
- feat(container/glist): add generic list feature by @joy999 in #4483
- feat(container/gset): add generic set feature by @joy999 in #4492
- feat(container/gpool): add generic pool feature by @joy999 in #4493
- feat(container/gring): add generic ring feature by @joy999 in #4496
- feat(container/gqueue): add generic queuefeature by @joy999 in #4497
- feat(container/gmap): add generic map feature by @joy999 in #4484
- feat(container/gmap): add generic list map feature by @joy999 in #4520
- feat(container/gtree): add generic tree feature by @joy999 in #4522
- feat(contrib/drivers/pgsql): add array type numeric[] and decimal[] converting to Go []float64 support #4457 by @The-night-elves in #4511
- feat(contrib/drivers/dm): add
WherePrisupport by @tiger1103 in #4157
Fixes (fix)
- fix: update gf cli to v2.9.5 by @github-actions[bot] in #4507
- fix: update copyright notice in multiple files to specify correct file reference by @hailaz in #4518
- fix: v2.9.6 by @hailaz in #4537
- fix(encoding/gjson): fix gjson data race by @973212983 in #4510
- fix(net/goai): swagger $ref replace by @xiaoyi510 in #4512
- fix(contrib/config/apollo): where
gcfg config apollofailed to retrieve configurations for multiple namespaces, wherewatch apollo changeresulted in missing configurations. by @xiongchao123 in #4509 - fix(contrib/drivers/pgsql): Fixed the problem of overlapping fields in the same table name in pgsql multiple schema mode by @iamcc30 in #4375
- fix(contrib/drivers/dm): support muti-line sql statement (#4163) by @sanrentai in #4164
- fix(contrib/drivers/mssql): update tables SQL query for better compatibility by @li-zheng-hao in #4170
- fix(os/gcfg): ignore fsnotify event error to avoid package gcfg totally failing by @aitimate in #4400
- fix(database/gdb): Resolve column ambiguity in GROUP BY/ORDER BY with MySQL JOIN by @ljluestc in #4521
- fix(ci): add cache cleaning step to prevent 'no space left on device' errors by @hailaz in #4513
- fix(ci): update script permissions and add docker cleanup functionality by @hailaz in #4523
- fix(ci): Free Disk Space by @hailaz in #4529
Refactors (refactor)
- refactor(contrib/clickhouse): optimization clickhouse by @wanghaolong613 in #4499
- refactor(database/gdb): add quote for FieldsPrefix by @hicolin in #4485
Docs (docs)
New Contributors
- @973212983 made their first contribution in #4510
- @The-night-elves made their first contribution in #4511
- @xiaoyi510 made their first contribution in #4512
- @xiongchao123 made their first contribution in #4509
- @iamcc30 made their first contribution in #4375
- @hicolin made their first contribution in #4485
- @aitimate made their first contribution in #4400
- @ljluestc made their first contribution in #4521
- @li-zheng-hao made their first contribution in #4170
Full Changelog: v2.9.5...v2.9.6