Skip to content

chore(repo): version packages for rc (rc)#1034

Merged
kylemcd merged 1 commit into
rcfrom
changeset-release/rc
Jul 10, 2026
Merged

chore(repo): version packages for rc (rc)#1034
kylemcd merged 1 commit into
rcfrom
changeset-release/rc

Conversation

@knock-eng-bot

Copy link
Copy Markdown
Contributor

This PR was opened by the Changesets release GitHub action. When you're ready to do a release, you can merge this and the packages will be published to npm automatically. If you're not ready to do a release yet, that's fine, whenever you add more changesets to rc, this PR will be updated.

⚠️⚠️⚠️⚠️⚠️⚠️

rc is currently in pre mode so this branch has prereleases rather than normal releases. If you want to exit prereleases, run changeset pre exit on rc.

⚠️⚠️⚠️⚠️⚠️⚠️

Releases

@knocklabs/client@0.22.0-rc.0

Minor Changes

  • d2f7948: Make the client do nothing (instead of throwing or making requests) when there's no signed-in user, and add tools to manage sign-in state.

    • New Knock.logout() clears the user and disconnects everything: the websocket, the token-refresh timer, and the page-visibility listener.
    • New knock.authStatus ("authenticated" or "unauthenticated") and a subscribable knock.authStore to check or react to whether a user is signed in.
    • With no signed-in user, these now do nothing instead of throwing or calling the API:
      • Feed markAs* / markAll* / fetchNextPage (they also skip the optimistic UI update).
      • Guides fetch / subscribe and the step actions. These previously threw, which could crash the app when Guides rendered before a user was set.
      • Slack/MS Teams authCheck (returns "not connected"), getChannels / getTeams (return empty), and messages.batchUpdateStatuses (returns []).
    • Fixes two Guide bugs: real-time updates broke after a re-login (a stale socket reference), and the history patch used for location tracking broke when a Guide provider remounted.

@knocklabs/expo@0.7.0-rc.0

Minor Changes

  • d2f7948: Add an enabled prop to KnockProvider (and an enabled option to useAuthenticatedKnockClient).

    When enabled is false, the provider still renders its children but the Knock client sits idle: no identify call, no API requests, no websocket. Set it to true and it connects like a login; set it back to false and it disconnects and clears its data like a logout. It defaults to true, so existing code is unaffected.

    Use this instead of conditionally mounting KnockProvider, for example to wait for a user token that loads asynchronously:

    <KnockProvider
      apiKey={apiKey}
      user={{ id: userId }}
      userToken={userToken}
      enabled={Boolean(userId && userToken)}
    />

    Also fixed:

    • useFeedSettings no longer calls GET /v1/users/undefined/feeds/.../settings when there's no user.
    • KnockProvider now disconnects its client (websocket, token-refresh timer, listener) when it unmounts, instead of leaving them running.
  • d2f7948: Add useKnockAuthState() and make Slack, MS Teams, and Expo respond to sign-in changes.

    • New useKnockAuthState(knock) hook re-renders when the user signs in, signs out, or switches.
    • Slack and MS Teams connection status now re-checks when the user changes, instead of checking once and sticking with that result.
    • Expo waits for a signed-in user before registering for push notifications, so logged-out users don't see the OS permission prompt. A notification tapped while logged out no longer tries to update its status.

Patch Changes

  • Updated dependencies [d2f7948]
  • Updated dependencies [d2f7948]
  • Updated dependencies [d2f7948]
    • @knocklabs/client@0.22.0-rc.0
    • @knocklabs/react-core@0.14.0-rc.0
    • @knocklabs/react-native@0.10.0-rc.0

@knocklabs/react@0.12.0-rc.0

Minor Changes

  • d2f7948: Add an enabled prop to KnockProvider (and an enabled option to useAuthenticatedKnockClient).

    When enabled is false, the provider still renders its children but the Knock client sits idle: no identify call, no API requests, no websocket. Set it to true and it connects like a login; set it back to false and it disconnects and clears its data like a logout. It defaults to true, so existing code is unaffected.

    Use this instead of conditionally mounting KnockProvider, for example to wait for a user token that loads asynchronously:

    <KnockProvider
      apiKey={apiKey}
      user={{ id: userId }}
      userToken={userToken}
      enabled={Boolean(userId && userToken)}
    />

    Also fixed:

    • useFeedSettings no longer calls GET /v1/users/undefined/feeds/.../settings when there's no user.
    • KnockProvider now disconnects its client (websocket, token-refresh timer, listener) when it unmounts, instead of leaving them running.
  • d2f7948: Add useKnockAuthState() and make Slack, MS Teams, and Expo respond to sign-in changes.

    • New useKnockAuthState(knock) hook re-renders when the user signs in, signs out, or switches.
    • Slack and MS Teams connection status now re-checks when the user changes, instead of checking once and sticking with that result.
    • Expo waits for a signed-in user before registering for push notifications, so logged-out users don't see the OS permission prompt. A notification tapped while logged out no longer tries to update its status.

Patch Changes

  • Updated dependencies [d2f7948]
  • Updated dependencies [d2f7948]
  • Updated dependencies [d2f7948]
    • @knocklabs/client@0.22.0-rc.0
    • @knocklabs/react-core@0.14.0-rc.0

@knocklabs/react-core@0.14.0-rc.0

