fastify-rabbitmq 1.2.0 → 1.3.1
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/CHANGELOG.md +43 -0
- package/dist/cjs/index.js +1 -2
- package/dist/esm/index.js +1 -2
- package/dist/esm/index.js.map +1 -1
- package/package.json +17 -23
- package/dist/cjs/package.json +0 -3
- package/dist/esm/package.json +0 -3
package/CHANGELOG.md
ADDED
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
## [1.3.1](https://github.com/Bugs5382/fastify-rabbitmq/compare/v1.3.0...v1.3.1) (2023-12-18)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Bug Fixes
|
|
5
|
+
|
|
6
|
+
* url wrong ([f5cf4a7](https://github.com/Bugs5382/fastify-rabbitmq/commit/f5cf4a7f3ca5ceddc6ef8fa7b0d0b9148892e65c))
|
|
7
|
+
|
|
8
|
+
# [1.3.0](https://github.com/Bugs5382/fastify-rabbitmq/compare/v1.2.0...v1.3.0) (2023-12-18)
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
### Features
|
|
12
|
+
|
|
13
|
+
* fastify v5 prep fixes ([f2bbc61](https://github.com/Bugs5382/fastify-rabbitmq/commit/f2bbc6185b5ff76089ec6448f8a847183c2f368e))
|
|
14
|
+
|
|
15
|
+
# 1.0.0 (2023-11-17)
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
### Bug Fixes
|
|
19
|
+
|
|
20
|
+
* fix ci for release ([5f6982a](https://github.com/Bugs5382/fastify-rabbitmq/commit/5f6982a5676341063260e9243b4c6c4ea0810b56))
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
* 19 build in rpc clientserver (#20) ([fc03bd1](https://github.com/Bugs5382/fastify-rabbitmq/commit/fc03bd1fa8ee0932043e778135f712530b28ac9b)), closes [#20](https://github.com/Bugs5382/fastify-rabbitmq/issues/20) [#19](https://github.com/Bugs5382/fastify-rabbitmq/issues/19) [#19](https://github.com/Bugs5382/fastify-rabbitmq/issues/19) [#19](https://github.com/Bugs5382/fastify-rabbitmq/issues/19) [#19](https://github.com/Bugs5382/fastify-rabbitmq/issues/19) [#19](https://github.com/Bugs5382/fastify-rabbitmq/issues/19) [#19](https://github.com/Bugs5382/fastify-rabbitmq/issues/19) [#19](https://github.com/Bugs5382/fastify-rabbitmq/issues/19) [#19](https://github.com/Bugs5382/fastify-rabbitmq/issues/19) [#19](https://github.com/Bugs5382/fastify-rabbitmq/issues/19) [#19](https://github.com/Bugs5382/fastify-rabbitmq/issues/19) [#19](https://github.com/Bugs5382/fastify-rabbitmq/issues/19) [#19](https://github.com/Bugs5382/fastify-rabbitmq/issues/19) [#19](https://github.com/Bugs5382/fastify-rabbitmq/issues/19) [#19](https://github.com/Bugs5382/fastify-rabbitmq/issues/19) [#19](https://github.com/Bugs5382/fastify-rabbitmq/issues/19) [#19](https://github.com/Bugs5382/fastify-rabbitmq/issues/19) [#19](https://github.com/Bugs5382/fastify-rabbitmq/issues/19) [#19](https://github.com/Bugs5382/fastify-rabbitmq/issues/19) [#19](https://github.com/Bugs5382/fastify-rabbitmq/issues/19) [#19](https://github.com/Bugs5382/fastify-rabbitmq/issues/19) [#19](https://github.com/Bugs5382/fastify-rabbitmq/issues/19) [#19](https://github.com/Bugs5382/fastify-rabbitmq/issues/19) [#19](https://github.com/Bugs5382/fastify-rabbitmq/issues/19) [#19](https://github.com/Bugs5382/fastify-rabbitmq/issues/19) [#19](https://github.com/Bugs5382/fastify-rabbitmq/issues/19) [#19](https://github.com/Bugs5382/fastify-rabbitmq/issues/19) [#19](https://github.com/Bugs5382/fastify-rabbitmq/issues/19) [#19](https://github.com/Bugs5382/fastify-rabbitmq/issues/19)
|
|
24
|
+
|
|
25
|
+
|
|
26
|
+
### Features
|
|
27
|
+
|
|
28
|
+
* added .idea to gitignore ([4a7ca5b](https://github.com/Bugs5382/fastify-rabbitmq/commit/4a7ca5bf8d8b2a7e7383d0365f9cbb9caaa805d4))
|
|
29
|
+
* fastify namespace issue ([5d12ca1](https://github.com/Bugs5382/fastify-rabbitmq/commit/5d12ca129e6722ba56b4e0ff8bc7920cdd437f01))
|
|
30
|
+
* formatting, update README.md ([97d06ff](https://github.com/Bugs5382/fastify-rabbitmq/commit/97d06ff67fc37e45e34d9f19d2daa1a9402401ae))
|
|
31
|
+
* initial code structure ([bb6c46b](https://github.com/Bugs5382/fastify-rabbitmq/commit/bb6c46b503b2cb386676ad20aa3fa367c5a12721))
|
|
32
|
+
* major code revamp ([426d10a](https://github.com/Bugs5382/fastify-rabbitmq/commit/426d10abfc97cad177736be18cd2bdc8c682426a))
|
|
33
|
+
* npm install works ([bd7fac3](https://github.com/Bugs5382/fastify-rabbitmq/commit/bd7fac3471faff6525a666ba728d2debb504a181))
|
|
34
|
+
* set to version 0.0.0 for now ([a330c71](https://github.com/Bugs5382/fastify-rabbitmq/commit/a330c71773d3b89aacb2d8b19528679ce2ec9484))
|
|
35
|
+
* updated main methods ([a05a897](https://github.com/Bugs5382/fastify-rabbitmq/commit/a05a8973d202a09300d34607c70938573fdf0eb3))
|
|
36
|
+
|
|
37
|
+
|
|
38
|
+
### BREAKING CHANGES
|
|
39
|
+
|
|
40
|
+
* dropped node-amqp-connection-manager support
|
|
41
|
+
|
|
42
|
+
* feature: typedoc generation added
|
|
43
|
+
* new style
|
package/dist/cjs/index.js
CHANGED
|
@@ -67,11 +67,10 @@ exports.decorateFastifyInstance = decorateFastifyInstance;
|
|
|
67
67
|
* @see [https://cody-greene.github.io/node-rabbitmq-client/latest/index.html](https://cody-greene.github.io/node-rabbitmq-client/latest/index.html)
|
|
68
68
|
*
|
|
69
69
|
*/
|
|
70
|
-
const fastifyRabbit = (0, fastify_plugin_1.default)(async (fastify, opts
|
|
70
|
+
const fastifyRabbit = (0, fastify_plugin_1.default)(async (fastify, opts) => {
|
|
71
71
|
await (0, validation_js_1.validateOpts)(opts);
|
|
72
72
|
const { connection } = opts;
|
|
73
73
|
const c = new rabbitmq_client_1.Connection(connection);
|
|
74
74
|
decorateFastifyInstance(fastify, opts, c);
|
|
75
|
-
done();
|
|
76
75
|
});
|
|
77
76
|
exports.default = fastifyRabbit;
|
package/dist/esm/index.js
CHANGED
|
@@ -46,12 +46,11 @@ const decorateFastifyInstance = (fastify, options, connection) => {
|
|
|
46
46
|
* @see [https://cody-greene.github.io/node-rabbitmq-client/latest/index.html](https://cody-greene.github.io/node-rabbitmq-client/latest/index.html)
|
|
47
47
|
*
|
|
48
48
|
*/
|
|
49
|
-
const fastifyRabbit = fp(async (fastify, opts
|
|
49
|
+
const fastifyRabbit = fp(async (fastify, opts) => {
|
|
50
50
|
await validateOpts(opts);
|
|
51
51
|
const { connection } = opts;
|
|
52
52
|
const c = new RabbitMQConnection(connection);
|
|
53
53
|
decorateFastifyInstance(fastify, opts, c);
|
|
54
|
-
done();
|
|
55
54
|
});
|
|
56
55
|
export default fastifyRabbit;
|
|
57
56
|
export { decorateFastifyInstance };
|
package/dist/esm/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,MAAM,gBAAgB,CAAA;AAC/B,OAAO,EAAqB,UAAU,IAAI,kBAAkB,EAAE,MAAM,iBAAiB,CAAA;AAErF,OAAO,EAAE,MAAM,EAAE,MAAM,aAAa,CAAA;AACpC,OAAO,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAA;AAC9C,cAAc,YAAY,CAAA;AAE1B,MAAM,uBAAuB,GAAG,CAAC,OAAwB,EAAE,OAA+B,EAAE,UAAe,EAAQ,EAAE;IACnH,MAAM,EACJ,SAAS,GAAG,EAAE,EACf,GAAG,OAAO,CAAA;IAEX,IAAI,OAAO,SAAS,KAAK,WAAW,EAAE,CAAC;QACrC,OAAO,CAAC,GAAG,CAAC,KAAK,CAAC,kCAAkC,EAAE,SAAS,CAAC,CAAA;IAClE,CAAC;IACD,IAAI,OAAO,SAAS,KAAK,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,CAAC,CAAA;IAC1C,CAAC;AACH,CAAC,CAAA;AAED;;;;;;;;;;;;;;;;;GAiBG;AACH,MAAM,aAAa,GAAG,EAAE,CAAyB,KAAK,EAAE,OAAO,EAAE,IAAI,EAAE,EAAE;IACvE,MAAM,YAAY,CAAC,IAAI,CAAC,CAAA;IAExB,MAAM,EAAE,UAAU,EAAE,GAAG,IAAI,CAAA;IAE3B,MAAM,CAAC,GAAG,IAAI,kBAAkB,CAAC,UAAU,CAAC,CAAA;IAE5C,uBAAuB,CAAC,OAAO,EAAE,IAAI,EAAE,CAAC,CAAC,CAAA;AAC3C,CAAC,CAAC,CAAA;AAEF,eAAe,aAAa,CAAA;AAE5B,OAAO,EAAE,uBAAuB,EAA6C,CAAA"}
|
package/package.json
CHANGED
|
@@ -1,15 +1,10 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "fastify-rabbitmq",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.3.1",
|
|
4
4
|
"description": "A Fastify RabbitMQ Plugin Developed in Pure TypeScript.",
|
|
5
5
|
"module": "./dist/esm/index.js",
|
|
6
6
|
"main": "./dist/cjs/index.js",
|
|
7
7
|
"types": "./dist/types/index.d.ts",
|
|
8
|
-
"release": {
|
|
9
|
-
"branches": [
|
|
10
|
-
"main"
|
|
11
|
-
]
|
|
12
|
-
},
|
|
13
8
|
"exports": {
|
|
14
9
|
".": {
|
|
15
10
|
"types": "./dist/types/index.d.ts",
|
|
@@ -18,29 +13,27 @@
|
|
|
18
13
|
"default": "./dist/cjs/index.js"
|
|
19
14
|
}
|
|
20
15
|
},
|
|
21
|
-
"files": [
|
|
22
|
-
"dist/**/*"
|
|
23
|
-
],
|
|
24
16
|
"scripts": {
|
|
25
17
|
"clean": "rm -rf dist coverage",
|
|
26
18
|
"build": "tsc && tsc -p tsconfig.cjs.json && tsc -p tsconfig.types.json && ./bin/build-types.sh",
|
|
27
19
|
"build:watch": "tsc -w",
|
|
28
20
|
"lint": "ts-standard --parser @typescript-eslint/parser | snazzy",
|
|
29
21
|
"lint:fix": "ts-standard --fix --parser @typescript-eslint/parser | snazzy",
|
|
30
|
-
"pack": "npm
|
|
31
|
-
"prepublishOnly": "npm run clean && npm run build",
|
|
22
|
+
"pack": "npm pack",
|
|
23
|
+
"prepublishOnly": "npm run clean && npm run test:ci && npm run build && npm run pack",
|
|
32
24
|
"test": "jest",
|
|
25
|
+
"test:open": "jest --detectOpenHandles",
|
|
33
26
|
"test:ci": "jest --ci",
|
|
34
27
|
"test:coverage": "jest --coverage",
|
|
35
28
|
"typedoc": "typedoc",
|
|
36
29
|
"typedoc:watch": "typedoc -watch",
|
|
37
30
|
"semantic-release": "semantic-release",
|
|
38
|
-
"semantic-release:
|
|
31
|
+
"semantic-release:dry-run": "semantic-release --dry-run",
|
|
39
32
|
"update": "npx npm-check-updates -u && npm install && npm run test"
|
|
40
33
|
},
|
|
41
34
|
"repository": {
|
|
42
35
|
"type": "git",
|
|
43
|
-
"url": "https://github.com/Bugs5382/fastify-rabbitmq"
|
|
36
|
+
"url": "git+https://github.com/Bugs5382/fastify-rabbitmq.git"
|
|
44
37
|
},
|
|
45
38
|
"keywords": [
|
|
46
39
|
"rabbitmq-client",
|
|
@@ -65,23 +58,24 @@
|
|
|
65
58
|
"@semantic-release/commit-analyzer": "^11.1.0",
|
|
66
59
|
"@semantic-release/git": "^10.0.1",
|
|
67
60
|
"@semantic-release/release-notes-generator": "^12.1.0",
|
|
68
|
-
"@
|
|
69
|
-
"@types/
|
|
61
|
+
"@the-rabbit-hole/semantic-release-config": "^1.4.0",
|
|
62
|
+
"@types/jest": "^29.5.11",
|
|
63
|
+
"@types/node": "^20.10.5",
|
|
70
64
|
"@types/randomstring": "^1.1.11",
|
|
71
|
-
"@typescript-eslint/parser": "^6.
|
|
72
|
-
"fastify": "^4.
|
|
65
|
+
"@typescript-eslint/parser": "^6.14.0",
|
|
66
|
+
"fastify": "^4.25.1",
|
|
73
67
|
"jest": "^29.7.0",
|
|
74
68
|
"jest-ts-webcompat-resolver": "^1.0.0",
|
|
75
|
-
"npm-check-updates": "^16.14.
|
|
69
|
+
"npm-check-updates": "^16.14.12",
|
|
76
70
|
"pre-commit": "^1.2.2",
|
|
77
|
-
"semantic-release": "^22.0.
|
|
71
|
+
"semantic-release": "^22.0.12",
|
|
78
72
|
"snazzy": "^9.0.0",
|
|
79
73
|
"ts-jest": "^29.1.1",
|
|
80
|
-
"ts-node": "^10.9.
|
|
74
|
+
"ts-node": "^10.9.2",
|
|
81
75
|
"ts-standard": "^12.0.2",
|
|
82
|
-
"tsd": "^0.
|
|
83
|
-
"typedoc": "^0.25.
|
|
84
|
-
"typescript": "^5.
|
|
76
|
+
"tsd": "^0.30.0",
|
|
77
|
+
"typedoc": "^0.25.4",
|
|
78
|
+
"typescript": "^5.3.3"
|
|
85
79
|
},
|
|
86
80
|
"pre-commit": []
|
|
87
81
|
}
|
package/dist/cjs/package.json
DELETED
package/dist/esm/package.json
DELETED