@promster/fastify 7.0.7 → 8.0.0

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.
@@ -1,9 +1,8 @@
1
- import type { TPromsterOptions } from '@promster/types';
2
1
  import type { TRequestRecorder } from '@promster/metrics';
3
- import type { FastifyRequest } from 'fastify';
2
+ import type { FastifyInstance, FastifyRequest } from 'fastify';
4
3
  declare const extractPath: (req: FastifyRequest) => string;
5
4
  declare const getRequestRecorder: () => TRequestRecorder;
6
5
  declare const signalIsUp: () => void;
7
6
  declare const signalIsNotUp: () => void;
8
- declare const plugin: import("fastify").FastifyPluginAsync<TPromsterOptions, import("fastify").RawServerDefault, import("fastify").FastifyTypeProviderDefault>;
7
+ declare const plugin: (fastify: FastifyInstance, options: TPromsterOptions) => Promise<void>;
9
8
  export { plugin, getRequestRecorder, signalIsUp, signalIsNotUp, extractPath };
@@ -13,7 +13,7 @@ var merge__default = /*#__PURE__*/_interopDefault(merge);
13
13
 
14
14
  var pkg = {
15
15
  name: "@promster/fastify",
16
- version: "7.0.7",
16
+ version: "8.0.0",
17
17
  description: "Fastify server integrations of promster",
18
18
  main: "dist/promster-fastify.cjs.js",
19
19
  typings: "dist/promster-fastify.cjs.d.ts",
@@ -29,8 +29,8 @@ var pkg = {
29
29
  access: "public"
30
30
  },
31
31
  engines: {
32
- node: ">=14",
33
- npm: ">=6"
32
+ node: ">=16",
33
+ npm: ">=8"
34
34
  },
35
35
  repository: {
36
36
  type: "git",
@@ -49,13 +49,14 @@ var pkg = {
49
49
  "prometheus"
50
50
  ],
51
51
  dependencies: {
52
- "@promster/metrics": "^9.1.6",
52
+ "@promster/metrics": "^10.0.0",
53
53
  "fastify-plugin": "^4.4.0",
54
54
  "merge-options": "3.0.4",
55
- "parse-prometheus-text-format": "1.1.1"
55
+ "parse-prometheus-text-format": "1.1.1",
56
+ "@promster/server": "workspace:*"
56
57
  },
57
58
  devDependencies: {
58
- fastify: "4.10.2"
59
+ fastify: "4.21.0"
59
60
  }
60
61
  };
61
62
 
@@ -13,7 +13,7 @@ var merge__default = /*#__PURE__*/_interopDefault(merge);
13
13
 
14
14
  var pkg = {
15
15
  name: "@promster/fastify",
16
- version: "7.0.7",
16
+ version: "8.0.0",
17
17
  description: "Fastify server integrations of promster",
18
18
  main: "dist/promster-fastify.cjs.js",
19
19
  typings: "dist/promster-fastify.cjs.d.ts",
@@ -29,8 +29,8 @@ var pkg = {
29
29
  access: "public"
30
30
  },
31
31
  engines: {
32
- node: ">=14",
33
- npm: ">=6"
32
+ node: ">=16",
33
+ npm: ">=8"
34
34
  },
35
35
  repository: {
36
36
  type: "git",
@@ -49,13 +49,14 @@ var pkg = {
49
49
  "prometheus"
50
50
  ],
51
51
  dependencies: {
52
- "@promster/metrics": "^9.1.6",
52
+ "@promster/metrics": "^10.0.0",
53
53
  "fastify-plugin": "^4.4.0",
54
54
  "merge-options": "3.0.4",
55
- "parse-prometheus-text-format": "1.1.1"
55
+ "parse-prometheus-text-format": "1.1.1",
56
+ "@promster/server": "workspace:*"
56
57
  },
57
58
  devDependencies: {
58
- fastify: "4.10.2"
59
+ fastify: "4.21.0"
59
60
  }
60
61
  };
61
62
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@promster/fastify",
3
- "version": "7.0.7",
3
+ "version": "8.0.0",
4
4
  "description": "Fastify server integrations of promster",
5
5
  "main": "dist/promster-fastify.cjs.js",
6
6
  "typings": "dist/promster-fastify.cjs.d.ts",
@@ -16,8 +16,8 @@
16
16
  "access": "public"
17
17
  },
18
18
  "engines": {
19
- "node": ">=14",
20
- "npm": ">=6"
19
+ "node": ">=16",
20
+ "npm": ">=8"
21
21
  },
22
22
  "repository": {
23
23
  "type": "git",
@@ -36,12 +36,13 @@
36
36
  "prometheus"
37
37
  ],
38
38
  "dependencies": {
39
- "@promster/metrics": "^9.1.6",
39
+ "@promster/metrics": "^10.0.0",
40
40
  "fastify-plugin": "^4.4.0",
41
41
  "merge-options": "3.0.4",
42
- "parse-prometheus-text-format": "1.1.1"
42
+ "parse-prometheus-text-format": "1.1.1",
43
+ "@promster/server": "8.0.0"
43
44
  },
44
45
  "devDependencies": {
45
- "fastify": "4.10.2"
46
+ "fastify": "4.21.0"
46
47
  }
47
- }
48
+ }