Skip to content

v2.0.0

Compare
Choose a tag to compare
@JakeGinnivan JakeGinnivan released this 24 Jan 08:03
· 60 commits to master since this release
6547fa8

2.0.0 (2019-01-24)

BREAKING CHANGES

Removed withArgs

The withArgs function has been removed. Previously it has been required so that type safety around the query arguments can be ensured. Now args must be passed in as a second parameter of the execute function.

This change also effects how the query function is structured. Now, the “args” are passed into the second argument of the query function.

Here is an example of how it now works:

const query = queryExecutor.createQuery<string, string>(
   async ({ tables }, arg) => {
       tables.tableOne()
       return arg
    }
)

await queryExecutor.execute(query, ‘hello!)