From 4f5aca56db3528ed2151c695f416ccb15581f593 Mon Sep 17 00:00:00 2001 From: renovate <29139614+renovate@users.noreply.github.com> Date: Wed, 9 Oct 2024 10:37:08 +0000 Subject: [PATCH] chore: bump up graphql-upload version to v17 (#8449) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [graphql-upload](https://redirect.github.com/jaydenseric/graphql-upload) | [`^16.0.2` -> `^17.0.0`](https://renovatebot.com/diffs/npm/graphql-upload/16.0.2/17.0.0) | [![age](https://developer.mend.io/api/mc/badges/age/npm/graphql-upload/17.0.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://developer.mend.io/api/mc/badges/adoption/npm/graphql-upload/17.0.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://developer.mend.io/api/mc/badges/compatibility/npm/graphql-upload/16.0.2/17.0.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/graphql-upload/16.0.2/17.0.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes
jaydenseric/graphql-upload (graphql-upload) ### [`v17.0.0`](https://redirect.github.com/jaydenseric/graphql-upload/blob/HEAD/changelog.md#1700) [Compare Source](https://redirect.github.com/jaydenseric/graphql-upload/compare/v16.0.2...v17.0.0) ##### Major - Updated Node.js support to `^18.18.0 || ^20.9.0 || >=22.0.0`. - Updated dev dependencies, some of which require newer Node.js versions than previously supported. - Use the TypeScript v5.5+ JSDoc tag `@import` to import types in modules. - Removed JSDoc tag `@typedef` that were unintentionally re-exporting types; to migrate import TypeScript types from the correct module: ```diff - import type { GraphQLUpload } from "graphql-upload/Upload.mjs"; + import type GraphQLUpload from "graphql-upload/GraphQLUpload.mjs"; ``` ```diff - import type { processRequest } from "graphql-upload/Upload.mjs"; + import type processRequest from "graphql-upload/processRequest.mjs"; ``` ```diff - import type { GraphQLUpload } from "graphql-upload/processRequest.mjs"; + import type GraphQLUpload from "graphql-upload/GraphQLUpload.mjs"; ``` - Refactored tests to use the standard `AbortController`, `fetch`, `File`, and `FormData` APIs available in modern Node.js and removed the dev dependencies [`node-abort-controller`](https://npm.im/node-abort-controller) and [`node-fetch`](https://npm.im/node-fetch). - Replaced the test utility function `streamToString` with the function `text` from `node:stream/consumers` that’s available in modern Node.js. - Use the Node.js test runner API and remove the dev dependency [`test-director`](https://npm.im/test-director). ##### Minor - Support Express v5 by updating the optional peer dependency [`@types/express`](https://npm.im/@​types/express) to `4.0.29 - 5` and the dev dependency [`express`](https://npm.im/express) to v5, via [#​389](https://redirect.github.com/jaydenseric/graphql-upload/pull/389). ##### Patch - Tweaked the package description. - Updated the `package.json` field `repository` to conform to new npm requirements. - Updated the package scripts: - Reordered the scripts. - Replaced `npm run` with `node --run`. - Updated GitHub Actions CI config: - No longer run the workflow on pull request. - Enable manual workflow dispatching. - Run checks in seperate jobs. - Removed custom step names. - Replaced `npm run` with `node --run`. - Updated the tested Node.js versions to v18, v20, v22. - Updated `actions/checkout` to v4. - Updated `actions/setup-node` to v4. - Migrated to the ESLint v9 CLI and “flat” config. - Integrated a new dev dependency [`eslint-plugin-jsdoc`](https://npm.im/eslint-plugin-jsdoc) and revised types. - Removed the Node.js CLI option `--unhandled-rejections=throw` in the package script `tests` as it’s now the default for all supported Node.js versions. - Avoid hardcoding a default value in the type `FileUploadCreateReadStreamOptions` property `highWaterMark` description and use the function `getDefaultHighWaterMark` from `node:stream` in tests. - Replaced the test helper class `Deferred` with polyfilled `Promise.withResolvers`. - Removed an unnecessary `await` in tests. - Omit unused catch bindings in the function `processRequest`. - Corrected the JSDoc type `FileUploadCreateReadStreamOptions` in the module `processRequest.mjs`. - Avoid using `return` in the middleware. - Added a new dev dependency [`async-listen`](https://npm.im/async-listen) to replace the test utility function `listen`. - Enabled the TypeScript compiler options `noUnusedLocals` and `noUnusedParameters` and used the prefix `_` for purposefully unused function parameters in tests. - Updated the GitHub Markdown syntax for alerts in the readme. - Tweaked wording in the readme and JSDoc descriptions.
--- ### Configuration 📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, check this box --- This PR was generated by [Mend Renovate](https://mend.io/renovate/). View the [repository job log](https://developer.mend.io/github/toeverything/AFFiNE). --- packages/backend/server/package.json | 2 +- yarn.lock | 12 ++++++------ 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/packages/backend/server/package.json b/packages/backend/server/package.json index abd1d76b55..af29050ef8 100644 --- a/packages/backend/server/package.json +++ b/packages/backend/server/package.json @@ -63,7 +63,7 @@ "get-stream": "^9.0.1", "graphql": "^16.8.1", "graphql-scalars": "^1.23.0", - "graphql-upload": "^16.0.2", + "graphql-upload": "^17.0.0", "html-validate": "^8.20.1", "ioredis": "^5.3.2", "is-mobile": "^4.0.0", diff --git a/yarn.lock b/yarn.lock index 0752b5359f..853eef9fb1 100644 --- a/yarn.lock +++ b/yarn.lock @@ -722,7 +722,7 @@ __metadata: get-stream: "npm:^9.0.1" graphql: "npm:^16.8.1" graphql-scalars: "npm:^1.23.0" - graphql-upload: "npm:^16.0.2" + graphql-upload: "npm:^17.0.0" html-validate: "npm:^8.20.1" ioredis: "npm:^5.3.2" is-mobile: "npm:^4.0.0" @@ -21524,9 +21524,9 @@ __metadata: languageName: node linkType: hard -"graphql-upload@npm:^16.0.2": - version: 16.0.2 - resolution: "graphql-upload@npm:16.0.2" +"graphql-upload@npm:^17.0.0": + version: 17.0.0 + resolution: "graphql-upload@npm:17.0.0" dependencies: "@types/busboy": "npm:^1.5.0" "@types/node": "npm:*" @@ -21536,7 +21536,7 @@ __metadata: http-errors: "npm:^2.0.0" object-path: "npm:^0.11.8" peerDependencies: - "@types/express": ^4.0.29 + "@types/express": 4.0.29 - 5 "@types/koa": ^2.11.4 graphql: ^16.3.0 peerDependenciesMeta: @@ -21544,7 +21544,7 @@ __metadata: optional: true "@types/koa": optional: true - checksum: 10/c386f39a7e43e9f0fa8c2607d68125a377ce8225720f084cd5bf5e811e375bfc1d68af0d3ca81ec141e7f3603b756d8c719840231dd21c015e53454ec79201cf + checksum: 10/7df39d0cd16b14668151091e2844960faa46b3d79a75219585821db7a24b08e8be6264e26c97b1bf144678fdde5489ef4d105a3e718983826747221bf81bba81 languageName: node linkType: hard