Skip to content

v0.3.0

Compare
Choose a tag to compare
@jysperm jysperm released this 20 Oct 08:27
· 18 commits to master since this release
  • 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.