You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Recently Knex released a HUGE release 0.95.0 and it contains breaking changes and knex-tiny-logger not working with an error knex.client._formatQuery is not a function.
Replace knex.client._formatQuery with require('knex/lib/execution/internal/query-executioner').formatQuery fixes the issue.
Can I create a PR for this?
Downside of require('knex/lib/execution/internal/query-executioner').formatQuery is: 1) it is a breaking change 2) it is a private API which should be avoided.
The text was updated successfully, but these errors were encountered:
I published 2.1.0 version which supports both knex internal APIs > 0.20.x and > 0.95.0.
Downside of require('knex/lib/execution/internal/query-executioner').formatQuery is:
it is a breaking change
it is a private API which should be avoided.
It's always possible to have support both API without breaking changes 🙂.
I definitely agree with you. But it's same matter as knex.client._formatQuery which is private method.
The major benefit of built in knex formatter is dialects support. But sad truth is that seems it's time to move forward and change a bit API – ship a default query formatter and give developers ability to customize.
Hi, thank you for the great library.
Recently Knex released a HUGE release 0.95.0 and it contains breaking changes and knex-tiny-logger not working with an error
knex.client._formatQuery is not a function
.https://github.com/knex/knex/releases/tag/0.95.0
Replace
knex.client._formatQuery
withrequire('knex/lib/execution/internal/query-executioner').formatQuery
fixes the issue.Can I create a PR for this?
Downside of
require('knex/lib/execution/internal/query-executioner').formatQuery
is: 1) it is a breaking change 2) it is a private API which should be avoided.The text was updated successfully, but these errors were encountered: