@bejibun/redis 0.1.28 → 0.1.30

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,37 @@ All notable changes to this project will be documented in this file.
3
3
 
4
4
  ---
5
5
 
6
+ ## [v0.1.30](https://github.com/crenata/bejibun-redis/compare/v0.1.29...v0.1.30) - 2025-10-22
7
+
8
+ ### 🩹 Fixes
9
+ - Fix `configure.ts` configuration file
10
+
11
+ ### 📖 Changes
12
+
13
+ ### ❤️Contributors
14
+ - Havea Crenata ([@crenata](https://github.com/crenata))
15
+ - Ghulje ([@ghulje](https://github.com/ghulje))
16
+
17
+ **Full Changelog**: https://github.com/crenata/bejibun-redis/blob/master/CHANGELOG.md
18
+
19
+ ---
20
+
21
+ ## [v0.1.29](https://github.com/crenata/bejibun-redis/compare/v0.1.27...v0.1.29) - 2025-10-22
22
+
23
+ ### 🩹 Fixes
24
+
25
+ ### 📖 Changes
26
+ What's New :
27
+ - Adding `configure.ts` for installation configuration
28
+
29
+ ### ❤️Contributors
30
+ - Havea Crenata ([@crenata](https://github.com/crenata))
31
+ - Ghulje ([@ghulje](https://github.com/ghulje))
32
+
33
+ **Full Changelog**: https://github.com/crenata/bejibun-redis/blob/master/CHANGELOG.md
34
+
35
+ ---
36
+
6
37
  ## [v0.1.27](https://github.com/crenata/bejibun-redis/compare/v0.1.26...v0.1.27) - 2025-10-20
7
38
 
8
39
  ### 🩹 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
 
package/configure.d.ts ADDED
@@ -0,0 +1 @@
1
+ export {};
package/configure.js ADDED
@@ -0,0 +1,14 @@
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 regex = /\.(m?js|ts)$/;
6
+ const configs = Array.from(new Bun.Glob("**/*").scanSync({
7
+ cwd: configPath
8
+ })).filter(value => (regex.test(value) &&
9
+ !value.endsWith(".d.ts")));
10
+ for (const config of configs) {
11
+ const destination = config.replace(regex, ".ts");
12
+ await Bun.write(App.Path.configPath(destination), await Bun.file(path.resolve(configPath, config)).text());
13
+ Logger.setContext("CONFIGURE").info(`Copying ${config} into config/${destination}`);
14
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bejibun/redis",
3
- "version": "0.1.28",
3
+ "version": "0.1.30",
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
  }