Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Upgrade knex to 1.x in @expo/entity-database-adapter-knex #150

Merged
merged 1 commit into from
Feb 4, 2022

Conversation

ide
Copy link
Member

@ide ide commented Feb 3, 2022

Why/How

Upgrades knex to 1.x internally. This changes the behavior of returning but not in a way that affects how the knex adapter uses it: returning('*') behaves the same as before.

This does, however, change the TypeScript declarations for knex, which changed from:

 Knex<TRecord extends {} = any, TResult = unknown[]>

to:

 Knex<TRecord extends {} = any, TResult = Record<string, any>[]>

Test Plan

yarn test

@ide ide requested a review from wschurman February 3, 2022 22:55
Upgrades knex to 1.x internally. This changes the behavior of `returning` but not in a way that affects how the knex adapter uses it: `returning('*')` behaves the same as before.

This does, however, change the TypeScript declarations for knex, which changed from:
```
 Knex<TRecord extends {} = any, TResult = unknown[]>
```
to:
```
 Knex<TRecord extends {} = any, TResult = Record<string, any>[]>
```
@codecov
Copy link

codecov bot commented Feb 3, 2022

Codecov Report

Merging #150 (6839572) into master (5d39fa9) will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff           @@
##           master     #150   +/-   ##
=======================================
  Coverage   95.94%   95.94%           
=======================================
  Files          74       74           
  Lines        1874     1874           
  Branches      204      204           
=======================================
  Hits         1798     1798           
  Misses         75       75           
  Partials        1        1           
Flag Coverage Δ
integration 95.94% <ø> (ø)
unittest 95.94% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.


Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 5d39fa9...6839572. Read the comment docs.

@ide ide merged commit e1b0ee5 into master Feb 4, 2022
@ide ide deleted the @ide/knex branch February 4, 2022 02:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants