@entifix/business 0.1.0 → 0.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.
Files changed (2) hide show
  1. package/README.md +15 -5
  2. package/package.json +3 -2
package/README.md CHANGED
@@ -1,11 +1,21 @@
1
1
  # @entifix/business
2
2
 
3
- This library was generated with [Nx](https://nx.dev).
3
+ The ports an application is written against, and the generic use-cases that run over them. A use-case depends on `EntityRepositoryTag`, never on a database, so the same code runs in a browser against `@entifix/rest` and on a backend against `@entifix/mongo` or `@entifix/sql` — the adapter is chosen where the application is composed.
4
4
 
5
- ## Building
5
+ Ports are Effect `Context.Tag`s: repository, link resolver, session and one-time-token stores, token service, tenant database resolver, and the health, shutdown and wiring registries.
6
6
 
7
- Run `nx build @entifix/business` to build the library.
7
+ ## Install
8
8
 
9
- ## Running unit tests
9
+ ```sh
10
+ pnpm add @entifix/business effect
11
+ ```
10
12
 
11
- Run `nx test @entifix/business` to execute the unit tests via [Jest](https://jestjs.io).
13
+ ## Entry points
14
+
15
+ | Import | What it holds |
16
+ | ------------------- | -------------------------------------------------------------------------------------------------------------------------------- |
17
+ | `@entifix/business` | Port tags, `getUCFactory` / `loadUCFactory` / `saveUCFactory` / `deleteUCFactory`, `HealthRegistryLayer`, `makeShutdownRegistry` |
18
+
19
+ ---
20
+
21
+ Tier 1 (entity) of entifix — a package depends only on its own tier or below. See [the tiers](https://github.com/r10c-technologies/entifix#the-tiers-and-what-you-are-allowed-to-install). MIT licensed.
package/package.json CHANGED
@@ -1,6 +1,7 @@
1
1
  {
2
2
  "name": "@entifix/business",
3
- "version": "0.1.0",
3
+ "version": "0.1.1",
4
+ "description": "The ports every adapter implements — repository, session, token, health — and the generic get, load, save and delete use-cases.",
4
5
  "license": "MIT",
5
6
  "repository": {
6
7
  "type": "git",
@@ -54,7 +55,7 @@
54
55
  },
55
56
  "dependencies": {
56
57
  "@swc/helpers": "0.5.23",
57
- "@entifix/core": "0.1.0"
58
+ "@entifix/core": "0.1.1"
58
59
  },
59
60
  "peerDependencies": {
60
61
  "effect": ">=3.22 <4"