Minor Changes

  • d2f7948: Add an enabled prop to KnockProvider (and an enabled option to useAuthenticatedKnockClient).

    When enabled is false, the provider still renders its children but the Knock client sits idle: no identify call, no API requests, no websocket. Set it to true and it connects like a login; set it back to false and it disconnects and clears its data like a logout. It defaults to true, so existing code is unaffected.

    Use this instead of conditionally mounting KnockProvider, for example to wait for a user token that loads asynchronously:

    <KnockProvider
      apiKey={apiKey}
      user={{ id: userId }}
      userToken={userToken}
      enabled={Boolean(userId && userToken)}
    />

    Also fixed:

    • useFeedSettings no longer calls GET /v1/users/undefined/feeds/.../settings when there's no user.
    • KnockProvider now disconnects its client (websocket, token-refresh timer, listener) when it unmounts, instead of leaving them running.
  • d2f7948: Add useKnockAuthState() and make Slack, MS Teams, and Expo respond to sign-in changes.

    • New useKnockAuthState(knock) hook re-renders when the user signs in, signs out, or switches.
    • Slack and MS Teams connection status now re-checks when the user changes, instead of checking once and sticking with that result.
    • Expo waits for a signed-in user before registering for push notifications, so logged-out users don't see the OS permission prompt. A notification tapped while logged out no longer tries to update its status.

Patch Changes

  • Updated dependencies [d2f7948]
    • @knocklabs/client@0.22.0-rc.0

@knocklabs/react-native@0.10.0-rc.0

Minor Changes

  • d2f7948: Add an enabled prop to KnockProvider (and an enabled option to useAuthenticatedKnockClient).

    When enabled is false, the provider still renders its children but the Knock client sits idle: no identify call, no API requests, no websocket. Set it to true and it connects like a login; set it back to false and it disconnects and clears its data like a logout. It defaults to true, so existing code is unaffected.

    Use this instead of conditionally mounting KnockProvider, for example to wait for a user token that loads asynchronously:

    <KnockProvider
      apiKey={apiKey}
      user={{ id: userId }}
      userToken={userToken}
      enabled={Boolean(userId && userToken)}
    />

    Also fixed:

    • useFeedSettings no longer calls GET /v1/users/undefined/feeds/.../settings when there's no user.
    • KnockProvider now disconnects its client (websocket, token-refresh timer, listener) when it unmounts, instead of leaving them running.
  • d2f7948: Add useKnockAuthState() and make Slack, MS Teams, and Expo respond to sign-in changes.

    • New useKnockAuthState(knock) hook re-renders when the user signs in, signs out, or switches.
    • Slack and MS Teams connection status now re-checks when the user changes, instead of checking once and sticking with that result.
    • Expo waits for a signed-in user before registering for push notifications, so logged-out users don't see the OS permission prompt. A notification tapped while logged out no longer tries to update its status.

Patch Changes

  • Updated dependencies [d2f7948]
  • Updated dependencies [d2f7948]
  • Updated dependencies [d2f7948]
    • @knocklabs/client@0.22.0-rc.0
    • @knocklabs/react-core@0.14.0-rc.0

client-example@0.3.60-rc.0

Patch Changes

  • Updated dependencies [d2f7948]
    • @knocklabs/client@0.22.0-rc.0

@knocklabs/expo-example@1.1.10-rc.0

Patch Changes

  • Updated dependencies [d2f7948]
  • Updated dependencies [d2f7948]
    • @knocklabs/expo@0.7.0-rc.0

guide-example@0.0.85-rc.0

Patch Changes

  • Updated dependencies [d2f7948]
  • Updated dependencies [d2f7948]
  • Updated dependencies [d2f7948]
    • @knocklabs/client@0.22.0-rc.0
    • @knocklabs/react@0.12.0-rc.0

ms-teams-connect-example@0.0.72-rc.0

Patch Changes

  • Updated dependencies [d2f7948]
  • Updated dependencies [d2f7948]
    • @knocklabs/react@0.12.0-rc.0

nextjs-app-dir-example@0.0.71-rc.0

Patch Changes

  • Updated dependencies [d2f7948]
  • Updated dependencies [d2f7948]
    • @knocklabs/react@0.12.0-rc.0

nextjs-example@1.2.37-rc.0

Patch Changes

  • Updated dependencies [d2f7948]
  • Updated dependencies [d2f7948]
    • @knocklabs/react@0.12.0-rc.0

slack-connect-example@0.3.71-rc.0

Patch Changes

  • Updated dependencies [d2f7948]
  • Updated dependencies [d2f7948]
    • @knocklabs/react@0.12.0-rc.0

slack-kit-example@0.4.69-rc.0

Patch Changes

  • Updated dependencies [d2f7948]
  • Updated dependencies [d2f7948]
    • @knocklabs/react@0.12.0-rc.0

@knock-eng-bot knock-eng-bot requested a review from a team as a code owner July 10, 2026 19:12
@knock-eng-bot knock-eng-bot requested review from kylemcd and meryldakin and removed request for a team July 10, 2026 19:12
@vercel

vercel Bot commented Jul 10, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
javascript-ms-teams-connect-example Ready Ready Preview, Comment Jul 10, 2026 7:14pm
javascript-nextjs-example Ready Ready Preview, Comment Jul 10, 2026 7:14pm
javascript-slack-connect-example Ready Ready Preview, Comment Jul 10, 2026 7:14pm
javascript-slack-kit-example Ready Ready Preview, Comment Jul 10, 2026 7:14pm

Request Review

@kylemcd kylemcd left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

RC version bumps look correct (0.22.0-rc.0 line, rc dist-tag).

@codecov

codecov Bot commented Jul 10, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
⚠️ Please upload report for BASE (rc@d2f7948). Learn more about missing BASE report.
✅ All tests successful. No failed tests found.

Additional details and impacted files
@@          Coverage Diff          @@
##             rc    #1034   +/-   ##
=====================================
  Coverage      ?   66.02%           
=====================================
  Files         ?      213           
  Lines         ?    10499           
  Branches      ?     1509           
=====================================
  Hits          ?     6932           
  Misses        ?     3542           
  Partials      ?       25           

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants