Skip to content

v4.4.1 — pin web/RN UI Kit majors (v7-safe)

Latest

Choose a tag to compare

@swapnil-cometchat swapnil-cometchat released this 22 Jun 08:17

@cometchat/skills v4.4.1

Release date: 2026-06-22
Previous release: v4.4.0

The headline: a v7-safety patch — every web and React Native install command now pins its UI Kit and SDK major version, so v6 integrations keep building the day React UI Kit v7 publishes to npm latest.

Fixes

  • Pinned the UI Kit and SDK major versions in every web and React Native install command. The skills previously emitted unversioned installs (e.g. npm install @cometchat/chat-uikit-react @cometchat/chat-sdk-javascript), which resolve to the npm latest tag — so the day React UI Kit v7 is published, a fresh install would pull v7 while the skills still teach v6 APIs, silently breaking generated integrations. Every web and React Native install command now pins its major:

    • @cometchat/chat-uikit-react@^6
    • @cometchat/chat-sdk-javascript@^4
    • @cometchat/chat-uikit-react-native@^5
    • @cometchat/chat-sdk-react-native@^4
    • @cometchat/calls-sdk-react-native@^5
    • @cometchat/calls-sdk-javascript@^5

    Android, Flutter, and iOS already pinned their majors and are unchanged. When the v7 skills land, these bump to @^7 in the same change — a deliberate, reviewed jump instead of a silent break. The web install sections also carry an explicit guard — keep the @^6 pin, never install bare — so the agent reliably emits the pinned command (and v7, already on npm, is never pulled as latest).

  • Fixed two CometChatUIKit.init(...).then(...) examples that failed strict TypeScript. init() returns Promise<…> | undefined, so chaining .then() on it directly trips strictNullChecks (TS2532). The Angular patterns example now coalesces — (CometChatUIKit.init(settings) ?? Promise.resolve()).then(...) — and the i18n React example uses optional chaining — CometChatUIKit.init(settings)?.then(...) — bringing both in line with the core skills.

Compatibility

  • No API or behavior changes. Existing integrations are unaffected — only the version specifier in newly generated install commands changes.
  • Pins resolve to the current GA majors: chat-uikit-react@^6 → 6.5.2, chat-sdk-javascript@^4 → 4.1.11, chat-uikit-react-native@^5 → 5.3.8.

Install

npx @cometchat/skills add

Then, in your IDE:

/cometchat add chat to my app

The dispatcher detects your framework, walks you through account setup and placement, and scaffolds the integration — now with major-pinned install commands.

Upgrading from v4.4.0

npm install @cometchat/skills@latest
# or, in a fresh project:
npx @cometchat/skills@4.4.1 add

Existing integrations continue to function without modification — the change affects only the version specifier in newly generated install commands. Rerunning /cometchat against an existing integration safely detects previously generated files and prompts before applying changes.