@edcalderon/auth 1.0.2 β†’ 1.0.3

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.
Files changed (3) hide show
  1. package/CHANGELOG.md +8 -0
  2. package/README.md +13 -20
  3. package/package.json +3 -2
package/CHANGELOG.md CHANGED
@@ -1,5 +1,13 @@
1
1
  # Changelog
2
2
 
3
+ ## [1.0.3] - 2026-03-01
4
+
5
+ ### Fixed
6
+
7
+ - πŸ› Updated import from `@ed/auth` (old internal alias) to `@edcalderon/auth` in dashboard consumer
8
+ - πŸ“ Added `update-readme` script β€” uses `versioning update-readme` to keep README in sync with CHANGELOG
9
+ - πŸ”„ Versioning package used as dev dependency for README maintenance
10
+
3
11
  ## [1.0.2] - 2026-03-01
4
12
 
5
13
  ### Fixed
package/README.md CHANGED
@@ -8,15 +8,13 @@ A universal, **provider-agnostic** authentication orchestration package for Reac
8
8
 
9
9
  ---
10
10
 
11
- ## πŸ“‹ Latest Changes (v1.0.0)
11
+ ## πŸ“‹ Latest Changes (v1.0.3)
12
12
 
13
- ### Initial Release
13
+ ### Fixed
14
14
 
15
- - ✨ Provider-agnostic `AuthClient` interface
16
- - πŸ”Œ Built-in adapters: **Supabase**, **Firebase**, **Hybrid** (Firebaseβ†’Supabase)
17
- - βš›οΈ React `AuthProvider` context and `useAuth` hook
18
- - πŸ›‘οΈ Unified `User` type across all providers
19
- - πŸ”‘ Session token access via `getSessionToken()`
15
+ - πŸ› Updated import from `@ed/auth` (old internal alias) to `@edcalderon/auth` in dashboard consumer
16
+ - πŸ“ Added `update-readme` script β€” uses `versioning update-readme` to keep README in sync with CHANGELOG
17
+ - πŸ”„ Versioning package used as dev dependency for README maintenance
20
18
 
21
19
  For full version history, see [CHANGELOG.md](./CHANGELOG.md) and [GitHub releases](https://github.com/edcalderon/my-second-brain/releases)
22
20
 
@@ -30,20 +28,15 @@ The package follows a **Single Source of Truth** model with a **Federated OAuth
30
28
  - **OAuth / Identity Providers**: External services (Firebase, Directus, native Google OAuth, Auth0, etc.) handle frontend login bridges or federated SSO flows.
31
29
  - **The Orchestrator (`@edcalderon/auth`)**: A thin bridge layer that exposes generic interfaces (`User`, `AuthClient`). Applications consume a unified context without coupling to any specific vendor.
32
30
 
33
- ```mermaid
34
- graph TD
35
- UI[Frontend Applications] -->|useAuth| EdAuth["@edcalderon/auth"]
36
- EdAuth -->|Direct Session| Supabase(Supabase)
37
- EdAuth -->|Federated Bridge| Firebase(Firebase OAuth)
38
- EdAuth -->|Custom Adapter| Directus(Directus SSO)
39
- EdAuth -->|Custom Adapter| Custom(Auth0 / Custom)
40
-
41
- Firebase -->|Sync Session| Supabase
42
- Directus -->|Sync Session| Supabase
43
-
44
- Supabase -->|Roles & Scopes| DB[(PostgreSQL)]
45
- ```
31
+ **Architecture Flow:**
46
32
 
33
+ 1. **Frontend Applications** `=>` consume **`@edcalderon/auth`** via `useAuth()`
34
+ 2. **`@edcalderon/auth`** orchestrates the adapters:
35
+ - `=>` **Supabase Adapter** (Direct Session)
36
+ - `=>` **Hybrid Bridge** (Firebase OAuth + Supabase Session)
37
+ - `=>` **Custom Adapters** (e.g. Directus SSO, Auth0)
38
+ 3. **Identity Providers** (Firebase/Directus) `=>` Sync Session to **Supabase**
39
+ 4. **Supabase** `=>` Manages Roles & Scopes in the **PostgreSQL** Database
47
40
  ---
48
41
 
49
42
  ## Features
package/package.json CHANGED
@@ -1,13 +1,14 @@
1
1
  {
2
2
  "name": "@edcalderon/auth",
3
- "version": "1.0.2",
3
+ "version": "1.0.3",
4
4
  "description": "A universal, provider-agnostic authentication orchestration package with extensible adapters for Supabase, Firebase, Directus, and custom OAuth providers",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
7
7
  "scripts": {
8
8
  "build": "tsc",
9
9
  "dev": "tsc --watch",
10
- "prepublishOnly": "npm run build"
10
+ "prepublishOnly": "npm run build",
11
+ "update-readme": "versioning update-readme"
11
12
  },
12
13
  "keywords": [
13
14
  "auth",