Skip to content

feat(clerk-js): Send FAPI version through URLSearchParams - #4457

Merged
jacekradko merged 14 commits into
mainfrom
feat/send-api-version
Nov 7, 2024
Merged

feat(clerk-js): Send FAPI version through URLSearchParams#4457
jacekradko merged 14 commits into
mainfrom
feat/send-api-version

Conversation

@jacekradko

Copy link
Copy Markdown
Contributor

Description

We need to pass the FAPI version as a query param

Checklist

  • npm test runs as expected.
  • npm run build runs as expected.
  • (If applicable) JSDoc comments have been added or updated for any package exports
  • (If applicable) Documentation has been updated

Type of change

  • 🐛 Bug fix
  • 🌟 New feature
  • 🔨 Breaking change
  • 📖 Refactoring / dependency upgrade / documentation
  • other:

@jacekradko
jacekradko requested a review from brkalow November 1, 2024 20:15
@changeset-bot

changeset-bot Bot commented Nov 1, 2024

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: 719394d

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

This PR includes changesets to release 3 packages
Name Type
@clerk/clerk-js Minor
@clerk/chrome-extension Patch
@clerk/clerk-expo Patch

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

@jacekradko jacekradko changed the title feat(clerk-js): send FAPI version through URLSearchParams feat(clerk-js): Send FAPI version through URLSearchParams Nov 1, 2024
@jacekradko
jacekradko marked this pull request as ready for review November 1, 2024 20:32
Comment thread packages/clerk-js/src/core/fapiClient.ts
Comment thread packages/clerk-js/src/core/constants.ts Outdated
};

// This is the currently support version of the Frontend API
export const SUPPORTED_FAPI_VERSION = '2024-10-01';

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.

I'm curious about FAPI versioning and keeping types in sync. The types package version and which FAPI version they represent.

Comment thread packages/clerk-js/src/core/__tests__/fapiClient.test.ts Outdated
@jacekradko
jacekradko merged commit e91a2bd into main Nov 7, 2024
@jacekradko
jacekradko deleted the feat/send-api-version branch November 7, 2024 17:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants