Skip to content

chore(release): promote enabled-prop RC to stable#1038

Merged
kylemcd merged 5 commits into
mainfrom
rc
Jul 14, 2026
Merged

chore(release): promote enabled-prop RC to stable#1038
kylemcd merged 5 commits into
mainfrom
rc

Conversation

@kylemcd

@kylemcd kylemcd commented Jul 14, 2026

Copy link
Copy Markdown
Member

Promote the enabled-prop RC to a stable release

This merges the rc release train into main to cut the stable release of the KnockProvider enabled prop work (originally #1033 / KNO-14095), after it was validated on the rc dist-tag.

What ships (stable, latest tag)

Package RC (now) Stable (on merge)
@knocklabs/client 0.22.0-rc.0 0.22.0
@knocklabs/react 0.12.0-rc.0 0.12.0
@knocklabs/react-core 0.14.0-rc.0 0.14.0
@knocklabs/react-native 0.10.0-rc.0 0.10.0
@knocklabs/expo 0.7.0-rc.0 0.7.0

What merging this does

release.yml runs on the push to main, detects the branch is still in Changesets pre mode (.changeset/pre.json present), and auto-exits: it runs changeset pre exit + changeset version (collapsing the -rc.0 versions to their stable equivalents), commits the exit, and pushes. That follow-up push publishes the packages above to the latest npm tag.

Note: RELEASES.md still documents a manual changeset pre exit on rc before merging. That step is now handled automatically by the workflow's auto-exit (proven by 0ab51541 in main's history); doing it manually would just produce a spurious failed run on rc. Docs update tracked separately.

After merge

kylemcd and others added 3 commits July 10, 2026 14:08
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
@kylemcd
kylemcd requested a review from a team as a code owner July 14, 2026 14:38
@kylemcd
kylemcd requested review from BenaventeX24 and thomaswhyyou and removed request for a team July 14, 2026 14:38
@changeset-bot

changeset-bot Bot commented Jul 14, 2026

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: 703d5bf

The changes in this PR will be included in the next version bump.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@vercel

vercel Bot commented Jul 14, 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 14, 2026 4:49pm
javascript-nextjs-example Ready Ready Preview, Comment Jul 14, 2026 4:49pm
javascript-slack-connect-example Ready Ready Preview, Comment Jul 14, 2026 4:49pm
javascript-slack-kit-example Ready Ready Preview, Comment Jul 14, 2026 4:49pm

Request Review

@codecov

codecov Bot commented Jul 14, 2026

Copy link
Copy Markdown

Bundle Report

Changes will increase total bundle size by 11.97kB (2.13%) ⬆️. This is within the configured threshold ✅

Detailed changes
Bundle name Size Change
@knocklabs/react-core-react-core-cjs 38.05kB 1.6kB (4.4%) ⬆️
@knocklabs/react-react-esm 117.11kB 52 bytes (0.04%) ⬆️
@knocklabs/expo-expo-cjs 7.58kB 172 bytes (2.32%) ⬆️
@knocklabs/expo-expo-esm 8.18kB 258 bytes (3.26%) ⬆️
@knocklabs/react-react-cjs 107.02kB 95 bytes (0.09%) ⬆️
@knocklabs/client-client-esm 87.0kB 5.02kB (6.12%) ⬆️
@knocklabs/react-core-react-core-esm 43.38kB 1.82kB (4.39%) ⬆️
@knocklabs/client-client-cjs 63.38kB 2.95kB (4.89%) ⬆️

Affected Assets, Files, and Routes:

view changes for bundle: @knocklabs/react-core-react-core-cjs

Assets Changed:

Asset Name Size Change Total Size Change (%)
index.js 101 bytes 3.82kB 2.72%
modules/slack/hooks/useSlackAuth.js 33 bytes 1.71kB 1.97%
modules/slack/hooks/useSlackChannels.js 33 bytes 1.69kB 1.99%
modules/ms-*.js 33 bytes 1.41kB 2.4%
modules/ms-*.js 33 bytes 1.15kB 2.96%
modules/ms-*.js 33 bytes 1.25kB 2.7%
modules/ms-*.js 49 bytes 1.52kB 3.34%
modules/ms-*.js 235 bytes 1.21kB 24.1% ⚠️
modules/ms-*.js 33 bytes 1.63kB 2.07%
modules/slack/context/KnockSlackProvider.js 49 bytes 1.55kB 3.27%
modules/guide/context/KnockGuideProvider.js 33 bytes 1.42kB 2.38%
modules/slack/hooks/useConnectedSlackChannels.js 33 bytes 1.4kB 2.42%
modules/slack/hooks/useSlackConnectionStatus.js 235 bytes 1.36kB 20.8% ⚠️
modules/core/context/KnockProvider.js 55 bytes 1.3kB 4.41%
modules/feed/context/KnockFeedProvider.js 33 bytes 1.29kB 2.62%
modules/core/hooks/useAuthenticatedKnockClient.js 164 bytes 1.09kB 17.71% ⚠️
modules/core/utils.js 22 bytes 1.09kB 2.07%
modules/preferences/hooks/usePreferences.js 33 bytes 884 bytes 3.88%
modules/feed/hooks/useNotifications.js 33 bytes 695 bytes 4.98%
modules/feed/hooks/useFeedSettings.js 37 bytes 548 bytes 7.24% ⚠️
modules/core/hooks/useKnockAuthState.js (New) 292 bytes 292 bytes 100.0% 🚀
view changes for bundle: @knocklabs/react-react-cjs

