Changelog
v3.14.0
- [add] Added
MySQL databaseoperation methods.
v3.4.0
- [add] Added
tcb.SYMBOL_DEFAULT_ENVto specify the default environment
v3.1.0
- [add] Added sendTemplateNotification for sending message notifications
v3.0.0
Feature Changes:
- [change] Node.js >=12, meaning compatibility with lower versions is no longer guaranteed. For product features, the console may consider no longer supporting the addition of versions below Node.js 12.
- [change] In Cloud Functions, if no environment ID is specified during initialization, the current Cloud Function environment ID will be used. Previously, the default CloudBase environment was used, meaning it's no longer necessary to specify
init({env: SYMBOL_CURRENT_ENV}), but specifying it is still acceptable. - [change]
keepaliveis enabled by default in non-Cloud Function environments
Other Changes:
- [refactor] Overall code refactoring and optimization
- [refactor] Refactor TS export types, improve type exports, and DB types directly export type definitions from
@cloudbase/database - [refactor] Updated versions of dependency libraries such as
axios, jsonwebtoken, xml2js, @cloudbase/signature-nodejsetc. - [refactor] Removed the
requestpackage and replaced it with native implementation to address the unmaintained status ofrequest, optimizing the 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 interface for obtaining user information
v2.2.3
- [add] Added support for keyless access to CloudBase containers
v2.2.1
- [add] Database conditional queries and batch insertion support transactions
v2.1.1
- [fix] Fixed an issue where converting undefined to null during database processing of query or data content caused errors
v2.1.0
- [add] Added a method to obtain all environment variables under Cloud Function: getCloudbaseContext
- [add] Added validation logic for the env parameter: if env is not specified during initialization, a warning will be issued indicating the use of the default environment; if env is specified but found empty during the request, an error will be thrown
- [add] Added validation to check whether the environment in the private key matches the environment specified during init in createTicket; throws an error if inconsistent
v2.0.2
- [add] Added extension registration and invocation methods
v2.0.1
- [fix] Fixed an issue where the db transaction add interface caused an exception by failing to include a transaction ID
v2.0.0
- [add] Added support for db new features & gray release compatibility
v1.1.1
- [fix] Fixed the request signing issue during function-to-function calls
v1.1.0
- [add] Added support for function grayscale release
- [fix] Fixed a bug where using neq within elemMatch was ineffective
v1.0.2
- [fix] Optimized local debugging logic
v1.0.0
- [add] Migrated tcb-admin-node sdk features to this repository