-
Notifications
You must be signed in to change notification settings - Fork 2
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
[91] update packages to resolve deep dependencies #92
Conversation
@@ -97,7 +97,7 @@ $ mongod | |||
npm start | |||
``` | |||
|
|||
4. personal is now running and you can access it `http://localhost:3232/graphql` | |||
4. persona is now running and you can access it `http://localhost:3232/graphql` |
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.
typo
04cd089
to
8b7b175
Compare
@@ -43,7 +43,8 @@ const connect = () => | |||
reject(err); | |||
} else { | |||
console.log(`Connected to mongo at mongodb://${mongoHost}/${mongoDb}`); | |||
resolve(); | |||
resolve(null); // null required by 'strictNullChecks' |
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.
This is necessary in the latest version of TypeScript.
Looks like the maintainers walked themselves into a corner... still trying to figure everyone's way out of it.
microsoft/TypeScript#29131.
other people with the same issue:
microsoft/TypeScript#41563
microsoft/TypeScript#11498
microsoft/TypeScript#8516
microsoft/TypeScript#3356
microsoft/TypeScript#4260
DefinitelyTyped/DefinitelyTyped#6091
(Ignore my tone, I'm biased)
edit: According to this TS changelog from 4 days ago, this is not a bug but a "feature". 🤦🏻♂️
And they're breaking the internet with it.
the Seems that Just my cents, let me know what you're thinking and if I can help @caravinci |
Edit: ignore this comment. Modified the PR to disallow You're 100% right, if that's the case! Updating the lock is one of the functionalities expected from Thankfully, we don't suggest using that command anywhere in the documentation, nor have I been able to find it being used in the automation scripts (which as a side note, did help me realise the dockerfile strangely uses yarn, even though this app doesn't have a yarn lockfile.) As for the resolutions approach, I wasn't aware Rather than using this package, or even changing the lock directly, the ideal scenario here would be as
I've seen cases in which updating only the deep inner dependencies has actually broken the top-level ones, because of breaking changes and compatibility. Thoughts? |
Update: After locking down the exact resolution versions, not even Apart from effective, this approach makes it easier to maintain resolutions later keeping package.json as the single source of truth; and delegating the lock generation to npm, where it belongs.
|
@@ -1,4 +1,4 @@ | |||
import { GQC } from 'graphql-compose'; | |||
import { schemaComposer } from 'graphql-compose'; |
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.
deprecated past graphql-compose@3
@@ -1,16 +1,16 @@ | |||
import { TypeComposer } from 'graphql-compose'; | |||
import { schemaComposer } from 'graphql-compose'; |
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.
deprecated past graphql-compose@6
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.
Thank you Justin!
Closes #91, supersedes #90, #85 and #93.