kinde-testkit 0.2.0 → 0.2.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +5 -0
- package/README.md +3 -1
- package/package.json +7 -4
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,10 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 0.2.1
|
|
4
|
+
|
|
5
|
+
- Add CI on GitHub Actions: typecheck, tests and build on Node 22 and 24, a runtime check of the built package on Node 20, and the Next.js example's browser tests.
|
|
6
|
+
- Upgrade the development toolchain to Vitest 5 and esbuild 0.28. Nothing changes in the published package.
|
|
7
|
+
|
|
3
8
|
## 0.2.0
|
|
4
9
|
|
|
5
10
|
- Add the authorization code flow: a sign-in page at `/oauth2/auth` with seeded users, an organization picker, `org_code`, `login_hint`, `nonce`, `audience`, PKCE and `prompt=none`.
|
package/README.md
CHANGED
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
# kinde-testkit
|
|
2
2
|
|
|
3
|
+
[](https://github.com/sholajegede/kinde-testkit/actions/workflows/ci.yml) [](https://www.npmjs.com/package/kinde-testkit)
|
|
4
|
+
|
|
3
5
|
Test apps that use Kinde without a live Kinde environment. kinde-testkit runs a small issuer on localhost that does what your app needs from Kinde during a test: a sign-in page with test users, the OAuth endpoints Kinde's SDKs call, and access tokens that look like Kinde's, signed with a local key. Your app runs its real Kinde SDK and its real JWT checks against it.
|
|
4
6
|
|
|
5
7
|
There are two ways to use it:
|
|
@@ -69,7 +71,7 @@ sequenceDiagram
|
|
|
69
71
|
npm install --save-dev kinde-testkit
|
|
70
72
|
```
|
|
71
73
|
|
|
72
|
-
Node 20 or later.
|
|
74
|
+
Node 20 or later. Working on kinde-testkit itself needs Node 22.12 or later, because its test runner, Vitest 5, does.
|
|
73
75
|
|
|
74
76
|
## Quick start with Vitest
|
|
75
77
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "kinde-testkit",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.1",
|
|
4
4
|
"description": "Test Kinde-authenticated apps offline: a local issuer with a real sign-in flow, Kinde-shaped tokens, reusable auth scenarios, and Vitest and Playwright helpers.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": "Shola Jegede <jegedeshola@gmail.com>",
|
|
@@ -71,8 +71,8 @@
|
|
|
71
71
|
"jose": "^6.2.17"
|
|
72
72
|
},
|
|
73
73
|
"peerDependencies": {
|
|
74
|
-
"
|
|
75
|
-
"
|
|
74
|
+
"@playwright/test": ">=1.40",
|
|
75
|
+
"vitest": ">=2"
|
|
76
76
|
},
|
|
77
77
|
"peerDependenciesMeta": {
|
|
78
78
|
"vitest": {
|
|
@@ -88,6 +88,9 @@
|
|
|
88
88
|
"@types/node": "^22.10.0",
|
|
89
89
|
"tsup": "^8.3.5",
|
|
90
90
|
"typescript": "^5.7.0",
|
|
91
|
-
"vitest": "^
|
|
91
|
+
"vitest": "^5.1.0"
|
|
92
|
+
},
|
|
93
|
+
"overrides": {
|
|
94
|
+
"esbuild": "^0.28.1"
|
|
92
95
|
}
|
|
93
96
|
}
|