Skip to content

Commit

Permalink
feat(deps)!: bump slonik from ^26.2.2 to ^28.1.1
Browse files Browse the repository at this point in the history
  • Loading branch information
sylver committed Jul 27, 2022
1 parent 22b90e6 commit 12dfcf6
Show file tree
Hide file tree
Showing 6 changed files with 14 additions and 14 deletions.
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,11 +36,11 @@
"nyc": "^15.1.0",
"semantic-release": "^19.0.3",
"sinon": "^12.0.1",
"slonik": "^26.2.2",
"slonik": "^28.1.1",
"ts-node": "^10.4.0"
},
"peerDependencies": {
"slonik": "*"
"slonik": "^28.*"
},
"engines": {
"node": ">=8.0"
Expand Down
4 changes: 2 additions & 2 deletions src/routines/update.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import {
sql,
} from 'slonik';
import type {
DatabaseConnectionType,
DatabaseConnection,
} from 'slonik';
import type {
NamedAssignmentPayload,
Expand All @@ -22,7 +22,7 @@ type UpdateResultType = {
};

export const update = async (
connection: DatabaseConnectionType,
connection: DatabaseConnection,
tableName: string,
namedAssignmentPayload: NamedAssignmentPayload,
booleanExpressionValues: Record<string, boolean | number | string | null> = {},
Expand Down
4 changes: 2 additions & 2 deletions src/routines/updateDistinct.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import {
sql,
} from 'slonik';
import type {
DatabaseConnectionType,
DatabaseConnection,
} from 'slonik';
import type {
NamedAssignmentPayload,
Expand All @@ -17,7 +17,7 @@ type UpdateDistinctResultType = {
};

export const updateDistinct = async (
connection: DatabaseConnectionType,
connection: DatabaseConnection,
tableName: string,
namedAssignmentPayload: NamedAssignmentPayload,
booleanExpressionValues: Record<string, boolean | number | string | null> = {},
Expand Down
8 changes: 4 additions & 4 deletions src/routines/upsert.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,15 +8,15 @@ import {
sql,
} from 'slonik';
import type {
DatabaseConnectionType,
ValueExpressionType,
DatabaseConnection,
ValueExpression,
} from 'slonik';
import {
Logger,
} from '../Logger';

type NamedValueBindingsType = {
readonly [key: string]: ValueExpressionType,
readonly [key: string]: ValueExpression,
};

type UpsertConfigurationType = {
Expand All @@ -36,7 +36,7 @@ const defaultConfiguration = {
};

export const upsert = async (
connection: DatabaseConnectionType,
connection: DatabaseConnection,
tableName: string,
namedValueBindings: NamedValueBindingsType,
inputUniqueConstraintColumnNames: readonly string[] | null = null,
Expand Down
4 changes: 2 additions & 2 deletions src/types.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import type {
ValueExpressionType,
ValueExpression,
} from 'slonik';

export type NamedAssignmentPayload = {
[key: string]: ValueExpressionType,
[key: string]: ValueExpression,
};
4 changes: 2 additions & 2 deletions src/utilities/assignmentList.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import {
sql,
} from 'slonik';
import type {
ListSqlTokenType,
ListSqlToken,
} from 'slonik';
import type {
NamedAssignmentPayload,
Expand All @@ -13,7 +13,7 @@ import {

export const assignmentList = (
namedAssignment: NamedAssignmentPayload,
): ListSqlTokenType => {
): ListSqlToken => {
const values = Object.values(
Object.entries(namedAssignment).map(([
column,
Expand Down

0 comments on commit 12dfcf6

Please sign in to comment.