Releases: godbus/dbus
v5.2.2
v5.2.1
What's Changed
- ci: bump freebsd to 14.3 by @kolyshkin in #421
- Allow more than 32 containers / struct fields in a signature by @guelfey in #426
- Bump golangci-lint to v2, fix some issues found by @kolyshkin in #419
- Fix and simplify getHomeDir by @kolyshkin in #422
Full Changelog: v5.2.0...v5.2.1
v5.2.0
What's Changed
- Fix default golangci-lint warnings, add it to GHA by @kolyshkin in #308
- Add example for grab media keys. by @linuxerwang in #316
- CI: enable more linters by @kolyshkin in #319
- Add rpic to projects using godbus by @stephenhu in #320
- CI: Go 1.18 fixes by @guelfey in #322
- add fuzz test for (signature) decoding by @guelfey in #323
- style: error should be returned as the last argument by @liaohanqin in #314
- examples: Add asynchronous D-Bus call example in #325
- doc: fix spelling errors by @guelfey in #335
- Replace loop with call to copy() by @liaohanqin in #334
- fix(ci): apt-get update before installing dbus by @guelfey in #342
- freebsd: Remove the cgo dependency from transport_unixcred_freebsd.go by @dfr in #332
- Reduce allocs in decode function by @marselester in #344
- Set argument of SetProperty to Variant by @WhyNotHugo in #239
- Reduce allocs in ReadMessage (unix transport) by @marselester in #347
- Fix missing alignment in decodeU() by @felixonmars in #348
- Add test case for bool alignment by @guelfey in #349
- Add go 1.19 support by @amenzhinsky in #339
- CI tweaks by @guelfey in #360
- ci: add FreBSD job using Cirrus by @guelfey in #361
- Reduce decoder allocs due to int/uint decoding by @marselester in #356
- Pointer semantics in depthCounter by @marselester in #352
- message: use Discard for encoding in IsValid by @guelfey in #362
- Omit extra (*Message).IsValid for outgoing messages by @guelfey in #363
- Only check header validity when decoding messages by @guelfey in #364
- Replaced godoc url with pkg.go.dev url for v5. by @olivercalder in #369
- Reduce bytes to strings allocs in decoder by @marselester in #367
- feat: add security-policy to project by @diogoteles08 in #366
- auth: Do not send UID with external auth by @idleroamer in #346
- Bump CI versions by @guelfey in #392
- export struct members for signature benchmark by @mischief in #390
- introspect: add Peer to introspection by @mischief in #389
- Bump golang.org/x/sys to v0.27.0 by @lucacome in #386
- conn: generate error reply in more cases when trying to send invalid … by @guelfey in #397
- CI: bump FreeBSD image to 14.2 by @guelfey in #416
- Modernize code by @kolyshkin in #412
- Add Sting() method to RequestNameReply and ReleaseNameReply. by @istvan-andrasi in #398
- fix: added socket closing to prevent resource leak by @aiburegit in #402
- Fix mixed-up names in function documentation by @WhyNotHugo in #407
- Unix conn by @guelfey in #417
- add support for struct entities in
MakeVariantby @guelfey in #391 - Removing sha1 by @guelfey in #418
- auth: disable sha1 by default on non-windows by @xnox in #413
New Contributors
- @linuxerwang made their first contribution in #316
- @stephenhu made their first contribution in #320
- @dfr made their first contribution in #332
- @marselester made their first contribution in #344
- @WhyNotHugo made their first contribution in #239
- @felixonmars made their first contribution in #348
- @olivercalder made their first contribution in #369
- @diogoteles08 made their first contribution in #366
- @lucacome made their first contribution in #386
- @istvan-andrasi made their first contribution in #398
- @aiburegit made their first contribution in #402
- @xnox made their first contribution in #413
Full Changelog: v5.1.0...v5.2.0
v5.1.0
What's Changed
- fix: remove redundant type conversions by @liaohanqin in #278
- fix: fix dbus.Variant Store Method Bug by @golangaccount in #280
- prop: add the Prop.Introspection() method by @ibazhitov in #279
- fix: type check slice of struct by @boeglid in #286
- Fix a data race between Conn creation and its automatic closing by @ibazhitov in #291
- store: fix shrinking slice during store by @gjabell in #293
- build on zos by @SteeleDesmond in #284
- fix: better error for struct without exported fields by @guelfey in #292
- doc: clarify Signal channel behavior by @guelfey in #294
- fileExists: simplify by @kolyshkin in #300
- GHA CI improvements by @kolyshkin in #301
- Improved encoding error handling by @guelfey in #297
- homedir: revamp by @kolyshkin in #304
- CI: add codespell by @kolyshkin in #303
- Introduce and use EscapeBusAddressValue by @kolyshkin in #302
- auth: handle improperly formatted OK correctly by @guelfey in #309
- doc: clarify struct order and link to spec for types by @guelfey in #311
- conn: don't send message if context is already cancelled by @guelfey in #312
- prop: copy initial values and store as pointers internally by @guelfey in #310
- TestObjectSignalHandling: fix/improve by @kolyshkin in #313
Full Changelog: v5.0.6...v5.1.0
v5.0.6
Add missing WithHandler call to DialHandler
examples: Add client to partner server
fix missing SendNullByte on NetBSD
conn: add new method SessionBusPrivateNoAutoStartup
fix: remove unneccessary semicolon
fix auth under root with syscall.Seteuid(uid)
v5.0.5
Various encoder and decoder improvements.
v5.0.4
Fix singleton can no longer be used after being closed
example: prop.go handle unhandle error
prop: add EmitConst
Add more match options
Fix Conn.exportMethodTable
Improve error message in export()
Fix function documentation name
Fix spelling mistakes
prop: fix set property
sequential_handler: convert queue to from a list to a slice
sequential_handler: simplify to use less goroutines
conn: reduce channel capacity to 1 in Conn.send()
conn: centralise (most) serial handling to sendMessageAndIfClosed
Mention another project that uses godbus/dbus
Add Add/RemoveMatchSignal versions that accept a context
fix compilation error on FreeBSD 13 CURRENT
declare error type once
Remove type assertion
Add tests, catch case where developer does not handle error
Add ExportAll option so objects can ignore Error requirement
Allow the Store for Variants and Properties.
Fix panic on call to method with pointer arguments
Allow race-free implementation of the State Caching Proxy Pattern.
Add playerbm to projects that use godbus in readme
Update tests to use Connect functions
Add Connect tests
Update examples to use Connect methods
Add Connect* functions
v5.0.3
Add example for BecomeMonitor
Fix go.mod for v5
v5.0.2 Update go.mod to v5
Fix darwin build
Fix darwin compilation tryDiscoverDbusSessionBusAddress is missing in conn_darwin.go, but is referred to from conn.go.