fastify-rabbitmq 2.1.0 → 3.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/README.md +3 -3
- package/package.json +15 -15
package/README.md
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
# Fastify RabbitMQ
|
|
2
2
|
|
|
3
3
|
A Fastify RabbitMQ Plugin Developed in Pure TypeScript.
|
|
4
|
-
It uses the [rabbitmq-client](https://github.com/cody-greene/node-rabbitmq-client/) plugin as a wrapper.
|
|
4
|
+
It uses the [node-rabbitmq-client](https://github.com/cody-greene/node-rabbitmq-client/) plugin as a wrapper.
|
|
5
5
|
|
|
6
6
|
The build exports this to valid ESM and CJS for ease of cross-compatibility.
|
|
7
7
|
|
|
@@ -39,7 +39,7 @@ export default fp<FastifyRabbitMQOptions>((fastify, options, done) => {
|
|
|
39
39
|
|
|
40
40
|
void fastify.ready().then(async () => {
|
|
41
41
|
|
|
42
|
-
const
|
|
42
|
+
const consumer = fastify.rabbitmq.createConsumer({
|
|
43
43
|
queue: 'foo',
|
|
44
44
|
queueOptions: {durable: true}
|
|
45
45
|
}, async (msg: any) => {
|
|
@@ -96,7 +96,7 @@ If not provided, your application will fail to load.
|
|
|
96
96
|
|
|
97
97
|
## Acknowledgements
|
|
98
98
|
|
|
99
|
-
- [rabbitmq-client](https://www.npmjs.com/package/rabbitmq-client)
|
|
99
|
+
- [node-rabbitmq-client](https://www.npmjs.com/package/rabbitmq-client)
|
|
100
100
|
- [fastify](https://fastify.dev/)
|
|
101
101
|
- ... and my Wife and Baby Girl.
|
|
102
102
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "fastify-rabbitmq",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "3.0.0",
|
|
4
4
|
"description": "A Fastify RabbitMQ Plugin Developed in Pure TypeScript.",
|
|
5
5
|
"module": "./lib/esm/index.js",
|
|
6
6
|
"main": "./lib/cjs/index.js",
|
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
"lib/"
|
|
18
18
|
],
|
|
19
19
|
"engines": {
|
|
20
|
-
"node": ">=20.
|
|
20
|
+
"node": ">=20.11.0"
|
|
21
21
|
},
|
|
22
22
|
"scripts": {
|
|
23
23
|
"clean": "rm -rf lib docs coverage",
|
|
@@ -58,30 +58,30 @@
|
|
|
58
58
|
"homepage": "https://github.com/Bugs5382/fastify-rabbitmq#readme",
|
|
59
59
|
"dependencies": {
|
|
60
60
|
"@fastify/error": "^4.0.0",
|
|
61
|
-
"fastify-plugin": "^
|
|
62
|
-
"rabbitmq-client": "^
|
|
61
|
+
"fastify-plugin": "^5.0.1",
|
|
62
|
+
"rabbitmq-client": "^5.0.0"
|
|
63
63
|
},
|
|
64
64
|
"devDependencies": {
|
|
65
65
|
"@semantic-release/changelog": "^6.0.3",
|
|
66
66
|
"@semantic-release/git": "^10.0.1",
|
|
67
67
|
"@the-rabbit-hole/semantic-release-config": "^1.5.0",
|
|
68
|
-
"@types/node": "^
|
|
68
|
+
"@types/node": "^22.8.5",
|
|
69
69
|
"@types/randomstring": "^1.3.0",
|
|
70
|
-
"@typescript-eslint/parser": "^
|
|
71
|
-
"@vitest/coverage-v8": "^1.
|
|
72
|
-
"@vitest/ui": "^1.
|
|
73
|
-
"fastify": "^
|
|
74
|
-
"npm-check-updates": "^
|
|
70
|
+
"@typescript-eslint/parser": "^8.12.2",
|
|
71
|
+
"@vitest/coverage-v8": "^2.1.4",
|
|
72
|
+
"@vitest/ui": "^2.1.4",
|
|
73
|
+
"fastify": "^5.0.0",
|
|
74
|
+
"npm-check-updates": "^17.1.9",
|
|
75
75
|
"npm-package-json-lint": "^8.0.0",
|
|
76
76
|
"pre-commit": "^1.2.2",
|
|
77
|
-
"semantic-release": "^
|
|
77
|
+
"semantic-release": "^24.2.0",
|
|
78
78
|
"snazzy": "^9.0.0",
|
|
79
79
|
"ts-node": "^10.9.2",
|
|
80
80
|
"ts-standard": "^12.0.2",
|
|
81
|
-
"tsd": "^0.31.
|
|
82
|
-
"typedoc": "^0.26.
|
|
83
|
-
"typescript": "^5.
|
|
84
|
-
"vitest": "^1.
|
|
81
|
+
"tsd": "^0.31.2",
|
|
82
|
+
"typedoc": "^0.26.10",
|
|
83
|
+
"typescript": "^5.6.3",
|
|
84
|
+
"vitest": "^2.1.4"
|
|
85
85
|
},
|
|
86
86
|
"precommit": [
|
|
87
87
|
"test",
|