Skip to content

v5.0.0

Choose a tag to compare

@openedx-semantic-release-bot openedx-semantic-release-bot released this 14 Oct 03:23
· 3 commits to main since this release
Immutable release. Only release title and notes can be modified.
f6ba3d0

5.0.0 (2026-10-14)

BREAKING CHANGES

What a v4 consumer must change:

  • Mount SpecialExamsProvider above SequenceExamWrapper and OuterExamTimer, with config, httpClient, logError and isAuthenticated (all required). A frontend-platform host maps its own values; a frontend-base host passes its site config, whose keys already have these names:

    <SpecialExamsProvider
      config={{
        examsBaseUrl: getConfig().EXAMS_BASE_URL,
        lmsBaseUrl: getConfig().LMS_BASE_URL,
        siteName: getConfig().SITE_NAME,
        supportUrl: getConfig().SUPPORT_URL,
        contactUrl: getConfig().CONTACT_URL,
        proctoredExamFaqUrl: getConfig().PROCTORED_EXAM_FAQ_URL,
        proctoredExamRulesUrl: getConfig().PROCTORED_EXAM_RULES_URL,
      }}
      httpClient={getAuthenticatedHttpClient()}
      logError={logError}
      isAuthenticated={!!getAuthenticatedUser()}
    >
  • Stop mounting the reducer: the export is gone, and the library no longer needs a redux Provider. It does need react-intl's IntlProvider and @tanstack/react-query's QueryClientProvider above it, as both hosts already provide.

  • useExamAccessToken() returns { accessToken, isPending } instead of the token string; useFetchExamAccessToken is removed (reading the token is what fetches it). useIsExam() is unchanged.

  • The SubmittedTimedExamInstructions plugin slot is gone; pass a component as submittedTimedExamInstructions on SequenceExamWrapper (it receives timeIsOver). A host that wants a plugin slot there wraps its own slot in that component.

  • Peers: @tanstack/react-query ^5, react-intl ^6 || ^10, React ^18, Paragon ^23; @edx/frontend-platform, react-redux, redux, @reduxjs/toolkit, react-router and react-router-dom are no longer peers.

The README's Setup, Testing and Customization sections cover each.