redis-smq-common 8.0.1 → 8.0.3

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 CHANGED
@@ -3,6 +3,23 @@
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
+ ## [8.0.3](https://github.com/weyoss/redis-smq/compare/v8.0.2...v8.0.3) (2025-04-14)
7
+
8
+ ### 🚀 Chore
9
+
10
+ - **redis-smq-common:** enhance Redis server management with CLI and scripts ([1fec53e](https://github.com/weyoss/redis-smq/commit/1fec53eb25dd16ea28efaf2a5b31eeab09539ec4))
11
+
12
+ ## [8.0.2](https://github.com/weyoss/redis-smq/compare/v8.0.1...v8.0.2) (2025-04-14)
13
+
14
+ ### 🚀 Chore
15
+
16
+ - **redis-smq-common:** update Valkey server binary URLs to v7.2.8-2 ([e6b9b8d](https://github.com/weyoss/redis-smq/commit/e6b9b8d31af9d321b3ad208bebabd09171932822))
17
+
18
+ ### 📝 Documentation
19
+
20
+ - **redis-smq-common:** update package description and documentation link ([3a5d91c](https://github.com/weyoss/redis-smq/commit/3a5d91c05faed92c395eaa541c346d8ecb5273b7))
21
+ - reorganize and enhance documentation across packages ([212fe75](https://github.com/weyoss/redis-smq/commit/212fe75143f1c446045c346e460065215e98f1d7))
22
+
6
23
  ## [8.0.1](https://github.com/weyoss/redis-smq/compare/v8.0.0...v8.0.1) (2025-04-13)
7
24
 
8
25
  **Note:** Version bump only for package redis-smq-common
package/README.md CHANGED
@@ -3,6 +3,10 @@
3
3
  [![Latest Release](https://img.shields.io/github/v/release/weyoss/redis-smq?include_prereleases&label=release&color=green&style=flat-square)](https://github.com/weyoss/redis-smq/releases)
4
4
  [![Code Coverage](https://img.shields.io/codecov/c/github/weyoss/redis-smq?flag=redis-smq-common&style=flat-square)](https://app.codecov.io/github/weyoss/redis-smq/tree/master/packages/redis-smq-common)
5
5
 
6
- This package provides essential components that are used by RedisSMQ and other RedisSMQ-based packages.
6
+ This package provides essential components that are used by RedisSMQ and other RedisSMQ-related packages.
7
7
 
8
- For more detailed information about the package's components and their usage, visit the [documentation page](docs/README.md).
8
+ For more detailed information about the package's components and their usage, visit the [documentation page](https://github.com/weyoss/redis-smq/tree/master/packages/redis-smq-common/docs).
9
+
10
+ ## License
11
+
12
+ This project is licensed under is released under the [MIT License](https://github.com/weyoss/redis-smq/blob/master/LICENSE).
@@ -23,12 +23,12 @@ const constants_js_1 = require("./constants.js");
23
23
  const index_js_4 = require("./errors/index.js");
24
24
  const tarballs = {
25
25
  linux: {
26
- x64: 'https://github.com/weyoss/valkey/releases/download/v7.2.8-1/valkey-server-linux-x64-v7.2.8-1.tar.gz',
27
- arm64: 'https://github.com/weyoss/valkey/releases/download/v7.2.8-1/valkey-server-linux-arm64-v7.2.8-1.tar.gz',
26
+ x64: 'https://github.com/weyoss/valkey/releases/download/v7.2.8-2/valkey-server-linux-x64-v7.2.8-2.tar.gz',
27
+ arm64: 'https://github.com/weyoss/valkey/releases/download/v7.2.8-2/valkey-server-linux-arm64-v7.2.8-2.tar.gz',
28
28
  },
29
29
  darwin: {
30
- x64: 'https://github.com/weyoss/valkey/releases/download/v7.2.8-1/valkey-server-macos-x64-v7.2.8-1.tar.gz',
31
- arm64: 'https://github.com/weyoss/valkey/releases/download/v7.2.8-1/valkey-server-macos-arm64-v7.2.8-1.tar.gz',
30
+ x64: 'https://github.com/weyoss/valkey/releases/download/v7.2.8-2/valkey-server-macos-x64-v7.2.8-2.tar.gz',
31
+ arm64: 'https://github.com/weyoss/valkey/releases/download/v7.2.8-2/valkey-server-macos-arm64-v7.2.8-2.tar.gz',
32
32
  },
33
33
  };
34
34
  function downloadAndExtractRedis(downloadPath) {
@@ -1,12 +1,15 @@
1
1
  #!/usr/bin/env node
2
2
  import { program } from 'commander';
3
3
  import { buildRedisBinary } from '../src/redis-server/build-redis.js';
4
+ import { RedisServer } from '../src/redis-server/index.js';
4
5
  import { downloadPrebuiltBinary } from '../src/redis-server/redis-binary.js';
5
6
  program
6
7
  .command('redis')
7
8
  .description('Handle Redis server tasks')
8
9
  .option('--download-binary', 'Download Redis binary')
9
10
  .option('--build-from-source', 'Build Redis binary')
11
+ .option('--start-server', 'Start Redis server')
12
+ .option('--port <number>', 'Redis server port', '6379')
10
13
  .action(async (options = {}) => {
11
14
  if (options.downloadBinary) {
12
15
  console.log('Downloading Redis binary...');
@@ -20,7 +23,22 @@ program
20
23
  console.log('Done.');
21
24
  return;
22
25
  }
23
- console.error('No Redis task specified. Use --download-binary or --build-from-source.');
26
+ if (options.startServer) {
27
+ const port = parseInt(options.port || '6379', 10);
28
+ const shutdown = async () => {
29
+ console.log('\nShutting down Redis server...');
30
+ await server.shutdown();
31
+ process.exit(0);
32
+ };
33
+ console.log(`Starting Redis server on ${port}...`);
34
+ const server = new RedisServer();
35
+ process.on('SIGINT', shutdown);
36
+ process.on('SIGTERM', shutdown);
37
+ await server.start(port);
38
+ console.log('Redis server is running. Press Ctrl+C to stop.');
39
+ return;
40
+ }
41
+ console.error('No Redis task specified. Use --download-binary, --build-from-source, or --start-server');
24
42
  });
25
43
  program.parse(process.argv);
26
44
  //# sourceMappingURL=cli.js.map
@@ -8,12 +8,12 @@ import { REDIS_BINARY_PATH, REDIS_CACHE_DIRECTORY, REDIS_SETUP_LOCK_FILE, } from
8
8
  import { RedisServerUnsupportedPlatformError } from './errors/index.js';
9
9
  const tarballs = {
10
10
  linux: {
11
- x64: 'https://github.com/weyoss/valkey/releases/download/v7.2.8-1/valkey-server-linux-x64-v7.2.8-1.tar.gz',
12
- arm64: 'https://github.com/weyoss/valkey/releases/download/v7.2.8-1/valkey-server-linux-arm64-v7.2.8-1.tar.gz',
11
+ x64: 'https://github.com/weyoss/valkey/releases/download/v7.2.8-2/valkey-server-linux-x64-v7.2.8-2.tar.gz',
12
+ arm64: 'https://github.com/weyoss/valkey/releases/download/v7.2.8-2/valkey-server-linux-arm64-v7.2.8-2.tar.gz',
13
13
  },
14
14
  darwin: {
15
- x64: 'https://github.com/weyoss/valkey/releases/download/v7.2.8-1/valkey-server-macos-x64-v7.2.8-1.tar.gz',
16
- arm64: 'https://github.com/weyoss/valkey/releases/download/v7.2.8-1/valkey-server-macos-arm64-v7.2.8-1.tar.gz',
15
+ x64: 'https://github.com/weyoss/valkey/releases/download/v7.2.8-2/valkey-server-macos-x64-v7.2.8-2.tar.gz',
16
+ arm64: 'https://github.com/weyoss/valkey/releases/download/v7.2.8-2/valkey-server-macos-arm64-v7.2.8-2.tar.gz',
17
17
  },
18
18
  };
19
19
  async function downloadAndExtractRedis(downloadPath) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "redis-smq-common",
3
- "version": "8.0.1",
3
+ "version": "8.0.3",
4
4
  "description": "RedisSMQ Common Library provides many components that are mainly used by RedisSMQ and RedisSMQ Monitor.",
5
5
  "author": "Weyoss <weyoss@protonmail.com>",
6
6
  "license": "MIT",
@@ -87,8 +87,6 @@
87
87
  "scripts": {
88
88
  "test": "../../scripts/test_workspace_esm.sh",
89
89
  "build": "scripts/build.sh",
90
- "document": "scripts/document.sh",
91
- "redis:download": "node ./dist/esm/bin/cli.js redis --download-binary",
92
- "redis:build": "node ./dist/esm/bin/cli.js redis --build-from-source"
90
+ "document": "scripts/document.sh"
93
91
  }
94
92
  }