@supabase/postgrest-js 3.0.0-next.17 → 3.0.0-next.18
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/dist/index.cjs +1 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +331 -16
- package/dist/index.d.cts.map +1 -1
- package/dist/index.d.mts +331 -16
- package/dist/index.d.mts.map +1 -1
- package/dist/index.mjs +1 -1
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
- package/src/PostgrestBuilder.ts +6 -2
- package/src/PostgrestQueryBuilder.ts +0 -76
- package/src/version.ts +1 -1
package/package.json
CHANGED
package/src/PostgrestBuilder.ts
CHANGED
|
@@ -321,9 +321,13 @@ export default abstract class PostgrestBuilder<
|
|
|
321
321
|
),
|
|
322
322
|
signal: this.signal,
|
|
323
323
|
})
|
|
324
|
-
} catch (fetchError
|
|
324
|
+
} catch (fetchError) {
|
|
325
325
|
// Never retry aborted requests
|
|
326
|
-
if (
|
|
326
|
+
if (
|
|
327
|
+
fetchError instanceof Error &&
|
|
328
|
+
(fetchError.name === 'AbortError' ||
|
|
329
|
+
('code' in fetchError && (fetchError as { code?: string }).code === 'ABORT_ERR'))
|
|
330
|
+
) {
|
|
327
331
|
throw fetchError
|
|
328
332
|
}
|
|
329
333
|
|
|
@@ -936,42 +936,6 @@ export default class PostgrestQueryBuilder<
|
|
|
936
936
|
})
|
|
937
937
|
}
|
|
938
938
|
|
|
939
|
-
// TODO(v3): Make `defaultToNull` consistent for both single & bulk inserts.
|
|
940
|
-
insert<Row extends Relation extends { Insert: unknown } ? Relation['Insert'] : never>(
|
|
941
|
-
values: RejectExcessProperties<
|
|
942
|
-
Relation extends { Insert: unknown } ? Relation['Insert'] : never,
|
|
943
|
-
Row
|
|
944
|
-
>,
|
|
945
|
-
options?: {
|
|
946
|
-
count?: 'exact' | 'planned' | 'estimated' | (string & {})
|
|
947
|
-
}
|
|
948
|
-
): PostgrestFilterBuilder<
|
|
949
|
-
ClientOptions,
|
|
950
|
-
Schema,
|
|
951
|
-
Relation['Row'],
|
|
952
|
-
null,
|
|
953
|
-
RelationName,
|
|
954
|
-
Relationships,
|
|
955
|
-
'POST'
|
|
956
|
-
>
|
|
957
|
-
insert<Row extends Relation extends { Insert: unknown } ? Relation['Insert'] : never>(
|
|
958
|
-
values: RejectExcessProperties<
|
|
959
|
-
Relation extends { Insert: unknown } ? Relation['Insert'] : never,
|
|
960
|
-
Row
|
|
961
|
-
>[],
|
|
962
|
-
options?: {
|
|
963
|
-
count?: 'exact' | 'planned' | 'estimated' | (string & {})
|
|
964
|
-
defaultToNull?: boolean
|
|
965
|
-
}
|
|
966
|
-
): PostgrestFilterBuilder<
|
|
967
|
-
ClientOptions,
|
|
968
|
-
Schema,
|
|
969
|
-
Relation['Row'],
|
|
970
|
-
null,
|
|
971
|
-
RelationName,
|
|
972
|
-
Relationships,
|
|
973
|
-
'POST'
|
|
974
|
-
>
|
|
975
939
|
/**
|
|
976
940
|
* Perform an INSERT into the table or view.
|
|
977
941
|
*
|
|
@@ -1139,46 +1103,6 @@ export default class PostgrestQueryBuilder<
|
|
|
1139
1103
|
})
|
|
1140
1104
|
}
|
|
1141
1105
|
|
|
1142
|
-
// TODO(v3): Make `defaultToNull` consistent for both single & bulk upserts.
|
|
1143
|
-
upsert<Row extends Relation extends { Insert: unknown } ? Relation['Insert'] : never>(
|
|
1144
|
-
values: RejectExcessProperties<
|
|
1145
|
-
Relation extends { Insert: unknown } ? Relation['Insert'] : never,
|
|
1146
|
-
Row
|
|
1147
|
-
>,
|
|
1148
|
-
options?: {
|
|
1149
|
-
onConflict?: string
|
|
1150
|
-
ignoreDuplicates?: boolean
|
|
1151
|
-
count?: 'exact' | 'planned' | 'estimated' | (string & {})
|
|
1152
|
-
}
|
|
1153
|
-
): PostgrestFilterBuilder<
|
|
1154
|
-
ClientOptions,
|
|
1155
|
-
Schema,
|
|
1156
|
-
Relation['Row'],
|
|
1157
|
-
null,
|
|
1158
|
-
RelationName,
|
|
1159
|
-
Relationships,
|
|
1160
|
-
'POST'
|
|
1161
|
-
>
|
|
1162
|
-
upsert<Row extends Relation extends { Insert: unknown } ? Relation['Insert'] : never>(
|
|
1163
|
-
values: RejectExcessProperties<
|
|
1164
|
-
Relation extends { Insert: unknown } ? Relation['Insert'] : never,
|
|
1165
|
-
Row
|
|
1166
|
-
>[],
|
|
1167
|
-
options?: {
|
|
1168
|
-
onConflict?: string
|
|
1169
|
-
ignoreDuplicates?: boolean
|
|
1170
|
-
count?: 'exact' | 'planned' | 'estimated' | (string & {})
|
|
1171
|
-
defaultToNull?: boolean
|
|
1172
|
-
}
|
|
1173
|
-
): PostgrestFilterBuilder<
|
|
1174
|
-
ClientOptions,
|
|
1175
|
-
Schema,
|
|
1176
|
-
Relation['Row'],
|
|
1177
|
-
null,
|
|
1178
|
-
RelationName,
|
|
1179
|
-
Relationships,
|
|
1180
|
-
'POST'
|
|
1181
|
-
>
|
|
1182
1106
|
/**
|
|
1183
1107
|
* Perform an UPSERT on the table or view. Depending on the column(s) passed
|
|
1184
1108
|
* to `onConflict`, `.upsert()` allows you to perform the equivalent of
|
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 = '3.0.0-next.
|
|
7
|
+
export const version = '3.0.0-next.18'
|