@elysiumjs/core 0.3.0 → 0.3.1

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/README.md CHANGED
@@ -109,4 +109,4 @@ Feel free to open issues for any bugs or questions you may have. Pull requests a
109
109
 
110
110
  ## License
111
111
 
112
- This project is licensed under the Apache License, Version 2.0. See the [LICENSE](LICENSE) file for more information.
112
+ This project is licensed under the Apache License, Version 2.0. See the [LICENSE](../../LICENSE) file for more information.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@elysiumjs/core",
3
- "version": "0.3.0",
3
+ "version": "0.3.1",
4
4
  "license": "Apache-2.0",
5
5
  "description": "A super-charged web framework for Bun, built on top of ElysiaJS.",
6
6
  "private": false,
@@ -41,7 +41,7 @@
41
41
  "@types/bun": "latest"
42
42
  },
43
43
  "peerDependencies": {
44
- "typescript": "^5"
44
+ "typescript": "^5.8.3"
45
45
  },
46
46
  "trustedDependencies": [
47
47
  "es5-ext"
package/src/redis.ts CHANGED
@@ -26,7 +26,7 @@ import { Service } from './service';
26
26
  * Properties used to create a new redis connection.
27
27
  * @author Axel Nana <axel.nana@workbud.com>
28
28
  */
29
- export type RedisConnectionProps = Bun.RedisOptions;
29
+ export type RedisConnectionProps = Bun.RedisOptions & { url: string };
30
30
 
31
31
  /**
32
32
  * Keyv adapter for redis. This adapter is based on the Bun's Redis client.
@@ -361,7 +361,7 @@ export namespace Redis {
361
361
  * @param config The configuration for the redis connection.
362
362
  * @returns The newly created and registered redis connection.
363
363
  */
364
- export const registerConnection = (name: string, config: Bun.RedisOptions) => {
364
+ export const registerConnection = (name: string, config: RedisConnectionProps) => {
365
365
  if (Service.exists(getConnectionName(name))) {
366
366
  // TODO: Use logger service here
367
367
  console.error(`A connection with the name ${name} has already been registered.`);