@stratal/framework 0.0.1 → 0.0.6

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 (2) hide show
  1. package/README.md +2 -7
  2. package/package.json +7 -4
package/README.md CHANGED
@@ -54,9 +54,8 @@ npx skills add strataljs/stratal
54
54
  ## Quick Start
55
55
 
56
56
  ```typescript
57
+ import { Stratal } from 'stratal'
57
58
  import { Module } from 'stratal/module'
58
- import { StratalWorker } from 'stratal/worker'
59
- import { type ApplicationConfig } from 'stratal'
60
59
  import { AuthModule } from '@stratal/framework/auth'
61
60
  import { DatabaseModule } from '@stratal/framework/database'
62
61
  import { RbacModule } from '@stratal/framework/rbac'
@@ -72,11 +71,7 @@ import { RbacModule } from '@stratal/framework/rbac'
72
71
  })
73
72
  class AppModule {}
74
73
 
75
- export default class Backend extends StratalWorker {
76
- protected configure(): ApplicationConfig {
77
- return { module: AppModule }
78
- }
79
- }
74
+ export default new Stratal({ module: AppModule })
80
75
  ```
81
76
 
82
77
  ## Documentation
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@stratal/framework",
3
- "version": "0.0.1",
3
+ "version": "0.0.6",
4
4
  "type": "module",
5
5
  "license": "MIT",
6
6
  "author": "Temitayo Fadojutimi",
@@ -9,9 +9,12 @@
9
9
  "url": "git+https://github.com/strataljs/stratal.git",
10
10
  "directory": "packages/framework"
11
11
  },
12
+ "engines": {
13
+ "node": ">=22.0.0"
14
+ },
12
15
  "publishConfig": {
13
16
  "access": "public",
14
- "provenance": false
17
+ "provenance": true
15
18
  },
16
19
  "files": [
17
20
  "dist",
@@ -75,7 +78,7 @@
75
78
  "better-auth": "^1.4.9",
76
79
  "casbin": "^5.41.0",
77
80
  "pg": "^8.0.0",
78
- "stratal": "0.0.4"
81
+ "stratal": "0.0.6"
79
82
  },
80
83
  "peerDependenciesMeta": {
81
84
  "@better-auth/core": {
@@ -97,7 +100,7 @@
97
100
  "devDependencies": {
98
101
  "@better-auth/core": "^1.5.0",
99
102
  "@cloudflare/vitest-pool-workers": "^0.12.18",
100
- "@cloudflare/workers-types": "4.20260301.1",
103
+ "@cloudflare/workers-types": "4.20260306.1",
101
104
  "@faker-js/faker": "^10.3.0",
102
105
  "@stratal/testing": "workspace:^",
103
106
  "@types/node": "^22.19.13",