Changelog
v3.4.0
- [add] Added
tcb.SYMBOL_DEFAULT_ENV
to specify the default environment.
v3.1.0
- [add] Added sendTemplateNotification to send message notifications
v3.0.0
Feature changes:
- [change] Node.js >=12: Compatibility with versions below 12 will no longer be guaranteed. For product features, the console may stop supporting the addition of Node.js versions below 12.
- [change] In Cloud Functions, if no environment ID is specified during initialization, the current Cloud Function's environment ID will be used (previously the default CloudBase environment was used). Therefore, specifying
init({env: SYMBOL_CURRENT_ENV})
is no longer necessary, but it remains acceptable if specified. - [change]
keepalive
is enabled by default in non-Cloud Function environments
Other changes:
- [refactor] Refactored and optimized the entire code
- [refactor] Refactored TS export types and improved type exports. DB types now directly export type definitions from
@cloudbase/database
. - [refactor] Updated versions of dependencies including
axios
,jsonwebtoken
,xml2js
, and@cloudbase/signature-nodejs
- [refactor] Removed the
request
package and replaced it with native implementation to address the unmaintained status ofrequest
, optimizing request handling logic - [test] Supplemented and optimized unit test cases to improve unit test coverage
v2.3.0
- [add] Added updateAndReturn interface
- [refactor] Refactored the aggregate interface
v2.2.5
- [add] Added getEndUserInfo interface
v2.2.4
- [fix] Fixed the get user information interface
v2.2.3
- [add] Added support for keyless invocation of Cloud Development containers
v2.2.1
- [add] Added conditional database queries and batch insertions with transaction support
v2.1.1
- [fix] Fixed an issue where the database caused errors by converting undefined to null when processing query or data content
v2.1.0
- [add] Added the getCloudbaseContext method to retrieve all environment variables under a cloud function
- [add] Added env parameter validation logic: if env is not specified during init, a warning prompts to use the default environment; if env is specified but found empty during the request, an error is thrown
- [add] Added validation during createticket to ensure the environment in the private key matches the environment specified in init; throws an error if inconsistent
v2.0.2
- [add] Added extension registration and calling methods
v2.0.1
- [fix] Fixed the issue where the db transaction add interface caused exceptions by not carrying the transaction ID
v2.0.0
- [add] Added support for new db features & gray-scale compatibility
v1.1.1
- [fix] Fixed the request signing issue when a function calls another function
v1.1.0
- [add] Added support for function gray release
- [fix] Fixed the bug where using neq in elemMatch was ineffective
v1.0.2
- [fix] Local debugging logic optimization
v1.0.0
- [add] Migrated tcb-admin-node sdk features to this repository