Skip to content

Releases: googleapis/nodejs-spanner

v1.3.0

19 Mar 19:46
2394945

Choose a tag to compare

Fixes

v1.2.0

08 Mar 22:39

Choose a tag to compare

Features

  • (#132) Support batch queries.

Fixes

  • (#131) Correctly remove database cache when closed. (Thanks for the heads up, @voltrue2!)
  • (#133) Restore autoCreate behavior for database#get() and instance#get() methods.
  • (#135) Fix session leak. (🙇 @anup-honey!)
  • (#141) Prevent tampering with user-provided query object. (Thanks, @eric4545!)
  • (#148) Promisify database#delete().
  • Update dependencies, including gRPC for more reliable performance.

@google-cloud/spanner v1.1.0

16 Feb 00:17

Choose a tag to compare

Features

  • (#94, #122): Automatically serialize rows to JSON with options.json on table read methods (database.run(), table.read(), and table.createReadStream()).

Fixes

  • Update dependencies to mitigate possible security issues.

@google-cloud/spanner v1.0.3

31 Jan 22:41
89e5079

Choose a tag to compare

Fixes

  • (#103) Add exception to be thrown when ending transactions more than once.

@google-cloud/spanner v1.0.2

17 Jan 20:32
1ffdafa

Choose a tag to compare

Bugfixes

(#95, #97): handle null values - Thanks @hugoluchessi!

@google-cloud/spanner v1.0.1

16 Jan 16:31

Choose a tag to compare

Bugfixes

(#89): fix session leak - Thanks @zubeyiro and @kriptontr!

v1.0.0

13 Jan 00:40
0ff81ca

Choose a tag to compare

General Availability

The Spanner library is now considered to be General Availability (GA). This means it is stable; the code surface will not change in backwards-incompatible ways unless absolutely necessary (e.g. because of critical security issues) or with an extensive deprecation period. Issues and requests against GA libraries are addressed with the highest priority.

Breaking change

toJson() will not wrap integers and floats into objects by default. Example of the change in the JSON returned by toJson():

 {
   "boolValue": false,
   "stringValue": "Hello",
-  "intValue": {
-    "value": "42"
-  },
+  "intValue": 42,
-  "floatValue": {
-    "value": "3.14"
-  }
+  "floatValue": 3.14
 }

You can still ask toJson() to wrap numbers by providing an option object to toJSON() specifying wrapNumbers: true. You should do it if you expect that you will work with integers greater than Number.MAX_SAFE_INTEGER, as toJSON() will throw an exception if asked to convert an integer when it's not safe to do that without losing precision. See #80 for details.

Fixes

  • (#2644) Increased timeout to match timeout in config file
  • (#18) Spanner library should have a way to track leaked sessions
  • (#78) SessionPool acquireQueue concurrency limit causes sessions to pile up under load
  • (#80) RowBuilder.toJSON should return un-wrapped Floats and Ints

@google-cloud/spanner v0.10.0

15 Dec 22:42
f5d7b76

Choose a tag to compare

Deprecation Notice

This release deprecates the date, time and timestamp instance methods. Please use the static methods in their place.

Bugfixes

  • (#61): setInterval causes process to hang.

@google-cloud/spanner v0.9.0

07 Dec 23:57
929af6c

Choose a tag to compare

Features

  • (#19): rate limit session creations/deletions
  • (#26): emit session errors on database objects

Bugfixes

  • (#13): keep-alive not functioning properly
  • (#25): properly handle idle resources

@google-cloud/spanner v0.8.2

07 Dec 16:59

Choose a tag to compare

release level

Bugfixes

(#56): Un-promisify transaction mutation methods. (Thanks, @WaldoJeffers!)