Skip to content

chore(release): v2.24.0 - #1198

Merged
gyaneshgouraw-okta merged 1 commit into
mainfrom
release/v2.24.0
Aug 12, 2026
Merged

chore(release): v2.24.0#1198
gyaneshgouraw-okta merged 1 commit into
mainfrom
release/v2.24.0

Conversation

@gyaneshgouraw-okta

@gyaneshgouraw-okta gyaneshgouraw-okta commented Aug 12, 2026

Copy link
Copy Markdown
Contributor

Added

Summary by CodeRabbit

  • New Features

    • Added API documentation for useAuth0Suspense and its suspense context type, including usage guidance and React 19 requirements.
    • Added the new API to the documentation index and search navigation.
  • Documentation

    • Refreshed generated API references, hierarchy links, source links, and search data for accuracy.
    • Updated documentation metadata across authentication, MFA, passkey, popup, and configuration APIs.
  • Chores

    • Bumped the package version to 2.24.0.

@gyaneshgouraw-okta
gyaneshgouraw-okta requested a review from a team as a code owner August 12, 2026 09:18
@coderabbitai

coderabbitai Bot commented Aug 12, 2026

Copy link
Copy Markdown
Contributor

Review Change Stack

📝 Walkthrough

Walkthrough

The release version changed to 2.24.0. Generated documentation now includes useAuth0Suspense, updated source links, refreshed hierarchy identifiers, and regenerated navigation, hierarchy, and search assets.

Changes

Version 2.24.0 documentation

Layer / File(s) Summary
New Suspense API documentation
package.json, .version, docs/functions/useAuth0Suspense.html, docs/types/Auth0SuspenseContextInterface.html, docs/index.html
The release version changed to 2.24.0. Generated documentation and API navigation now include useAuth0Suspense and Auth0SuspenseContextInterface.
Generated source reference updates
docs/classes/*, docs/functions/*, docs/interfaces/*, docs/types/*, docs/variables/*
Generated documentation links now reference the newer source revision and current source locations.
Hierarchy and asset regeneration
docs/hierarchy.html, docs/assets/*
Generated reflection identifiers and serialized hierarchy, navigation, and search data were refreshed.

Estimated code review effort: 1 (Trivial) | ~5 minutes

Possibly related PRs

Suggested reviewers: yogeshchoudhary147

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title clearly identifies the version 2.24.0 release, which matches the primary objective and changeset.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
✨ Finishing Touches
📝 Generate docstrings
  • Create stacked PR
  • Commit on current branch
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch release/v2.24.0

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Actionable comments posted: 1

🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

Inline comments:
In `@docs/functions/useAuth0Suspense.html`:
- Around line 18-24: Update the useAuth0Suspense documentation example to
include an Auth0Provider surrounding the Suspense and Profile components, or
state that an existing provider is required immediately before the example.
Apply the change in the source documentation for useAuth0Suspense and regenerate
the corresponding HTML output so both remain consistent.
🪄 Autofix

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro Plus

Run ID: f75d9b54-1e55-4517-bdbe-862e61949f03

📥 Commits

Reviewing files that changed from the base of the PR and between b357ff7 and ef7afb6.

⛔ Files ignored due to path filters (2)
  • CHANGELOG.md is excluded by !CHANGELOG.md
  • package-lock.json is excluded by !**/package-lock.json
📒 Files selected for processing (56)
  • .version
  • docs/assets/hierarchy.js
  • docs/assets/navigation.js
  • docs/assets/search.js
  • docs/classes/AuthenticationError.html
  • docs/classes/ConnectError.html
  • docs/classes/GenericError.html
  • docs/classes/InvalidConfigurationError.html
  • docs/classes/MfaChallengeError.html
  • docs/classes/MfaEnrollmentError.html
  • docs/classes/MfaEnrollmentFactorsError.html
  • docs/classes/MfaError.html
  • docs/classes/MfaListAuthenticatorsError.html
  • docs/classes/MfaRequiredError.html
  • docs/classes/MfaVerifyError.html
  • docs/classes/MissingRefreshTokenError.html
  • docs/classes/MissingScopesError.html
  • docs/classes/MyAccountApiError.html
  • docs/classes/OAuthError.html
  • docs/classes/PasskeyChallengeError.html
  • docs/classes/PasskeyError.html
  • docs/classes/PasskeyGetTokenError.html
  • docs/classes/PasskeyRegisterError.html
  • docs/classes/PopupCancelledError.html
  • docs/classes/PopupOpenError.html
  • docs/classes/PopupTimeoutError.html
  • docs/classes/TimeoutError.html
  • docs/classes/UseDpopNonceError.html
  • docs/functions/Auth0Provider.html
  • docs/functions/useAuth0.html
  • docs/functions/useAuth0Suspense.html
  • docs/functions/withAuth0.html
  • docs/functions/withAuthenticationRequired.html
  • docs/hierarchy.html
  • docs/index.html
  • docs/interfaces/Auth0ContextInterface.html
  • docs/interfaces/EnrollEmailParams.html
  • docs/interfaces/EnrollOtpParams.html
  • docs/interfaces/EnrollPushParams.html
  • docs/interfaces/EnrollSmsParams.html
  • docs/interfaces/EnrollVoiceParams.html
  • docs/interfaces/GetTokenWithPopupOptions.html
  • docs/interfaces/LogoutOptions.html
  • docs/interfaces/PopupLoginOptions.html
  • docs/interfaces/RedirectLoginOptions.html
  • docs/interfaces/WithAuth0Props.html
  • docs/interfaces/WithAuthenticationRequiredOptions.html
  • docs/modules.html
  • docs/types/AppState.html
  • docs/types/Auth0ProviderOptions.html
  • docs/types/Auth0ProviderWithClientOptions.html
  • docs/types/Auth0ProviderWithConfigOptions.html
  • docs/types/Auth0SuspenseContextInterface.html
  • docs/types/ConnectedAccount.html
  • docs/variables/Auth0Context.html
  • package.json

