@h3ravel/core 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/core
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/router@0.2.0
13
+ - @h3ravel/tsconfig@0.2.0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@h3ravel/core",
3
- "version": "0.1.1",
3
+ "version": "0.2.0",
4
4
  "description": "Core application container, lifecycle management and service providers for H3ravel.",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",
@@ -13,7 +13,9 @@
13
13
  "h3": "^2.0.0-beta.1",
14
14
  "reflect-metadata": "^0.2.2",
15
15
  "srvx": "^0.8.2",
16
- "tslib": "^2.6.0"
16
+ "tslib": "^2.6.0",
17
+ "@h3ravel/tsconfig": "0.2.0",
18
+ "@h3ravel/router": "0.2.0"
17
19
  },
18
20
  "devDependencies": {
19
21
  "typescript": "^5.4.0"
@@ -1,4 +1,4 @@
1
- import { DotNestedKeys, DotNestedValue } from "@h3ravel/support";
1
+ // import { DotNestedKeys, DotNestedValue } from "@h3ravel/support";
2
2
  import type { H3, serve } from "h3";
3
3
 
4
4
  import type { Edge } from "edge.js";
@@ -3,7 +3,7 @@ import { HttpContext, Middleware, Request, Response } from '@h3ravel/http'
3
3
  import type { H3Event } from 'h3'
4
4
 
5
5
  export class Kernel {
6
- constructor(private middleware: Middleware[] = []) { }
6
+ constructor(protected middleware: Middleware[] = []) { }
7
7
 
8
8
  async handle (event: H3Event, next: (ctx: HttpContext) => Promise<unknown>): Promise<unknown> {
9
9
  const context: HttpContext = {
@@ -10,7 +10,7 @@ export class PathLoader {
10
10
  routes: '/src/routes',
11
11
  config: '/src/config',
12
12
  public: '/public',
13
- storage: '/src/storage',
13
+ storage: '/storage',
14
14
  }
15
15
 
16
16
  /**
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
- })