@alwaysmeticulous/api

中文文档
3.6.0发布于 2026/11/06ISCTypeScriptCommonJS零依赖构建来源已验证近 30 天下载 164.7万

Meticulous API types

原始使用文档

Meticulous API

This packages contains type definitions that are persisted in the database or S3 and also used in the SDK.

Types that are both stored in the database and sent from the bundle to the SDK or from the SDK to the bundle live in the sdk-bundle-api sub-folder. This folder is split into three sub-folders:

  • The sdk-to-bundle sub-folder contains types sent from the SDK to the bundle
  • The bundle-to-sdk sub-folder contains types sent from the bundle to the SDK
  • The bidirectional folder contains types that are sent from the SDK to the bundle AND from the bundle to the SDK

Types that are persisted in the database but not used in the SDK should live in the main meticulous repo, not this package. Types that are sent between the SDK and bundle but not stored in the database should live in @alwaysmeticulous/sdk-bundles-api.

What changes are safe to make?

For all types backwards compatibility must be preserved, since newer versions of our code may read data saved under an old schema in the database. In particular that means adding new optional fields is safe, and pretty much everything else is unsafe:

  • Adding new required fields is unsafe.
  • Deleting fields is unsafe if the field is used in the SDK/CLI. An old version of the CLI may read the data (from the database, or sent from the bundle) expecting the field to exist when it doesn't. If the field is not used in the SDK/CLI then it's safe to delete, but you must make sure to remove any usages of the field in the main meticulous repo before deleting the field.
  • Changing the type of a field is unsafe.

版本与发布记录

@alwaysmeticulous/api 共发布 203 个版本,首次发布于 2022/11/11;过去 12 个月发布了 69 个版本。最新版本附带 npm provenance 构建来源证明,可追溯到公开的 CI 构建记录。

版本发布日期距今
3.6.0latest2026/11/06今天
3.5.02026/11/051 天前
3.4.12026/10/297 天前
3.1.02026/10/2215 天前
2.350.02026/10/1621 天前
2.349.02026/10/1324 天前

其他发布通道:next → 2.226.1-beta.0。

关于 @alwaysmeticulous/api 的常见问题

@alwaysmeticulous/api 是什么?

Meticulous API types

如何安装 @alwaysmeticulous/api?

在项目目录运行 npm install @alwaysmeticulous/api,或使用 pnpm add / yarn add / bun add。

@alwaysmeticulous/api 支持 TypeScript 吗?

支持。包内自带 TypeScript 类型声明(package.json 声明了 types 入口),安装后即可获得类型提示,无需再安装 @types 包。

@alwaysmeticulous/api 支持 ESM 还是 CommonJS?

以 CommonJS 形式发布,可以直接 require();在 ES Module 项目中也可以用 import 引入(Node.js 会把 module.exports 作为默认导出)。

@alwaysmeticulous/api 需要什么版本的 Node.js?

package.json 的 engines 字段要求 Node.js >= 18。版本不符时 npm 默认只给出警告,开启 engine-strict 后会拒绝安装。

@alwaysmeticulous/api 可以商用吗?

@alwaysmeticulous/api 使用 ISC 许可。宽松许可:允许商业使用、修改和再分发,通常只需在分发时保留原版权与许可声明。以上为概括,不构成法律意见,请以许可原文为准。

@alwaysmeticulous/api 的下载量有多少?

根据 npm 官方下载统计,@alwaysmeticulous/api 在 2026/10/06 – 2026/11/04 这 30 天内被下载 1,647,483 次,日均约 54,916 次。下载量会把 CI 构建、镜像同步和作为其他包依赖的安装一并计入,适合横向比较热度,不能直接等同于使用人数。

@alwaysmeticulous/api 还在维护吗?

最新版本 3.6.0 发布于 2026/11/06(今天);至今共发布 203 个版本,其中过去 12 个月发布了 69 个;首次发布于 2022/11/11。发布频率只是参考信号:功能稳定的工具可能很少需要更新,建议结合源码仓库的 issue 和提交记录判断。