Commit e8b6102
authored
feat: publish SSR under deprecated auth-helpers package names (#127)
## What kind of change does this PR introduce?
Feature - Package consolidation and multi-package publishing
## What is the current behavior?
Currently, `@supabase/ssr` is only published under its own package name.
Meanwhile, the deprecated `@supabase/auth-helpers-*` packages continue
to receive thousands of weekly downloads, probably due to LLMs
recommending them in code suggestions despite being deprecated for a
long time.
The deprecated packages:
- `@supabase/auth-helpers-nextjs` (159k weekly downloads)
- `@supabase/auth-helpers-react`
- `@supabase/auth-helpers-remix`
- `@supabase/auth-helpers-sveltekit`
## What is the new behavior?
This PR enables `@supabase/ssr` to be published under multiple package
names simultaneously:
1. **Multi-package publishing**: The release workflow now publishes the
same codebase under 5 different npm package names:
- `@supabase/ssr` (primary package)
- `@supabase/auth-helpers-nextjs`
- `@supabase/auth-helpers-react`
- `@supabase/auth-helpers-remix`
- `@supabase/auth-helpers-sveltekit`
2. **Console warnings**: When imported as a deprecated auth-helpers
package, users see a prominent warning.
3. **Updated documentation**: README clearly explains the package
consolidation and lists all deprecated packages.
## Additional context
Users of the old auth-helpers packages will experience breaking changes
when updating, as the APIs are not backward compatible. This is
intentional - as discussed internally, we want to "break it loudly" to
force users to notice and migrate.
**Why this approach?**
- LLMs continue to recommend deprecated packages despite deprecation
warnings
- Traditional deprecation methods have proven ineffective
- Publishing SSR under the old names ensures users get the maintained,
working code
- Console warnings guide users to the correct package
Related: supabase/auth-helpers#8111 parent bd368ca commit e8b6102
File tree
5 files changed
+95
-11
lines changed- .github/workflows
- src
5 files changed
+95
-11
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
120 | 120 | | |
121 | 121 | | |
122 | 122 | | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
123 | 150 | | |
124 | 151 | | |
125 | 152 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
4 | | - | |
| 3 | + | |
5 | 4 | | |
6 | | - | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
7 | 27 | | |
8 | 28 | | |
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
34 | 34 | | |
35 | 35 | | |
36 | 36 | | |
| 37 | + | |
37 | 38 | | |
38 | 39 | | |
39 | 40 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
1 | 34 | | |
2 | 35 | | |
3 | 36 | | |
| |||
0 commit comments