nuxt-modules / nuxt-modules/supabase

feat: move @supabase/supabase-js and @supabase/ssr to peerDependencies

Open Beginner friendly
#621 4 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

enhancement
Dominant language
TypeScript
Stars
935
Forks
157
Avg merge
7d 17h
Merged PRs (30d)
1

Description

Is your feature request related to a problem? Please describe.

Both @supabase/supabase-js and @supabase/ssr are bundled as direct dependencies, meaning a user is locked to whatever version the module ships. Supabase releases quite frequently new package versions for supabase-js. I use Netlify functions and add the supabase-js package separately there, so I'm sure it's available at runtime, making the bundled version redundant and a source of duplicate instances (getting warnings too about that everytime).

Describe the solution you'd like

Move both to peerDependencies so users can control their own versions and always get the latest features and security fixes without waiting for a module release. If we would move forward with this, we should define a minimum version too, for supabase-js and /ssr

Describe alternatives you've considered

More frequent dependency bumps, but I know that would put unnecessary burden on the maintainer and I don't always want to make a PR just for version bumps.

Additional context

Happy to submit a PR if this direction sounds good.

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by locating the package manifest for the Nuxt module and compare how @supabase/supabase-js and @supabase/ssr are currently declared. Define minimum versions for both packages, move them to peerDependencies, and verify that the module still installs and builds with user-provided versions.

Written by the indexing model from the issue text.

Assessment

Tech stack
nuxt, typescript
Domain
developer-experience, tooling
Issue type
Feature
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
65/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.