Skip to content

Commit fd70cb7

Browse files
committed
Revert "feat: dynamically inferred core types (#995)"
This reverts commit 8cd073e.
1 parent 7c3aca6 commit fd70cb7

File tree

160 files changed

+1394
-13467
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

160 files changed

+1394
-13467
lines changed
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
name: 'Check if "Run tests" action succeeded'
2+
3+
on:
4+
pull_request:
5+
types:
6+
- opened
7+
- reopened
8+
- edited
9+
- synchronize
10+
11+
jobs:
12+
pr-run-test-action:
13+
name: Check if "Run tests" action succeeded
14+
timeout-minutes: 60
15+
concurrency:
16+
group: ${{ github.head_ref }}
17+
cancel-in-progress: true
18+
runs-on: ubuntu-latest
19+
steps:
20+
- uses: actions/checkout@v2
21+
- name: node install
22+
run: cd ./.github/helpers && npm i
23+
- name: Calling github API
24+
run: cd ./.github/helpers && GITHUB_TOKEN=${{ github.token }} REPO=${{ github.repository }} RUN_ID=${{ github.run_id }} BRANCH=${{ github.head_ref }} JOB_ID=${{ github.job }} SOURCE_OWNER=${{ github.event.pull_request.head.repo.owner.login }} CURRENT_SHA=${{ github.event.pull_request.head.sha }} node node_modules/github-workflow-helpers/test-pass-check-pr.js

.github/workflows/website-test.yml

Lines changed: 2 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -38,14 +38,6 @@ jobs:
3838
fdi-version: ${{ fromJSON(needs.define-versions.outputs.fdiVersions) }}
3939

4040
steps:
41-
- name: Setup ENVs
42-
id: envs
43-
run: |
44-
APP_SERVER_LOG_DIR=${{ github.workspace }}/logs
45-
echo "APP_SERVER_LOG_DIR=$APP_SERVER_LOG_DIR" | tee -a "$GITHUB_OUTPUT" "$GITHUB_ENV"
46-
47-
mkdir -p $APP_SERVER_LOG_DIR
48-
4941
- uses: actions/checkout@v4
5042
with:
5143
path: supertokens-node
@@ -77,13 +69,12 @@ jobs:
7769
run: |
7870
npm i
7971
80-
NODE_PORT=8080 node . &> ${{ steps.envs.outputs.APP_SERVER_LOG_DIR }}/app-server.log &
81-
NODE_PORT=8082 node . &> ${{ steps.envs.outputs.APP_SERVER_LOG_DIR }}/app-server-cross-domain.log &
72+
NODE_PORT=8080 node . &> app-server.log &
73+
NODE_PORT=8082 node . &> app-server-cross-domain.log &
8274
8375
- uses: supertokens/website-testing-action@main
8476
with:
8577
version: ${{ steps.versions.outputs.frontendVersionXy }}
8678
node-sdk-version: ${{ steps.versions.outputs.nodeTag }}
8779
path: supertokens-website
8880
check-name-suffix: "[Node=${{ matrix.node-version }}][FDI=${{ matrix.fdi-version }}]"
89-
app-server-logs: ${{ steps.envs.outputs.APP_SERVER_LOG_DIR }}

CHANGELOG.md

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -7,24 +7,16 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
77

88
## Unreleased
99

10+
## [22.1.1] - 2025-06-20
11+
1012
- Migrates backend-sdk-testing test to use a containerized core
1113
- Migrates from CircleCI to Github Actions
1214
- Adds workflow to test supertokens-website
1315
- Updates `frontendIntegration` servers
1416
- Fixes broken workflows (Example Tests, AWS Edge function compatibility)
1517
- Sets up workflow to run auth-react tests
1618
- Updates test-servers to work with updated tests
17-
- Fixes wrong types types from `string` to `number` on `createdAt`, `expiresAt` and `timeout` from the WebAuthn recipe
18-
- Fixed `email` property by making it optional on `getGeneratedOptions` recipe implementation method
19-
20-
## [23.0.0] - 2025-06-10
21-
2219
- Refactors internal logic of parsing cookies to check accessToken and optimizes it to avoid parsing unrelated cookies.
23-
- The `getConsentRequest`, `acceptConsentRequest`, `rejectConsentRequest`, `acceptLoginRequest`, `rejectLoginRequest` and `introspectToken` can now possibly return an `ErrorOAuth2`.
24-
- The `/oauth/introspect` can now possibly return an `ErrorAuth2`.
25-
- The `User` class now has a `fromApi` function to normalize the user object returned from the API.
26-
- Refactors querier to use dynamic request body and response body types inference.
27-
- Refactor internal network calls made with querier to use the new dynamic types.
2820
- Fixes an issue with fetch not supporting `cache: no-cache` in Cloudflare Workers.
2921

3022
## [22.1.0] - 2025-04-04

lib/build/core/paths.d.ts

Lines changed: 0 additions & 3 deletions
This file was deleted.

lib/build/core/paths.js

Lines changed: 0 additions & 2 deletions
This file was deleted.

lib/build/core/types.d.ts

Lines changed: 0 additions & 58 deletions
This file was deleted.

lib/build/core/types.js

Lines changed: 0 additions & 9 deletions
This file was deleted.

lib/build/customFramework.d.ts

Lines changed: 3 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

lib/build/customFramework.js

Lines changed: 1 addition & 8 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

lib/build/framework/custom/framework.js

Lines changed: 1 addition & 6 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)