Skip to content

Commit 9050e70

Browse files
Moves express types to dev dependencies
Moves `@types/express` from peer dependencies to dev dependencies. This change resolves a potential issue where the express types might not be correctly installed or managed in projects that consume this library. By including the types as dev dependencies, we ensure they are available during development and testing without imposing a runtime dependency.
1 parent 9158ab7 commit 9050e70

File tree

2 files changed

+4
-6
lines changed

2 files changed

+4
-6
lines changed

lib/sessionManager/stores/expressStore.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
// @types/express is not in dev deps but in peer deps to avoid types version mismatches
2-
// when using different versions of express in the same project.
31
import type { Request } from "express";
42
import { SessionBase, StorageKeys, type SessionManager } from "../types.js";
53
import { storageSettings } from "../index.js";

package.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -51,11 +51,11 @@
5151
"vite": "^6.0.0",
5252
"vite-plugin-dts": "^4.0.3",
5353
"vitest": "^3.0.0",
54-
"vitest-fetch-mock": "^0.4.1"
54+
"vitest-fetch-mock": "^0.4.1",
55+
"@types/express": "^4.17.0"
5556
},
5657
"peerDependencies": {
57-
"expo-secure-store": ">=11.0.0",
58-
"@types/express": "^4.17.0"
58+
"expo-secure-store": ">=11.0.0"
5959
},
6060
"peerDependenciesMeta": {
6161
"expo-secure-store": {
@@ -66,4 +66,4 @@
6666
"dependencies": {
6767
"@kinde/jwt-decoder": "^0.2.0"
6868
}
69-
}
69+
}

0 commit comments

Comments
 (0)