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

v23 is for Sonia #2357

Draft
wants to merge 53 commits into
base: master
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
53 commits
Select commit Hold shift + click to select a range
a731506
Set trigger branches.
RobinTail Jan 30, 2025
cddf11c
Resetting the migration scripts.
RobinTail Jan 31, 2025
11f7dad
23.0.0-beta.0.
RobinTail Jan 31, 2025
691c428
Fix compat test.
RobinTail Jan 31, 2025
cda3609
`CustomHeaderSecurity` → `HeaderSecurity` with constraints (#2358)
RobinTail Jan 31, 2025
dd31a97
Revert `HeaderSecurity` constraints (#2359)
RobinTail Jan 31, 2025
1c8b678
Merge branch 'master' into make-v23
RobinTail Jan 31, 2025
45d9fd1
Merge branch 'master' into make-v23
RobinTail Feb 3, 2025
0520c58
Merge branch 'master' into make-v23
RobinTail Feb 4, 2025
78466d8
Merge branch 'master' into make-v23
RobinTail Feb 5, 2025
8aa15eb
Merge branch 'master' into make-v23
RobinTail Feb 6, 2025
b394427
Change default response to `405` for wrong method (#2372)
RobinTail Feb 6, 2025
526c24a
Merge branch 'master' into make-v23
RobinTail Feb 11, 2025
faca6ca
Merge branch 'master' into make-v23
RobinTail Feb 11, 2025
a3b36d6
Require `compression@^1.8.0` (#2387)
RobinTail Feb 11, 2025
fdadcdb
Merge branch 'master' into make-v23
RobinTail Feb 13, 2025
8c46376
Apply suggestions from code review
RobinTail Feb 13, 2025
bc06074
Fix quotes in compat test.
RobinTail Feb 13, 2025
b8518dc
Merge branch 'master' into make-v23
RobinTail Feb 13, 2025
196a42b
Merge branch 'master' into make-v23
RobinTail Feb 13, 2025
1adb781
ref(v23): Using getters (#2398)
RobinTail Feb 13, 2025
19ef9c2
Dedicated to Sonia Rescalvo Zafra.
RobinTail Feb 14, 2025
0a4d1b5
Merge branch 'master' into make-v23
RobinTail Feb 14, 2025
325216e
Security: planning for April.
RobinTail Feb 14, 2025
9088f34
ref(v23): Undisclosed internals (#2401)
RobinTail Feb 14, 2025
a3f9581
ref(v23): More internals (#2402)
RobinTail Feb 14, 2025
656730b
Changelog: organizing 23.0.0.
RobinTail Feb 14, 2025
53f5df4
Merge branch 'master' into make-v23
RobinTail Feb 15, 2025
53971a8
Merge branch 'master' into make-v23
RobinTail Feb 15, 2025
a054ce0
Merge branch 'master' into make-v23
RobinTail Feb 15, 2025
493e320
Merge branch 'master' into make-v23
RobinTail Feb 16, 2025
b8422c5
Merge branch 'master' into make-v23
RobinTail Feb 16, 2025
c3908c6
Merge branch 'master' into make-v23
RobinTail Feb 18, 2025
cf377df
Merge branch 'master' into make-v23
RobinTail Feb 20, 2025
07f1e29
Fix ramda import.
RobinTail Feb 20, 2025
7a96ae4
Merge branch 'master' into make-v23
RobinTail Feb 20, 2025
f58d1b2
Merge branch 'master' into make-v23
RobinTail Feb 21, 2025
6e461dc
Merge branch 'master' into make-v23
RobinTail Feb 23, 2025
9d49c76
Merge branch 'master' into make-v23
RobinTail Feb 24, 2025
2bbe16a
Merge branch 'master' into make-v23
RobinTail Feb 24, 2025
c257fb6
Merge branch 'master' into make-v23
RobinTail Feb 24, 2025
1d8b947
Merge branch 'master' into make-v23
RobinTail Feb 25, 2025
b343357
Merge branch 'master' into make-v23
RobinTail Feb 25, 2025
7aa9714
Merge branch 'master' into make-v23
RobinTail Feb 28, 2025
ea01ddc
Merge branch 'master' into make-v23
RobinTail Mar 5, 2025
62a63e9
Merge branch 'master' into make-v23
RobinTail Mar 7, 2025
151f36f
Merge branch 'master' into make-v23
RobinTail Mar 8, 2025
3c041cd
Merge branch 'master' into make-v23
RobinTail Mar 9, 2025
7314da6
Merge branch 'master' into make-v23
RobinTail Mar 13, 2025
2ea64e8
Merge branch 'master' into make-v23
RobinTail Mar 14, 2025
90559bd
Merge branch 'master' into make-v23
RobinTail Mar 15, 2025
1e4a6e9
Merge branch 'master' into make-v23
RobinTail Mar 27, 2025
71d14b6
Merge branch 'master' into make-v23
RobinTail Mar 31, 2025
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
Prev Previous commit
Next Next commit
Require compression@^1.8.0 (#2387)
  • Loading branch information
RobinTail authored Feb 11, 2025
commit a3b36d6f04238c4fe9a8cf7fd23f119782a8f932
3 changes: 2 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@
### v23.0.0

- Publicly exposed interface `CustomHeaderSecurity` is renamed to `HeaderSecurity`;
- The default value for `wrongMethodBehavior` config option is changed to `405`.
- The default value for `wrongMethodBehavior` config option is changed to `405`;
- Minimum version of `compression` (optional peer dependency) is `1.8.0` (is supports Brotli).

## Version 22

Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -691,7 +691,7 @@ done(); // error: expensive operation '555.55ms'
According to [Express.js best practices guide](http://expressjs.com/en/advanced/best-practice-performance.html)
it might be a good idea to enable GZIP and Brotli compression for your API responses.

Install `compression` (version 1.8 supports Brotli) and `@types/compression`, and enable or configure compression:
Install `compression` and `@types/compression`, and enable or configure compression:

```typescript
import { createConfig } from "express-zod-api";
Expand Down
2 changes: 1 addition & 1 deletion express-zod-api/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@
"@types/express": "^4.17.13 || ^5.0.0",
"@types/express-fileupload": "^1.5.0",
"@types/http-errors": "^2.0.2",
"compression": "^1.7.4",
"compression": "^1.8.0",
"express": "^4.21.1 || 5.0.1",
"express-fileupload": "^1.5.0",
"http-errors": "^2.0.0",
Expand Down
1 change: 0 additions & 1 deletion express-zod-api/tests/system.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -215,7 +215,6 @@ describe("App in production mode", async () => {
});
});

/** @todo set min version of compression to 1.8 in v23 */
test.each(["gzip", "br"])(
"Should %s-compress the response in case it is supported by client",
async (alg) => {
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
"@types/node": "^22.0.0",
"@typescript-eslint/rule-tester": "^8.15.0",
"@vitest/coverage-v8": "^3.0.5",
"compression": "^1.7.4",
"compression": "^1.8.0",
"eslint": "^9.3.0",
"eslint-config-prettier": "^10.0.1",
"eslint-plugin-allowed-dependencies": "^1.0.0",
Expand Down
2 changes: 1 addition & 1 deletion yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -1257,7 +1257,7 @@ compressible@~2.0.18:
dependencies:
mime-db ">= 1.43.0 < 2"

compression@^1.7.4:
compression@^1.8.0:
version "1.8.0"
resolved "https://registry.yarnpkg.com/compression/-/compression-1.8.0.tgz#09420efc96e11a0f44f3a558de59e321364180f7"
integrity sha512-k6WLKfunuqCYD3t6AsuPGvQWaKwuLLh2/xHNcX4qE+vIfDNXpSqnrhwA7O53R7WVQUnt8dVAIW+YHr7xTgOgGA==
Expand Down
Loading