npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

@kldx/core

v4.16.3

Published

Kunlun core SDK

Downloads

1,275

Readme

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

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


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