Releases: momentohq/client-sdk-go
Releases · momentohq/client-sdk-go
v0.13.0
v0.12.0
0.12.0 (2023-03-09)
Breaking Changes
* feat!: SortedSetFetch
* Added ByIndex, ByScore options
* feat!: Add SortedSetFetchHit.ValueStringElements and ValueStringBytes
Make the struct members private.
* feat!: Replace ElemField/ElemValue with Field/Value
This is the last place that prefixes with "Elem" or "Element".
* feat!: Element -> DictionaryElement
To distinguish from all the other elements.
* fix: prepareDictionaryElements typo
Co-authored-by: pgautier404 <pgautier404@users.noreply.github.com>
* doc: Reword the DictionaryElement docs.
---------
Co-authored-by: pgautier404 <pgautier404@users.noreply.github.com>
* SortedSetGetScoresHit
* Make members private
* Add Scores() accessor
* SortedSetScoreElement -> SortedSetGetScore
* They're not elements, and they're not just scores.
* feat!: SortedSetGetRankHit.Rank() and uint64 type conversion.
* feat!: SortedSetGetRank takes Value, SortedSetGetScores takes Values.
* feat!: SortedSetIncrementScoreSuccess is a type conversion. Add Score().
* feat!: SortedSetRemove takes only values.
A sorted set can be deleted with `client.Delete(collectionName)`.
Feature
- add
UpdateTtl
(#250) (f7fa565) - add ping (#249) (0421d51)
- SortedSetGetRank Order argument. (#246) (b88a2dd)
- add key exists (#243) (7eb52fa)
- add set contains elements (#240) (eb55bd0)
Bug Fixes
- All values can be blank. (#247) (1b9579b)
- fix version requirements in docs and go.mod (#244) (e340440)
Chores
v0.11.0
0.11.0 (2023-03-06)
Breaking Changes
Also fix the sorted set example.
* SortedSetGetScore -> SortedSetGetScores
* SortedSetScoreHit -> SortedSetScore
* Now it can be used by any sorted set score.
* SortedSetScore now a simple float64.
* Makes using it simpler. `SortedSetScore(123)`
Topics needs to be future proofed against taking different types than other methods, but it doesn't need its own bespoke types.
Feature
- adds retry interceptor (#223) (22e7d53)
- removes maxIdle and maxSessionMem from client config for now (#216) (c5f3580)
- breaks topic client into standalone client (#213) (accb869)
Bug Fixes
- fix misleading info in example (#230) (9d0b1af)
- use alternative data structure for dict ops (#224) (ba3fe97)
- missed refactoring get responses somehow (#228) (db63f64)
- navigable auth and config packages (#217) (17f677e)
- Examples for recent changes. (#211) (8452200)
- Topic name and cache validation (#201) (4c56f34)
- add validation to 'prepare' methods in requestor (#200) (eb66f43)
- Remove references to TEST_CACHE_NAME (#199) (f3338cc)
- inspect single field response to determine hit or miss (#164) (ea4c507)
- fix return type for TopicPublish (#163) (12cf06f)
- update usage examples to remove obsolete error check (#162) (c1885ac)
Tests
Code Refactoring
Chores
- update examples (#229) (20e5179)
- remove stary commented code (#225) (b6e2ec2)
- move responses into their own package (#222) (f25b3b9)
- make
CollectionTtl
pointer and assign default value toTtl
andRefreshTtl
(#212) (341720a) - revert Lint the example code (#219) (efcf4db)
- Lint the example code. (#218) (f2c2397)
- make sure all example methods accept momento.Value args (#214) (26dbd2b)
- convert cache client constructor to accept args (#209) (9ca4fc5)
- audit and test for nils (#206) (bf87a88)
- rename CollectionTtl to Ttl in request types (#208) (4a0d6a2)
- update a few names (#203) (a3e6844)
- add list testing (#202) (aab2c4f)
- add dictionary testing (#194) (ae45edc)
- add examples for dictionaries and sets (#161) (ca248f4)
v0.10.1
v0.10.0
0.10.0 (2023-02-22)
Feature
- handle h2 go-away from server for topic stream (#151) (ae91459)
- Recognize pubsub heartbeat (#141) (aa3d586)
- throw invalid argument err if score increment amount is not passed or 0 (#142) (92aca23)
- Improve the "unexpected GRPC response error" (#131) (a755103)
Bug Fixes
- Rewrite the tests using Ginkgo and Gomega, fix some bugs. (#147) (cfb016d)
- Update golang.org/x/net for minor security vulnerability. (#149) (bbaeef6)
Documentation
Code Refactoring
Chores
v0.9.0
0.9.0 (2023-02-16)
Breaking Changes
* feat!: Do not expose AsBytes()
* refactor: Make our String or Bytes interface more intuitive to users.
Name it from the POV of the user passing things in, not from what is
received.
Bytes -> StringOrBytes
RawBytes -> Bytes
StringBytes -> String
* feat!: String("string") and Bytes([]bytes("abc"))
* Add a type alias for keys.
Feature
Bug Fixes
v0.8.2
v0.8.1
v0.8.0
0.8.0 (2023-02-15)
Breaking Changes
* feat!: CreateCache and DeleteCache return a response.
* feat!: ListCaches() returns an interface and has a ListCacheSuccess struct.
There's an argument to be made that it's silly to make the user check the
type of ListCaches() since it's *probably* only going to ever be one type,
but that's the pattern for this interface.
As per the Valentines Day Name Massacre.
* refactor: Extract basic types to their own file.
* refactor: Consolidate requests and responses into one file per method.
* refactor: Move the ScsDataClient into momento, make it private.
* refactor: Move the common request code into scsDataClient
* feat!: Remove the ScsClient interface.
* feat!: Change the return type from NewSimpleCacheClient to a pointer.
* fix: Only convert unknown response type errors to unknown.
* feat!: Rename pubsub methods and repsonses to conform to the TypeAction style.
* feat!: Remove exposing that Subscription is an interface.
* chore: Add a utility for converting the collectionTtl to GRPC args.
* refactor: Change the control receivers to a value.
* test: Remove the local server pubsub test, avoids a duplicate client.
* chore: Add a template file for making more requesters.
* retain the list example, even if lists aren't implemented yet
Feature
- adds interface for SimpleCacheClient (#125) (90bd07e)
- Change back to returning responses as pointers (#121) (bbf9d78)
Bug Fixes
- Ensure tests clean up their caches. (#120) (37bc3ba)
- make sure context is the first argumnet when it's passed (#123) (b80765e)
- refactor list operations (#122) (4e4f3e2)
- Set the output when generating the contributing file. (#118) (9ff180f)
Documentation
Code Refactoring
- common.go -> requester.co (#128) (403479f)
- Remove old pubsub and sorted set requests and responses. (#117) (df08ae7)