@spfn/auth 0.2.0-beta.74 → 0.2.0-beta.80

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.
@@ -43,6 +43,20 @@
43
43
  "when": 1782729129000,
44
44
  "tag": "0005_lethal_lifeguard",
45
45
  "breakpoints": true
46
+ },
47
+ {
48
+ "idx": 6,
49
+ "version": "7",
50
+ "when": 1783582531948,
51
+ "tag": "0006_easy_hardball",
52
+ "breakpoints": true
53
+ },
54
+ {
55
+ "idx": 7,
56
+ "version": "7",
57
+ "when": 1784016874297,
58
+ "tag": "0007_glossy_major_mapleleaf",
59
+ "breakpoints": true
46
60
  }
47
61
  ]
48
- }
62
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@spfn/auth",
3
- "version": "0.2.0-beta.74",
3
+ "version": "0.2.0-beta.80",
4
4
  "type": "module",
5
5
  "description": "Authentication, authorization, and RBAC module for SPFN",
6
6
  "author": "Ray Im <rayim@fxy.global>",
@@ -53,6 +53,29 @@
53
53
  "migrations",
54
54
  "README.md"
55
55
  ],
56
+ "scripts": {
57
+ "build": "pnpm check:circular && tsup && tsup --config tsup.client.config.ts",
58
+ "prepack": "node -e \"require('fs').copyFileSync('../../LICENSE','LICENSE')\"",
59
+ "watch": "tsup --watch",
60
+ "dev": "tsup --watch",
61
+ "type-check": "tsc --noEmit",
62
+ "clean": "rm -rf dist",
63
+ "db:generate": "drizzle-kit generate",
64
+ "codegen": "spfn codegen run",
65
+ "test": "vitest run",
66
+ "test:unit": "vitest run src/__tests__/unit/",
67
+ "test:integration": "vitest run src/__tests__/integration/",
68
+ "test:coverage": "vitest run --coverage",
69
+ "test:routes": "vitest src/server/routes",
70
+ "docker:test:up": "docker compose -f docker-compose.test.yml up -d",
71
+ "docker:test:down": "docker compose -f docker-compose.test.yml down",
72
+ "docker:test:logs": "docker compose -f docker-compose.test.yml logs -f",
73
+ "check:circular": "madge --circular --extensions ts src/",
74
+ "prepublishOnly": "pnpm run clean && pnpm run build",
75
+ "publish:alpha": "npm publish --access public --tag alpha",
76
+ "publish:beta": "npm publish --access public --tag beta",
77
+ "publish:latest": "npm publish --access public"
78
+ },
56
79
  "keywords": [
57
80
  "spfn",
58
81
  "auth",
@@ -88,6 +111,8 @@
88
111
  "postgres": "^3.4.0"
89
112
  },
90
113
  "devDependencies": {
114
+ "@spfn/core": "workspace:*",
115
+ "@spfn/notification": "workspace:*",
91
116
  "@types/jsonwebtoken": "^9.0.6",
92
117
  "@types/node": "^20.11.0",
93
118
  "@types/react": "^19.2.2",
@@ -97,13 +122,11 @@
97
122
  "hono": "^4.12.25",
98
123
  "madge": "^8.0.0",
99
124
  "next": "^16.2.2",
125
+ "spfn": "workspace:*",
100
126
  "tsup": "^8.5.0",
101
127
  "tsx": "^4.20.6",
102
128
  "typescript": "^5.3.3",
103
- "vitest": "^4.0.6",
104
- "@spfn/core": "0.2.0-beta.59",
105
- "@spfn/notification": "0.1.0-beta.26",
106
- "spfn": "0.2.0-beta.54"
129
+ "vitest": "^4.0.6"
107
130
  },
108
131
  "peerDependencies": {
109
132
  "@spfn/core": ">=0.2.0-beta.54",
@@ -114,26 +137,5 @@
114
137
  "next": {
115
138
  "optional": true
116
139
  }
117
- },
118
- "scripts": {
119
- "build": "pnpm check:circular && tsup && tsup --config tsup.client.config.ts",
120
- "watch": "tsup --watch",
121
- "dev": "tsup --watch",
122
- "type-check": "tsc --noEmit",
123
- "clean": "rm -rf dist",
124
- "db:generate": "drizzle-kit generate",
125
- "codegen": "spfn codegen run",
126
- "test": "vitest run",
127
- "test:unit": "vitest run src/__tests__/unit/",
128
- "test:integration": "vitest run src/__tests__/integration/",
129
- "test:coverage": "vitest run --coverage",
130
- "test:routes": "vitest src/server/routes",
131
- "docker:test:up": "docker compose -f docker-compose.test.yml up -d",
132
- "docker:test:down": "docker compose -f docker-compose.test.yml down",
133
- "docker:test:logs": "docker compose -f docker-compose.test.yml logs -f",
134
- "check:circular": "madge --circular --extensions ts src/",
135
- "publish:alpha": "npm publish --access public --tag alpha",
136
- "publish:beta": "npm publish --access public --tag beta",
137
- "publish:latest": "npm publish --access public"
138
140
  }
139
- }
141
+ }
@@ -1,45 +0,0 @@
1
- /**
2
- * @spfn/auth - Shared Types
3
- *
4
- * Common types and constants used across the auth package
5
- */
6
- /**
7
- * Supported JWT signature algorithms
8
- *
9
- * - ES256: ECDSA with P-256 and SHA-256 (recommended, smaller keys)
10
- * - RS256: RSA with SHA-256 (fallback, larger keys)
11
- */
12
- declare const KEY_ALGORITHM: readonly ["ES256", "RS256"];
13
- /**
14
- * Key algorithm type derived from the const array
15
- */
16
- type KeyAlgorithmType = typeof KEY_ALGORITHM[number];
17
- /**
18
- * Invitation status enum values
19
- * Single source of truth for all invitation statuses
20
- */
21
- declare const INVITATION_STATUSES: readonly ["pending", "accepted", "expired", "cancelled"];
22
- /**
23
- * Invitation status type derived from the const array
24
- */
25
- type InvitationStatus = typeof INVITATION_STATUSES[number];
26
- /**
27
- * User status enum values
28
- * Single source of truth for all user statuses
29
- */
30
- declare const USER_STATUSES: readonly ["active", "inactive", "suspended"];
31
- /**
32
- * User status type derived from the const array
33
- */
34
- type UserStatus = typeof USER_STATUSES[number];
35
- /**
36
- * Social provider enum values
37
- * Single source of truth for supported OAuth providers
38
- */
39
- declare const SOCIAL_PROVIDERS: readonly ["google", "apple", "github", "kakao", "naver", "superself"];
40
- /**
41
- * Social provider type derived from the const array
42
- */
43
- type SocialProvider = typeof SOCIAL_PROVIDERS[number];
44
-
45
- export { INVITATION_STATUSES as I, type KeyAlgorithmType as K, SOCIAL_PROVIDERS as S, USER_STATUSES as U, KEY_ALGORITHM as a, type InvitationStatus as b, type UserStatus as c, type SocialProvider as d };