parse-server
parse-server copied to clipboard
refactor: upgrade @graphql-yoga/node from 2.6.0 to 2.6.1
This PR was automatically created by Snyk using the credentials of a real user.
Snyk has created this PR to upgrade @graphql-yoga/node from 2.6.0 to 2.6.1.
:information_source: Keep your dependencies up-to-date. This makes it easier to fix existing vulnerabilities and to more quickly identify and fix newly disclosed vulnerabilities when they affect your project.
- The recommended version is 3 versions ahead of your current version.
- The recommended version was released 22 days ago, on 2022-05-23.
Release notes
Package name: @graphql-yoga/node
- 2.6.1 - 2022-05-23
- 2.6.1-canary-bfb3b22.0 - 2022-05-23
- 2.6.1-canary-65224d9.0 - 2022-05-23
- 2.6.0 - 2022-05-12
Commit messages
Package name: @graphql-yoga/node
- b6d5c46 chore(release): update monorepo packages versions (#1228)
- e1b031d chore(deps): update dependency bob-tsm to v1 (#1221)
- 0224bf9 fix: prevent status, headers and orginalError being exposed as extension fields (#1226)
- efae9d9 fix(deps): update dependency @ pulumi/pulumi to v3.33.1 (#1224)
- 5f9b323 chore(deps): update all non-major dependencies (#1223)
- 35bec62 fix(deps): update dependency @ pulumi/azure-native to v1.64.1 (#1222)
- e407e2b chore(ci): avoid falsy negatives make @ ardatan happy
- b7a357b Update algolia-lockfile.json
- 32021a3 Fixes spelling mistakes in tutorial (#1218)
- e090259 chore(deps): update all non-major dependencies (#1219)
- 4e540b3 chore(deps): update all non-major dependencies (#1216)
- 1fa18fb apply `@ typescript-eslint/no-unused-vars` rule fixes (#1212)
- 50ba6fa apply `react/jsx-curly-brace-presence` rule fixes (#1209)
- 22c9730 apply `prefer-const` rule fixes (#1211)
- 9120907 apply `unicorn/no-lonely-if` rule fixes (#1210)
- 291eac9 apply `object-shorthand` rule fixes (#1208)
- 838aba5 apply `no-else-return` rule fixes (#1207)
- fced041 docs: fix envelop plugins link (#1205)
- dd6467c chore(deps): update dependency puppeteer to v14.1.0 (#1204)
- b4cfcc9 chore(deps): update dependency @ types/react-dom to v17.0.17 (#1201)
- 3ac55dc Try out a new issue report template format (#1197)
Note: You are seeing this because you or someone else with access to this repository has authorized Snyk to open upgrade PRs.
For more information:
🔕 Ignore this dependency or unsubscribe from future upgrade PRs
I will reformat the title to use the proper commit message syntax.
Thanks for opening this pull request!
- ❌ Please edit your post and use the provided template when creating a new pull request. This helps everyone to understand your post better and asks for essential information to quicker review the pull request.
Codecov Report
Merging #8043 (d218139) into alpha (42c9543) will decrease coverage by
10.00%. The diff coverage isn/a.
@@ Coverage Diff @@
## alpha #8043 +/- ##
===========================================
- Coverage 94.14% 84.14% -10.01%
===========================================
Files 182 182
Lines 13691 13691
===========================================
- Hits 12890 11520 -1370
- Misses 801 2171 +1370
| Impacted Files | Coverage Δ | |
|---|---|---|
| ...dapters/Storage/Postgres/PostgresStorageAdapter.js | 2.42% <0.00%> (-93.05%) |
:arrow_down: |
| src/Adapters/Cache/RedisCacheAdapter.js | 12.28% <0.00%> (-75.44%) |
:arrow_down: |
| src/Adapters/Storage/Postgres/PostgresClient.js | 5.00% <0.00%> (-65.00%) |
:arrow_down: |
| src/GraphQL/loaders/filesMutations.js | 37.93% <0.00%> (-41.38%) |
:arrow_down: |
| src/batch.js | 77.19% <0.00%> (-17.55%) |
:arrow_down: |
| src/ParseServerRESTController.js | 81.81% <0.00%> (-15.16%) |
:arrow_down: |
| src/GraphQL/transformers/mutation.js | 87.73% <0.00%> (-9.44%) |
:arrow_down: |
| src/Routers/AggregateRouter.js | 92.00% <0.00%> (-8.00%) |
:arrow_down: |
| src/Adapters/Storage/Mongo/MongoStorageAdapter.js | 90.59% <0.00%> (-2.57%) |
:arrow_down: |
| src/Controllers/UserController.js | 95.34% <0.00%> (-2.33%) |
:arrow_down: |
| ... and 9 more |
Continue to review full report at Codecov.
Legend - Click here to learn more
Δ = absolute <relative> (impact),ø = not affected,? = missing dataPowered by Codecov. Last update 42c9543...d218139. Read the comment docs.
Interesting that a patch version upgrade causes tests to fail. Either yoga didn't follow semver, or our tests are too strict.
@mtrezza I sent a message to the Guild, they will investigate asap I think.
The failing test is related to an addition that I asked about max file upload size to keep same features as the old graphql-upload package. May be something is not correctlu covered on their side and our test suite has catched the error. I added this test during the Yoga gql switch ☺️
Hey there, we decided that the status code 500 is incorrect as the user is responsible for sending a file that exceeds the limit. Thus 400 makes a lot more sense. We treated this change as a bug fix.
thanks @n1ru4l i'll take a look to update the test
@n1ru4l Changing the error code is a breaking change; does that mean Yoga doesn't follow semver?
Hey @mtrezza, Yoga follows semantic versioning. Sometimes it is hard to define what is considered a breaking change. From our perspective, the file upload limit was undocumented and treated as unstable. As we are adding tests for the feature we realized that we implemented it not according to the reference specification. https://github.com/jaydenseric/graphql-upload/blob/b1cdd2a913c5394b5ff5f89b28d79b949b0bdde5/processRequest.js#L175 Apparently we also messed up again as the status code should be 413. 😭 We treated this as a bug fix as we did not see wide adoption. Is this a deep concern for the users that are already using parse-server file uploads? If it is a big issue we can discuss reverting it and postponing this fix (or breaking change) for the next major version. And shoutouts to your test suite, the coverage is really impressive!
In semver any breaking change (of an exposed API) requires a major increment, regardless of adoption rate. I'm asking for us to know whether we have to be careful in the future when upgrading Yoga if it follows a "romantic" interpretation of semver.
Yoga if it follows a "romantic" interpretation of semver
Do you treat something like adding a property to an object as a breaking change? If someone uses Object.entries on that object or maps over a TypeScript type that could also be considered a breaking change. It is really hard to define a breaking change to the latest detail and there is no document that defines it clearly. What guidelines are you following to define what is and is not a breaking change?
We aim to follow strict semantic versioning and will take your concern into account regarding future "romantic breaking" changes.
If someone uses Object.entries on that object or maps over a TypeScript type that could also be considered a breaking change.
In projects where a high level of stability is required, these aspects are usually defined. You could say "the order / number of properties may change". I don't think we are at this level however when talking about a HTTP response code. If the response code is part of the public API, then strictly following semver means it's a breaking change.
Hi @mtrezza , @n1ru4l, I think that a breaking change was maybe introduced.
But this is why I added a test during my development on yoga since I know that the size limit feature was introduced in yoga for Parse Server to meet our requirements for the migration.
Btw, @mtrezza @n1ru4l, anyone open to send the really quick PR to fix the status code ? ☺️
Closing due to conflicts; waiting for snyk to open a new PR.