Comment on lines +18 to +24
<div class="tsd-comment tsd-typography"><pre><code class="jsx"><span class="hl-8">&lt;</span><span class="hl-9">Suspense</span><span class="hl-1"> </span><span class="hl-10">fallback</span><span class="hl-1">=</span><span class="hl-6">{</span><span class="hl-8">&lt;</span><span class="hl-9">Spinner</span><span class="hl-11"> </span><span class="hl-8">/&gt;</span><span class="hl-6">}</span><span class="hl-8">&gt;</span><br/><span class="hl-1"> </span><span class="hl-8">&lt;</span><span class="hl-9">Profile</span><span class="hl-1"> </span><span class="hl-8">/&gt;</span><br/><span class="hl-8">&lt;/</span><span class="hl-9">Suspense</span><span class="hl-8">&gt;</span><br/><br/><span class="hl-6">function</span><span class="hl-1"> </span><span class="hl-0">Profile</span><span class="hl-1">() {</span><br/><span class="hl-1"> </span><span class="hl-6">const</span><span class="hl-1"> { </span><span class="hl-7">user</span><span class="hl-1">, </span><span class="hl-7">isAuthenticated</span><span class="hl-1"> } = </span><span class="hl-0">useAuth0Suspense</span><span class="hl-1">();</span><br/><span class="hl-1"> </span><span class="hl-4">return</span><span class="hl-1"> </span><span class="hl-5">isAuthenticated</span><span class="hl-1"> ? </span><span class="hl-8">&lt;</span><span class="hl-12">p</span><span class="hl-8">&gt;</span><span class="hl-1">Hello </span><span class="hl-6">{</span><span class="hl-5">user</span><span class="hl-11">.</span><span class="hl-5">name</span><span class="hl-6">}</span><span class="hl-8">&lt;/</span><span class="hl-12">p</span><span class="hl-8">&gt;</span><span class="hl-1"> : </span><span class="hl-8">&lt;</span><span class="hl-12">p</span><span class="hl-8">&gt;</span><span class="hl-1">Please log in</span><span class="hl-8">&lt;/</span><span class="hl-12">p</span><span class="hl-8">&gt;</span><span class="hl-1">;</span><br/><span class="hl-1">}</span>
</code><button type="button">Copy</button></pre>

<p>Suspense-enabled variant of <code>useAuth0</code>. Suspends the component until Auth0
initialization completes (letting the nearest <code>&lt;Suspense&gt;</code> fallback render),
and throws initialization errors so the nearest Error Boundary can handle
them. Requires React 19 or later.</p>

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

🎯 Functional Correctness | 🟡 Minor | ⚡ Quick win

Show the required Auth0Provider in the example.

useAuth0Suspense throws when ctx._initPromise is absent. The supplied implementation in src/use-auth0-suspense.tsx, Lines 41-69, requires an <Auth0Provider>, but this sample shows only <Suspense>. A reader who copies the sample without an existing provider receives a runtime error. Add the provider prerequisite to the sample or state it immediately before the sample. Update the source documentation and regenerate this HTML file.

Source contract: src/use-auth0-suspense.tsx, Lines 41-69.

🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@docs/functions/useAuth0Suspense.html` around lines 18 - 24, Update the
useAuth0Suspense documentation example to include an Auth0Provider surrounding
the Suspense and Profile components, or state that an existing provider is
required immediately before the example. Apply the change in the source
documentation for useAuth0Suspense and regenerate the corresponding HTML output
so both remain consistent.

@gyaneshgouraw-okta
gyaneshgouraw-okta merged commit 6ce3ab6 into main Aug 12, 2026
18 checks passed
@gyaneshgouraw-okta
gyaneshgouraw-okta deleted the release/v2.24.0 branch August 12, 2026 11:08
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