New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@kldx/core

Package Overview
Dependencies
Maintainers
5
Versions
1035
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@kldx/core

Kunlun core SDK

  • 4.16.3
  • latest
  • npm
  • Socket score

Version published
Weekly downloads
4
decreased by-98.52%
Maintainers
5
Weekly downloads
 
Created
Source

Kunlun DX 后端 @kldx/core 版本说明:


版本:4.14.x|兼容升级

新功能:支持流程中「Node.js」节点调用新版本「低代码」模块本地开发的函数。

  • 同步调用:await context.function('newFunc').invoke(params);
  • 异步任务:await context.tasks.createAsyncTask('newFunc', params);
  • 分布式任务:await context.tasks.createDistributedTask(dataset, 'newHandlerFunc', 'newProgressCallbackFunc', 'newCompletedCallbackFunc', options);

版本:4.13.x|兼容升级

新功能:支持通过 OQL 进行数据库读写,详见 OQL 开发指南

let result = await context.db.oql("select _email from _user").execute();

版本:4.12.x|兼容升级

新功能:记录查询操作支持查询所有。

let records = await context.db.object("_user").findAll();

版本:4.11.x|兼容升级

新功能:记录写入操作支持批量事务。

let tx = context.db.newTransaction()
tx.object().registerBatchCreate()
tx.object().registerBatchUpdate()
tx.object().registerBatchDelete()

优化:返回值类型为「日期」的「公式」字段支持查询过滤。


版本:4.10.x|兼容升级

新功能:支持获取单/多个用户的 Locale 信息。调用路径:context.user.getLocale

优化:在「操作」的「函数节点」中的 context.initiator 中增加了操作人的 Locale 信息,并整体移动到了 context.user.initiator(兼容了 context.initiator)。


版本:4.9.x|不兼容升级

新功能:支持使用「文件 id」下载文件。调用路径:context.resources.file.download

不兼容点:当 download 中传递 filePath 参数时,返回值由 Promise<Buffer> 调整为 Promise<void>


版本:4.8.x|兼容升级

新功能:支持发送 HTTP 请求的 API。调用路径:kunlun.tool.http

优化:lookup 类型字段的数据结构中支持 _id_name。(兼容历史数据中的 idname)。


版本:4.7.x|不兼容升级

优化:

  • context.workflow.updateVariable 支持表单变量。
  • 支持在「自动化流程」和「函数」中使用 context.workflow.terminate 以终止工作流。

不兼容点:废除 kunlun.operators.hasAllOf


版本:4.6.x|兼容升级

新功能:记录写入操作支持事务。

let tx = context.db.newTransaction()
tx.object().registerCreate()
tx.object().registerUpdate()
tx.object().registerDelete()

优化:支持使用「关联对象字段」下的子字段设置为查询条件。


版本:4.5.x|不兼容升级

新功能:

  • 重命名记录的批量异步接口
batchCreate -> batchCreateAsync
batchUpdate -> batchUpdateAsync
batchDelete -> batchDeleteAsync
  • 新增记录的批量同步接口 batchCreatebatchUpdatebatchDelete

不兼容点:原批量异步接口变为了同步接口。


各功能的详细用法,见 自定义函数开发指南

FAQs

Package last updated on 14 Feb 2023

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc