brumate 0.4.4 → 0.5.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/dist/{boot-D3NjfyUX.d.ts → boot-Difa0qdg.d.ts} +2 -8
- package/dist/cli.js +2 -2
- package/dist/{client-iZ9a1Nut.js → client-BYHGusTe.js} +990 -369
- package/dist/client-BYHGusTe.js.map +1 -0
- package/dist/{client-DNva05jp.d.ts → client-DvsU9qxG.d.ts} +107 -23
- package/dist/{defer-DP7dMS2y.js → defer-B63oF5Oa.js} +2 -2
- package/dist/{defer-DP7dMS2y.js.map → defer-B63oF5Oa.js.map} +1 -1
- package/dist/{devtools-BJB_MMeL.js → devtools-D_SQpXTg.js} +4 -4
- package/dist/{devtools-BJB_MMeL.js.map → devtools-D_SQpXTg.js.map} +1 -1
- package/dist/{devtools-panel-CUV6A4ZE.js → devtools-panel-B9yokst5.js} +2 -2
- package/dist/{devtools-panel-CUV6A4ZE.js.map → devtools-panel-B9yokst5.js.map} +1 -1
- package/dist/{features-CHY5Ekku.js → features-D5kLyihb.js} +19 -2
- package/dist/features-D5kLyihb.js.map +1 -0
- package/dist/{files-BZRjz9Mx.js → files-s4wmjcZV.js} +2 -2
- package/dist/{files-BZRjz9Mx.js.map → files-s4wmjcZV.js.map} +1 -1
- package/dist/index.d.ts +1 -8
- package/dist/index.js +1 -1
- package/dist/{inspect-BLOdfj7o.js → inspect-BLPt-dZZ.js} +891 -142
- package/dist/inspect-BLPt-dZZ.js.map +1 -0
- package/dist/{loader-CheV6t0N.js → loader-DKxhLjJw.js} +4 -4
- package/dist/{loader-CheV6t0N.js.map → loader-DKxhLjJw.js.map} +1 -1
- package/dist/{navigate-CfOr-TRF.js → navigate-BcV1qkkx.js} +2 -2
- package/dist/navigate-BcV1qkkx.js.map +1 -0
- package/dist/{produce-DS-dQaUX.js → produce-Cq6KKi7b.js} +2 -2
- package/dist/{produce-DS-dQaUX.js.map → produce-Cq6KKi7b.js.map} +1 -1
- package/dist/{rpc-DvTwGfL_.js → rpc-CIVU4Ktx.js} +5 -5
- package/dist/rpc-CIVU4Ktx.js.map +1 -0
- package/dist/runtime/bundles.d.ts +9 -0
- package/dist/runtime/bundles.js +60 -0
- package/dist/runtime/bundles.js.map +1 -0
- package/dist/runtime/client.d.ts +2 -2
- package/dist/runtime/client.js +3 -3
- package/dist/runtime/devtools.d.ts +1 -1
- package/dist/runtime/devtools.js +1 -1
- package/dist/runtime/hot.d.ts +1 -1
- package/dist/runtime/loader.d.ts +2 -2
- package/dist/runtime/loader.js +2 -2
- package/dist/runtime/server.d.ts +3 -3
- package/dist/runtime/server.js +4 -4
- package/dist/runtime/static-loader.d.ts +2 -2
- package/dist/runtime/static-loader.js +1 -1
- package/dist/runtime/testing.d.ts +2 -2
- package/dist/runtime/testing.js +2 -2
- package/dist/{server-BXMH3Z9T.d.ts → server-CAwIqrXl.d.ts} +44 -5
- package/dist/{server-O_rC-RRL.js → server-Doy5HR7r.js} +106 -17
- package/dist/server-Doy5HR7r.js.map +1 -0
- package/dist/{static-loader-BiUaZaag.d.ts → static-loader-9Nc1GvF0.d.ts} +2 -2
- package/dist/{static-loader-BLJYvTKc.js → static-loader-Bdet7g76.js} +3 -26
- package/dist/static-loader-Bdet7g76.js.map +1 -0
- package/dist/{stream-JGRPr7u5.js → stream-BdhzvPQO.js} +2 -2
- package/dist/{stream-JGRPr7u5.js.map → stream-BdhzvPQO.js.map} +1 -1
- package/dist/vite.d.ts +1 -1
- package/dist/vite.js +129 -51
- package/dist/vite.js.map +1 -1
- package/package.json +5 -1
- package/skills/brumate/references/errors.md +19 -5
- package/dist/client-iZ9a1Nut.js.map +0 -1
- package/dist/features-CHY5Ekku.js.map +0 -1
- package/dist/inspect-BLOdfj7o.js.map +0 -1
- package/dist/navigate-CfOr-TRF.js.map +0 -1
- package/dist/rpc-DvTwGfL_.js.map +0 -1
- package/dist/server-O_rC-RRL.js.map +0 -1
- package/dist/static-loader-BLJYvTKc.js.map +0 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "brumate",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.5.1",
|
|
4
4
|
"description": "A component language and compiler for resumable web apps",
|
|
5
5
|
"homepage": "https://github.com/lxsmnsyc/brumate",
|
|
6
6
|
"bugs": "https://github.com/lxsmnsyc/brumate/issues",
|
|
@@ -103,6 +103,10 @@
|
|
|
103
103
|
"types": "./dist/runtime/hot.d.ts",
|
|
104
104
|
"default": "./dist/runtime/hot.js"
|
|
105
105
|
},
|
|
106
|
+
"./bundles": {
|
|
107
|
+
"types": "./dist/runtime/bundles.d.ts",
|
|
108
|
+
"default": "./dist/runtime/bundles.js"
|
|
109
|
+
},
|
|
106
110
|
"./testing": {
|
|
107
111
|
"types": "./dist/runtime/testing.d.ts",
|
|
108
112
|
"default": "./dist/runtime/testing.js"
|
|
@@ -257,15 +257,16 @@ https://brumate-docs.vercel.app/docs/errors#brm180
|
|
|
257
257
|
<input onKeyDown=(handle) onFocusOut=(handle) />
|
|
258
258
|
```
|
|
259
259
|
|
|
260
|
-
##
|
|
260
|
+
## BRM186: "{name}" in the #loading header is not a memo that markup in the body reads. Name a $memo of the component or of a block script around the block
|
|
261
261
|
|
|
262
|
-
|
|
262
|
+
The header of `#loading (…)` names something other than a memo, or a memo that no markup in the body reads, so its loads would not show the fallback for that body.
|
|
263
263
|
|
|
264
|
-
https://brumate-docs.vercel.app/docs/errors#
|
|
264
|
+
https://brumate-docs.vercel.app/docs/errors#brm186
|
|
265
265
|
|
|
266
266
|
```brm fragment
|
|
267
|
-
|
|
268
|
-
|
|
267
|
+
const posts = $memo(loadPosts(id));
|
|
268
|
+
#loading (posts) {
|
|
269
|
+
<p>{posts.length} posts</p>
|
|
269
270
|
} #else {
|
|
270
271
|
<p>Loading</p>
|
|
271
272
|
}
|
|
@@ -344,6 +345,19 @@ https://brumate-docs.vercel.app/docs/errors#brm187
|
|
|
344
345
|
</script>
|
|
345
346
|
```
|
|
346
347
|
|
|
348
|
+
## BRM188: "{name}" gives a promise, and {place} cannot wait for one. Await it in the code that runs, or read its value with $memo
|
|
349
|
+
|
|
350
|
+
Markup waits for a promise in text and in attribute values only. An event handler, the key of a `#for`, a `ref` and a `$bind` need the value at once, and the compiler sees that this expression gives a promise: `new Promise(…)`, a call of a server function or of an async function, or a prop typed as a promise.
|
|
351
|
+
|
|
352
|
+
https://brumate-docs.vercel.app/docs/errors#brm188
|
|
353
|
+
|
|
354
|
+
```brm fragment
|
|
355
|
+
<button onClick=(() => save(draft))>Save</button>
|
|
356
|
+
#for (user of users by user.id) {
|
|
357
|
+
<p>{user.name}</p>
|
|
358
|
+
}
|
|
359
|
+
```
|
|
360
|
+
|
|
347
361
|
## BRM023: Modifiers apply to elements. Put ":{modifier}" on the element that the component renders
|
|
348
362
|
|
|
349
363
|
An event modifier is on a component, which only passes the handler on.
|