跳转到内容

支持的环境

JavaScript

此 SDK 使用了 bigint,因此需要 ES2020 或更高版本的 JavaScript 语言规范。此外,考虑到此 SDK 对运行时的要求,预计它可以在以下运行时环境中运行:

运行时版本
Node.js18.x,20.x,^22.5.1
Deno1.x, 2.x
Bun1.x
Chrome>=78
Edge>=79
Safari>=14
Firefox>=68

测试

测试使用 Vitest 和 Playwright。我们使用这些工具能够运行的最低版本运行时进行测试,因此实际上它可能在低于以下所示版本的运行时中也能工作。

服务器

运行时版本状态
SurrealDB>=2.1.0GitHub
Node.js18.x,
20.x,
22.x,
23.x
GitHub Actions Workflow Status
Deno1.x, 2.xGitHub Actions Workflow Status
Bun1.xGitHub Actions Workflow Status
  • 建议始终使用 Deno 的最新版本。
  • 建议始终使用 Bun 的最新版本。

浏览器

运行时版本状态
Chromium>=104GitHub Actions Workflow Status
Firefox>=100GitHub Actions Workflow Status
WebKit>=15.4GitHub Actions Workflow Status
  • 支持的浏览器(引擎)与 CI 上 Playwright 能够运行的最低版本一致。因此,低于上述版本也可能工作,但我们没有进行测试。