Skip to content

Commit e21b933

Browse files
ralyodioclaude
andcommitted
0.7.1: database drivers are optional peers, not optional dependencies
npm installs optionalDependencies by default, so every consumer, including a CLI that only uses ./cli, downloaded pg, mysql2, mongodb, pocketbase and supabase-js. Only the per-database subpaths import a driver, so they are optional peers now (an app using ./postgres already has pg) and devDependencies for the tests. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
1 parent 6cb34ce commit e21b933

2 files changed

Lines changed: 70 additions & 100 deletions

File tree

‎package.json‎

Lines changed: 25 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@profullstack/auth-system",
3-
"version": "0.7.0",
3+
"version": "0.7.1",
44
"description": "Flexible authentication system with user registration, login/logout, password reset, and session management",
55
"type": "module",
66
"main": "dist/index.js",
@@ -26,8 +26,13 @@
2626
"prepare": "husky install || true"
2727
},
2828
"devDependencies": {
29-
"vitest": "^1.3.1",
30-
"@vitest/coverage-v8": "^1.3.1"
29+
"@supabase/supabase-js": "^2.49.4",
30+
"@vitest/coverage-v8": "^1.3.1",
31+
"mongodb": "^6.5.0",
32+
"mysql2": "^3.9.2",
33+
"pg": "^8.11.3",
34+
"pocketbase": "^0.21.1",
35+
"vitest": "^1.3.1"
3136
},
3237
"keywords": [
3338
"authentication",
@@ -47,13 +52,6 @@
4752
"jsonwebtoken": "^9.0.2",
4853
"uuid": "^11.1.0"
4954
},
50-
"optionalDependencies": {
51-
"@supabase/supabase-js": "^2.49.4",
52-
"mysql2": "^3.9.2",
53-
"pg": "^8.11.3",
54-
"mongodb": "^6.5.0",
55-
"pocketbase": "^0.21.1"
56-
},
5755
"repository": {
5856
"type": "git",
5957
"url": "https://github.com/profullstack/auth-system"
@@ -63,11 +61,27 @@
6361
},
6462
"homepage": "https://github.com/profullstack/auth-system#readme",
6563
"peerDependencies": {
66-
"pg": "^8"
64+
"pg": "^8.11.3",
65+
"@supabase/supabase-js": "^2.49.4",
66+
"mysql2": "^3.9.2",
67+
"mongodb": "^6.5.0",
68+
"pocketbase": "^0.21.1"
6769
},
6870
"peerDependenciesMeta": {
6971
"pg": {
7072
"optional": true
73+
},
74+
"@supabase/supabase-js": {
75+
"optional": true
76+
},
77+
"mysql2": {
78+
"optional": true
79+
},
80+
"mongodb": {
81+
"optional": true
82+
},
83+
"pocketbase": {
84+
"optional": true
7185
}
7286
}
7387
}

0 commit comments

Comments
 (0)