Vigia

将 emojibase 从 17.x 升级到 18.x

根据 TypeScript 类型自动比较 emojibase 17.0.0 与 18.0.0 的公开 API。签名变化表示可能存在不兼容变更,并非确定结论。

概要

已删除的导入路径0
已删除的导出0
已修改的签名4
已删除的类或接口成员0
已修改的类或接口成员0
新增弃用0
要求变化(engines、peer 依赖)1
新增导出2

已删除的导出

未发现。

已修改的签名

export之前之后
emojibase · Qualifier0 | 1 | 20 | 1 | 2 | 3
emojibase · LATEST_CLDR_VERSION"48""49"
emojibase · LATEST_EMOJI_VERSION"17.0""18.0"
emojibase · LATEST_UNICODE_VERSION"17.0.0""18.0.0"

已删除的类或接口成员

未发现。

已修改的类或接口成员

未发现。

新增弃用

未发现。

要求变化(engines、peer 依赖)

之前之后
engines.node>=18.12.0—
新增导出 (2)
importexportkind
emojibaseCOMPONENTvariable
emojibaseSHORTCODE_PRESETSvariable

这些版本之间的 changelog

软件包作者发布的文本,按原样显示。

18.0.0
### Major Changes

- 8527c93: Update to Emoji v18 and CLDR 49 (beta 1), following UTS #51 revision 31. Adds 9 emoji (🫫 🫹 🫺 🫌 🫝 🛙 🪋
  🪌 🪍), with skin tones for the two thumb signs, and their localized labels and keywords.
- 789b533: Require Node.js 20 or newer. Packages are now built with tsdown instead of Packemon, which targets
  modern syntax and bundles type declarations into a single `index.d.ts` file. Package entry points
  are unchanged.

### Minor Changes

- 06b8716: Align presentation and qualification with UTS #51:
  
  - The `emoji` field is now the fully-qualified form from `emoji-test.txt`. 152 emoji that default to
    emoji presentation, like 👍 and ⌚, no longer have a redundant `FE0F`.
  - `meta/hexcodes.json` now lists statuses exactly as `emoji-test.txt` does. Text presentation
    sequences (`FE0E`) and redundant `FE0F` forms are no longer listed as fully qualified, and the
    skin tone and hair components are listed with the new `COMPONENT` qualifier.
  - The `emojibase-regex/emoji` pattern now matches default-emoji characters without `FE0F`.
- 29b2c8a: Export `SHORTCODE_PRESETS`, the list of every shortcode preset, including the `discord` and `slack`
  aliases.

### Patch Changes

- 06b8716: Resolve CLDR annotations as UTS #35 describes:
  
  - Locales inherit from their real CLDR parents. `en-gb` now uses `en-001` (129 labels, such as "tick
    box with tick"), and `es-mx` uses `es-419` (450 labels, such as "lentes de sol").
  - Labels and keywords inherit separately, so 9 `es-mx` emoji regain their keywords.
  - Flags and keycaps without a CLDR label are named in the locale's own words, which fixes all 262
    Danish flags ("flag: USA") and their `cldr` shortcodes.
  - Keywords keep their CLDR casing in every locale (German nouns, "OK", "DVD"). A keyword identical
    to the label is now reliably left out of `tags`.
  - Fix the Hindi label for regional indicators, which was in Bengali.
- 789b533: Update dependencies to their latest versions, including TypeScript 6.0. The generator now requires
  Node.js 22 or newer.
- 29b2c8a: Fix the types failing to compile without the DOM library, such as in Node.js, because
  `FetchFromCDNOptions` extends `RequestInit`.

把这些数据交给你的 AI 智能体

Vigia 是免费的 MCP 服务器:你的编程智能体在写代码之前就能检查版本、不兼容变更和安全漏洞。无需注册,无需 API 密钥。

claude mcp add --transport http vigia https://vigia.coredls.cloud/mcp

添加到 Cursor添加到 VS Code★ 在 GitHub 上加星

任何其他 MCP 客户端
{ "mcpServers": { "vigia": { "url": "https://vigia.coredls.cloud/mcp" } } }

智能体技能(SKILL.md):告诉智能体何时使用 Vigia · 用于拉取请求的 GitHub Action

常见问题

将 emojibase 从 17 升级到 18 有哪些不兼容变更?

在 emojibase 17.0.0 与 18.0.0 之间,Vigia 发现 0 个已删除的导出、4 个已修改的签名,以及 0 个已删除或修改的类或接口成员。

emojibase 18 中弃用了哪些内容?

emojibase 18.0.0 中有 0 个导出或成员新被标记为弃用。

供智能体使用

GET https://vigia.coredls.cloud/v1/packages/npm/emojibase/upgrade?from=17.0.0&to=18.0.0