redis-smq-rest-api 9.0.0-next.0 โ 9.0.0-next.2
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 +18 -0
- package/README.md +31 -13
- package/dist/cjs/src/config/parseConfig.js +1 -1
- package/dist/esm/bin/cli.js +1 -0
- package/dist/esm/src/config/parseConfig.js +1 -1
- package/package.json +3 -3
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,24 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
## [9.0.0-next.2](https://github.com/weyoss/redis-smq/compare/v9.0.0-next.1...v9.0.0-next.2) (2025-09-07)
|
|
7
|
+
|
|
8
|
+
### ๐ Bug Fixes
|
|
9
|
+
|
|
10
|
+
- **redis-smq-rest-api:** add shebang to CLI script for proper execution ([1ed36cc](https://github.com/weyoss/redis-smq/commit/1ed36cc76c0c8dce97a6f99c0b082bec34d3853d))
|
|
11
|
+
- **redis-smq-rest-api:** set default Redis database to 0 ([7e12b43](https://github.com/weyoss/redis-smq/commit/7e12b433c7d4f88bc3a443505818da6a479202a3))
|
|
12
|
+
|
|
13
|
+
### ๐ Documentation
|
|
14
|
+
|
|
15
|
+
- **redis-smq-rest-api:** remove outdated prerequisites section ([f14aaaf](https://github.com/weyoss/redis-smq/commit/f14aaaf0da96e43468ead3e845ebd2be7e61ae59))
|
|
16
|
+
- update installation instructions to include required deps ([107c2a5](https://github.com/weyoss/redis-smq/commit/107c2a5b2eda5b540f5f033808be94923e8688fa))
|
|
17
|
+
|
|
18
|
+
## [9.0.0-next.1](https://github.com/weyoss/redis-smq/compare/v9.0.0-next.0...v9.0.0-next.1) (2025-09-06)
|
|
19
|
+
|
|
20
|
+
### ๐ Documentation
|
|
21
|
+
|
|
22
|
+
- **redis-smq-rest-api:** add CLI usage documentation and examples ([c51cf48](https://github.com/weyoss/redis-smq/commit/c51cf4860ba556ce72b42472289f1bc8b69a3647))
|
|
23
|
+
|
|
6
24
|
## [9.0.0-next.0](https://github.com/weyoss/redis-smq/compare/v8.3.1...v9.0.0-next.0) (2025-09-06)
|
|
7
25
|
|
|
8
26
|
### โ BREAKING CHANGES
|
package/README.md
CHANGED
|
@@ -14,22 +14,11 @@ queue using a RESTful API.
|
|
|
14
14
|
- ๐งช 90%+ code coverage with extensive testing
|
|
15
15
|
- ๐ฆ Support for both ESM & CJS modules
|
|
16
16
|
|
|
17
|
-
|
|
18
|
-
## Prerequisites
|
|
19
|
-
|
|
20
|
-
- [RedisSMQ V8](https://github.com/weyoss/redis-smq) latest release.
|
|
21
|
-
|
|
22
17
|
## Installation
|
|
23
18
|
|
|
24
19
|
```bash
|
|
25
20
|
# Using npm
|
|
26
|
-
npm install redis-smq-rest-api --save
|
|
27
|
-
|
|
28
|
-
# Using yarn
|
|
29
|
-
yarn add redis-smq-rest-api
|
|
30
|
-
|
|
31
|
-
# Using pnpm
|
|
32
|
-
pnpm add redis-smq-rest-api
|
|
21
|
+
npm install redis-smq redis-smq-common redis-smq-rest-api --save
|
|
33
22
|
```
|
|
34
23
|
|
|
35
24
|
## Version Compatibility
|
|
@@ -81,7 +70,7 @@ const basicConfig: IRedisSMQHttpApiConfig = {
|
|
|
81
70
|
};
|
|
82
71
|
```
|
|
83
72
|
|
|
84
|
-
## Usage
|
|
73
|
+
## Programmatic Usage
|
|
85
74
|
|
|
86
75
|
```typescript
|
|
87
76
|
import { RedisSmqRestApi } from 'redis-smq-rest-api';
|
|
@@ -104,6 +93,35 @@ const apiServer = new RedisSmqRestApi(config);
|
|
|
104
93
|
apiServer.run();
|
|
105
94
|
```
|
|
106
95
|
|
|
96
|
+
## Usage from CLI
|
|
97
|
+
|
|
98
|
+
The REST API server can be started directly from your terminal after installation.
|
|
99
|
+
|
|
100
|
+
```shell
|
|
101
|
+
npx redis-smq-rest-api
|
|
102
|
+
```
|
|
103
|
+
|
|
104
|
+
### CLI Options
|
|
105
|
+
|
|
106
|
+
You can override the default configuration using the following command-line arguments:
|
|
107
|
+
|
|
108
|
+
```shell
|
|
109
|
+
-p, --port <port> Port to run the API server on (default: "7210")
|
|
110
|
+
-B, --base-path <basePath> Base public path for the Swagger UI (default: "/")
|
|
111
|
+
-H, --redis-host <redisHost> Redis server host (default: "127.0.0.1")
|
|
112
|
+
-P, --redis-port <redisPort> Redis server port (default: "6379")
|
|
113
|
+
-D, --redis-db <redisDB> Redis database number (default: "0")
|
|
114
|
+
-h, --help display help for command
|
|
115
|
+
```
|
|
116
|
+
|
|
117
|
+
### CLI Examples
|
|
118
|
+
|
|
119
|
+
Starting the server on a specific port and connecting to a different Redis instance:
|
|
120
|
+
|
|
121
|
+
```shell
|
|
122
|
+
npx redis-smq-rest-api --port 8000 --redis-host 10.0.0.5 --redis-port 6380
|
|
123
|
+
```
|
|
124
|
+
|
|
107
125
|
## API Documentation
|
|
108
126
|
|
|
109
127
|
### Swagger UI
|
package/dist/esm/bin/cli.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "redis-smq-rest-api",
|
|
3
|
-
"version": "9.0.0-next.
|
|
3
|
+
"version": "9.0.0-next.2",
|
|
4
4
|
"description": "REST API for RedisSMQ: OpenAPI 3 schema and Swagger UI for managing queues, messages, and consumers.",
|
|
5
5
|
"author": "Weyoss <weyoss@protonmail.com>",
|
|
6
6
|
"license": "MIT",
|
|
@@ -66,8 +66,8 @@
|
|
|
66
66
|
"uuid": "11.1.0"
|
|
67
67
|
},
|
|
68
68
|
"peerDependencies": {
|
|
69
|
-
"redis-smq": "^9.0.0-next.
|
|
70
|
-
"redis-smq-common": "^9.0.0-next.
|
|
69
|
+
"redis-smq": "^9.0.0-next.2",
|
|
70
|
+
"redis-smq-common": "^9.0.0-next.2"
|
|
71
71
|
},
|
|
72
72
|
"devDependencies": {
|
|
73
73
|
"@types/json-schema": "7.0.15",
|