@h3ravel/config 0.1.1 → 0.2.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 ADDED
@@ -0,0 +1,13 @@
1
+ # @h3ravel/config
2
+
3
+ ## 0.2.0
4
+
5
+ ### Minor Changes
6
+
7
+ - aea734f: Fix all known bugs and improved interdependecy between packages.
8
+
9
+ ### Patch Changes
10
+
11
+ - Updated dependencies [aea734f]
12
+ - @h3ravel/core@0.2.0
13
+ - @h3ravel/support@0.2.0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@h3ravel/config",
3
- "version": "0.1.1",
3
+ "version": "0.2.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,8 @@
16
16
  },
17
17
  "dependencies": {
18
18
  "dotenv": "^17.2.1",
19
- "h3": "^2.0.0-beta.1",
20
- "@h3ravel/support": "0.1.1",
21
- "@h3ravel/core": "0.1.1"
19
+ "@h3ravel/support": "0.2.0",
20
+ "@h3ravel/core": "0.2.0"
22
21
  },
23
22
  "devDependencies": {
24
23
  "typescript": "^5.4.0"
@@ -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(private app: Application) { }
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]
package/src/EnvLoader.ts CHANGED
@@ -3,7 +3,7 @@ import { DotNestedKeys, DotNestedValue, safeDot } from '@h3ravel/support'
3
3
  import { Application } from "@h3ravel/core";
4
4
 
5
5
  export class EnvLoader {
6
- constructor(private _app: Application) { }
6
+ constructor(protected _app: Application) { }
7
7
 
8
8
  /**
9
9
  * Get the defined environment vars
package/tsconfig.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
- "extends": "../../tsconfig.json",
2
+ "extends": "../tsconfig/tsconfig.json",
3
3
  "compilerOptions": {
4
4
  "outDir": "dist"
5
5
  },
package/vite.config.ts DELETED
@@ -1,9 +0,0 @@
1
- import { defineConfig } from 'tsup'
2
-
3
- export default defineConfig({
4
- entry: ['src/index.ts'],
5
- format: ['esm', 'cjs'],
6
- dts: true,
7
- sourcemap: true,
8
- clean: true
9
- })