Skip to content

Releases: leancloud/go-sdk

v0.3.3

01 Jul 03:33
c2055fe
Compare
Choose a tag to compare

What's Changed

New Contributors

Full Changelog: v0.3.2...v0.3.3

v0.3.2

27 Oct 03:41
98e4481
Compare
Choose a tag to compare
  • Fix the resource leak when uploading files.

v0.3.1

05 Nov 05:38
Compare
Choose a tag to compare
  • Fix error when server response missing some optional fields.
  • Return error if Query.First not found object (instead of panic).
  • Fix error handling in RPC.

v0.3.0

20 Oct 08:27
Compare
Choose a tag to compare
  • Breaking change! LeanEngine related functions like Handler, Define and BeforeSave etc. moved to CloudEngine interface. SDK now exports a global singleton variable called Engine to access LeanEngine related methods on CloudEngine. Removed first parameter of Handler.
  • Breaking change! Added Engine.Init for initialize LeanEngine related features, should be called when startup when using Go SDK on LeanEngine (like leancloud.Engine.Init(leancloud.NewEnvClient())). SDK no longer read app keys from environments by default.
  • Breaking change! Split Run (and RPC) into Client.Run (call remote function) and Engine.Run (call local function), Removed WithRemote option.
  • Added Exists, NotExists and NotMatchesQuery on Query.
  • Fixed panic when using before hooks.
  • Fixed incorrect field name in error response of cloud function or hooks.
  • Fixed incorrect implements of Query.MatchesQuery.
  • Fixed Client.User.

v0.2.0

13 Oct 06:49
Compare
Choose a tag to compare
  • Breaking change! Removed UserQuery, use the unified Query instead.
  • Breaking change! Add new Type CloudError replaced Error and ErrorWithCode.
  • Breaking change! Add Files.UploadFromLocalFile replaced Files.UploadFromFile.
  • Add built-in fields like SessionTokenUsername on to User type.
  • Add NewQuery on Users, Roles and Files.
  • Add LogInByEmail and SignUpByEmail on Users.
  • Auto recover from panic of cloud function handlers.
  • Fix the validation of appKey and masterKey in LeanEngine server.
  • Fix decode issues related to objectId and top-level arrays.

v0.1.0

25 Jan 09:06
fd5b6d2
Compare
Choose a tag to compare

First release of LeanCloud Go SDK:

  • Full support of LeanStorage, includes objects manipulation, users management and file upload.
  • Full support of LeanEngine, includes define cloud functions or hooks, deploy to LeanEngine.