@bonsae/nrg-runtime 0.25.1 → 0.26.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/package.json +3 -23
- package/server/index.cjs +49 -32
- package/server/resources/nrg-client.js +6 -6
- package/internal/README.md +0 -30
- package/internal/client/components.mjs +0 -1287
- package/internal/client/index.mjs +0 -229
- package/internal/server/index.cjs +0 -298
- package/types/client.d.ts +0 -266
- package/types/internal/client/components.d.ts +0 -9
- package/types/internal/client/index.d.ts +0 -9
- package/types/internal/server/index.d.ts +0 -422
- package/types/server.d.ts +0 -941
- package/types/shims/brands.d.ts +0 -32
- package/types/shims/client/form/components/node-red-config-input.vue.d.ts +0 -125
- package/types/shims/client/form/components/node-red-editor-input.vue.d.ts +0 -124
- package/types/shims/client/form/components/node-red-input-label.vue.d.ts +0 -34
- package/types/shims/client/form/components/node-red-input.vue.d.ts +0 -123
- package/types/shims/client/form/components/node-red-json-schema-form.vue.d.ts +0 -772
- package/types/shims/client/form/components/node-red-select-input.vue.d.ts +0 -132
- package/types/shims/client/form/components/node-red-toggle.vue.d.ts +0 -36
- package/types/shims/client/form/components/node-red-typed-input.vue.d.ts +0 -151
- package/types/shims/client/globals.d.ts +0 -320
- package/types/shims/client/types.d.ts +0 -227
- package/types/shims/components.d.ts +0 -23
- package/types/shims/constants.d.ts +0 -4
- package/types/shims/schema-options.d.ts +0 -24
- package/types/shims/shims-vue.d.ts +0 -5
- package/types/shims/typebox.d.ts +0 -10
package/internal/README.md
DELETED
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
# `internal/` — test-support surface (not public API)
|
|
2
|
-
|
|
3
|
-
These modules are **not public API**. They exist so `@bonsae/nrg`'s published
|
|
4
|
-
test utilities (`@bonsae/nrg/test/*`) can reach the framework internals they
|
|
5
|
-
need to exercise a consumer's nodes:
|
|
6
|
-
|
|
7
|
-
- **`server/`** — Node-side internals (the wiring symbol, context setup,
|
|
8
|
-
validator init, and internal types) used by the server unit/integration test
|
|
9
|
-
harness.
|
|
10
|
-
- **`client/`** — the form composables (`index`, kept `.vue`-free) and the real
|
|
11
|
-
Vue form components (`components`) used by the component test harness.
|
|
12
|
-
|
|
13
|
-
## Why they ship in the published package
|
|
14
|
-
|
|
15
|
-
A consumer testing their nodes imports `@bonsae/nrg/test/*`, which at runtime
|
|
16
|
-
imports these from the **installed** `@bonsae/nrg-runtime`. The test harness has
|
|
17
|
-
to operate on the **same** runtime instance the consumer's nodes use — the
|
|
18
|
-
`WIRE_HANDLERS` symbol and `instanceof` checks only hold when both sides share
|
|
19
|
-
one copy. So these can't be bundled into the toolkit; they must be a real,
|
|
20
|
-
importable part of this package. (There's no such thing as a published-but-hidden
|
|
21
|
-
export — anything in `exports` is importable.)
|
|
22
|
-
|
|
23
|
-
This is the same pattern as `svelte/internal` and `@angular/core/testing`:
|
|
24
|
-
shipped, importable, but not part of the supported API.
|
|
25
|
-
|
|
26
|
-
## Stability
|
|
27
|
-
|
|
28
|
-
**No semver guarantees.** Don't import `@bonsae/nrg-runtime/internal/*` directly
|
|
29
|
-
in your own code — use the documented `@bonsae/nrg/test/*` utilities instead.
|
|
30
|
-
These entry points can change in any release.
|