@supabase/postgrest-js 2.105.5-beta.0 → 2.105.5-beta.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@supabase/postgrest-js",
3
- "version": "2.105.5-beta.0",
3
+ "version": "2.105.5-beta.8",
4
4
  "description": "Isomorphic PostgREST client",
5
5
  "keywords": [
6
6
  "postgrest",
@@ -36,21 +36,6 @@
36
36
  "url": "https://github.com/supabase/supabase-js.git",
37
37
  "directory": "packages/core/postgrest-js"
38
38
  },
39
- "scripts": {
40
- "build": "tsdown",
41
- "build:watch": "tsdown --watch",
42
- "format": "node scripts/format.js",
43
- "format:check": "node scripts/format.js check",
44
- "docs": "typedoc src/index.ts --out docs/v2",
45
- "docs:json": "typedoc --json docs/v2/spec.json --excludeExternals src/index.ts",
46
- "test:run": "jest --runInBand --coverage -u",
47
- "test:smoke": "node test/smoke.cjs && node test/smoke.mjs",
48
- "test:types": "tstyche",
49
- "test:types:ci": "tstyche --target '4.7,5.5,latest'",
50
- "test:types:watch": "chokidar 'src/**/*.ts' 'test/**/*.ts' -c 'npm run test:types'",
51
- "type-check": "tsc --noEmit --project tsconfig.json",
52
- "type-check:test": "tsc --noEmit --project tsconfig.test.json"
53
- },
54
39
  "dependencies": {
55
40
  "tslib": "2.8.1"
56
41
  },
@@ -65,5 +50,20 @@
65
50
  },
66
51
  "engines": {
67
52
  "node": ">=20.0.0"
53
+ },
54
+ "scripts": {
55
+ "build": "tsdown",
56
+ "build:watch": "tsdown --watch",
57
+ "format": "node scripts/format.js",
58
+ "format:check": "node scripts/format.js check",
59
+ "docs": "typedoc src/index.ts --out docs/v2",
60
+ "docs:json": "typedoc --json docs/v2/spec.json --excludeExternals src/index.ts",
61
+ "test:run": "jest --runInBand --coverage -u",
62
+ "test:smoke": "node test/smoke.cjs && node test/smoke.mjs",
63
+ "test:types": "tstyche",
64
+ "test:types:ci": "tstyche --target '4.7,5.5,latest'",
65
+ "test:types:watch": "chokidar 'src/**/*.ts' 'test/**/*.ts' -c 'npm run test:types'",
66
+ "type-check": "tsc --noEmit --project tsconfig.json",
67
+ "type-check:test": "tsc --noEmit --project tsconfig.test.json"
68
68
  }
69
- }
69
+ }
@@ -451,7 +451,7 @@ export default abstract class PostgrestBuilder<
451
451
  */
452
452
  private async processResponse(res: Response): Promise<{
453
453
  success: boolean
454
- error: PostgrestError | null
454
+ error: any
455
455
  data: any
456
456
  count: number | null
457
457
  status: number
@@ -538,7 +538,7 @@ export default abstract class PostgrestBuilder<
538
538
 
539
539
  return {
540
540
  success: error === null,
541
- error: error ? new PostgrestError(error) : null,
541
+ error,
542
542
  data,
543
543
  count,
544
544
  status,
@@ -23,12 +23,6 @@ export default class PostgrestError extends Error {
23
23
  */
24
24
  constructor(context: { message: string; details: string; hint: string; code: string }) {
25
25
  super(context.message)
26
- Object.defineProperty(this, 'message', {
27
- value: context.message,
28
- enumerable: true,
29
- writable: true,
30
- configurable: true,
31
- })
32
26
  this.name = 'PostgrestError'
33
27
  this.details = context.details
34
28
  this.hint = context.hint
@@ -176,6 +176,9 @@ export default class PostgrestFilterBuilder<
176
176
  /**
177
177
  * Match only rows where `column` is not equal to `value`.
178
178
  *
179
+ * This filter does not include rows where `column` is `NULL`. To match null
180
+ * values, use `.is(column, null)` instead.
181
+ *
179
182
  * @param column - The column to filter on
180
183
  * @param value - The value to filter with
181
184
  *
package/src/version.ts CHANGED
@@ -4,4 +4,4 @@
4
4
  // - Debugging and support (identifying which version is running)
5
5
  // - Telemetry and logging (version reporting in errors/analytics)
6
6
  // - Ensuring build artifacts match the published package version
7
- export const version = '2.105.5-beta.0'
7
+ export const version = '2.105.5-beta.8'