@bejibun/redis 0.1.27 → 0.1.29

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,39 @@ All notable changes to this project will be documented in this file.
3
3
 
4
4
  ---
5
5
 
6
+ ## [v0.1.29](https://github.com/crenata/bejibun-redis/compare/v0.1.27...v0.1.29) - 2025-10-22
7
+
8
+ ### 🩹 Fixes
9
+
10
+ ### 📖 Changes
11
+ What's New :
12
+ - Adding `configure.ts` for installation configuration
13
+
14
+ ### ❤️Contributors
15
+ - Havea Crenata ([@crenata](https://github.com/crenata))
16
+ - Ghulje ([@ghulje](https://github.com/ghulje))
17
+
18
+ **Full Changelog**: https://github.com/crenata/bejibun-redis/blob/master/CHANGELOG.md
19
+
20
+ ---
21
+
22
+ ## [v0.1.27](https://github.com/crenata/bejibun-redis/compare/v0.1.26...v0.1.27) - 2025-10-20
23
+
24
+ ### 🩹 Fixes
25
+
26
+ ### 📖 Changes
27
+ Chore :
28
+ - Refactor some codes to bun native
29
+ - Adding log when throwing redis exception
30
+
31
+ ### ❤️Contributors
32
+ - Havea Crenata ([@crenata](https://github.com/crenata))
33
+ - Ghulje ([@ghulje](https://github.com/ghulje))
34
+
35
+ **Full Changelog**: https://github.com/crenata/bejibun-redis/blob/master/CHANGELOG.md
36
+
37
+ ---
38
+
6
39
  ## [v0.1.26](https://github.com/crenata/bejibun-redis/compare/v0.1.24...v0.1.26) - 2025-10-18
7
40
 
8
41
  ### 🩹 Fixes
package/README.md CHANGED
@@ -59,10 +59,9 @@ import type {RedisPipeline} from "@bejibun/redis/types";
59
59
  import BaseController from "@bejibun/core/bases/BaseController";
60
60
  import Logger from "@bejibun/logger";
61
61
  import Redis from "@bejibun/redis";
62
- import {BunRequest} from "bun";
63
62
 
64
63
  export default class TestController extends BaseController {
65
- public async redis(request: BunRequest): Promise<Response> {
64
+ public async redis(request: Bun.BunRequest): Promise<Response> {
66
65
  await Redis.set("redis", {hello: "world"});
67
66
  const redis = await Redis.get("redis");
68
67
 
@@ -133,7 +133,7 @@ export default class RedisBuilder {
133
133
  const connectionName = defineValue(name, config.default);
134
134
  const connection = config.connections[connectionName];
135
135
  if (isEmpty(connection))
136
- throw new RedisException(`[Redis]: Connection "${connectionName}" not found.`);
136
+ throw new RedisException(`Connection "${connectionName}" not found.`);
137
137
  return connection;
138
138
  }
139
139
  static getClient(name) {
package/configure.d.ts ADDED
@@ -0,0 +1 @@
1
+ export {};
package/configure.js ADDED
@@ -0,0 +1,11 @@
1
+ import App from "@bejibun/app";
2
+ import Logger from "@bejibun/logger";
3
+ import path from "path";
4
+ const configPath = path.resolve(__dirname, "config");
5
+ const configs = Array.from(new Bun.Glob("**/*").scanSync({
6
+ cwd: configPath
7
+ }));
8
+ for (const config of configs) {
9
+ await Bun.write(App.Path.configPath(config), await Bun.file(path.resolve(configPath, config)).text());
10
+ Logger.setContext("CONFIGURE").info(`Copying ${config} into config/${config}`);
11
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bejibun/redis",
3
- "version": "0.1.27",
3
+ "version": "0.1.29",
4
4
  "author": "Havea Crenata <havea.crenata@gmail.com>",
5
5
  "repository": {
6
6
  "type": "git",
@@ -36,6 +36,7 @@
36
36
  "type": "module",
37
37
  "types": "index.d.ts",
38
38
  "dependencies": {
39
+ "@bejibun/app": "^0.1.19",
39
40
  "@bejibun/logger": "^0.1.18",
40
41
  "@bejibun/utils": "^0.1.14"
41
42
  }