@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.
- package/dist/plugins/amplitude/amplitudePlugin.js +1 -1
- package/dist/plugins/bugsnagPlugin.js +1 -1
- package/dist/plugins/bullMqMetricsPlugin.js +1 -1
- package/dist/plugins/healthcheck/healthcheckMetricsPlugin.js +1 -1
- package/dist/plugins/healthcheck/publicHealthcheckPlugin.js +1 -1
- package/dist/plugins/metricsPlugin.js +1 -1
- package/dist/plugins/newrelicTransactionManagerPlugin.js +1 -1
- package/dist/plugins/requestContextProviderPlugin.js +1 -1
- package/dist/plugins/splitIOFeatureManagerPlugin.js +1 -1
- package/dist/plugins/unhandledExceptionPlugin.js +1 -1
- package/dist/types.d.ts +1 -1
- package/package.json +24 -24
|
@@ -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: '
|
|
58
|
+
fastify: '5.x',
|
|
59
59
|
name: 'amplitude-plugin',
|
|
60
60
|
});
|
|
61
61
|
//# sourceMappingURL=amplitudePlugin.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: '
|
|
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: '
|
|
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: '
|
|
68
|
+
fastify: '5.x',
|
|
69
69
|
name: 'public-healthcheck-plugin',
|
|
70
70
|
});
|
|
71
71
|
//# sourceMappingURL=publicHealthcheckPlugin.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: '
|
|
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: '
|
|
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: '
|
|
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: '
|
|
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": "
|
|
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": "^
|
|
37
|
-
"@lokalise/background-jobs-common": "^7.6.
|
|
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.
|
|
39
|
+
"@splitsoftware/splitio": "^10.28.0",
|
|
40
40
|
"@supercharge/promise-pool": "^3.2.0",
|
|
41
|
-
"fastify-metrics": "^
|
|
42
|
-
"fastify-plugin": "^
|
|
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": "^
|
|
49
|
-
"@lokalise/node-core": ">=
|
|
50
|
-
"bullmq": "^5.
|
|
51
|
-
"fastify": "^
|
|
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.
|
|
54
|
+
"pino": "^9.4.0",
|
|
55
55
|
"zod": "^3.22.4"
|
|
56
56
|
},
|
|
57
57
|
"devDependencies": {
|
|
58
|
-
"@amplitude/analytics-types": "^2.8.
|
|
59
|
-
"@biomejs/biome": "^1.
|
|
60
|
-
"@lokalise/backend-http-client": "^2.
|
|
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.
|
|
62
|
+
"@lokalise/node-core": "^12.3.2",
|
|
63
63
|
"@types/newrelic": "^9.14.4",
|
|
64
|
-
"@types/node": "^22.
|
|
65
|
-
"@vitest/coverage-v8": "^2.
|
|
64
|
+
"@types/node": "^22.7.4",
|
|
65
|
+
"@vitest/coverage-v8": "^2.1.1",
|
|
66
66
|
"auto-changelog": "^2.4.0",
|
|
67
|
-
"bullmq": "^5.
|
|
68
|
-
"fastify": "^
|
|
67
|
+
"bullmq": "^5.13.2",
|
|
68
|
+
"fastify": "^5.0.0",
|
|
69
69
|
"ioredis": "^5.4.1",
|
|
70
|
-
"newrelic": "12.
|
|
71
|
-
"pino": "^9.
|
|
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.
|
|
75
|
-
"vitest": "^2.
|
|
74
|
+
"typescript": "^5.6.2",
|
|
75
|
+
"vitest": "^2.1.1",
|
|
76
76
|
"zod": "^3.23.8"
|
|
77
77
|
},
|
|
78
78
|
"engines": {
|
|
79
|
-
"node": ">=
|
|
79
|
+
"node": ">=20"
|
|
80
80
|
}
|
|
81
81
|
}
|