Skip to content
This repository was archived by the owner on Oct 9, 2025. It is now read-only.

Commit 9ca784e

Browse files
committed
rename adjacent -> rangeAdjacent
1 parent 1be1e30 commit 9ca784e

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

src/lib/PostgrestFilterBuilder.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -291,13 +291,13 @@ export default class PostgrestFilterBuilder<T> extends PostgrestTransformBuilder
291291
* @param column The column to filter on.
292292
* @param range The range to filter with.
293293
*/
294-
adjacent(column: keyof T, range: string): this {
294+
rangeAdjacent(column: keyof T, range: string): this {
295295
this.url.searchParams.append(`${column}`, `adj.${range}`)
296296
return this
297297
}
298298

299-
/** @deprecated Use `adjacent()` instead. */
300-
adj = this.adjacent
299+
/** @deprecated Use `rangeAdjacent()` instead. */
300+
adj = this.rangeAdjacent
301301

302302
/**
303303
* Finds all rows whose array or range value on the stated `column` overlaps

test/filters.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -496,8 +496,8 @@ test('rangeLte', async () => {
496496
`)
497497
})
498498

499-
test('adjacent', async () => {
500-
const res = await postgrest.from('users').select('age_range').adjacent('age_range', '[2,25)')
499+
test('rangeAdjacent', async () => {
500+
const res = await postgrest.from('users').select('age_range').rangeAdjacent('age_range', '[2,25)')
501501
expect(res).toMatchInlineSnapshot(`
502502
Object {
503503
"body": Array [

0 commit comments

Comments
 (0)