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

feat(nestjs): Allow NestJS v11 as peerDependency #3042

Merged
merged 4 commits into from
Feb 3, 2025
Merged
Show file tree
Hide file tree
Changes from 1 commit
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
4 changes: 2 additions & 2 deletions arcjet-nest/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -49,14 +49,14 @@
"arcjet": "1.0.0-beta.1"
},
"peerDependencies": {
"@nestjs/common": "^10",
"@nestjs/common": "^10 || ^11",
"reflect-metadata": "^0.1.12 || ^0.2.0"
},
"devDependencies": {
"@arcjet/eslint-config": "1.0.0-beta.1",
"@arcjet/rollup-config": "1.0.0-beta.1",
"@arcjet/tsconfig": "1.0.0-beta.1",
"@nestjs/common": "^10.4.15",
"@nestjs/common": "^11.0.7",
"@rollup/wasm-node": "4.32.1",
"@types/node": "18.18.0",
"expect": "29.7.0",
Expand Down
4 changes: 2 additions & 2 deletions examples/nestjs/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ applications using the `@arcjet/nest` adapter.
sensitive data.

```bash
curl http://localhost:3000/sensitive-info -H "Content-Type: text/plain" -X POST --data "hello world!"`
curl http://localhost:3000/sensitive-info -H "Content-Type: text/plain" -X POST --data "hello world!"
```

8. Execute a POST request to `http://localhost:3000/sensitive-info` with a
Expand All @@ -56,7 +56,7 @@ applications using the `@arcjet/nest` adapter.
and the request should fail.

```bash
curl http://localhost:3000/sensitive-info -H "Content-Type: text/plain" -X POST --data "test@arcjettest.com"
curl http://localhost:3000/email -H "Content-Type: text/plain" -X POST --data "test@arcjettest.com"
```

10. Execute a GET request to `http://localhost:3000/bot` with the `curl` command
Expand Down
Loading