Skip to content
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

Increasing minimal versions of express and upload peers #1760

Merged
merged 2 commits into from
May 12, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 6 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,11 @@
### v19.0.0

- **Breaking changes**:
- Minimum supported versions: Node 18.18.0, 20.9.0 or 22.0.0; `zod` 3.23.0.
- Minimum supported versions:
- For Node.js: 18.18.0, 20.9.0 or 22.0.0;
- For `zod`: 3.23.0;
- For `express`: [4.19.2](https://github.com/expressjs/express/security/advisories/GHSA-rv95-896h-c2vc);
- For `express-fileupload` and `@types/express-fileupload`: 1.5.0.
- Removed the deprecated ~~`withMeta()`~~ (see [v18.5.0](#v1850) for details);
- Removed support for static options by `EndpointsFactory::addOptions()` (see [v18.6.0](#v1860) for details);
- Freezed the arrays returned by the methods or exposed by properties of `Endpoint` and `DependsOnMethod`;
Expand All @@ -23,7 +27,7 @@
- The debug messages from uploader are enabled by default when the logger level is set to `debug`;
- Specifying `rawParser` in config is no longer needed to enable the feature.
- How to migrate confidently:
- Upgrade Node to latest version of 18.x, 20.x or 22.x and `zod` to its latest 3.x;
- Upgrade Node.js, `zod`, `express`, `express-fileupload` and `@types/express-fileupload` accordingly;
- Avoid mutating the readonly arrays;
- If you're using ~~`withMeta()`~~:
- Remove it and unwrap your schemas — you can use `.example()` method directly.
Expand Down
12 changes: 6 additions & 6 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -73,13 +73,13 @@
"peerDependencies": {
"@types/compression": "^1.7.5",
"@types/express": "^4.17.13",
"@types/express-fileupload": "^1.4.4",
"@types/express-fileupload": "^1.5.0",
"@types/http-errors": "^2.0.2",
"@types/jest": "*",
"@types/node": "*",
"compression": "^1.7.4",
"express": "^4.18.2",
"express-fileupload": "^1.4.3",
"express": "^4.19.2",
"express-fileupload": "^1.5.0",
"http-errors": "^2.0.0",
"jest": ">=28 <30",
"prettier": "^3.1.0",
Expand Down Expand Up @@ -128,7 +128,7 @@
"@types/compression": "^1.7.5",
"@types/cors": "^2.8.14",
"@types/express": "^4.17.17",
"@types/express-fileupload": "^1.4.4",
"@types/express-fileupload": "^1.5.0",
"@types/http-errors": "^2.0.2",
"@types/node": "^20.8.4",
"@types/ramda": "^0.30.0",
Expand All @@ -146,8 +146,8 @@
"eslint-plugin-import": "^2.28.1",
"eslint-plugin-prettier": "^5.0.0",
"eslint-plugin-unicorn": "^53.0.0",
"express": "^4.18.2",
"express-fileupload": "^1.4.3",
"express": "^4.19.2",
"express-fileupload": "^1.5.0",
"http-errors": "^2.0.0",
"husky": "^9.0.5",
"make-coverage-badge": "^1.2.0",
Expand Down
6 changes: 3 additions & 3 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -757,7 +757,7 @@
resolved "https://registry.yarnpkg.com/@types/estree/-/estree-1.0.5.tgz#a6ce3e556e00fd9895dd872dd172ad0d4bd687f4"
integrity sha512-/kYRxGDLWzHOB7q+wtSUQlFrtcdUccpfy+X+9iMBpHK8QLLhx2wIPYuS5DYtR9Wa/YlZAbIovy7qVdB1Aq6Lyw==

"@types/express-fileupload@^1.4.4":
"@types/express-fileupload@^1.5.0":
version "1.5.0"
resolved "https://registry.yarnpkg.com/@types/express-fileupload/-/express-fileupload-1.5.0.tgz#ef7c98bbe525db7f1daa3f4f3a3067b5cdc774bf"
integrity sha512-Y9v88IC5ItAxkKwfnyIi1y0jSZwTMY4jqXUQLZ3jFhYJlLdRnN919bKBNM8jbVVD2cxywA/uEC1kNNpZQGwx7Q==
Expand Down Expand Up @@ -2178,14 +2178,14 @@ execa@^8.0.1:
signal-exit "^4.1.0"
strip-final-newline "^3.0.0"

express-fileupload@^1.4.3:
express-fileupload@^1.5.0:
version "1.5.0"
resolved "https://registry.yarnpkg.com/express-fileupload/-/express-fileupload-1.5.0.tgz#afce078126c5393fc24b5ab9a79f02006f70e274"
integrity sha512-jSW3w9evqM37VWkEPkL2Ck5wUo2a8qa03MH+Ou/0ZSTpNlQFBvSLjU12k2nYcHhaMPv4JVvv6+Ac1OuLgUZb7w==
dependencies:
busboy "^1.6.0"

express@^4.18.2:
express@^4.19.2:
version "4.19.2"
resolved "https://registry.yarnpkg.com/express/-/express-4.19.2.tgz#e25437827a3aa7f2a827bc8171bbbb664a356465"
integrity sha512-5T6nhjsT+EOMzuck8JjBHARTHfMht0POzlA60WV2pMD3gyXw2LZnZ+ueGdNxG+0calOJcWKbpFcuzLZ91YWq9Q==
Expand Down