akanjs 2.0.0-rc.2 → 2.0.0-rc.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.
@@ -2,25 +2,6 @@
2
2
  "name": "<%= repoName %>",
3
3
  "description": "<%= repoName %> workspace",
4
4
  "version": "0.0.1",
5
- "dependencies": {
6
- "react": "19.2.4",
7
- "react-dom": "19.2.4",
8
- "react-icons": "^5.6.0",
9
- "tailwindcss": "^4.3.0",
10
- "daisyui": "^5.5.20"
11
- },
12
- "devDependencies": {
13
- "@biomejs/biome": "2.4.4",
14
- "@types/react": "^19.2.14",
15
- "@types/react-dom": "^19.2.3",
16
- "crypto-browserify": "^3.12.1",
17
- "https-browserify": "^1.0.0",
18
- "os-browserify": "^0.3.0",
19
- "process": "^0.11.10",
20
- "stream-browserify": "^3.0.0",
21
- "stream-http": "^3.2.0",
22
- "tailwind-scrollbar": "4.0.2",
23
- "tailwindcss-animation-delay": "^2.0.2",
24
- "tailwindcss-radix": "^4.0.2"
25
- }
5
+ "dependencies": {},
6
+ "devDependencies": {}
26
7
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "akanjs",
3
- "version": "2.0.0-rc.2",
3
+ "version": "2.0.0-rc.3",
4
4
  "sourceType": "module",
5
5
  "type": "module",
6
6
  "bin": {
@@ -178,7 +178,6 @@
178
178
  "react-server-dom-webpack": "^19.2.5",
179
179
  "react-simple-pull-to-refresh": "^1.3.4",
180
180
  "react-spring": "^9.7.5",
181
- "redis-memory-server": "^0.16.0",
182
181
  "sharp": "^0.34.5",
183
182
  "ssh2": "^1.17.0",
184
183
  "subset-font": "^2.5.0",
@@ -1,8 +1,6 @@
1
1
  import type { BackendEnv } from "akanjs/base";
2
2
  import { Logger, sleep } from "akanjs/common";
3
3
 
4
- import { RedisMemoryServer } from "redis-memory-server";
5
-
6
4
  const MAX_RETRY = 5;
7
5
  const TEST_LISTEN_PORT_BASE = 38080;
8
6
  const TEST_REDIS_PORT_BASE = 38082;
@@ -11,7 +9,7 @@ const MAX_ACTIVATION_TIME = 30000;
11
9
 
12
10
  export class TestServer {
13
11
  readonly #logger = new Logger("TestServer");
14
- readonly #redis: RedisMemoryServer;
12
+ readonly #redis: any;
15
13
 
16
14
  readonly #env: BackendEnv;
17
15
  workerId: number;
@@ -29,7 +27,7 @@ export class TestServer {
29
27
  this.workerId = workerId ?? parseInt(process.env.JEST_WORKER_ID ?? "0");
30
28
  if (this.workerId === 0) throw new Error("TestServer should not be used in main thread");
31
29
  this.#portOffset = this.workerId * 1000;
32
- this.#redis = new RedisMemoryServer({ instance: { port: TEST_REDIS_PORT_BASE + this.#portOffset } });
30
+ this.#redis = 1 as any;
33
31
  this.#env = { ...env };
34
32
  }
35
33
  async init() {
@@ -57,7 +55,7 @@ export class TestServer {
57
55
  driver: "sqlite",
58
56
  sqlite: { filePath: `${process.cwd()}/local/test/${this.#env.appName}_${this.workerId}.db` },
59
57
  };
60
- this.#env.redisUri = `redis://${redisHost}:${redisPort}`;
58
+
61
59
  this.#env.onCleanup = async () => {
62
60
  await this.cleanup();
63
61
  };