octane 0.6.3 → 0.7.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/cjs/constants.cjs +3 -0
- package/dist/cjs/error-codes.client.generated.cjs +5 -0
- package/dist/cjs/error-codes.server.generated.cjs +25 -0
- package/dist/cjs/index.cjs +2 -0
- package/dist/cjs/runtime.cjs +699 -217
- package/dist/cjs/runtime.server.cjs +213 -30
- package/dist/cjs/server/index.cjs +2 -0
- package/dist/cjs/server/rpc-stream.cjs +19 -12
- package/dist/cjs/server/streamed-signals.cjs +18 -1
- package/dist/cjs/shared-value-helpers.cjs +24 -2
- package/dist/cjs/version.cjs +1 -1
- package/dist/compiler/arm-exits.js +151 -0
- package/dist/compiler/compile-universal.js +262 -65
- package/dist/compiler/compile.js +1595 -312
- package/dist/compiler/deferred-snapshots.js +791 -0
- package/dist/compiler/strong-mode.js +59 -10
- package/dist/constants.d.ts +5 -1
- package/dist/constants.js +2 -0
- package/dist/error-codes.client.generated.d.ts +1 -0
- package/dist/error-codes.client.generated.js +5 -0
- package/dist/error-codes.server.generated.d.ts +5 -0
- package/dist/error-codes.server.generated.js +25 -0
- package/dist/index.d.ts +1 -1
- package/dist/index.js +2 -0
- package/dist/node/constants.js +2 -0
- package/dist/node/error-codes.client.generated.js +5 -0
- package/dist/node/error-codes.server.generated.js +25 -0
- package/dist/node/index.js +2 -0
- package/dist/node/runtime.js +701 -218
- package/dist/node/runtime.server.js +216 -31
- package/dist/node/server/index.js +2 -0
- package/dist/node/server/rpc-stream.js +19 -12
- package/dist/node/server/streamed-signals.js +18 -1
- package/dist/node/shared-value-helpers.js +21 -1
- package/dist/node/universal-core.js +178 -50
- package/dist/node/version.js +1 -1
- package/dist/runtime.d.ts +201 -8
- package/dist/runtime.js +701 -218
- package/dist/runtime.server.d.ts +26 -2
- package/dist/runtime.server.js +216 -31
- package/dist/server/index.d.ts +1 -1
- package/dist/server/index.js +2 -0
- package/dist/server/rpc-stream.js +19 -12
- package/dist/server/streamed-signals.js +18 -1
- package/dist/shared-value-helpers.d.ts +11 -0
- package/dist/shared-value-helpers.js +21 -1
- package/dist/universal-core.d.ts +3 -1
- package/dist/universal-core.js +178 -50
- package/dist/version.js +1 -1
- package/package.json +1 -1
package/dist/cjs/constants.cjs
CHANGED
|
@@ -58,6 +58,7 @@ __export(constants_exports, {
|
|
|
58
58
|
SUSPENSE_SCRIPT_ATTR: () => import_stream_protocol.SUSPENSE_SCRIPT_ATTR,
|
|
59
59
|
SUSPENSE_SEED_WIRE_PREFIX: () => SUSPENSE_SEED_WIRE_PREFIX,
|
|
60
60
|
SVG_ONLY_TAGS: () => SVG_ONLY_TAGS,
|
|
61
|
+
TEXT_SEPARATOR: () => TEXT_SEPARATOR,
|
|
61
62
|
UNDEFINED_SENTINEL_KEY: () => UNDEFINED_SENTINEL_KEY,
|
|
62
63
|
VALID_ATTR_NAME: () => VALID_ATTR_NAME,
|
|
63
64
|
VOID_ELEMENTS: () => VOID_ELEMENTS,
|
|
@@ -79,6 +80,7 @@ const FOR_BLOCK_OPEN_EMPTY = `<!--${import_hydration_markers.HYDRATION_FOR_EMPTY
|
|
|
79
80
|
const FOR_BLOCK_OPEN_ITEMS = `<!--${import_hydration_markers.HYDRATION_FOR_ITEMS}-->`;
|
|
80
81
|
const EMPTY_COMMENT = "<!---->";
|
|
81
82
|
const HYDRATION_TEXT_SEP = " ";
|
|
83
|
+
const TEXT_SEPARATOR = `<!--${HYDRATION_TEXT_SEP}-->`;
|
|
82
84
|
const SUSPENSE_RESOLVED_COMMENT = "oct-suspense:";
|
|
83
85
|
const SUSPENSE_RESOLVED_SEED_ATTR = "data-octane-suspense-seeds";
|
|
84
86
|
const SUSPENSE_RESOLVED_NATIVE_ATTR = "data-octane-suspense-signals";
|
|
@@ -149,6 +151,7 @@ const cssStyleValue = import_dom_tables.cssStyleValue;
|
|
|
149
151
|
SUSPENSE_SCRIPT_ATTR,
|
|
150
152
|
SUSPENSE_SEED_WIRE_PREFIX,
|
|
151
153
|
SVG_ONLY_TAGS,
|
|
154
|
+
TEXT_SEPARATOR,
|
|
152
155
|
UNDEFINED_SENTINEL_KEY,
|
|
153
156
|
VALID_ATTR_NAME,
|
|
154
157
|
VOID_ELEMENTS,
|
|
@@ -1074,6 +1074,11 @@ function formatClientError(code, ...args) {
|
|
|
1074
1074
|
return (0, import_error_message.formatDevErrorMessage)("This DOM binding view requires the general adopter.", args);
|
|
1075
1075
|
case 331:
|
|
1076
1076
|
return (0, import_error_message.formatDevErrorMessage)("Invalid independent Hydrate manifest inputs.", args);
|
|
1077
|
+
case 336:
|
|
1078
|
+
return (0, import_error_message.formatDevErrorMessage)(
|
|
1079
|
+
"`<textarea>` children must be text: strings, numbers, or arrays of them. One child was %s. A textarea's content is its default value, so it cannot contain elements; render them outside the textarea or pass a string.",
|
|
1080
|
+
args
|
|
1081
|
+
);
|
|
1077
1082
|
default:
|
|
1078
1083
|
return (0, import_error_message.formatUnknownDevErrorMessage)(code);
|
|
1079
1084
|
}
|
|
@@ -744,6 +744,31 @@ function formatServerError(code, ...args) {
|
|
|
744
744
|
);
|
|
745
745
|
case 331:
|
|
746
746
|
return (0, import_error_message.formatDevErrorMessage)("Invalid independent Hydrate manifest inputs.", args);
|
|
747
|
+
case 332:
|
|
748
|
+
return (0, import_error_message.formatDevErrorMessage)(
|
|
749
|
+
"octane SSR: a component kept throwing already-settled thenables outside use() for %sms. A resource reader should stop suspending once its data has settled.",
|
|
750
|
+
args
|
|
751
|
+
);
|
|
752
|
+
case 333:
|
|
753
|
+
return (0, import_error_message.formatDevErrorMessage)(
|
|
754
|
+
"octane SSR: exceeded %s suspense passes \u2014 a component kept throwing thenables outside use(). A resource reader should stop suspending once its data has settled.",
|
|
755
|
+
args
|
|
756
|
+
);
|
|
757
|
+
case 334:
|
|
758
|
+
return (0, import_error_message.formatDevErrorMessage)(
|
|
759
|
+
"octane SSR: %s consecutive streaming passes completed no boundary \u2014 a component kept throwing thenables outside use(). A resource reader should stop suspending once its data has settled.",
|
|
760
|
+
args
|
|
761
|
+
);
|
|
762
|
+
case 335:
|
|
763
|
+
return (0, import_error_message.formatDevErrorMessage)(
|
|
764
|
+
"octane SSR: %s root streaming passes completed without producing a shell \u2014 a component kept throwing thenables outside use(). A resource reader should stop suspending once its data has settled.",
|
|
765
|
+
args
|
|
766
|
+
);
|
|
767
|
+
case 336:
|
|
768
|
+
return (0, import_error_message.formatDevErrorMessage)(
|
|
769
|
+
"`<textarea>` children must be text: strings, numbers, or arrays of them. One child was %s. A textarea's content is its default value, so it cannot contain elements; render them outside the textarea or pass a string.",
|
|
770
|
+
args
|
|
771
|
+
);
|
|
747
772
|
default:
|
|
748
773
|
return (0, import_error_message.formatUnknownDevErrorMessage)(code);
|
|
749
774
|
}
|
package/dist/cjs/index.cjs
CHANGED
|
@@ -213,6 +213,7 @@ __export(index_exports, {
|
|
|
213
213
|
template: () => import_runtime.template,
|
|
214
214
|
textHole: () => import_runtime.textHole,
|
|
215
215
|
textSlot: () => import_runtime.textSlot,
|
|
216
|
+
textareaText: () => import_runtime.textareaText,
|
|
216
217
|
trustHTML: () => import_trusted_html.trustHTML,
|
|
217
218
|
tryBlock: () => import_runtime.tryBlock,
|
|
218
219
|
unstable_Activity: () => import_runtime.Activity,
|
|
@@ -458,6 +459,7 @@ var import_method_dep = require("./method-dep.cjs");
|
|
|
458
459
|
template,
|
|
459
460
|
textHole,
|
|
460
461
|
textSlot,
|
|
462
|
+
textareaText,
|
|
461
463
|
trustHTML,
|
|
462
464
|
tryBlock,
|
|
463
465
|
unstable_Activity,
|