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
Rename src directory to lib #3338
Conversation
- This restores backwards compatibility with versions before 0.18 if you were importing submodules directly, e.g. `lib/query/builder`.
Please check also if documentation repo needs changes when it builds knex. Some stub requires might need fixing. |
Will do. |
I checked and I can't find any reference to
I'll fix the conflicts now. |
@ricardograca Thank you! I will be releasing 0.18.4 shortly, and after that will merge the PR to 0.19.0 when PR is ready. |
Thanks! I just fixed the conflicts. You can ping me if there are more in the mean time. |
Nope, seems to be just fine. I'll wait for CI to complete and then merge it. Thank you again! |
Thanks! I didn't realize that was just an example in the |
There seems to be one error in the test suite when running in Node 8. This wasn't happening before. Is it a known issue? |
@ricardograca Difficult to check logs on mobile, but wasn't it #3225? |
All seem to pass in master at least. |
@kibertoad I restarted the job and then deleted the branch (oops) so I can't see the original log or re-run the test, but it was one test complaining that an array of length 1 was expected but got 0. In any case, if |
This restores backwards compatibility with versions before 0.18 if you were importing sub-packages directly, e.g.
lib/query/builder
. This technique is used when mocking certain parts of the Knex API for testing other applications that use Knex.Link to discussion: bookshelf/bookshelf#1988
Note that there are no drawbacks to this change, other than breaking backwards compatibility again for people that could have used the same technique for versions 0.18.0-0.18.3, but considering this was released a couple of weeks ago this scenario is unlikely.
The idea here is to maintain the internal structure of the files available in the released build as in previous versions.