@owlmeans/router 0.1.1 → 0.1.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.
Files changed (3) hide show
  1. package/README.md +13 -16
  2. package/package.json +5 -3
  3. package/tsconfig.json +6 -11
package/README.md CHANGED
@@ -1,24 +1,21 @@
1
- # OwlMeans Package Template
1
+ # @owlmeans/router
2
2
 
3
- This is a template directory for creating new packages within the OwlMeans Common Libraries ecosystem.
3
+ Internal router service for the OwlMeans module system.
4
4
 
5
- ## Usage
5
+ ## Overview
6
6
 
7
- Copy this template directory when creating a new package:
7
+ - Provides the `RouterService` that attaches modules to a runtime router (e.g. Express, Bun's HTTP server)
8
+ - Used internally by `@owlmeans/server-route` and `@owlmeans/client-route`
9
+ - Not typically used directly in application code
10
+
11
+ ## Installation
8
12
 
9
13
  ```bash
10
- cp -r packages/_tpl packages/your-new-package
11
- cd packages/your-new-package
14
+ bun add @owlmeans/router
12
15
  ```
13
16
 
14
- Then update:
15
- - `package.json` - Change the package name and dependencies
16
- - `README.md` - Replace with proper documentation following OwlMeans standards
17
- - `src/index.ts` - Implement your package functionality
18
-
19
- ## Template Structure
17
+ ## Related Packages
20
18
 
21
- - **package.json** - Base package configuration with common scripts and exports
22
- - **tsconfig.json** - TypeScript configuration aligned with OwlMeans standards
23
- - **src/index.ts** - Entry point file
24
- - **README.md** - This template documentation (replace with actual docs)
19
+ - [`@owlmeans/server-route`](../server-route) server-side router implementation
20
+ - [`@owlmeans/client-route`](../client-route) client-side router implementation
21
+ - [`@owlmeans/module`](../module) modules registered with the router
package/package.json CHANGED
@@ -1,6 +1,7 @@
1
1
  {
2
2
  "name": "@owlmeans/router",
3
- "version": "0.1.1",
3
+ "version": "0.1.3",
4
+ "license": "MIT",
4
5
  "type": "module",
5
6
  "scripts": {
6
7
  "build": "tsc -b",
@@ -20,16 +21,17 @@
20
21
  }
21
22
  },
22
23
  "dependencies": {
23
- "@owlmeans/context": "^0.1.1"
24
+ "@owlmeans/context": "^0.1.3"
24
25
  },
25
26
  "peerDependencies": {
26
27
  "react": "*"
27
28
  },
28
29
  "devDependencies": {
30
+ "@owlmeans/dep-config": "workspace:*",
29
31
  "@types/node": "^24.10.1",
30
32
  "@types/react": "^19.2.7",
31
33
  "nodemon": "^3.1.11",
32
- "typescript": "^5.8.3"
34
+ "typescript": "^6.0.2"
33
35
  },
34
36
  "publishConfig": {
35
37
  "access": "public"
package/tsconfig.json CHANGED
@@ -1,16 +1,11 @@
1
1
  {
2
2
  "extends": [
3
- "../tsconfig.default.json",
4
- "../tsconfig.react.json",
3
+ "@owlmeans/dep-config/tsconfig.base.json",
4
+ "@owlmeans/dep-config/tsconfig.react.json"
5
5
  ],
6
6
  "compilerOptions": {
7
- "rootDir": "./src/", /* Specify the root folder within your source files. */
8
- "outDir": "./build/", /* Specify an output folder for all emitted files. */
9
- "moduleResolution": "Bundler",
7
+ "rootDir": "./src/",
8
+ "outDir": "./build/"
10
9
  },
11
- "exclude": [
12
- "./dist/**/*",
13
- "./build/**/*",
14
- "./*.ts"
15
- ]
16
- }
10
+ "exclude": ["./dist/**/*", "./build/**/*", "./*.ts"]
11
+ }