Skip to content

Releases: momentohq/client-sdk-go

v0.13.0

10 Mar 01:23
5569bee
Compare
Choose a tag to compare

0.13.0 (2023-03-10)

Feature

  • tweaks to how we configure logging (#257) (5569bee)
  • use "rank" terminology consistently for sorted sets (#252) (4be8277)

Bug Fixes

Documentation

  • macos contributing note about go path (#255) (320ca0f)

v0.12.0

09 Mar 02:33
f7fa565
Compare
Choose a tag to compare

0.12.0 (2023-03-09)

Breaking Changes

  • SortedSetFetch ByIndex and ByScore & response Value methods (#241) (d50c981)

* 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

Bug Fixes

Chores

v0.11.0

06 Mar 17:37
9d0b1af
Compare
Choose a tag to compare

0.11.0 (2023-03-06)

Breaking Changes

  • Rename SortedSetGetScore -> SortedSetGetScores (#227) (5fe64c1)

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)`
  • Change SortedSet for the new protocol buffers. (#215) (abde609)

  • Topics use the normal String and Bytes types. (#205) (d2b84f0)

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

v0.10.1

23 Feb 21:24
9fd179d
Compare
Choose a tag to compare

0.10.1 (2023-02-23)

Bug Fixes

  • add missing error codes and fix mappings (#160) (9fd179d)
  • add testing for sets and some type fixes (#159) (23bc04d)

Chores

v0.10.0

22 Feb 02:07
ae91459
Compare
Choose a tag to compare

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

  • Correct min Go version. Provide a more realistic error handling example. (#154) (a3d666a)

Code Refactoring

  • Remove now unused list requests and responses in models. (#145) (490f110)

Chores

v0.9.0

16 Feb 01:26
a75fee5
Compare
Choose a tag to compare

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

  • Make sure the pubsub tests clean up after themselves even if they fail. (#139) (a75fee5)

v0.8.2

15 Feb 22:42
3715115
Compare
Choose a tag to compare

0.8.2 (2023-02-15)

Bug Fixes

  • return value not being sent back for sorted set increment (#134) (3715115)

Documentation

  • Update the README about how to run the examples. (#132) (f921ef5)

v0.8.1

15 Feb 21:18
54379ef
Compare
Choose a tag to compare

0.8.1 (2023-02-15)

Bug Fixes

v0.8.0

15 Feb 20:15
9387294
Compare
Choose a tag to compare

0.8.0 (2023-02-15)

Breaking Changes

  • Ensure all methods return a response. (#129) (75b528f)

* 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)

Chores

  • standardize receivers for request type functions (#130) (9387294)
  • updates examples to latest sdk version (#109) (9bc6a86)

v0.7.2

14 Feb 01:12
514ec89
Compare
Choose a tag to compare

0.7.2 (2023-02-14)

Bug Fixes

  • No need for a token when checking out. (#108) (514ec89)