@mosetta/build 0.0.24 → 0.0.26

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 CHANGED
@@ -1,5 +1,35 @@
1
1
  # @mosetta/build
2
2
 
3
+ ## 0.0.26
4
+
5
+ ### Patch Changes
6
+
7
+ - f8f342b: An action at an address of the site: a JSON API at a route of its own, without a handler.
8
+
9
+ - `@mosetta/content`: an address may be bound to an action (`endpoint: { kind: 'action', action }`).
10
+ - `@mosetta/server`: such an address calls the action as at its own route — the body its input, a GET's query its input.
11
+ - `@mosetta/server-action`: an action offers itself at an address (`address: { route }` beside its description).
12
+ - `@mosetta/build`: the catalog keeps every action of a module, with what it offers.
13
+ - `@mosetta/cloudflare`: a changing request a browser sent from another site vouches for nobody by its cookie outside the editing surfaces — it goes on as a visitor's.
14
+
15
+ - Updated dependencies [f8f342b]
16
+ - @mosetta/server-action@0.0.26
17
+ - @mosetta/server@0.0.26
18
+ - @mosetta/router@0.0.26
19
+ - @mosetta/runtime@0.0.26
20
+ - @mosetta/tar@0.0.26
21
+
22
+ ## 0.0.25
23
+
24
+ ### Patch Changes
25
+
26
+ - Updated dependencies [794d26a]
27
+ - @mosetta/server-action@0.0.25
28
+ - @mosetta/server@0.0.25
29
+ - @mosetta/router@0.0.25
30
+ - @mosetta/runtime@0.0.25
31
+ - @mosetta/tar@0.0.25
32
+
3
33
  ## 0.0.24
4
34
 
5
35
  ### Patch Changes
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mosetta/build",
3
- "version": "0.0.24",
3
+ "version": "0.0.26",
4
4
  "license": "MIT",
5
5
  "description": "The core of the tile forge: builds a tile palette — its tile side artifacts, their dependency closure, the tile host descriptor. Environment-agnostic — the file system and the bundling engine are supplied from outside.",
6
6
  "type": "module",
@@ -27,11 +27,11 @@
27
27
  "scheduler": "*",
28
28
  "systemjs": "^6.15.1",
29
29
  "yaml": "^2.9.0",
30
- "@mosetta/router": "0.0.24",
31
- "@mosetta/runtime": "0.0.24",
32
- "@mosetta/tar": "0.0.24",
33
- "@mosetta/server": "0.0.24",
34
- "@mosetta/server-action": "0.0.24"
30
+ "@mosetta/router": "0.0.26",
31
+ "@mosetta/runtime": "0.0.26",
32
+ "@mosetta/server-action": "0.0.26",
33
+ "@mosetta/server": "0.0.26",
34
+ "@mosetta/tar": "0.0.26"
35
35
  },
36
36
  "publishConfig": {
37
37
  "access": "public"
package/src/build.mjs CHANGED
@@ -70,9 +70,8 @@ class OutputFS {
70
70
  */
71
71
  /**
72
72
  * What a built server module offers, asked of it the way the runner would (`x-mosetta-describe`):
73
- * its actions that offer themselves as tools and its handlers — or null when it says nothing (built
74
- * with a framework before modules could say) or cannot be run here. Only what is offered is kept: an
75
- * action that offers nothing is nobody's business but its blocks'.
73
+ * its actions (with what each offers: a tool, an address) and its handlers — or null when it says
74
+ * nothing (built with a framework before modules could say) or cannot be run here.
76
75
  */
77
76
  async function offersOf(jsCode, evaluate) {
78
77
  try {
@@ -83,8 +82,9 @@ async function offersOf(jsCode, evaluate) {
83
82
  if (!res.ok) return null;
84
83
  const said = await res.json();
85
84
  if (!Array.isArray(said?.actions) || !Array.isArray(said?.handlers)) return null;
86
- const tools = said.actions.filter((a) => typeof a?.tool === 'string');
87
- return tools.length || said.handlers.length ? { actions: tools, handlers: said.handlers } : null;
85
+ // every action, with what it offers (a tool, an address) — the site's editors may bind any of them
86
+ // to an address, those that offer themselves first
87
+ return said.actions.length || said.handlers.length ? { actions: said.actions, handlers: said.handlers } : null;
88
88
  } catch {
89
89
  return null;
90
90
  }