@webjsdev/core 0.7.49 → 0.7.51
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/webjs-core-browser.js +5 -5
- package/dist/webjs-core-browser.js.map +3 -3
- package/dist/webjs-core-testing.js +21 -21
- package/dist/webjs-core-testing.js.map +3 -3
- package/dist/webjs-core.js +7 -7
- package/dist/webjs-core.js.map +3 -3
- package/index-browser.js +1 -1
- package/index.d.ts +1 -1
- package/index.js +1 -1
- package/package.json +1 -1
- package/src/attribute-reader.js +178 -0
- package/src/component/lifecycle.js +1481 -0
- package/src/component/reactive.js +171 -0
- package/src/component/server-element.js +248 -0
- package/src/component.d.ts +10 -0
- package/src/component.js +2 -1931
- package/src/html-entities.js +2179 -0
- package/src/render-client/parts.js +2007 -0
- package/src/render-client/reconciler.js +388 -0
- package/src/render-client/template-compiler.js +525 -0
- package/src/render-client.js +1 -2939
- package/src/render-server/attrs.js +160 -0
- package/src/render-server/dsd.js +445 -0
- package/src/render-server/html-scan.js +402 -0
- package/src/render-server/slots.js +213 -0
- package/src/render-server/stream.js +163 -0
- package/src/render-server/template-renderer.js +923 -0
- package/src/render-server/text.js +163 -0
- package/src/render-server.js +6 -2334
- package/src/router-client/anchors.js +44 -0
- package/src/router-client/boundaries.js +221 -0
- package/src/router-client/constants.js +187 -0
- package/src/router-client/diagnostics.js +377 -0
- package/src/router-client/dom-differ.js +709 -0
- package/src/router-client/dom-parse.js +150 -0
- package/src/router-client/events.js +139 -0
- package/src/router-client/fetch-apply.js +387 -0
- package/src/router-client/form-encoder.js +135 -0
- package/src/router-client/frames.js +329 -0
- package/src/router-client/head-merge.js +344 -0
- package/src/router-client/nav-error.js +105 -0
- package/src/router-client/navigator.js +781 -0
- package/src/router-client/prefetch.js +824 -0
- package/src/router-client/scroll.js +259 -0
- package/src/router-client/snapshot-cache.js +97 -0
- package/src/router-client/state.js +92 -0
- package/src/router-client/stream.js +206 -0
- package/src/router-client/swap.js +451 -0
- package/src/router-client/upgrade.js +261 -0
- package/src/router-client/view-transition.js +223 -0
- package/src/router-client.d.ts +10 -1
- package/src/router-client.js +75 -5345
- package/src/slot/assignment.js +304 -0
- package/src/slot/interception.js +558 -0
- package/src/slot/polyfills.js +365 -0
- package/src/slot/project.js +432 -0
- package/src/slot/sensors.js +303 -0
- package/src/slot/state.js +245 -0
- package/src/slot/symbols.js +85 -0
- package/src/slot.js +7 -2199
- package/src/webjs-config.d.ts +13 -2
package/src/webjs-config.d.ts
CHANGED
|
@@ -10,8 +10,19 @@
|
|
|
10
10
|
* This object is read key by key, mostly by the server and for a few keys
|
|
11
11
|
* by the CLI. Without a type or schema a typo'd key (e.g. `redirect` for
|
|
12
12
|
* `redirects`) was silently dropped and the feature stayed at its default
|
|
13
|
-
* with no diagnostic.
|
|
14
|
-
*
|
|
13
|
+
* with no diagnostic. Three things close that gap now, at three different
|
|
14
|
+
* moments: this type while an agent or a human authors the block, the
|
|
15
|
+
* published JSON Schema in an editor via the scaffold's `.vscode` `$ref`,
|
|
16
|
+
* and `webjs-config-validate.js` at BOOT (#1300), which runs that same
|
|
17
|
+
* schema from `createRequestHandler` and warns once, naming every unknown
|
|
18
|
+
* top-level key, every bad `enum` value, and every wrong-typed `boolean` /
|
|
19
|
+
* `integer` (9 of the 17 keys). It does NOT type-check the other 8
|
|
20
|
+
* (`headers`, `redirects`, `basePath`, `allowedOrigins`, `csp`, `dev`,
|
|
21
|
+
* `start`, `doctor`), and it does not descend into a nested object, so a
|
|
22
|
+
* misspelling inside `dev` or `start` is not reported either. Whether
|
|
23
|
+
* anything else notices what this check passes over is up to the
|
|
24
|
+
* individual reader. The boot check warns and never throws, so a typo
|
|
25
|
+
* costs one feature its setting rather than the whole app its boot.
|
|
15
26
|
*
|
|
16
27
|
* LOCKSTEP: this file, the JSON Schema at
|
|
17
28
|
* packages/server/webjs-config.schema.json, and the reader functions MUST
|