Assets Changed:

Asset Name Size Change Total Size Change (%)
index.js 95 bytes 7.68kB 1.25%
view changes for bundle: @knocklabs/expo-expo-cjs

Assets Changed:

Asset Name Size Change Total Size Change (%)
modules/push/KnockExpoPushNotificationProvider.js 172 bytes 2.79kB 6.56% ⚠️
view changes for bundle: @knocklabs/client-client-cjs

Assets Changed:

Asset Name Size Change Total Size Change (%)
clients/guide/client.js 687 bytes 18.35kB 3.89%
clients/feed/feed.js 634 bytes 10.74kB 6.27% ⚠️
api.js 4 bytes 5.35kB 0.07%
knock.js 714 bytes 4.27kB 20.07% ⚠️
clients/ms-*.js 441 bytes 2.38kB 22.79% ⚠️
clients/slack/index.js 296 bytes 1.89kB 18.55% ⚠️
clients/messages/index.js 128 bytes 1.62kB 8.55% ⚠️
clients/feed/index.js 50 bytes 1.21kB 4.33%

Files in clients/guide/client.js:

  • ./src/clients/guide/client.ts → Total Size: 30.22kB

Files in clients/feed/feed.js:

  • ./src/clients/feed/feed.ts → Total Size: 18.21kB

Files in clients/ms-*.js:

  • ./src/clients/ms-teams/index.ts → Total Size: 3.21kB

Files in clients/slack/index.js:

  • ./src/clients/slack/index.ts → Total Size: 2.4kB

Files in clients/messages/index.js:

  • ./src/clients/messages/index.ts → Total Size: 2.0kB

Files in clients/feed/index.js:

  • ./src/clients/feed/index.ts → Total Size: 1.22kB
view changes for bundle: @knocklabs/react-react-esm

Assets Changed:

Asset Name Size Change Total Size Change (%)
index.mjs 52 bytes 6.12kB 0.86%
view changes for bundle: @knocklabs/react-core-react-core-esm

Assets Changed:

Asset Name Size Change Total Size Change (%)
index.mjs 113 bytes 4.2kB 2.76%
modules/slack/hooks/useSlackAuth.mjs 32 bytes 2.11kB 1.54%
modules/slack/hooks/useSlackChannels.mjs 32 bytes 2.06kB 1.58%
modules/ms-*.mjs 32 bytes 1.93kB 1.69%
modules/ms-*.mjs 32 bytes 1.6kB 2.04%
modules/ms-*.mjs 32 bytes 2.01kB 1.62%
modules/ms-*.mjs 32 bytes 1.38kB 2.37%
modules/ms-*.mjs 54 bytes 1.39kB 4.05%
modules/ms-*.mjs 333 bytes 1.68kB 24.78% ⚠️
modules/slack/hooks/useSlackConnectionStatus.mjs 333 bytes 1.92kB 20.98% ⚠️
modules/slack/hooks/useConnectedSlackChannels.mjs 32 bytes 1.9kB 1.71%
modules/slack/context/KnockSlackProvider.mjs 54 bytes 1.52kB 3.68%
modules/guide/context/KnockGuideProvider.mjs 32 bytes 1.37kB 2.4%
modules/core/utils.mjs 32 bytes 1.25kB 2.64%
modules/core/hooks/useAuthenticatedKnockClient.mjs 220 bytes 1.23kB 21.7% ⚠️
modules/core/context/KnockProvider.mjs 65 bytes 1.14kB 6.02% ⚠️
modules/feed/hooks/useNotifications.mjs 32 bytes 1.1kB 3.0%
modules/feed/context/KnockFeedProvider.mjs 32 bytes 1.08kB 3.05%
modules/preferences/hooks/usePreferences.mjs 32 bytes 926 bytes 3.58%
modules/feed/hooks/useFeedSettings.mjs 60 bytes 751 bytes 8.68% ⚠️
modules/core/hooks/useKnockAuthState.mjs (New) 208 bytes 208 bytes 100.0% 🚀
view changes for bundle: @knocklabs/client-client-esm

