Open deepjyoti30-st opened 3 days ago
Name | Link |
---|---|
Latest commit | e95edd3f434db9af63b96af9005d5db49b3ead15 |
Latest deploy log | https://app.netlify.com/sites/precious-marshmallow-968a81/deploys/66fb8f7ae32a2800084dba82 |
Name | Link |
---|---|
Latest commit | e95edd3f434db9af63b96af9005d5db49b3ead15 |
Latest deploy log | https://app.netlify.com/sites/astounding-pegasus-21c111/deploys/66fb8f7ada6b9f00088c9fe9 |
Latest commit: |
3c10516
|
Status: | ✅ Deploy successful! |
Preview URL: | https://acd467c6.supertokens-node-b95.pages.dev |
Summary of change
This PR replicates fastify types that are used in the SDK to avoid type mismatches through different versions of fastify. This was as reported by an user on discord (and later on reproduced locally by using the sdk with fastify 5.x)
This also updates the fastify example to test with the newly added changes. The fastify version was bumped to 5.x and as a result some other dependencies (like typescript, formbody, cors) had to be updated.
Another thing to note is, react-scripts is a dependency of the fastify example's frontend code and it had a TS version related conflict with latest fastify requirements so I moved it to be a dependency of frontend directory and added a
preinstall
script to install this dependency whennpm i
is run.Related issues
Test Plan
Fastify example tests should pass.
Documentation changes
(If relevant, please create a PR in our docs repo, or create a checklist here highlighting the necessary changes)
Checklist for important updates
coreDriverInterfaceSupported.json
file has been updated (if needed)lib/ts/version.ts
frontendDriverInterfaceSupported.json
file has been updated (if needed)package.json
package-lock.json
lib/ts/version.ts
npm run build-pretty
recipe/thirdparty/providers/configUtils.ts
file,createProvider
function.git tag
) in the formatvX.Y.Z
, and then find the latest branch (git branch --all
) whoseX.Y
is greater than the latest released tag.add-ts-no-check.js
file to include thatsomeFunc: function () {..}
).exports
inpackage.json