@xeno-js/core 1.0.0 → 1.1.1
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/README.md +6 -7
- package/dist/index.cjs +416 -340
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +6 -1
- package/dist/index.d.ts +6 -1
- package/dist/index.js +269 -192
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -65,9 +65,9 @@ reason about.
|
|
|
65
65
|
|
|
66
66
|
Business logic should not belong to your HTTP framework.
|
|
67
67
|
|
|
68
|
-
Xeno.JS keeps application concerns separate from delivery mechanisms, allowing
|
|
69
|
-
same application architecture to be hosted behind transports such as
|
|
70
|
-
Hono, Express, or other adapters.
|
|
68
|
+
Xeno.JS keeps application concerns separate from delivery mechanisms, allowing
|
|
69
|
+
the same application architecture to be hosted behind transports such as
|
|
70
|
+
Fastify, Hono, Express, or other adapters.
|
|
71
71
|
|
|
72
72
|
```text
|
|
73
73
|
HTTP / CLI / Worker / Lambda
|
|
@@ -201,8 +201,7 @@ The composition root is explicit:
|
|
|
201
201
|
// src/bootstrap.ts
|
|
202
202
|
import { AppBuilder } from '@xeno-js/core'
|
|
203
203
|
|
|
204
|
-
const app = new AppBuilder()
|
|
205
|
-
.addServices((services) => {
|
|
204
|
+
const app = new AppBuilder().addServices((services) => {
|
|
206
205
|
services.addScoped('USER_REPOSITORY', (container) => {
|
|
207
206
|
return new UserRepository(container.resolve('USER_DATA_SOURCE'))
|
|
208
207
|
})
|
|
@@ -443,8 +442,8 @@ npm run check
|
|
|
443
442
|
|
|
444
443
|
## Support
|
|
445
444
|
|
|
446
|
-
If Xeno.JS is useful to you, you can support the project through the community
|
|
447
|
-
sponsorship channels documented on the website:
|
|
445
|
+
If Xeno.JS is useful to you, you can support the project through the community
|
|
446
|
+
and sponsorship channels documented on the website:
|
|
448
447
|
|
|
449
448
|
**[Support Xeno](https://www.xeno-js.it/docs/support-us)**
|
|
450
449
|
|