Skip to content

Releases: ydb-platform/ydb-js-sdk

v3.4.2

18 Oct 14:03
Compare
Choose a tag to compare

3.4.2 (2022-10-18)

Bug Fixes

  • build: fix es module build (8d4715b)

v3.4.1

13 Sep 11:35
Compare
Choose a tag to compare

3.4.1 (2022-09-13)

Bug Fixes

  • certificates path for bundling compilation (ebc10ad), closes #173

v3.4.0

12 Aug 12:04
Compare
Choose a tag to compare

3.4.0 (2022-08-12)

Features

  • introduce new type aliases: Types.BYTES & Types.TEXT (61c17dc)

Bug Fixes

  • the expected type of TypedData.yson() arg should be Buffer (cd327de)

v3.3.2

27 May 09:14
Compare
Choose a tag to compare

3.3.2 (2022-05-27)

Bug Fixes

  • correctly access internal certs from compiled sources (f7e520d), closes #163

v3.3.1

26 May 13:24
Compare
Choose a tag to compare

3.3.1 (2022-05-26)

Bug Fixes

  • correctly access package.json (5bba0d9)

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)