Skip to content

Commit 3a619c0

Browse files
committed
chore(repo): change main to master
1 parent 70a4e84 commit 3a619c0

File tree

22 files changed

+60
-53
lines changed

22 files changed

+60
-53
lines changed

.github/ISSUE_TEMPLATE/bug_report.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ body:
9191
options:
9292
- label: Follow our [Code of Conduct](https://github.com/supabase/.github/blob/main/CODE_OF_CONDUCT.md)
9393
required: true
94-
- label: Read the [Contributing Guidelines](https://github.com/supabase/supabase-js/blob/main/CONTRIBUTING.md).
94+
- label: Read the [Contributing Guidelines](https://github.com/supabase/supabase-js/blob/master/CONTRIBUTING.md).
9595
required: true
9696
- label: Read the [docs](https://supabase.com/docs/reference/javascript/introduction).
9797
required: true

.github/ISSUE_TEMPLATE/feature_request.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ body:
4040
options:
4141
- label: Follow our [Code of Conduct](https://github.com/supabase/.github/blob/main/CODE_OF_CONDUCT.md)
4242
required: true
43-
- label: Read the [Contributing Guidelines](https://github.com/supabase/supabase-js/blob/main/CONTRIBUTING.md).
43+
- label: Read the [Contributing Guidelines](https://github.com/supabase/supabase-js/blob/master/CONTRIBUTING.md).
4444
required: true
4545
- label: Read the [docs](https://supabase.com/docs/reference/javascript/introduction).
4646
required: true

.github/PULL_REQUEST_TEMPLATE.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ Closes #(issue_number) <!-- If applicable -->
2929

3030
<!-- Ensure all items are checked before submitting -->
3131

32-
- [ ] I have read the [Contributing Guidelines](https://github.com/supabase/supabase-js/blob/main/CONTRIBUTING.md)
32+
- [ ] I have read the [Contributing Guidelines](https://github.com/supabase/supabase-js/blob/master/CONTRIBUTING.md)
3333
- [ ] My PR title follows the [conventional commit format](https://www.conventionalcommits.org/): `<type>(<scope>): <description>`
3434
- [ ] I have run `npx nx format` to ensure consistent code formatting
3535
- [ ] I have added tests for new functionality (if applicable)

.github/workflows/main-ci-release.yml

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -34,18 +34,17 @@ jobs:
3434
contents: read
3535

3636
# ==========================================
37-
# CANARY RELEASE (only on main, after all CI passes)
37+
# CANARY RELEASE (only on master, after all CI passes)
3838
# ==========================================
3939

4040
release-canary:
4141
name: Release Canary
4242
runs-on: ubuntu-latest
4343
needs: [ci-core, ci-supabase-js, ci-auth-js-node18]
44-
# Only run on main branch pushes, and only if all CI jobs succeeded
44+
# Only run on master branch pushes, and only if all CI jobs succeeded
4545
if: |
46-
github.ref == 'refs/heads/main' &&
47-
github.event_name == 'push'
48-
&&
46+
github.ref == 'refs/heads/master' &&
47+
github.event_name == 'push' &&
4948
needs.ci-core.result == 'success' &&
5049
needs.ci-supabase-js.result == 'success' &&
5150
needs.ci-auth-js-node18.result == 'success'

CLAUDE.md

Lines changed: 6 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -57,14 +57,14 @@ Every change must maintain full backward compatibility. The migration itself int
5757

5858
Uses automated canary releases with batched stable releases:
5959

60-
- **Canary**: Every commit to main → prerelease (e.g., `2.80.1-canary.0`) with `canary` dist-tag
60+
- **Canary**: Every commit to master → prerelease (e.g., `2.80.1-canary.0`) with `canary` dist-tag
6161
- **Stable**: Manual promotion of validated canary to `latest` dist-tag
6262
- **Fixed Versioning**: All packages share identical version numbers (e.g., all at 2.80.0)
6363
- **Version Line**: Continuing with v2.x.x to maintain ecosystem stability
6464

6565
**Three Release Workflows:**
6666

67-
1. **Canary** (`.github/workflows/main-ci-release.yml`) - Automated on every main commit
67+
1. **Canary** (`.github/workflows/main-ci-release.yml`) - Automated on every master commit
6868
2. **Stable** (`.github/workflows/release-stable.yml`) - Manual by repository owners
6969
3. **Preview** (`.github/workflows/preview-release.yml`) - PR-based testing via pkg.pr.new
7070

@@ -262,36 +262,31 @@ Tests run against multiple environments:
262262
- Requires Docker for integration tests (GoTrue + PostgreSQL)
263263
- Complex session management logic
264264
- Security-critical - extra review care needed
265-
- Default branch: **master**
266265
- See [auth-js README](packages/core/auth-js/README.md) for details
267266

268267
### realtime-js
269268

270269
- WebSocket-based, timing-sensitive
271270
- Mock time in tests when possible
272271
- No Docker required (uses mock WebSockets)
273-
- Default branch: **master**
274272
- See [realtime-js README](packages/core/realtime-js/README.md) for details
275273

276274
### storage-js
277275

278276
- Requires Docker for integration tests (Storage API + PostgreSQL + Kong)
279277
- File handling varies by platform
280-
- Default branch: **main**
281278
- See [storage-js README](packages/core/storage-js/README.md) for details
282279

283280
### postgrest-js
284281

285282
- Pure HTTP client, easiest to test
286283
- Requires Docker for integration tests (PostgREST + PostgreSQL)
287-
- Default branch: **master**
288284
- See [postgrest-js README](packages/core/postgrest-js/README.md) for details
289285

290286
### functions-js
291287

292288
- Simplest library, minimal dependencies
293289
- Uses testcontainers for Deno relay
294-
- Default branch: **main**
295290
- See [functions-js README](packages/core/functions-js/README.md) for details
296291

297292
## Code Style Guidelines
@@ -487,10 +482,10 @@ cat docs/TESTING.md
487482
1. **Ensure branch is up to date:**
488483

489484
```bash
490-
git checkout main
491-
git pull upstream main
485+
git checkout master
486+
git pull upstream master
492487
git checkout your-feature-branch
493-
git rebase main
488+
git rebase master
494489
```
495490

496491
2. **Run all necessary checks:**
@@ -643,7 +638,7 @@ nx test auth-js --testFile=GoTrueClient.test.ts
643638
**Canary Releases (Automated)**:
644639

645640
```bash
646-
# Triggered automatically on every commit to main
641+
# Triggered automatically on every commit to master
647642
git commit -m "fix(auth): resolve token issue"
648643
# → Automatic CI: nx release --tag=canary --yes
649644
# → Published: 2.80.1-canary.0 to 'canary' dist-tag

CONTRIBUTING.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ Thank you for your interest in contributing to the Supabase JavaScript client li
5656

5757
### Making Changes
5858

59-
1. **Create a new branch** from `main`:
59+
1. **Create a new branch** from `master`:
6060

6161
```bash
6262
git checkout -b feature/your-feature-name
@@ -186,13 +186,13 @@ ci(release): add preview package generation
186186

187187
### Before Submitting
188188

189-
1. **Ensure your branch is up to date** with `main`:
189+
1. **Ensure your branch is up to date** with `master`:
190190

191191
```bash
192-
git checkout main
193-
git pull upstream main
192+
git checkout master
193+
git pull upstream master
194194
git checkout your-branch
195-
git rebase main
195+
git rebase master
196196
```
197197

198198
2. **Run the full test suite**:
@@ -283,7 +283,7 @@ npx nx test <package> --coverage
283283
We automatically generate TypeScript API documentation that is used by the main [Supabase documentation site](https://supabase.com/docs). The process works as follows:
284284

285285
1. **TypeDoc generates JSON specifications** from TypeScript source code
286-
2. **GitHub Actions publishes** these specs to GitHub Pages on every push to `main`
286+
2. **GitHub Actions publishes** these specs to GitHub Pages on every push to `master`
287287
3. **Main Supabase repository** uses these JSON files to generate the official API docs via `make` commands
288288

289289
#### Available Documentation Commands

README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
# Supabase JS Client Libraries
22

3+
<div align="center">
4+
[![pkg.pr.new](https://pkg.pr.new/badge/supabase/supabase-js)](https://pkg.pr.new/badge/supabase/supabase-js)
5+
</div>
6+
37
_The Supabase JS monorepo containing all the Supabase JavaScript client libraries._
48

59
> **📣 Coming from our old repositories?** The `supabase-js` repository has been converted into a monorepo and all other client libraries have been absorbed into it. If you previously contributed to individual repositories like `auth-js`, `postgrest-js`, `realtime-js`, `storage-js`, or `functions-js`, please see our **[Migration Guide](./docs/MIGRATION.md)** to learn about the new structure and workflows.

WARP.md

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -256,14 +256,14 @@ nx affected --target=test
256256
257257
### Library Characteristics
258258

259-
| Library | Default Branch | Docker Required | Primary Use Case |
260-
| ------------ | -------------- | --------------- | -------------------------- |
261-
| supabase-js | master | ❌ No | Main isomorphic client |
262-
| auth-js | master | ✅ Yes | Authentication & user mgmt |
263-
| postgrest-js | master | ✅ Yes | Database queries |
264-
| realtime-js | master | ❌ No | Real-time subscriptions |
265-
| functions-js | main | ✅ Yes | Edge Functions invocation |
266-
| storage-js | main | ✅ Yes | File storage operations |
259+
| Library | Docker Required | Primary Use Case |
260+
| ------------ | --------------- | -------------------------- |
261+
| supabase-js | ❌ No | Main isomorphic client |
262+
| auth-js | ✅ Yes | Authentication & user mgmt |
263+
| postgrest-js | ✅ Yes | Database queries |
264+
| realtime-js | ❌ No | Real-time subscriptions |
265+
| functions-js | ✅ Yes | Edge Functions invocation |
266+
| storage-js | ✅ Yes | File storage operations |
267267

268268
## Nx Workspace Features
269269

@@ -343,7 +343,7 @@ All packages in this monorepo use **fixed version mode**, meaning they share the
343343

344344
#### 1. Canary Releases (Automated)
345345

346-
**Trigger**: Every commit to `main` branch
346+
**Trigger**: Every commit to `master` branch
347347
**Workflow**: `.github/workflows/main-ci-release.yml`
348348

349349
- Automatically creates pre-release version (e.g., `2.80.1-canary.0`)
@@ -489,7 +489,7 @@ feat(realtime)!: remove deprecated subscribe method
489489
490490
### Before Submitting
491491

492-
1. Ensure your branch is up to date with `main`
492+
1. Ensure your branch is up to date with `master`
493493
2. Run affected tests: `nx affected --target=test`
494494
3. Run affected builds: `nx affected --target=build`
495495
4. Format code: `nx format`

docs/MIGRATION.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -263,8 +263,8 @@ Commands that weren't available in separate repos:
263263
# Visualize project dependencies
264264
npx nx graph
265265

266-
# Build only what changed since main
267-
npx nx affected --target=build --base=main
266+
# Build only what changed since master
267+
npx nx affected --target=build --base=master
268268

269269
# Test only what changed
270270
npx nx affected --target=test

docs/RELEASE.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
# Release Workflows
22

3-
- [.github/workflows/main-ci-release.yml](.github/workflows/main-ci-release.yml) - Main branch CI & automated canary releases
3+
- [.github/workflows/main-ci-release.yml](.github/workflows/main-ci-release.yml) - Main CI & automated canary releases
44
- [.github/workflows/release-stable.yml](.github/workflows/release-stable.yml) - Manual stable releases
55
- [.github/workflows/preview-release.yml](.github/workflows/preview-release.yml) - PR preview releases
66

77
## Overview
88

99
This monorepo uses a fixed release model where all packages share a single version number and are released together. There are three types of releases:
1010

11-
1. **Canary Releases** - Automated pre-releases on every commit to main
11+
1. **Canary Releases** - Automated pre-releases on every commit to master
1212
2. **Stable Releases** - Manual releases for production use
1313
3. **Preview Releases** - PR-specific releases for testing changes
1414

@@ -17,7 +17,7 @@ This monorepo uses a fixed release model where all packages share a single versi
1717
### 🤖 Canary Releases (Automated)
1818

1919
**File:** `main-ci-release.yml`
20-
**Trigger:** Every push to `main` branch
20+
**Trigger:** Every push to `master` branch
2121
**Purpose:** Immediate feedback with pre-release versions
2222

2323
#### What it does
@@ -37,7 +37,7 @@ This monorepo uses a fixed release model where all packages share a single versi
3737
git commit -m "fix(auth): resolve token refresh issue"
3838
```
3939

40-
- Open PR and get it merged to `main`
40+
- Open PR and get it merged to `master`
4141

4242
- Then:
4343
→ CI runs and passes
@@ -119,7 +119,7 @@ Canary releases are **fully automated**. Simply:
119119

120120
1. Make changes in your feature branch
121121
2. Use conventional commits with type and scope (e.g., `fix(auth):`, `feat(realtime):`, `chore(repo):`)
122-
3. Create and merge PR to `main` branch
122+
3. Create and merge PR to `master` branch
123123
4. Workflow automatically:
124124
- Runs CI checks
125125
- Creates pre-release version
@@ -197,7 +197,7 @@ The workflows rely on `nx.json` release configuration:
197197
### For Repository Owners
198198

199199
1. **Release cadence**:
200-
- Canary: Automatic on every `main` commit
200+
- Canary: Automatic on every `master` commit
201201
- Stable: Weekly or as needed
202202
- Major: Coordinate with team and users
203203
2. **Version strategy**:
@@ -209,7 +209,7 @@ The workflows rely on `nx.json` release configuration:
209209

210210
### For Emergency Releases
211211

212-
1. **Fix in `main` first** - Apply fix and let canary release
212+
1. **Fix in `master` first** - Apply fix and let canary release
213213
2. **Test canary** - Verify fix works in canary version
214214
3. **Release stable** - Use stable workflow with `patch`
215215
4. **Document incident** - Update changelog with details

0 commit comments

Comments
 (0)