@jskit-ai/users-core 0.1.43 → 0.1.45

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.
@@ -1,7 +1,7 @@
1
1
  export default Object.freeze({
2
2
  packageVersion: 1,
3
3
  packageId: "@jskit-ai/users-core",
4
- version: "0.1.43",
4
+ version: "0.1.45",
5
5
  kind: "runtime",
6
6
  description: "Users/account runtime plus HTTP routes for account and console features.",
7
7
  dependsOn: [
@@ -138,11 +138,11 @@ export default Object.freeze({
138
138
  mutations: {
139
139
  dependencies: {
140
140
  runtime: {
141
- "@jskit-ai/auth-core": "0.1.32",
142
- "@jskit-ai/database-runtime": "0.1.33",
143
- "@jskit-ai/http-runtime": "0.1.32",
144
- "@jskit-ai/kernel": "0.1.33",
145
- "@jskit-ai/uploads-runtime": "0.1.11",
141
+ "@jskit-ai/auth-core": "0.1.34",
142
+ "@jskit-ai/database-runtime": "0.1.35",
143
+ "@jskit-ai/http-runtime": "0.1.34",
144
+ "@jskit-ai/kernel": "0.1.35",
145
+ "@jskit-ai/uploads-runtime": "0.1.13",
146
146
  "@fastify/type-provider-typebox": "^6.1.0",
147
147
  typebox: "^1.0.81"
148
148
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jskit-ai/users-core",
3
- "version": "0.1.43",
3
+ "version": "0.1.45",
4
4
  "type": "module",
5
5
  "scripts": {
6
6
  "test": "node --test"
@@ -24,11 +24,11 @@
24
24
  "./shared/resources/consoleSettingsFields": "./src/shared/resources/consoleSettingsFields.js"
25
25
  },
26
26
  "dependencies": {
27
- "@jskit-ai/auth-core": "0.1.32",
28
- "@jskit-ai/database-runtime": "0.1.33",
29
- "@jskit-ai/http-runtime": "0.1.32",
30
- "@jskit-ai/kernel": "0.1.33",
31
- "@jskit-ai/uploads-runtime": "0.1.11",
27
+ "@jskit-ai/auth-core": "0.1.34",
28
+ "@jskit-ai/database-runtime": "0.1.35",
29
+ "@jskit-ai/http-runtime": "0.1.34",
30
+ "@jskit-ai/kernel": "0.1.35",
31
+ "@jskit-ai/uploads-runtime": "0.1.13",
32
32
  "@fastify/type-provider-typebox": "^6.1.0",
33
33
  "typebox": "^1.0.81"
34
34
  }
@@ -1,20 +0,0 @@
1
- # Server Common
2
-
3
- This directory contains server-only runtime pieces reused by multiple slices in `users-core`.
4
-
5
- Use these folders:
6
- - `repositories/`: shared repositories and repository-only helpers.
7
- - `services/`: shared domain services consumed by multiple slices.
8
- - `contributors/`: shared action-context/bootstrap contributors.
9
- - `validators/`: shared request/response validators used by multiple adapters.
10
- - `formatters/`: shared payload formatters/projections for transport output.
11
- - `routes/`: shared route schema maps used by more than one route adapter.
12
-
13
- Keep these files here:
14
- - `registerCommonRepositories.js`: shared repository bindings.
15
- - `registerSharedApi.js`: shared API metadata registration.
16
-
17
- Do not put these in `common/`:
18
- - feature-only actions/services/repositories/controllers
19
- - one-off route payload shapes used by a single feature
20
- - UI/client code
@@ -1,11 +0,0 @@
1
- # `contributors/`
2
-
3
- Put shared runtime contributors here (for action context or bootstrap payload composition).
4
-
5
- Allowed:
6
- - contributors reused by multiple slices/actions
7
- - contributor logic that delegates domain work to services
8
-
9
- Not allowed:
10
- - feature-specific contributors used by one slice only
11
- - direct repository access when a service already owns that domain
@@ -1,11 +0,0 @@
1
- # `formatters/`
2
-
3
- Put shared transport/output projection logic here.
4
-
5
- Allowed:
6
- - shaping domain records into API payloads used in multiple slices
7
-
8
- Not allowed:
9
- - business rules
10
- - repository reads/writes
11
- - HTTP adapter/controller code
@@ -1,24 +0,0 @@
1
- # `repositories/`
2
-
3
- Use this directory for persistence code shared by more than one server slice.
4
-
5
- What belongs here:
6
- - repository helpers that are part of persistence logic
7
- - shared repositories used by multiple features/slices
8
-
9
- Examples:
10
- - SQL/date/JSON helper functions reused by several repositories
11
- - `workspaceMembershipsRepository`
12
- - `workspaceInvitesRepository`
13
-
14
- Do not put these here:
15
- - repositories used by only one feature
16
- - business logic
17
- - action definitions
18
- - transport validation
19
- - feature-specific response mapping
20
-
21
- Rule:
22
- - if a helper is reused by multiple repository files, it can live here
23
- - if a repository is reused by multiple slices, keep it here
24
- - if a repository is owned by one slice only, keep it in that slice folder
@@ -1,11 +0,0 @@
1
- # `routes/`
2
-
3
- Put shared route schema maps here when multiple route adapters consume them.
4
-
5
- Allowed:
6
- - shared route request/response schema groupings
7
- - references to shared resources/commands
8
-
9
- Not allowed:
10
- - route registration/handlers
11
- - business logic
@@ -1,12 +0,0 @@
1
- # `services/`
2
-
3
- Put shared server services here when they are used by more than one slice.
4
-
5
- Allowed:
6
- - cross-slice service logic with clear inputs/outputs
7
- - no HTTP route validator handling
8
-
9
- Not allowed:
10
- - feature-only services
11
- - route adapters/controllers
12
- - response schema declarations
@@ -1,11 +0,0 @@
1
- # `validators/`
2
-
3
- Put shared validators here when they are reused by multiple server slices/adapters.
4
-
5
- Allowed:
6
- - validator objects (`schema` + `normalize`)
7
- - transport-level reusable validators
8
-
9
- Not allowed:
10
- - feature-only validators used by one slice
11
- - business/domain decision logic