@lokalise/fastify-extras 23.2.0 → 24.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.
@@ -55,7 +55,7 @@ function enableApiUsageTracking(fastify, amplitude, eventCreationFn) {
55
55
  * ```
56
56
  */
57
57
  exports.amplitudePlugin = (0, fastify_plugin_1.default)(plugin, {
58
- fastify: '4.x',
58
+ fastify: '5.x',
59
59
  name: 'amplitude-plugin',
60
60
  });
61
61
  //# sourceMappingURL=amplitudePlugin.js.map
@@ -15,7 +15,7 @@ function plugin(_app, opts, done) {
15
15
  done();
16
16
  }
17
17
  exports.bugsnagPlugin = (0, fastify_plugin_1.default)(plugin, {
18
- fastify: '4.x',
18
+ fastify: '5.x',
19
19
  name: 'bugsnag-plugin',
20
20
  });
21
21
  //# sourceMappingURL=bugsnagPlugin.js.map
@@ -50,7 +50,7 @@ function plugin(fastify, pluginOptions, next) {
50
50
  }
51
51
  }
52
52
  exports.bullMqMetricsPlugin = (0, fastify_plugin_1.default)(plugin, {
53
- fastify: '4.x',
53
+ fastify: '5.x',
54
54
  name: 'bull-mq-metrics-plugin',
55
55
  });
56
56
  //# sourceMappingURL=bullMqMetricsPlugin.js.map
@@ -72,7 +72,7 @@ function plugin(app, opts, done) {
72
72
  done();
73
73
  }
74
74
  exports.healthcheckMetricsPlugin = (0, fastify_plugin_1.default)(plugin, {
75
- fastify: '4.x',
75
+ fastify: '5.x',
76
76
  name: 'healthcheck-metrics-plugin',
77
77
  });
78
78
  //# sourceMappingURL=healthcheckMetricsPlugin.js.map
@@ -65,7 +65,7 @@ function plugin(app, opts, done) {
65
65
  done();
66
66
  }
67
67
  exports.publicHealthcheckPlugin = (0, fastify_plugin_1.default)(plugin, {
68
- fastify: '4.x',
68
+ fastify: '5.x',
69
69
  name: 'public-healthcheck-plugin',
70
70
  });
71
71
  //# sourceMappingURL=publicHealthcheckPlugin.js.map
@@ -58,7 +58,7 @@ function plugin(app, opts, done) {
58
58
  }
59
59
  }
60
60
  exports.metricsPlugin = (0, fastify_plugin_1.default)(plugin, {
61
- fastify: '4.x',
61
+ fastify: '5.x',
62
62
  name: 'metrics-plugin',
63
63
  });
64
64
  //# sourceMappingURL=metricsPlugin.js.map
@@ -78,7 +78,7 @@ function plugin(fastify, opts, done) {
78
78
  done();
79
79
  }
80
80
  exports.newrelicTransactionManagerPlugin = (0, fastify_plugin_1.default)(plugin, {
81
- fastify: '4.x',
81
+ fastify: '5.x',
82
82
  name: 'newrelic-transaction-manager-plugin',
83
83
  });
84
84
  //# sourceMappingURL=newrelicTransactionManagerPlugin.js.map
@@ -28,7 +28,7 @@ function plugin(fastify, _opts, done) {
28
28
  done();
29
29
  }
30
30
  exports.requestContextProviderPlugin = (0, fastify_plugin_1.default)(plugin, {
31
- fastify: '4.x',
31
+ fastify: '5.x',
32
32
  name: 'request-context-provider-plugin',
33
33
  });
34
34
  //# sourceMappingURL=requestContextProviderPlugin.js.map
@@ -62,7 +62,7 @@ function plugin(fastify, opts, done) {
62
62
  });
63
63
  }
64
64
  exports.splitIOFeatureManagerPlugin = (0, fastify_plugin_1.default)(plugin, {
65
- fastify: '4.x',
65
+ fastify: '5.x',
66
66
  name: 'split-io-feature-manager-plugin',
67
67
  });
68
68
  //# sourceMappingURL=splitIOFeatureManagerPlugin.js.map
@@ -43,7 +43,7 @@ function plugin(app, opts, done) {
43
43
  done();
44
44
  }
45
45
  exports.unhandledExceptionPlugin = (0, fastify_plugin_1.default)(plugin, {
46
- fastify: '4.x',
46
+ fastify: '5.x',
47
47
  name: 'unhandled-exception-plugin',
48
48
  });
49
49
  //# sourceMappingURL=unhandledExceptionPlugin.js.map
package/dist/types.d.ts CHANGED
@@ -1,3 +1,3 @@
1
1
  import type { FastifyReply, RawReplyDefaultExpression, RawRequestDefaultExpression, RawServerDefault } from 'fastify';
2
2
  import type { RouteGenericInterface } from 'fastify/types/route';
3
- export type FastifyReplyWithPayload<Payload extends RouteGenericInterface> = FastifyReply<RawServerDefault, RawRequestDefaultExpression, RawReplyDefaultExpression, Payload>;
3
+ export type FastifyReplyWithPayload<Payload extends RouteGenericInterface> = FastifyReply<RouteGenericInterface, RawServerDefault, RawRequestDefaultExpression, RawReplyDefaultExpression, Payload>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lokalise/fastify-extras",
3
- "version": "23.2.0",
3
+ "version": "24.0.0",
4
4
  "description": "Opinionated set of fastify plugins, commonly used in Lokalise",
5
5
  "author": {
6
6
  "name": "Lokalise",
@@ -33,49 +33,49 @@
33
33
  },
34
34
  "dependencies": {
35
35
  "@amplitude/analytics-node": "^1.3.6",
36
- "@bugsnag/js": "^7.25.0",
37
- "@lokalise/background-jobs-common": "^7.6.0",
36
+ "@bugsnag/js": "^8.0.0",
37
+ "@lokalise/background-jobs-common": "^7.6.1",
38
38
  "@lokalise/error-utils": "^2.0.0",
39
- "@splitsoftware/splitio": "^10.27.0",
39
+ "@splitsoftware/splitio": "^10.28.0",
40
40
  "@supercharge/promise-pool": "^3.2.0",
41
- "fastify-metrics": "^11.0.0",
42
- "fastify-plugin": "^4.5.1",
41
+ "fastify-metrics": "^12.1.0",
42
+ "fastify-plugin": "^5.0.1",
43
43
  "prom-client": "^15.1.3",
44
44
  "toad-cache": "^3.7.0",
45
45
  "tslib": "^2.7.0"
46
46
  },
47
47
  "peerDependencies": {
48
- "@fastify/jwt": "^8.0.1",
49
- "@lokalise/node-core": ">=11.2.0",
50
- "bullmq": "^5.8.4",
51
- "fastify": "^4.24.3",
48
+ "@fastify/jwt": "^9.0.1",
49
+ "@lokalise/node-core": ">=12.0.0",
50
+ "bullmq": "^5.13.2",
51
+ "fastify": "^5.0.0",
52
52
  "ioredis": "^5.4.1",
53
53
  "newrelic": ">=11.13.0",
54
- "pino": "^9.0.0",
54
+ "pino": "^9.4.0",
55
55
  "zod": "^3.22.4"
56
56
  },
57
57
  "devDependencies": {
58
- "@amplitude/analytics-types": "^2.8.0",
59
- "@biomejs/biome": "^1.8.3",
60
- "@lokalise/backend-http-client": "^2.2.0",
58
+ "@amplitude/analytics-types": "^2.8.2",
59
+ "@biomejs/biome": "^1.9.2",
60
+ "@lokalise/backend-http-client": "^2.3.0",
61
61
  "@lokalise/biome-config": "^1.4.0",
62
- "@lokalise/node-core": "^12.0.0",
62
+ "@lokalise/node-core": "^12.3.2",
63
63
  "@types/newrelic": "^9.14.4",
64
- "@types/node": "^22.5.0",
65
- "@vitest/coverage-v8": "^2.0.5",
64
+ "@types/node": "^22.7.4",
65
+ "@vitest/coverage-v8": "^2.1.1",
66
66
  "auto-changelog": "^2.4.0",
67
- "bullmq": "^5.12.10",
68
- "fastify": "^4.28.1",
67
+ "bullmq": "^5.13.2",
68
+ "fastify": "^5.0.0",
69
69
  "ioredis": "^5.4.1",
70
- "newrelic": "12.2.0",
71
- "pino": "^9.3.2",
70
+ "newrelic": "12.5.1",
71
+ "pino": "^9.4.0",
72
72
  "pino-pretty": "^11.2.2",
73
73
  "shx": "^0.3.4",
74
- "typescript": "^5.5.4",
75
- "vitest": "^2.0.5",
74
+ "typescript": "^5.6.2",
75
+ "vitest": "^2.1.1",
76
76
  "zod": "^3.23.8"
77
77
  },
78
78
  "engines": {
79
- "node": ">=18"
79
+ "node": ">=20"
80
80
  }
81
81
  }