@rudderjs/auth 3.2.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.
Files changed (2) hide show
  1. package/README.md +21 -0
  2. package/package.json +11 -11
package/README.md CHANGED
@@ -167,3 +167,24 @@ The `EloquentUserProvider` auto-wraps ORM model records with these methods (mapp
167
167
  | Provider | Driver | Description |
168
168
  |----------|--------|-------------|
169
169
  | Eloquent | `eloquent` | Uses `@rudderjs/orm` Model class |
170
+
171
+ ## Auth views
172
+
173
+ Ships React views for Login, Register, ForgotPassword, ResetPassword under `views/react/`. `create-rudder-app` vendors them into `app/Views/Auth/` at scaffold time so the app owns the files from day one and can edit them freely.
174
+
175
+ To re-vendor manually (e.g. after upgrading this package):
176
+
177
+ ```bash
178
+ cp -R node_modules/@rudderjs/auth/views/react/. app/Views/Auth/
179
+ ```
180
+
181
+ ### Upgrading from 3.1.x → 3.2.0
182
+
183
+ The auth views were refactored to use semantic class names (`auth-wrap`, `form-card`, `form-input`, `auth-link`, …) instead of inline Tailwind utilities. The visual output is unchanged when paired with the matching CSS shipped by `create-rudder-app@0.0.30+`.
184
+
185
+ If your app vendored the previous React auth views, you have two paths:
186
+
187
+ - **Re-vendor + update CSS** — copy the new view files (command above) and ensure your `app/index.css` defines the semantic class selectors. The reference CSS lives in `create-rudder-app/src/templates.ts` (`semanticRulesApply()` for Tailwind apps, `indexCssPlain()` for non-Tailwind apps).
188
+ - **Keep your existing vendored copies** — your old auth views still work, just don't pull in the new ones.
189
+
190
+ Bumping `@rudderjs/auth` alone won't touch your vendored copies; the views only get re-applied when you explicitly re-vendor.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rudderjs/auth",
3
- "version": "3.2.0",
3
+ "version": "4.0.0",
4
4
  "rudderjs": {
5
5
  "provider": "AuthProvider",
6
6
  "stage": "infrastructure",
@@ -44,14 +44,14 @@
44
44
  "./package.json": "./package.json"
45
45
  },
46
46
  "dependencies": {
47
- "@rudderjs/core": "0.1.1",
48
- "@rudderjs/contracts": "0.1.0"
47
+ "@rudderjs/contracts": "^1.0.0",
48
+ "@rudderjs/core": "^1.0.0"
49
49
  },
50
50
  "peerDependencies": {
51
- "@rudderjs/hash": "0.0.7",
52
- "@rudderjs/session": "0.1.1",
53
- "@rudderjs/view": "0.0.3",
54
- "@rudderjs/router": "0.3.0"
51
+ "@rudderjs/router": "^1.0.0",
52
+ "@rudderjs/view": "^1.0.0",
53
+ "@rudderjs/hash": "^1.0.0",
54
+ "@rudderjs/session": "^1.0.0"
55
55
  },
56
56
  "peerDependenciesMeta": {
57
57
  "@rudderjs/hash": {
@@ -71,10 +71,10 @@
71
71
  "@types/node": "^20.0.0",
72
72
  "reflect-metadata": "^0.2.2",
73
73
  "typescript": "^5.4.0",
74
- "@rudderjs/hash": "0.0.7",
75
- "@rudderjs/router": "0.3.0",
76
- "@rudderjs/session": "0.1.1",
77
- "@rudderjs/view": "0.0.3"
74
+ "@rudderjs/hash": "^1.0.0",
75
+ "@rudderjs/router": "^1.0.0",
76
+ "@rudderjs/session": "^1.0.0",
77
+ "@rudderjs/view": "^1.0.0"
78
78
  },
79
79
  "author": "Suleiman Shahbari",
80
80
  "scripts": {