Skip to content

Releases: go-kratos/kratos

v2.2.0

23 Feb 09:21
d689612
Compare
Choose a tag to compare

contrib v2.2.0 -> v2.0.0-20220223091357-d6896127b137

BreakChange

  • jwt.WithClaims accept a func instead of claim interface

Dependencies

  • deps(thirdparty): clean openapi2 proto (#1826)
  • deps: upgrade go mod version (#1800)

New Features

  • feat(examples/transaction): add transaction examples (#1836)
  • feat(registry/polaris): add registry for Tencent Polaris (#1816)
  • feat:add examples redirect url (#1807)
  • feature(middleware/jwt): add server custom claims(#1817)

Bug Fixes

  • fix lint (#1833)
  • fix: add yaml / yml parser (#1808)
  • fix(contrib): get nacos service of customize group name (#1798)
  • fix(config/consul):Config from consul skip empty key (#1830)
  • fix: fix the latest version of lint problem (#1825)
  • fix(cmd/http): warn only when a get or delete request declares a body (#1789)
  • fix: k8s discovery interface (#1820)
  • fix: fix ci tool (#1803)
  • fix: allocates new objects each time (#1802)

Others

  • update contrib readme (#1831)
  • move container group to internal (#1827)

v2.1.5

24 Jan 07:29
9ea78f3
Compare
Choose a tag to compare

contrib v2.1.5 -> v2.0.0-20220124072645-9ea78f302d5a

Dependencies

  • deps: upgrade kratos version to v2.1.5 (#1785)
  • deps(cmd/kratos): Upgrade Cobra 1.2.1 -> v1.3.0 (#1783)

New Features

  • feat: add logger sdk for aliyun (#1748)
  • feat:add stream interceptor use ctx encapsulation (#1770)
  • feat(log): add global logger appliance, as process level default logger (#1761)
  • feat:sync to gitee where release a version (#1755)
  • feat(middleware/auth/jwt): add customer header (#1752)

Bug Fixes

  • fix: change consul config docs (#1784)
  • fix: consul heartbeat ttl not registered (#1781)
  • fix: perhaps MISSING (#1779)
  • fixed the problem that grpc stop could not close properly
  • fix:fix log caller error (#1773)
  • fix(cmd/kratos): specified version for upgrade (#1772)
  • fix(cmd/kratos): filepath walk nil pointer reference problem (#1762)
  • fix: change installation package path for protoc-gen-openapi (#1759)

Others

  • make logger appliance as logger proxy (#1765)
  • test:remove testify go mod (#1766)
  • optimization: optimize global logger (#1763)
  • readme:add log third party log library readme (#1753)
  • upgrade:upgrade grpc and opentelemetry version (#1751)

v2.1.4

05 Jan 08:33
7fe194e
Compare
Choose a tag to compare

contrib v2.1.4 -> v2.0.0-20220105083008-7fe194ead489

New Features

  • feat(registry/consul): add WithHeartbeat option (#1738)
  • feat(examples/):add etcd registry cmux example (#1734)
  • feat(transport):add grpc and http with listen (#1729)
  • feat(cmd/kratos): generating API documentation using Gnostic (#1716)

Bug Fixes

  • fix: k8s client logr incompatible update (#1744)
  • fix(registry/consul):fix can't get service instance in async mode (#1731)
  • fix(registry/consul): fix can not find service in 20s (#1728)
  • fix: remove the use of client timeout as discovery time (#1715)
  • fix(cmd/kratos): add look protoc-gen-openapi when use kratos proto client (#1726)
  • fix FieldMask are converted to/from lower-camel naming conventions. (#1724)
  • fix(cmd/protoc-gen-go-http): Fix when replacement rule is not ending (#1721)
  • fix: fix typo in cmd/protoc-gen-go-http/http.go(is does not -> does not) (#1718)
  • fix(protoc-gen-go-http): Update http rule when path mappings (#1704)
  • fix(cmd): fixed a camel word enum error
  • fix(cmd/proto-gen-http-go): remove go.mod replace (#1707)

Others

  • sync to gitee (#1746)
  • upgrade(examples):upgrade go mod version (#1745)
  • test(errors): add errors test (#1739)
  • optimization: optimize error (#1740)
  • test(transport): add transport Listener test (#1735)

v2.1.3

22 Dec 07:15
1117350
Compare
Choose a tag to compare

contrib 2.1.3 -> v2.0.0-20211222061509-1117350b9c47

New Features

  • feat(transport/grpc): gRPC client discovery supports incoming logger and timeout (#1702)
  • feat: middleware seletor add ctx match (#1652)
  • feat(registry/nacos): add default kind option (#1650)
  • feat(app): app info delivery to stop context (#1649)

Bug Fixes

  • fix(cmd/proto-gen-errors): non nil assertion for error (#1700)
  • fix(nacos): call unsubscribe when watching is stopped (#1697)
  • fix(internal/host): fixed network interface is enabled (#1687)
  • fix: init nacos.Register rmd & metada map cap (#1671)
  • fix(config): apollo close function: useless infinite loop causes high cpu usage (#1674)
  • fix: circuitbreaker use client context (#1679)
  • fix: nacos.Register many endpoint metadata kind error (#1664)
  • fix(grpc): Block the RCP unil a new picker is available (#1660)
  • fix: remove cmd replace (#1640)

Chores

  • chore: completion command in the comment (#1680)

Others

  • docs: some wrong err msg description
  • consul: support WithServiceResolver option (#1693)
  • transport/http: delay pass context.Context (#1684)
  • registry/nacos: reduce twice string copies (#1681)
  • style: format (#1667)
  • revert to select filters (#1656)
  • optimize:chan bool to chan struct{} (#1648)

v2.1.2

19 Nov 07:35
7e0045c
Compare
Choose a tag to compare

contrib 2.1.2 -> v2.0.0-20211119072916-7e0045cd0f2f

Dependencies

  • deps: upgrade 2.1.2 (#1638)

New Features

  • feat: upgrade grpc version to 1.42.0 (#1626)
  • feat(form/form): add support google.protobuf.Struct; (#1617)
  • feat(contrib/config): use key file extension as format & config load log (#1619)
  • feat: add base fitler to improve performace (#1612)
  • feat(http): http client support service discovery in Do (#1563)
  • feat: add raw node (#1611)
  • feat: recovery logger with ctx (#1601)
  • feat: add descriptor.proto (#1590)

Bug Fixes

  • fix: nacos a vulnerable dependency was referenced (#1639)
  • fix doc (#1636)
  • fix:add consul all health check (#1620)
  • fix(cmd/protoc-gen-go-http): follow the http rule to use query strings (#1629)
  • fix(cmd/new): print the correct error message (#1630)
  • fix(middleware/tracing): modify kartos to kratos (#1628)
  • fix[cmd]: if enum is a word in proto file, it should be camel too. (#1618)
  • fix:modify annotation and wrong words (#1615)
  • fix: nacos registry test data race (#1613)
  • fix(cmd/http): fixed cannot declare a route with a regular expression (#1608)
  • fix: k8s nacos and zookeeper registry lint (#1599)
  • fix: fix p2c test (#1607)
  • fix(cmd/kratos): use context timeout control, add timeout param (#1592)
  • fix(app): use new context when app stop (#1589)

Others

  • Update main.go (#1627)
  • refactor: move from io/ioutil to io and os packages (#1633)
  • docs of etcd config (#1622)
  • docs: replenish config/apollo and registry/discovery readme (#1625)
  • test: add nacos test (#1603)
  • make the output of gin example right (#1598)
  • export selector node (#1606)

v2.1.1

18 Oct 11:52
Compare
Choose a tag to compare

Bug Fixes

  • fix(transport/grpc): grpc use global selector which leads to balancer nil error (#1564)
  • fix(cmd/proto-gen-http): cmd http embed message path generate (#1561)
  • fix(http/encoding): encode well known proto types in form and url query (#1559)
  • fix(cmd/proto-gen-http): fix the problem that the field declaration does not exist causing panic (#1553)

v2.1.0

15 Oct 08:15
872d313
Compare
Choose a tag to compare

New Features

  • feat(loadbalancing): add client load balancing and router selector (#1485)
  • feat(auth): add jwt auth middleware (#1274)
  • feat(circuitbreaker): add client side circuit breaker middleware (#1299)
  • feat(ratelimit): add server side rate limiter middleware (#1271)
  • feat(registry): support discovery registry center (#1480)
  • feat(log): default message key (#1545)
  • feat(config): add config slice map support (#1538)
  • feat: add backupConfigPath method (#1511)

Bug Fixes

  • fix consul registry TTL. (#1537)
  • fix:etcd prifex find error (#1507)
  • fix:http server start panic when use Endpoint (#1492)

Dependencies

  • deps: otel upgrade to v1.0.0 (#1500)
  • deps: update go version to 1.16 (#1536)

Other

  • log.SpanID -> tracing.SpanID
  • log.TraceID -> tracing.TraceID

v2.0.5

16 Aug 13:58
Compare
Choose a tag to compare

Bug Fixes

  • fix: proto errors when swagger api import kratos errors (#1348)
  • fix: if not kratos context then panic will result (#1338)
  • fix(cmd/run): command execution directory error (#1336)
  • fix(config): Support colon as default value in config.yaml (#1332)
  • fix:config groutine(watch) leak (#1327)

Chores

  • chore(config/env): polish watcher (#1341)

Others

  • optimize: template spaces to tabs (#1352)
  • refactor: optimize the code and use golangci-lint to check for any errors (#1298)
  • add: metadata test (#1324)

v2.0.4

12 Aug 07:21
Compare
Choose a tag to compare

New Features

  • feat(cmd/pgh): add processing when generating HTTP code (#1306)
  • feat: kratos tool support generate stream service code (#1284)
  • feat: enhance tracing (#1300)
  • feat: change grpc gateway import path (#1295)
  • feat(endpoint): add endpoint parser (#1273)
  • feat(cmd): support the third party specify by self and fix the warning when third party is not in current directory (#1266)
  • feat(transport): add transport tls config (#1267)

Bug Fixes

  • fix:etcd<3.13 block question (#1317)
  • fix(config): fix data race (#1316)
  • fix example blog makefile (#1296)
  • fix: using t.TempDir (#1289)
  • fix endpoint panic (#1291)

Others

  • append config watchers when watch source (#1320)
  • upgrade examples mod dependent version (#1314)
  • upgrade: grpc to v1.39.1 (#1312)
  • add appinfo test (#1293)
  • test: option tests (#1292)
  • ci: add pull request template (#1280)
  • add selector code annotation (#1275)
  • grpc‘s secure discovery (#1270)
  • upgrade kratos to v2.0.3 (#1264)

v2.0.3

27 Jul 07:50
b3594c2
Compare
Choose a tag to compare

New Features

  • feat(cmd/upgrade): compatible with go get and go install (#1255)

Bug Fixes

  • fix(grpc/resolver): fix builder context (#1258)
  • fix(config/env): fix env.load() index out of range (#1252)

Chores

  • chore(examples/i18n): typo (#1250)
  • chore(examples/registry): add registry tests (#1260)

Others

  • mod(examples): upgrade consul version (#1261)