@h3ravel/config 0.3.0 → 0.4.0

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
@@ -1,5 +1,22 @@
1
1
  # @h3ravel/config
2
2
 
3
+ ## 0.4.0
4
+
5
+ ### Minor Changes
6
+
7
+ - 8ceb2c1: implement the Application class directly since it already implements the IClass contract
8
+
9
+ ### Patch Changes
10
+
11
+ - a27f452: chore: fix all linting issues.
12
+ - c906050: chore: migrate tests suite to jest
13
+ - Updated dependencies [8ceb2c1]
14
+ - Updated dependencies [a27f452]
15
+ - Updated dependencies [c906050]
16
+ - @h3ravel/core@0.4.0
17
+ - @h3ravel/shared@0.4.0
18
+ - @h3ravel/support@0.4.0
19
+
3
20
  ## 0.3.0
4
21
 
5
22
  ### Minor Changes
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@h3ravel/config",
3
- "version": "0.3.0",
3
+ "version": "0.4.0",
4
4
  "description": "Environment/config loading and management system for H3ravel.",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",
@@ -16,9 +16,9 @@
16
16
  },
17
17
  "dependencies": {
18
18
  "dotenv": "^17.2.1",
19
- "@h3ravel/core": "0.3.0",
20
- "@h3ravel/support": "0.3.0",
21
- "@h3ravel/shared": "0.3.0"
19
+ "@h3ravel/core": "0.4.0",
20
+ "@h3ravel/shared": "0.4.0",
21
+ "@h3ravel/support": "0.4.0"
22
22
  },
23
23
  "devDependencies": {
24
24
  "typescript": "^5.4.0",
@@ -30,6 +30,6 @@
30
30
  "dev": "tsx watch src/index.ts",
31
31
  "start": "node dist/index.js",
32
32
  "lint": "eslint . --ext .ts",
33
- "test": "vitest"
33
+ "test": "jest --passWithNoTests"
34
34
  }
35
35
  }
@@ -1,6 +1,6 @@
1
1
  import { DotNestedKeys, DotNestedValue, safeDot, setNested } from '@h3ravel/support'
2
2
 
3
- import { IApplication } from '@h3ravel/shared'
3
+ import { Application } from '@h3ravel/core'
4
4
  import path from 'node:path'
5
5
  import { readdir } from 'node:fs/promises'
6
6
 
@@ -8,7 +8,7 @@ export class ConfigRepository {
8
8
  private loaded: boolean = false
9
9
  private configs: Record<string, Record<string, any>> = {}
10
10
 
11
- constructor(protected app: IApplication) { }
11
+ constructor(protected app: Application) { }
12
12
 
13
13
  // get<X extends Record<string, any>> (): X
14
14
  // get<X extends Record<string, any>, T extends Extract<keyof X, string>> (key: T): X[T]
@@ -33,7 +33,7 @@ export class ConfigRepository {
33
33
  if (!this.loaded) {
34
34
  const configPath = this.app.getPath('config')
35
35
 
36
- const files = await readdir(configPath);
36
+ const files = await readdir(configPath)
37
37
 
38
38
  for (let i = 0; i < files.length; i++) {
39
39
  const configModule = await import(path.join(configPath, files[i]))
package/src/EnvLoader.ts CHANGED
@@ -1,6 +1,6 @@
1
1
  import { DotNestedKeys, DotNestedValue, safeDot } from '@h3ravel/support'
2
2
 
3
- import { Application } from "@h3ravel/core";
3
+ import { Application } from '@h3ravel/core'
4
4
 
5
5
  export class EnvLoader {
6
6
  constructor(protected _app: Application) { }