@niscorp/loom 0.3.1 → 0.5.0
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/CHANGELOG.md +44 -0
- package/package.json +6 -6
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,49 @@
|
|
|
1
1
|
# @niscorp/loom
|
|
2
2
|
|
|
3
|
+
## 0.5.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- 6a62604: `createDevtoolsFunctions` answers a list of `{ id, description, execute }`, and `FunctionDefinition` names that shape. **Breaking.**
|
|
8
|
+
|
|
9
|
+
BREAKING — approved by moccadroid, 2026-10-18: `createDevtoolsFunctions(config)` returned a map of handlers by name; it returns `FunctionDefinition[]`, each with a description of what it does and what to send. An app that spread the map into its functions spreads the list into the list its `functions(session)` answers: `functions: (session) => [...createDevtoolsFunctions({ shell: () => session.shell, definitions }), ...]`.
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- Updated dependencies [63b9ab5]
|
|
14
|
+
- Updated dependencies [6a62604]
|
|
15
|
+
- @niscorp/nova@0.5.0
|
|
16
|
+
|
|
17
|
+
## 0.4.0
|
|
18
|
+
|
|
19
|
+
### Minor Changes
|
|
20
|
+
|
|
21
|
+
- c7c4f9b: A nova shell keeps actions and fragments in one registry. **Breaking.**
|
|
22
|
+
|
|
23
|
+
BREAKING — approved by moccadroid, 2026-10-13: `shell.registerFragment` is gone, and an action and a fragment no longer share an id.
|
|
24
|
+
- **`shell.registerAction(definition)` takes an action or a fragment**, told apart by the fragment's `kind: 'fragment'`, and **`shell.removeAction(id)` takes either out**. There was no call to take a fragment out. Taken out, a fragment is unknown to a later `with: [...]`; an instance that was opened with it keeps the definition it was composed into, and `back` skips a position that was opened with it, as it skips one it cannot put back.
|
|
25
|
+
- **A fragment handed to `createShell` is validated**, as an action is: one that does not parse throws `DefinitionValidationError` at construction. Only `registerFragment` validated one before.
|
|
26
|
+
- **An id names an action or a fragment, never both.** `createShell` and `registerAction` throw `DefinitionValidationError` for an id that is already the other kind's.
|
|
27
|
+
- Opening a fragment by itself still throws `UnknownActionError`, and a `with: [...]` that names an action still throws `UnknownFragmentError`. `ShellConfig` keeps `actions` and `fragments`.
|
|
28
|
+
- **Moss:** a fragment that is no longer answered for a principal is taken out of their open shell, as an action is. A boot, and a set of actions handed over, refuse an action under the id of a fragment a shell ships. On a session's own shell, `registerAction` (refused there as before) is the one call that would take a fragment.
|
|
29
|
+
|
|
30
|
+
**What to change:** `shell.registerFragment(fragment)` becomes `shell.registerAction(fragment)`. Give an action and a fragment that share an id two ids.
|
|
31
|
+
|
|
32
|
+
- 4068f98: Vex keeps what an entry it writes was written from, and says who asks when it looks one up. **Breaking.**
|
|
33
|
+
|
|
34
|
+
BREAKING — approved by moccadroid, 2026-10-14: a `mapToShape` an app writes answers `config`, the Prism config its `ir` was compiled from, beside `ir` and `transformed`. `createShapeMapper` does.
|
|
35
|
+
- **A query vex writes keeps its mapping's Prism config** (`mapping`, on the entry), beside the compiled form. A compiled form can neither be read back as a config nor upgraded when Prism changes.
|
|
36
|
+
- **The Postgres cache's table gets a `mapping` column**, in a new migration, `nisc.vex.cache/2`. A deployment that runs its migrations before it boots runs that one first.
|
|
37
|
+
- **`CacheBackend.get(key, scope?)`**: the two lookups that replay an entry hand the cache the scope of whoever asks, so a cache can answer an entry to some callers and not to others. A backend that takes no scope works as before.
|
|
38
|
+
- **`@niscorp/vex/migrations`** exports `VEX_SEQUENCE`, one stored kind, `nisc.vex/entry` (an entry as written, its `mapping` a `nisc.prism/config`), and `VEX_SCHEMAS`.
|
|
39
|
+
|
|
40
|
+
### Patch Changes
|
|
41
|
+
|
|
42
|
+
- Updated dependencies [c7c4f9b]
|
|
43
|
+
- Updated dependencies [4068f98]
|
|
44
|
+
- @niscorp/nova@0.4.0
|
|
45
|
+
- @niscorp/vex@0.4.0
|
|
46
|
+
|
|
3
47
|
## 0.3.1
|
|
4
48
|
|
|
5
49
|
### Patch Changes
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@niscorp/loom",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.5.0",
|
|
4
4
|
"description": "Schema-driven editors that run on Nova — turn any schema into an editing UI",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"repository": {
|
|
@@ -114,16 +114,16 @@
|
|
|
114
114
|
"tsup": "^8.5.1",
|
|
115
115
|
"vitest": "^4.1.2",
|
|
116
116
|
"zod": "^4.6.5",
|
|
117
|
-
"@niscorp/nova": "^0.
|
|
118
|
-
"@niscorp/
|
|
119
|
-
"@niscorp/
|
|
117
|
+
"@niscorp/nova": "^0.5.0",
|
|
118
|
+
"@niscorp/prism": "^0.3.1",
|
|
119
|
+
"@niscorp/vex": "^0.4.1"
|
|
120
120
|
},
|
|
121
121
|
"peerDependencies": {
|
|
122
122
|
"react": "^19.2.4",
|
|
123
123
|
"zod": "^4.2.0",
|
|
124
|
-
"@niscorp/nova": "^0.3.1",
|
|
125
124
|
"@niscorp/prism": "^0.3.1",
|
|
126
|
-
"@niscorp/
|
|
125
|
+
"@niscorp/nova": "^0.5.0",
|
|
126
|
+
"@niscorp/vex": "^0.4.1"
|
|
127
127
|
},
|
|
128
128
|
"peerDependenciesMeta": {
|
|
129
129
|
"@niscorp/prism": {
|