@webpieces/rules-config 0.4.866 → 0.4.868
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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@webpieces/rules-config",
|
|
3
|
-
"version": "0.4.
|
|
3
|
+
"version": "0.4.868",
|
|
4
4
|
"description": "Shared webpieces.config.json loader. Single source of truth for validation rule configuration consumed by @webpieces/ai-hook-rules, @webpieces/code-rules, and @webpieces/nx-webpieces-rules.",
|
|
5
5
|
"type": "commonjs",
|
|
6
6
|
"main": "./src/index.js",
|
|
@@ -19,9 +19,9 @@
|
|
|
19
19
|
"inversify": "7.10.4",
|
|
20
20
|
"reflect-metadata": "0.2.2",
|
|
21
21
|
"minimatch": "10.0.1",
|
|
22
|
-
"@webpieces/tooling-common": "0.4.
|
|
23
|
-
"@webpieces/repo-workflow-core": "0.4.
|
|
24
|
-
"@webpieces/rules-sdk": "0.4.
|
|
22
|
+
"@webpieces/tooling-common": "0.4.868",
|
|
23
|
+
"@webpieces/repo-workflow-core": "0.4.868",
|
|
24
|
+
"@webpieces/rules-sdk": "0.4.868"
|
|
25
25
|
},
|
|
26
26
|
"author": "Dean Hiller",
|
|
27
27
|
"license": "Apache-2.0",
|
|
@@ -34,7 +34,7 @@
|
|
|
34
34
|
"access": "public"
|
|
35
35
|
},
|
|
36
36
|
"devDependencies": {
|
|
37
|
-
"@webpieces/tooling-testkit": "0.4.
|
|
37
|
+
"@webpieces/tooling-testkit": "0.4.868"
|
|
38
38
|
},
|
|
39
39
|
"types": "./src/index.d.ts",
|
|
40
40
|
"bin": {
|
|
@@ -142,7 +142,7 @@ Instead of importing, receive the dependency as a constructor or method paramete
|
|
|
142
142
|
|
|
143
143
|
## Canonical runtime client migration
|
|
144
144
|
|
|
145
|
-
For every owner tagged `webpieces` or `webpieces-lib`,
|
|
145
|
+
For every owner tagged `webpieces` or `webpieces-lib`, keep topology in `src/wiring.ts`
|
|
146
146
|
and replace supported hand-written singleton/provider factories with the public helpers:
|
|
147
147
|
|
|
148
148
|
```typescript
|
|
@@ -157,12 +157,19 @@ new RuntimeTaskClients(options).bindPubSub(TASK_TOKEN, TaskApi, 'worker');
|
|
|
157
157
|
provideRpcClient(BROWSER_TOKEN, SaveApi, 'save');
|
|
158
158
|
```
|
|
159
159
|
|
|
160
|
+
Each owner's `src/wiring.ts` shows its actual wiring: the Wiring/AppWiring class AND the named
|
|
161
|
+
BindingModule and RouteModule classes it selects, with their real registrations (`bindRpc`,
|
|
162
|
+
`provideRpcClient`, `bindPubSub`, `addRoutes`, `addFilter`, DI binds and provider recipes) in their
|
|
163
|
+
`configure` methods. A selected module declared in any other file is rejected. Runtime extraction
|
|
164
|
+
reads only canonical `wiring.ts` files; an AppWiring brings in a library through that library's
|
|
165
|
+
Wiring, whose modules live in the library's own `wiring.ts`.
|
|
166
|
+
|
|
160
167
|
The wiring-format rule checks canonical `src/wiring.ts` in every participating tagged owner,
|
|
161
|
-
including unchanged projects outside the diff
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
168
|
+
including unchanged projects outside the diff, and never format-checks other files. Select modules
|
|
169
|
+
with literal arrays of named instances; only AppWiring selects library Wirings. Set maxLines
|
|
170
|
+
explicitly (the agreed limit is 400). Preserve each existing token, API, deployment and supported
|
|
171
|
+
filter list. Registration remains lazy and singleton; test overrides must still avoid resolving the
|
|
172
|
+
production factory. Keep configuration building, translations, environment discovery and
|
|
173
|
+
initializer or factory bodies in imported implementations, and reference them by name from the
|
|
174
|
+
registration that stays visible in `wiring.ts`. Review the resulting runtime declaration candidates
|
|
175
|
+
and qualified API/deployment relationships before updating approvals.
|