Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
31 changes: 0 additions & 31 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions packages/core/postgrest-js/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@
"build": "npm run clean && npm run build:cjs && npm run build:esm",
"build:cjs": "tsc -p tsconfig.json",
"build:esm": "cpy wrapper.mjs dist/esm/",
"build:module": "npm run build:cjs",
"docs": "typedoc src/index.ts --out docs/v2",
"docs:json": "typedoc --json docs/v2/spec.json --excludeExternals src/index.ts",
"test:ci:postgrest": "npm run db:clean && npm run db:run && npm run test:run && npm run db:clean && npm run test:smoke",
Expand Down
4 changes: 2 additions & 2 deletions packages/core/postgrest-js/wrapper.mjs
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
import index from '../cjs/index.js'
import * as index from '../cjs/index.js'
const {
PostgrestClient,
PostgrestQueryBuilder,
PostgrestFilterBuilder,
PostgrestTransformBuilder,
PostgrestBuilder,
PostgrestError,
} = index
} = index.default || index

export {
PostgrestBuilder,
Expand Down
1 change: 1 addition & 0 deletions packages/core/supabase-js/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,7 @@ docs/v2
# Test package-lock files (use local tarball, checksums change with builds)
test/*/package-lock.json
test/integration/*/package-lock.json
test/integration/*/bun.lock

.cursor/

Expand Down
12 changes: 6 additions & 6 deletions packages/core/supabase-js/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,19 +37,19 @@
"test:coverage": "jest --runInBand --coverage --testPathIgnorePatterns=\"test/integration|test/deno\"",
"test:integration": "jest --runInBand --detectOpenHandles test/integration.test.ts",
"test:integration:browser": "deno test --allow-all test/integration.browser.test.ts",
"test:edge-functions": "deno test --allow-all --no-check --unstable-sloppy-imports --config test/deno/deno.json test/deno/edge-functions-integration.test.ts",
"test:edge-functions": "cd test/deno && npm run test:edge-functions",
"test:watch": "jest --watch --verbose false --silent false",
"test:node:playwright": "cd test/integration/node-browser && npm install && cp ../../../dist/umd/supabase.js . && npm run test",
"test:bun": "cd test/integration/bun && bun install && bun test",
"test:types": "tsd --files test/types/*.test-d.ts && jsr publish --dry-run --allow-dirty",
"docs": "typedoc --entryPoints src/index.ts --out docs/v2",
"docs:json": "typedoc --entryPoints src/index.ts --json docs/v2/spec.json --excludeExternals",
"serve:coverage": "npx nx test:coverage supabase-js && serve test/coverage",
"update:test-deps": "npx nx build supabase-js && npm pack && cp supabase-supabase-js-*.tgz test/integration/expo/supabase-supabase-js-0.0.0-automated.tgz && cp supabase-supabase-js-*.tgz test/integration/next/supabase-supabase-js-0.0.0-automated.tgz && cp supabase-supabase-js-*.tgz test/deno/supabase-supabase-js-0.0.0-automated.tgz && cp supabase-supabase-js-*.tgz test/integration/bun/supabase-supabase-js-0.0.0-automated.tgz && cd test/integration/expo && npm install && cd ../next && npm install --legacy-peer-deps && cd ../../deno && npm install && cd ../integration/bun && bun install",
"update:test-deps:expo": "npx nx build supabase-js && npm pack && cp supabase-supabase-js-*.tgz test/integration/expo/supabase-supabase-js-0.0.0-automated.tgz && cd test/integration/expo && npm install",
"update:test-deps:next": "npx nx build supabase-js && npm pack && cp supabase-supabase-js-*.tgz test/integration/next/supabase-supabase-js-0.0.0-automated.tgz && cd test/integration/next && npm install --legacy-peer-deps",
"update:test-deps:deno": "npx nx build supabase-js && npm pack && cp supabase-supabase-js-*.tgz test/deno/supabase-supabase-js-0.0.0-automated.tgz && cd test/deno && npm install",
"update:test-deps:bun": "npx nx build supabase-js && npm pack && cp supabase-supabase-js-*.tgz test/integration/bun/supabase-supabase-js-0.0.0-automated.tgz && cd test/integration/bun && bun install"
"update:test-deps": "npm run update:test-deps:expo && npm run update:test-deps:next && npm run update:test-deps:deno && npm run update:test-deps:bun",
"update:test-deps:expo": "cd test/integration/expo && npm install",
"update:test-deps:next": "cd test/integration/next && npm install --legacy-peer-deps",
"update:test-deps:deno": "cd test/deno && npm install",
"update:test-deps:bun": "cd test/integration/bun && bun install"
},
"dependencies": {
"@supabase/auth-js": "*",
Expand Down
4 changes: 2 additions & 2 deletions packages/core/supabase-js/test/deno/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
"name": "test-deno",
"private": true,
"scripts": {
"test": "npm run setup-deps && deno test --allow-all --no-check --unstable-sloppy-imports integration.test.ts",
"test:edge-functions": "npm run setup-deps && deno test --allow-all --no-check --unstable-sloppy-imports edge-functions-integration.test.ts",
"test": "npm run setup-deps && node run-deno-test.js integration.test.ts",
"test:edge-functions": "npm run setup-deps && node run-deno-test.js edge-functions-integration.test.ts",
"setup-deps": "node setup-deps.js"
},
"dependencies": {
Expand Down
41 changes: 41 additions & 0 deletions packages/core/supabase-js/test/deno/run-deno-test.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
#!/usr/bin/env node

const { execSync } = require('child_process');

// Get Deno version
let denoVersion = '1.0.0'; // default fallback
try {
const versionOutput = execSync('deno --version', { encoding: 'utf-8' });
const match = versionOutput.match(/deno (\d+)\.(\d+)\.(\d+)/);
if (match) {
denoVersion = `${match[1]}.${match[2]}.${match[3]}`;
}
} catch (error) {
console.warn('Could not determine Deno version, assuming 1.x');
}

const majorVersion = parseInt(denoVersion.split('.')[0]);

// Get test file from arguments
const testFile = process.argv[2] || 'integration.test.ts';

// Base flags that work for both versions
let flags = '--allow-all --no-check --unstable-sloppy-imports';

// Add version-specific flags
if (majorVersion >= 2) {
flags += ' --unstable-detect-cjs';
console.log(`Running with Deno ${denoVersion} (v2+ detected, using --unstable-detect-cjs)`);
} else {
console.log(`Running with Deno ${denoVersion} (v1.x detected, skipping --unstable-detect-cjs)`);
}

// Run the test
const command = `deno test ${flags} ${testFile}`;
console.log(`Executing: ${command}\n`);

try {
execSync(command, { stdio: 'inherit' });
} catch (error) {
process.exit(error.status || 1);
}
51 changes: 0 additions & 51 deletions packages/core/supabase-js/test/integration/bun/bun.lock

This file was deleted.

2 changes: 1 addition & 1 deletion project.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"port": 4873,
"config": ".verdaccio/config.yml",
"storage": "tmp/local-registry/storage",
"clear": false
"clear": true
}
},
"populate-local-registry": {
Expand Down