najm-auth 3.4.0 → 4.0.0
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/README.md +93 -47
- package/dist/client/edge.d.ts +15 -2
- package/dist/client/edge.js +25 -7
- package/dist/client/server/index.d.ts +4 -4
- package/dist/client/server/index.js +25 -7
- package/dist/index.d.ts +301 -97
- package/dist/index.js +1208 -762
- package/dist/schema/pg.d.ts +2 -2
- package/dist/schema/sqlite.d.ts +4 -4
- package/package.json +6 -5
package/dist/schema/pg.d.ts
CHANGED
|
@@ -235,7 +235,7 @@ declare const usersTable: drizzle_orm_pg_core.PgTableWithColumns<{
|
|
|
235
235
|
tableName: "users";
|
|
236
236
|
dataType: "string";
|
|
237
237
|
columnType: "PgEnumColumn";
|
|
238
|
-
data: "active" | "
|
|
238
|
+
data: "active" | "pending" | "inactive";
|
|
239
239
|
driverParam: string;
|
|
240
240
|
notNull: false;
|
|
241
241
|
hasDefault: true;
|
|
@@ -1308,7 +1308,7 @@ declare const authSchema: {
|
|
|
1308
1308
|
tableName: "users";
|
|
1309
1309
|
dataType: "string";
|
|
1310
1310
|
columnType: "PgEnumColumn";
|
|
1311
|
-
data: "active" | "
|
|
1311
|
+
data: "active" | "pending" | "inactive";
|
|
1312
1312
|
driverParam: string;
|
|
1313
1313
|
notNull: false;
|
|
1314
1314
|
hasDefault: true;
|
package/dist/schema/sqlite.d.ts
CHANGED
|
@@ -252,7 +252,7 @@ declare const usersTable: drizzle_orm_sqlite_core.SQLiteTableWithColumns<{
|
|
|
252
252
|
tableName: "users";
|
|
253
253
|
dataType: "string";
|
|
254
254
|
columnType: "SQLiteText";
|
|
255
|
-
data: "active" | "
|
|
255
|
+
data: "active" | "pending" | "inactive";
|
|
256
256
|
driverParam: string;
|
|
257
257
|
notNull: false;
|
|
258
258
|
hasDefault: true;
|
|
@@ -265,7 +265,7 @@ declare const usersTable: drizzle_orm_sqlite_core.SQLiteTableWithColumns<{
|
|
|
265
265
|
generated: undefined;
|
|
266
266
|
}, {}, {
|
|
267
267
|
length: number;
|
|
268
|
-
$type: "active" | "
|
|
268
|
+
$type: "active" | "pending" | "inactive";
|
|
269
269
|
}>;
|
|
270
270
|
roleId: drizzle_orm_sqlite_core.SQLiteColumn<{
|
|
271
271
|
name: "role_id";
|
|
@@ -1476,7 +1476,7 @@ declare const authSchema: {
|
|
|
1476
1476
|
tableName: "users";
|
|
1477
1477
|
dataType: "string";
|
|
1478
1478
|
columnType: "SQLiteText";
|
|
1479
|
-
data: "active" | "
|
|
1479
|
+
data: "active" | "pending" | "inactive";
|
|
1480
1480
|
driverParam: string;
|
|
1481
1481
|
notNull: false;
|
|
1482
1482
|
hasDefault: true;
|
|
@@ -1489,7 +1489,7 @@ declare const authSchema: {
|
|
|
1489
1489
|
generated: undefined;
|
|
1490
1490
|
}, {}, {
|
|
1491
1491
|
length: number;
|
|
1492
|
-
$type: "active" | "
|
|
1492
|
+
$type: "active" | "pending" | "inactive";
|
|
1493
1493
|
}>;
|
|
1494
1494
|
roleId: drizzle_orm_sqlite_core.SQLiteColumn<{
|
|
1495
1495
|
name: "role_id";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "najm-auth",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "4.0.0",
|
|
4
4
|
"description": "Authentication and authorization library for najm framework",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"files": [
|
|
@@ -60,6 +60,7 @@
|
|
|
60
60
|
"scripts": {
|
|
61
61
|
"build": "tsup",
|
|
62
62
|
"test": "bun test && bun run test:rsc",
|
|
63
|
+
"test:real-infra": "bun test test/real-postgres-redis-security.test.ts",
|
|
63
64
|
"test:rsc": "bun test --conditions react-server test/react-server-auth.test.ts",
|
|
64
65
|
"test:next16": "bun run build && bun integration/next16-proxy/run.ts",
|
|
65
66
|
"test:watch": "bun test --watch",
|
|
@@ -94,15 +95,15 @@
|
|
|
94
95
|
"najm-core": "^2.0.6",
|
|
95
96
|
"najm-database": "^2.0.4",
|
|
96
97
|
"najm-guard": "^2.0.2",
|
|
97
|
-
"najm-i18n": "^2.1.
|
|
98
|
-
"najm-cache": "^2.
|
|
99
|
-
"najm-email": "^2.0.
|
|
98
|
+
"najm-i18n": "^2.1.2",
|
|
99
|
+
"najm-cache": "^2.2.0",
|
|
100
|
+
"najm-email": "^2.0.3",
|
|
100
101
|
"najm-rate": "^2.1.1",
|
|
101
102
|
"najm-validation": "^2.0.2",
|
|
102
103
|
"jsonwebtoken": "^9.0.3",
|
|
103
104
|
"jose": "^6.1.3",
|
|
104
105
|
"lodash.isempty": "^4.4.0",
|
|
105
|
-
"nanoid": "^5.1.
|
|
106
|
+
"nanoid": "^5.1.16",
|
|
106
107
|
"reflect-metadata": "^0.2.2",
|
|
107
108
|
"timestring": "^7.0.0",
|
|
108
109
|
"zod": "^4.2.1"
|