-
-
Notifications
You must be signed in to change notification settings - Fork 97
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
Bugfix/mikro orm knex upgrade #351
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great work, this ought to be merged and published ASAP.
My one piece of feedback is that running npm audit --omit=dev
on this branch still fails. If I checkout the branch and run npm audit fix
, the vulnerability goes away and all tests still pass without any further changes to package.json. I'd recommend this gets done in this PR as well, so that pg-mem can finally be free of vulnerabilities in its dependencies.
Thanks for the heads up @sangaman, I've updated the PR accordingly. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Awesome, thank you!
@sangaman could you please approve workflows and get it released please as it's been reviewed and approved already? |
I wish I could, but I'm not a maintainer 😄. Maybe this repo isn't being maintained currently and ought to be transferred or forked, but I don't think I have the time/expertise to do that myself. |
Related oguimbal/pgsql-ast-parser#140 to add |
@oguimbal hey! glad to see you back! are you solving the conflicts or do you want me to do it? AST parser version should be bumped too to remove the ugly set names hack. |
If you could resolve it, that would be great :) |
Note that mikro-orm depends on knex on runtime
It used to work by just intercepting the query but it now builds a bigger query which includes this part and breaks the parser.
Based on oguimbal#270 done by @L2jLiga
b728ace
to
556be43
Compare
Done :) Btw, I tried to remove the |
thanks. see my comment on #377 |
Not sure why the tests did not pass for node 14 though ? |
That's weird, I've just tested locally and seems to work fine.
|
And... reproduced...
Considering neither Node 14/16 are supported maybe it's time to bump it? https://nodejs.org/en/about/previous-releases |
Resolved in #377 integrating ast parser change |
Had to change where mikro-orm
set names
query is catch as it seems the new version does not execute it in a single query.All unit tests passing both in master with knex 0 and mikro-orm 4 and with the new versions.
Relates to #270 #255 #313 #214 #361