Assets Changed:

Asset Name Size Change Total Size Change (%)
clients/guide/client.mjs 825 bytes 25.35kB 3.36%
clients/feed/feed.mjs 1.11kB 15.65kB 7.61% ⚠️
api.mjs 4 bytes 8.07kB 0.05%
knock.mjs 1.88kB 6.6kB 39.77% ⚠️
clients/ms-*.mjs 545 bytes 3.05kB 21.79% ⚠️
clients/slack/index.mjs 367 bytes 2.4kB 18.07% ⚠️
clients/messages/index.mjs 158 bytes 1.99kB 8.62% ⚠️
clients/feed/index.mjs 132 bytes 1.45kB 10.05% ⚠️

Files in clients/guide/client.mjs:

  • ./src/clients/guide/client.ts → Total Size: 30.04kB

Files in clients/feed/feed.mjs:

  • ./src/clients/feed/feed.ts → Total Size: 18.06kB

Files in clients/ms-*.mjs:

  • ./src/clients/ms-teams/index.ts → Total Size: 3.17kB

Files in clients/slack/index.mjs:

  • ./src/clients/slack/index.ts → Total Size: 2.37kB

Files in clients/messages/index.mjs:

  • ./src/clients/messages/index.ts → Total Size: 2.0kB

Files in clients/feed/index.mjs:

  • ./src/clients/feed/index.ts → Total Size: 1.2kB
view changes for bundle: @knocklabs/expo-expo-esm

Assets Changed:

Asset Name Size Change Total Size Change (%)
modules/push/KnockExpoPushNotificationProvider.mjs 258 bytes 3.62kB 7.67% ⚠️

@kylemcd
kylemcd requested a review from cjbell July 14, 2026 14:40

@cursor cursor Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Cursor Bugbot has reviewed your changes using default effort and found 1 potential issue.

Fix All in Cursor

❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.

Reviewed by Cursor Bugbot for commit 4d300f3. Configure here.

The auto-register effect gated on isAuthenticated but not the signed-in
userId. Switching users on the same KnockProvider re-auths the same Knock
instance (isAuthenticated never flips), so the effect never re-ran and the
device token stayed bound to the previous user's channel data. Add userId
to the effect deps so a switch re-registers for the new user. Mirrors the
Slack/Teams authCheck-on-user-switch fix already in this release.

Addresses the Cursor BugBot finding on #1038 (KNO-14229).
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
@codecov

codecov Bot commented Jul 14, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 66.02%. Comparing base (7965bc6) to head (703d5bf).
⚠️ Report is 1 commits behind head on main.
✅ All tests successful. No failed tests found.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1038      +/-   ##
==========================================
+ Coverage   64.71%   66.02%   +1.31%     
==========================================
  Files         212      213       +1     
  Lines       10275    10500     +225     
  Branches     1406     1509     +103     
==========================================
+ Hits         6649     6933     +284     
+ Misses       3601     3542      -59     
  Partials       25       25              
Files with missing lines Coverage Δ
packages/client/src/clients/feed/feed.ts 83.45% <100.00%> (+1.95%) ⬆️
packages/client/src/clients/feed/index.ts 100.00% <100.00%> (ø)
packages/client/src/clients/guide/client.ts 95.66% <100.00%> (+1.36%) ⬆️
packages/client/src/clients/messages/index.ts 100.00% <100.00%> (ø)
packages/client/src/clients/ms-teams/index.ts 100.00% <100.00%> (ø)
packages/client/src/clients/slack/index.ts 100.00% <100.00%> (ø)
packages/client/src/knock.ts 100.00% <100.00%> (ø)
...modules/push/KnockExpoPushNotificationProvider.tsx 96.40% <100.00%> (+0.22%) ⬆️
packages/react-core/src/index.ts 100.00% <ø> (ø)
...ct-core/src/modules/core/context/KnockProvider.tsx 96.42% <100.00%> (+0.20%) ⬆️
... and 12 more

@kylemcd
kylemcd merged commit e8567eb into main Jul 14, 2026
14 checks passed
@kylemcd
kylemcd deleted the rc branch July 14, 2026 20:04
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.

Feature request: Add enabled prop to KnockProvider

3 participants