Skip to content

Releases: ydb-platform/ydb-nodejs-sdk

v3.3.0

20 May 15:53
Compare
Choose a tag to compare

3.3.0 (2022-05-20)

Features

  • add esnext target to support using library via ES modules (09deade), closes #145

v3.2.0

20 May 06:24
Compare
Choose a tag to compare

3.2.0 (2022-05-20)

Features

  • process 'session-close' server hint from trailing metadata (d9c15ba)

Bug Fixes

  • acquire new session once free slot becomes available in pool (4500226)

ydb-sdk v3.1.1

13 May 05:43
Compare
Choose a tag to compare

Bug Fixes

  • add muteNonExistingTableErrors to DropTableSettings class (c2f6037), closes #141

ydb-sdk v3.1.0

12 May 15:03
Compare
Choose a tag to compare

Features

  • use newer @yandex-cloud/nodejs-sdk package based on grpc-js (2d37272), closes #146

ydb-sdk v3.0.0

03 Mar 08:46
Compare
Choose a tag to compare

⚠ BREAKING CHANGES

  • all signatures of SchemeClient's methods now have optional settings parameter instead of operationParams.
    • Before: makeDirectory(path, operationParams?)
      After: makeDirectory(path, {operationParams: ...}?)
    • Before: removeDirectory(path, operationParams?)
      After: removeDirectory(path, {operationParams: ...}?)
    • Before: listDirectory(path, operationParams?)
      After: listDirectory(path, {operationParams: ...}?)
    • Before: describePath(path, operationParams?)
      After: describePath(path, {operationParams: ...}?)
    • Before: modifyPermissions(path, ..., ..., operationParams?)
      After: modifyPermissions(path, ..., ..., {operationParams: ...}?)
  • TypedData fields have identity conversion to YDB column names instead of camelCase to snake_case. Use @withTypeOptions({namesConversion:snakeToCamelCaseConversion}) for backward compatibility.
  • several types have changed their representation, namely
    • struct value is present as object instead of array
    • decimal value is present as string instead of bigint
      (it wasn't working for float values before)
    • fix uuid and tz-date types conversion (it wasn't working before)
  • signatures of most methods in Session are changed:
    • executeQuery
      Before: (query, params, txControl, operationParams?, settings?, collectStats?)
      After: (query, params, txControl, settings?)
    • describeTable
      Before: (tablePath: string, operationParams?)|(tablePath, describeTableParams?)
      After: (tablePath, settings?)
    • commitTransaction
      Before: (txControl, operationParams?)
      After: (txControl, settings?) (and collectStats support)
    • createTable, alterTable, dropTable, beginTransaction, rollbackTransaction, prepareQuery,
      bulkUpsert
      Before: (<required params>, operationParams?)
      After: (<required params>, settings?)
  • tablePath in bulkUpsert and readTable methods must be without database prefix
  • Primitive class is renamed to TypedValues
  • signatures of Driver, getCredentialsFromEnv and *AuthService classes are changed:
    • Driver:
      Before: new Driver(entryPoint, dbName, authService, ...)
      After: new Driver({connectionString: "...", authService: ..., ...})
      or new Driver({endpoint: "...", database: "...", authService: ..., ...})
    • *AuthService - database and sslCredentials are no longer needed in *AuthService constructors
      (ssl credentials option is now initialized in the driver if it's necessary)
      Before: const authService = new MetadataAuthService(dbName, sslCredentials);
      After: const authService = new MetadataAuthService();
    • getCredentialsFromEnv:
      Before: const authService = getCredentialsFromEnv(endpoint, database, logger);
      After: const authService = getCredentialsFromEnv(); (logger is optional)
  • old environment variables are no longer supported. Use YDB_ACCESS_TOKEN_CREDENTIALS instead of YDB_TOKEN, YDB_SERVICE_ACCOUNT_KEY_FILE_CREDENTIALS instead of SA_ID, SA_PRIVATE_KEY_FILE, SA_ACCESS_KEY_ID and SA_JSON_FILE.

Features

  • add more methods and fields to type helper classes (82f26ea)
  • implement Types and TypedValues helper classes (029db0e)
  • implement new type conversions and fix existing type conversions (0edbcdd)
  • reorganize Driver and credentials to simplify SDK usage (6526378)
  • replace grpc with @grpc/grpc-js (1bd8d06)

Bug Fixes

  • don't use database in tablePath for bulkUpsert and readTable methods (d416d59)
  • error message in test-utils (af39fd1)
  • little fixes in examples (9c19b95)

Miscellaneous

  • drop support of old environment variables (963819a)
  • reorganize signature of SchemeClient's methods (734d57a)
  • reorganize signatures of Session's methods (431f149)
  • use identity names conversion in TypedData (275598a)

ydb-sdk v2.9.2

09 Feb 17:14
Compare
Choose a tag to compare

Bug Fixes

  • MetadataAuthService: remove ssl defaults for grpc scheme (40523f7)

ydb-sdk v2.9.1

21 Jan 11:53
Compare
Choose a tag to compare

Bug Fixes

  • package.json: move pino-pretty to dependencies (bf739d2)

ydb-sdk v2.9.0

29 Dec 15:34
Compare
Choose a tag to compare

Features

  • describeTable: add new function signature (4e2106d)
  • executeQuery: add collectStats parameter (bae40fa)

Bug Fixes

  • examples: remove package-lock.json from examples repo (b80de4e)

v2.6.2

17 Nov 06:02
Compare
Choose a tag to compare

What's Changed

  • chore(deps): bump aws-sdk from 2.779.0 to 2.1030.0 by @dependabot in #97

Full Changelog: v2.6.1...v2.6.2

v2.6.1

13 Nov 07:51
Compare
Choose a tag to compare
2.6.1