@coast/schemas

中文文档
4.0.4发布于 2026/10/01MITTypeScriptCommonJS近 30 天下载 9220
  1. Major - Breaking changes (incompatible schemas) 2. Minor - new blocks, new templates 3. Patch - block iteration
原始使用文档

Versioning

  1. Major - Breaking changes (incompatible schemas)
  2. Minor - new blocks, new templates
  3. Patch - block iteration

Hosting

http://schemas.coastapp.com/card/v1/<schema>.json

Release Process

  1. If incrementing Major version, update the version property enum on top-level template schemas to new version.
  2. Make changes to schemas
  3. Run yarn gen
  4. Run yarn package
  5. Commit changes
  6. Run yarn version, increment version according to versions section above
  7. Run git push && git push --tags to push commit and tags.
  8. Run yarn upload (ensure your AWS creds are setup and aws-cli is installed first)
  9. Run yarn publish. Note that to publish locally, you will need to use an npm Access Token with bypass 2fa enabled. Regular npm login will not allow you to publish; you have to use a special access token.
  10. Switch to frontend/shared repo and run yarn add "https://coast-app-bot:[email protected]/coast-app/schemas.git#vX.X.X" with correct version from step 6.
  11. Switch to frontend/native repo and run yarn add "https://coast-app-bot:[email protected]/coast-app/schemas.git#vX.X.X" with correct version from step 6.
  12. 🎉

Adding icons

https://www.notion.so/Adding-icons-08529b9a1caa492ba9db879436cab61d?pvs=4#7122028559324946bd680114a0ad07d5

版本与发布记录

@coast/schemas 共发布 4 个版本,首次发布于 2024/12/13;过去 12 个月发布了 2 个版本。

版本发布日期距今
4.0.4latest2026/10/011 个月前
4.0.22026/04/236 个月前
4.0.02024/12/131.9 年前
3.3.92024/12/131.9 年前

关于 @coast/schemas 的常见问题

@coast/schemas 是什么?

Major - Breaking changes (incompatible schemas) 2. Minor - new blocks, new templates 3. Patch - block iteration

如何安装 @coast/schemas?

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

@coast/schemas 支持 TypeScript 吗?

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

@coast/schemas 支持 ESM 还是 CommonJS?

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

@coast/schemas 可以商用吗?

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

@coast/schemas 的下载量有多少?

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

@coast/schemas 还在维护吗?

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