-
Notifications
You must be signed in to change notification settings - Fork 70
Update fixtures and tests with relay-compiler v10.0.0 #196
Conversation
@@ -1084,7 +1084,7 @@ function getDataTypeName(name: string): string { | |||
} | |||
|
|||
// Should match FLOW_TRANSFORMS array | |||
// https://github.com/facebook/relay/blob/v6.0.0/packages/relay-compiler/language/javascript/RelayFlowGenerator.js#L621-L627 | |||
// https://github.com/facebook/relay/blob/v10.0.0/packages/relay-compiler/language/javascript/RelayFlowGenerator.js#L982 |
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.
Only updated the url (or maybe shouldn't have?). The transforms array seems to be in sync with relay-compiler
.
do you have a custom handler? |
By handler do you mean |
make sure the handler is being called and that generated have the metadata |
By handler being called you mean my own repo from my issue or in
|
Okay, I've figured it out. I had multiple packages installed that depended on If the PR is of any use I'd be happy to finish it. |
it is working before this changes? |
Yes it does. This package is unrelated to my problem. |
nice! it is working with the examples? |
Seems like it is working just fine (apart from the code completion). Can't confirm 100% as I'm not quite sure how to go about translating a previous config like this: {
type: 'RANGE_ADD',
parentID: userData.id,
edgeName: 'result',
connectionInfo: [
{ key: 'Normal_profiles', rangeBehavior: 'append' },
],
}, Into the new One strange thing I noticed is that
But this is obviously unrelated to this package. As I've said before, if this PR is of any use I'd be happy to finish it. |
I think it is useful to finish this to keep everything up to date the last part would be to run this changes on relay-examples, also testing it new directives works well there |
Okay, I will work on that next at weekend :) Thank you for your help so far, I love relay and will be happy to contribute. |
# Conflicts: # package.json # yarn.lock
@wadamek65 I created a PR only with the updates of the packages and fixtures and i merged it. You are making great updates to the examples. We really appreciate what you've been doing. Please get the updates and I think we'll be ready to merge |
# Conflicts: # example-hooks/package.json # example-hooks/yarn.lock # example/package.json # package.json # test/__snapshots__/TypeScriptGenerator-test.ts.snap # test/fixtures/type-generator/mutation-with-delete-record.graphql # yarn.lock
I think everything should be up to date now @thicodes |
good job! |
Great job @wadamek65, thanks! 🙏 |
🚀 PR was released in v13.0.1 🚀 |
Even though the tests with new directives pass just fine, actually using the new directives with these changes still does not work.
Submitting draft as I'm not sure what to check next.
Should fix #195 after it is done properly.
@sibelius