Skip to content

Commit dd0fee1

Browse files
authored
docs(repo): enhance support policy (#1834)
1 parent 4bded67 commit dd0fee1

File tree

2 files changed

+54
-93
lines changed

2 files changed

+54
-93
lines changed

README.md

Lines changed: 28 additions & 76 deletions
Original file line numberDiff line numberDiff line change
@@ -50,77 +50,58 @@ This monorepo contains the complete suite of Supabase JavaScript SDK:
5050
| **[@supabase/storage-js](./packages/core/storage-js)** | File storage SDK |
5151
| **[@supabase/functions-js](./packages/core/functions-js)** | Edge Functions SDK |
5252

53-
## Requirements
53+
## Support Policy
5454

55-
- **Node.js 20 or later** (Node.js 18 support was dropped as of October 31, 2025)
56-
- For browser support, all modern browsers are supported
55+
This section outlines the scope of support for various runtime environments in Supabase JavaScript client.
5756

58-
> ⚠️ **Node.js 18 Deprecation Notice**
59-
>
60-
> Node.js 18 reached end-of-life on April 30, 2025. As announced in [our deprecation notice](https://github.com/orgs/supabase/discussions/37217), support for Node.js 18 was dropped on October 31, 2025.
61-
>
62-
> If you must use Node.js 18, please use version `2.x.x` of these libraries where `x` is the last version that supported Node.js 18.
57+
### Node.js
6358

64-
> **💡 Note for Package Users:** If you install and use these packages, **nothing has changed**. Continue installing packages normally:
59+
We only support Node.js versions that are in **Active LTS** or **Maintenance** status as defined by the [official Node.js release schedule](https://nodejs.org/en/about/previous-releases#release-schedule). This means we support versions that are currently receiving long-term support and critical bug fixes.
60+
61+
When a Node.js version reaches end-of-life and is no longer in Active LTS or Maintenance status, Supabase will drop it in a **minor release**, and **this won't be considered a breaking change**.
62+
63+
> ⚠️ **Node.js 18 Deprecation Notice**
6564
>
66-
> ```bash
67-
> npm install @supabase/supabase-js
68-
> npm install @supabase/auth-js
69-
> ```
65+
> Node.js 18 reached end-of-life on April 30, 2025. As announced in [our deprecation notice](https://github.com/orgs/supabase/discussions/37217), support for Node.js 18 was dropped in version `2.79.0`.
7066
>
71-
> The monorepo structure **only affects contributors**. This is how we develop and maintain the code, not how you use it.
67+
> If you must use Node.js 18, please use version `2.78.0`, which is the last version that supported Node.js 18.
7268
73-
## 🚀 Quick Start
69+
### Deno
7470

75-
### Installation
71+
We support Deno versions that are currently receiving active development and security updates. We follow the [official Deno release schedule](https://docs.deno.com/runtime/fundamentals/stability_and_releases/) and only support versions from the `stable` and `lts` release channels.
7672

77-
```bash
78-
# Clone the repository
79-
git clone https://github.com/supabase/supabase-js.git
80-
cd supabase-js
73+
When a Deno version reaches end-of-life and is no longer receiving security updates, Supabase will drop it in a **minor release**, and **this won't be considered a breaking change**.
8174

82-
# Install dependencies
83-
npm install
75+
### Browsers
8476

85-
# Build all packages
86-
npx nx run-many --target=build --all
77+
All modern browsers are supported. We support browsers that provide native `fetch` API. For Realtime features, browsers must also support native `WebSocket` API.
8778

88-
```
79+
### Bun
8980

90-
## 🏗️ Development
81+
We support Bun runtime environments. Bun provides native fetch support and is compatible with Node.js APIs. Since Bun does not follow a structured release schedule like Node.js or Deno, we support current stable versions of Bun and may drop support for older versions in minor releases without considering it a breaking change.
9182

92-
### Workspace Commands
83+
### React Native
9384

94-
```bash
95-
# Build a specific library
96-
npx nx build auth-js
85+
We support React Native environments with fetch polyfills provided by the framework. Since React Native does not follow a structured release schedule, we support current stable versions and may drop support for older versions in minor releases without considering it a breaking change.
9786

98-
# Test a specific library
99-
npx nx test postgrest-js
87+
### Cloudflare Workers
10088

101-
# Build affected projects (only build what changed)
102-
npx nx affected --target=build
89+
We support Cloudflare Workers runtime environments. Cloudflare Workers provides native fetch support. Since Cloudflare Workers does not follow a structured release schedule, we support current stable versions and may drop support for older versions in minor releases without considering it a breaking change.
10390

104-
# Generate dependency graph
105-
npx nx graph
91+
### Important Notes
10692

107-
# Format all code
108-
npx nx format
93+
- **Experimental features**: Features marked as experimental may be removed or changed without notice
10994

110-
# Check code formatting
111-
npx nx format:check
112-
```
113-
114-
### Working with Individual Libraries
95+
## 🚀 Quick Start
11596

116-
Each library can be developed independently:
97+
### Installation
11798

11899
```bash
119-
# Start development with watch mode
120-
npx nx build auth-js --watch
121-
npx nx test auth-js --watch
100+
npm install @supabase/supabase-js
122101
```
123102

103+
Read more in each package's README file.
104+
124105
## 🤝 Contributing
125106

126107
We welcome contributions! Please see our [Contributing Guide](./CONTRIBUTING.md) for details.
@@ -147,16 +128,6 @@ We welcome contributions! Please see our [Contributing Guide](./CONTRIBUTING.md)
147128

148129
Testing varies per package. See the top-level [TESTING.md](docs/TESTING.md) for an overview and links to package-specific guides.
149130

150-
Quick examples:
151-
152-
```bash
153-
# Run tests for a specific package
154-
npx nx test <package-name>
155-
156-
# Run tests with coverage
157-
npx nx test <package-name> --coverage
158-
```
159-
160131
## 📚 Documentation
161132

162133
### API Documentation
@@ -200,25 +171,6 @@ audited 1 package in 0s
200171

201172
Because provenance attestations are a new capability, security features may evolve over time. Ensure you are using the latest npm CLI to verify attestation signatures reliably. This may require updating npm beyond the version bundled with Node.js.
202173

203-
## 🏛️ Architecture
204-
205-
### Monorepo Structure
206-
207-
```tree
208-
supabase-js/
209-
├── packages/
210-
│ └── core/ # Published libraries
211-
│ ├── auth-js/ # Authentication SDK
212-
│ ├── functions-js/ # Edge Functions SDK
213-
│ ├── postgrest-js/ # PostgREST database SDK
214-
│ ├── realtime-js/ # Real-time subscriptions SDK
215-
│ ├── storage-js/ # File storage SDK
216-
│ └── supabase-js/ # Main isomorphic SDK
217-
├── nx.json # npx nx workspace configuration
218-
├── package.json # Root package.json and workspaces setup
219-
└── ...
220-
```
221-
222174
## 📄 License
223175

224176
This project is licensed under the MIT License - see the [LICENSE](./LICENSE) file for details.

packages/core/supabase-js/README.md

Lines changed: 26 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -30,15 +30,6 @@
3030

3131
</div>
3232

33-
## Requirements
34-
35-
- **Node.js 20 or later** (Node.js 18 support dropped as of October 31, 2025)
36-
- For browser support, all modern browsers are supported
37-
38-
> ⚠️ **Node.js 18 Deprecation Notice**
39-
>
40-
> Node.js 18 reached end-of-life on April 30, 2025. As announced in [our deprecation notice](https://github.com/orgs/supabase/discussions/37217), support for Node.js 18 was dropped on October 31, 2025.
41-
4233
## Usage
4334

4435
First of all, you need to install the library:
@@ -129,19 +120,43 @@ We only support Node.js versions that are in **Active LTS** or **Maintenance** s
129120

130121
When a Node.js version reaches end-of-life and is no longer in Active LTS or Maintenance status, Supabase will drop it in a **minor release**, and **this won't be considered a breaking change**.
131122

123+
> ⚠️ **Node.js 18 Deprecation Notice**
124+
>
125+
> Node.js 18 reached end-of-life on April 30, 2025. As announced in [our deprecation notice](https://github.com/orgs/supabase/discussions/37217), support for Node.js 18 was dropped in version `2.79.0`.
126+
>
127+
> If you must use Node.js 18, please use version `2.78.0`, which is the last version that supported Node.js 18.
128+
132129
### Deno
133130

134131
We support Deno versions that are currently receiving active development and security updates. We follow the [official Deno release schedule](https://docs.deno.com/runtime/fundamentals/stability_and_releases/) and only support versions from the `stable` and `lts` release channels.
135132

136133
When a Deno version reaches end-of-life and is no longer receiving security updates, Supabase will drop it in a **minor release**, and **this won't be considered a breaking change**.
137134

135+
### Browsers
136+
137+
All modern browsers are supported. We support browsers that provide native `fetch` API. For Realtime features, browsers must also support native `WebSocket` API.
138+
139+
### Bun
140+
141+
We support Bun runtime environments. Bun provides native fetch support and is compatible with Node.js APIs. Since Bun does not follow a structured release schedule like Node.js or Deno, we support current stable versions of Bun and may drop support for older versions in minor releases without considering it a breaking change.
142+
143+
### React Native
144+
145+
We support React Native environments with fetch polyfills provided by the framework. Since React Native does not follow a structured release schedule, we support current stable versions and may drop support for older versions in minor releases without considering it a breaking change.
146+
147+
### Cloudflare Workers
148+
149+
We support Cloudflare Workers runtime environments. Cloudflare Workers provides native fetch support. Since Cloudflare Workers does not follow a structured release schedule, we support current stable versions and may drop support for older versions in minor releases without considering it a breaking change.
150+
138151
### Important Notes
139152

140153
- **Experimental features**: Features marked as experimental may be removed or changed without notice
141154

142-
## Development
155+
## Contributing
156+
157+
We welcome contributions! Please see our [Contributing Guide](../../../CONTRIBUTING.md) for details on how to get started.
143158

144-
This package is part of the [Supabase JavaScript monorepo](https://github.com/supabase/supabase-js). To work on this package:
159+
For major changes or if you're unsure about something, please open an issue first to discuss your proposed changes.
145160

146161
### Building
147162

@@ -157,12 +172,6 @@ npx nx build supabase-js --watch
157172

158173
There's a complete guide on how to set up your environment for running locally the `supabase-js` integration tests. Please refer to [TESTING.md](./TESTING.md).
159174

160-
### Contributing
161-
162-
We welcome contributions! Please see our [Contributing Guide](../../../CONTRIBUTING.md) for details on how to get started.
163-
164-
For major changes or if you're unsure about something, please open an issue first to discuss your proposed changes.
165-
166175
## Badges
167176

168177
[![Coverage Status](https://coveralls.io/repos/github/supabase/supabase-js/badge.svg?branch=master)](https://coveralls.io/github/supabase/supabase-js?branch=master)

0 commit comments

Comments
 (0)