@nestjs/platform-fastify 11.0.10 → 11.0.12

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -10,8 +10,8 @@ const fastify_1 = require("fastify");
10
10
  const Reply = require("fastify/lib/reply");
11
11
  const symbols_1 = require("fastify/lib/symbols");
12
12
  const path_to_regexp_1 = require("path-to-regexp");
13
- // `querystring` is used internally in fastify for registering urlencoded body parser.
14
- const querystring_1 = require("querystring");
13
+ // Fastify uses `fast-querystring` internally to quickly parse URL query strings.
14
+ const fast_querystring_1 = require("fast-querystring");
15
15
  const constants_1 = require("../constants");
16
16
  /**
17
17
  * @publicApi
@@ -400,7 +400,7 @@ class FastifyAdapter extends http_adapter_1.AbstractHttpAdapter {
400
400
  const withRawBody = !!rawBody;
401
401
  const { bodyLimit } = this.getInstance().initialConfig;
402
402
  this.useBodyParser(contentType, withRawBody, { bodyLimit }, (_req, body, done) => {
403
- done(null, (0, querystring_1.parse)(body.toString()));
403
+ done(null, (0, fast_querystring_1.parse)(body.toString()));
404
404
  });
405
405
  }
406
406
  async registerMiddie() {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nestjs/platform-fastify",
3
- "version": "11.0.10",
3
+ "version": "11.0.12",
4
4
  "description": "Nest - modern, fast, powerful node.js web framework (@platform-fastify)",
5
5
  "author": "Kamil Mysliwiec",
6
6
  "license": "MIT",
@@ -18,9 +18,10 @@
18
18
  "access": "public"
19
19
  },
20
20
  "dependencies": {
21
- "@fastify/cors": "10.0.2",
21
+ "@fastify/cors": "11.0.0",
22
22
  "@fastify/formbody": "8.0.2",
23
23
  "@fastify/middie": "9.0.3",
24
+ "fast-querystring": "1.1.2",
24
25
  "fastify": "5.2.1",
25
26
  "light-my-request": "6.6.0",
26
27
  "path-to-regexp": "8.2.0",
@@ -28,7 +29,7 @@
28
29
  },
29
30
  "peerDependencies": {
30
31
  "@fastify/static": "^8.0.0",
31
- "@fastify/view": "^10.0.0",
32
+ "@fastify/view": "^10.0.0 || ^11.0.0",
32
33
  "@nestjs/common": "^11.0.0",
33
34
  "@nestjs/core": "^11.0.0"
34
35
  },