@supabase/postgrest-js 2.111.0 → 2.111.1-canary.0

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.111.0",
3
+ "version": "2.111.1-canary.0",
4
4
  "description": "Isomorphic PostgREST client",
5
5
  "keywords": [
6
6
  "postgrest",
@@ -192,7 +192,7 @@ export default class PostgrestQueryBuilder<
192
192
  * "message": "permission denied for table characters"
193
193
  * },
194
194
  * "status": 401,
195
- * "statusText": "Unauthorized"
195
+ * "statusText": ""
196
196
  * }
197
197
  * ```
198
198
  *
@@ -1008,7 +1008,7 @@ export default class PostgrestQueryBuilder<
1008
1008
  * ```json
1009
1009
  * {
1010
1010
  * "status": 201,
1011
- * "statusText": "Created"
1011
+ * "statusText": ""
1012
1012
  * }
1013
1013
  * ```
1014
1014
  *
@@ -1045,7 +1045,7 @@ export default class PostgrestQueryBuilder<
1045
1045
  * }
1046
1046
  * ],
1047
1047
  * "status": 201,
1048
- * "statusText": "Created"
1048
+ * "statusText": ""
1049
1049
  * }
1050
1050
  * ```
1051
1051
  *
@@ -1079,7 +1079,7 @@ export default class PostgrestQueryBuilder<
1079
1079
  * "message": "duplicate key value violates unique constraint \"countries_pkey\""
1080
1080
  * },
1081
1081
  * "status": 409,
1082
- * "statusText": "Conflict"
1082
+ * "statusText": ""
1083
1083
  * }
1084
1084
  * ```
1085
1085
  */
@@ -1258,7 +1258,7 @@ export default class PostgrestQueryBuilder<
1258
1258
  * }
1259
1259
  * ],
1260
1260
  * "status": 201,
1261
- * "statusText": "Created"
1261
+ * "statusText": ""
1262
1262
  * }
1263
1263
  * ```
1264
1264
  *
@@ -1307,7 +1307,7 @@ export default class PostgrestQueryBuilder<
1307
1307
  * }
1308
1308
  * ],
1309
1309
  * "status": 201,
1310
- * "statusText": "Created"
1310
+ * "statusText": ""
1311
1311
  * }
1312
1312
  * ```
1313
1313
  *
@@ -1352,7 +1352,7 @@ export default class PostgrestQueryBuilder<
1352
1352
  * "message": "duplicate key value violates unique constraint \"users_handle_key\""
1353
1353
  * },
1354
1354
  * "status": 409,
1355
- * "statusText": "Conflict"
1355
+ * "statusText": ""
1356
1356
  * }
1357
1357
  * ```
1358
1358
  */
@@ -1469,7 +1469,7 @@ export default class PostgrestQueryBuilder<
1469
1469
  * ```json
1470
1470
  * {
1471
1471
  * "status": 204,
1472
- * "statusText": "No Content"
1472
+ * "statusText": ""
1473
1473
  * }
1474
1474
  * ```
1475
1475
  *
@@ -1659,7 +1659,7 @@ export default class PostgrestQueryBuilder<
1659
1659
  * ```json
1660
1660
  * {
1661
1661
  * "status": 204,
1662
- * "statusText": "No Content"
1662
+ * "statusText": ""
1663
1663
  * }
1664
1664
  * ```
1665
1665
  *
@@ -1729,7 +1729,7 @@ export default class PostgrestQueryBuilder<
1729
1729
  * ```json
1730
1730
  * {
1731
1731
  * "status": 204,
1732
- * "statusText": "No Content"
1732
+ * "statusText": ""
1733
1733
  * }
1734
1734
  * ```
1735
1735
  */
@@ -78,7 +78,7 @@ export default class PostgrestTransformBuilder<
78
78
  * }
79
79
  * ],
80
80
  * "status": 201,
81
- * "statusText": "Created"
81
+ * "statusText": ""
82
82
  * }
83
83
  * ```
84
84
  */
@@ -633,8 +633,8 @@ export default class PostgrestTransformBuilder<
633
633
  * "hint": "",
634
634
  * "code": ""
635
635
  * },
636
- * "status": 400,
637
- * "statusText": "Bad Request"
636
+ * "status": 0,
637
+ * "statusText": ""
638
638
  * }
639
639
  *
640
640
  * ```
@@ -9,7 +9,15 @@ import { ClientServerOptions } from './common/common'
9
9
  * {@link https://github.com/supabase/supabase-js/issues/32}
10
10
  */
11
11
  interface PostgrestResponseBase {
12
+ /** HTTP status code of the response. */
12
13
  status: number
14
+ /**
15
+ * HTTP reason phrase of the response, e.g. `"OK"`.
16
+ *
17
+ * May be an empty string: HTTP/2 and HTTP/3 don't carry reason phrases, so
18
+ * responses over those protocols (e.g. browser requests to Supabase) have no
19
+ * `statusText`. Rely on `status` instead of this value.
20
+ */
13
21
  statusText: string
14
22
  }
15
23
  export interface PostgrestResponseSuccess<T> extends PostgrestResponseBase {
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.111.0'
7
+ export const version = '2.111.1-canary.0'