octane 0.2.4 → 0.2.5
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 +9 -0
- package/dist/cjs/error-codes.client.generated.cjs +2 -0
- package/dist/cjs/host-property-diagnostics.cjs +2 -0
- package/dist/cjs/index.cjs +2 -0
- package/dist/cjs/runtime.cjs +482 -51
- package/dist/cjs/runtime.server.cjs +23 -6
- package/dist/cjs/version.cjs +1 -1
- package/dist/compiler/bundler.js +7 -1
- package/dist/compiler/compile.js +12 -0
- package/dist/compiler/hook-methods.js +164 -0
- package/dist/compiler/parser-output.js +37 -0
- package/dist/compiler/parser.browser.js +145 -1
- package/dist/compiler/parser.node.js +1 -35
- package/dist/compiler/plain-hook-memo.js +37 -0
- package/dist/compiler/slot-hooks.js +129 -5
- package/dist/compiler/volar.js +186 -43
- package/dist/constants.d.ts +3 -0
- package/dist/constants.js +6 -0
- package/dist/error-codes.client.generated.d.ts +1 -0
- package/dist/error-codes.client.generated.js +2 -0
- package/dist/host-property-diagnostics.js +2 -0
- package/dist/index.d.ts +1 -1
- package/dist/index.js +2 -0
- package/dist/runtime.d.ts +16 -12
- package/dist/runtime.js +483 -51
- package/dist/runtime.server.d.ts +2 -0
- package/dist/runtime.server.js +25 -6
- package/dist/version.js +1 -1
- package/package.json +3 -3
package/dist/cjs/constants.cjs
CHANGED
|
@@ -48,6 +48,9 @@ __export(constants_exports, {
|
|
|
48
48
|
STREAM_SEED_ATTR: () => STREAM_SEED_ATTR,
|
|
49
49
|
STREAM_SEED_COMMENT: () => STREAM_SEED_COMMENT,
|
|
50
50
|
STREAM_SEGMENT_ATTR: () => STREAM_SEGMENT_ATTR,
|
|
51
|
+
SUSPENSE_RESOLVED_COMMENT: () => SUSPENSE_RESOLVED_COMMENT,
|
|
52
|
+
SUSPENSE_RESOLVED_NATIVE_ATTR: () => SUSPENSE_RESOLVED_NATIVE_ATTR,
|
|
53
|
+
SUSPENSE_RESOLVED_SEED_ATTR: () => SUSPENSE_RESOLVED_SEED_ATTR,
|
|
51
54
|
SUSPENSE_SCRIPT_ATTR: () => SUSPENSE_SCRIPT_ATTR,
|
|
52
55
|
SUSPENSE_SEED_WIRE_PREFIX: () => SUSPENSE_SEED_WIRE_PREFIX,
|
|
53
56
|
SVG_ONLY_TAGS: () => SVG_ONLY_TAGS,
|
|
@@ -73,6 +76,9 @@ const FOR_BLOCK_OPEN_ITEMS = `<!--${HYDRATION_FOR_ITEMS}-->`;
|
|
|
73
76
|
const EMPTY_COMMENT = "<!---->";
|
|
74
77
|
const HYDRATION_TEXT_SEP = " ";
|
|
75
78
|
const SUSPENSE_SCRIPT_ATTR = "data-octane-suspense";
|
|
79
|
+
const SUSPENSE_RESOLVED_COMMENT = "oct-suspense:";
|
|
80
|
+
const SUSPENSE_RESOLVED_SEED_ATTR = "data-octane-suspense-seeds";
|
|
81
|
+
const SUSPENSE_RESOLVED_NATIVE_ATTR = "data-octane-suspense-signals";
|
|
76
82
|
const UNDEFINED_SENTINEL_KEY = "__octane_new_undefined__";
|
|
77
83
|
const SUSPENSE_SEED_WIRE_PREFIX = "\0octane:ssr-seed:";
|
|
78
84
|
const REJECTION_SENTINEL_KEY = "__octane_new_rejection__";
|
|
@@ -135,6 +141,9 @@ const cssStyleValue = import_dom_tables.cssStyleValue;
|
|
|
135
141
|
STREAM_SEED_ATTR,
|
|
136
142
|
STREAM_SEED_COMMENT,
|
|
137
143
|
STREAM_SEGMENT_ATTR,
|
|
144
|
+
SUSPENSE_RESOLVED_COMMENT,
|
|
145
|
+
SUSPENSE_RESOLVED_NATIVE_ATTR,
|
|
146
|
+
SUSPENSE_RESOLVED_SEED_ATTR,
|
|
138
147
|
SUSPENSE_SCRIPT_ATTR,
|
|
139
148
|
SUSPENSE_SEED_WIRE_PREFIX,
|
|
140
149
|
SVG_ONLY_TAGS,
|
|
@@ -209,6 +209,8 @@ function formatClientError(code, ...args) {
|
|
|
209
209
|
"Target container is not a DOM element. Pass an Element, Document, or DocumentFragment. If document.body is null after document hydration, update the existing document root or render a document shell containing <body>.",
|
|
210
210
|
args
|
|
211
211
|
);
|
|
212
|
+
case 64:
|
|
213
|
+
return (0, import_error_message.formatDevErrorMessage)("Multiple errors were thrown during act.", args);
|
|
212
214
|
default:
|
|
213
215
|
return (0, import_error_message.formatUnknownDevErrorMessage)(code);
|
|
214
216
|
}
|
|
@@ -42,6 +42,7 @@ const KNOWN_CAMELCASE_PROPERTIES = /* @__PURE__ */ new Set([
|
|
|
42
42
|
"disablePictureInPicture",
|
|
43
43
|
"disableRemotePlayback",
|
|
44
44
|
"encType",
|
|
45
|
+
"enterKeyHint",
|
|
45
46
|
"fetchPriority",
|
|
46
47
|
"formAction",
|
|
47
48
|
"formEncType",
|
|
@@ -57,6 +58,7 @@ const KNOWN_CAMELCASE_PROPERTIES = /* @__PURE__ */ new Set([
|
|
|
57
58
|
"itemScope",
|
|
58
59
|
"itemType",
|
|
59
60
|
"maxLength",
|
|
61
|
+
"minLength",
|
|
60
62
|
"noModule",
|
|
61
63
|
"noValidate",
|
|
62
64
|
"playsInline",
|
package/dist/cjs/index.cjs
CHANGED
|
@@ -120,6 +120,7 @@ __export(index_exports, {
|
|
|
120
120
|
injectStyle: () => import_runtime.injectStyle,
|
|
121
121
|
invokeManualHook: () => import_runtime.invokeManualHook,
|
|
122
122
|
isChildrenBlock: () => import_runtime.isChildrenBlock,
|
|
123
|
+
isInActScope: () => import_runtime.isInActScope,
|
|
123
124
|
isValidElement: () => import_runtime.isValidElement,
|
|
124
125
|
keyedForBlock: () => import_runtime.keyedForBlock,
|
|
125
126
|
lazy: () => import_runtime.lazy,
|
|
@@ -346,6 +347,7 @@ var import_method_dep = require("./method-dep.cjs");
|
|
|
346
347
|
injectStyle,
|
|
347
348
|
invokeManualHook,
|
|
348
349
|
isChildrenBlock,
|
|
350
|
+
isInActScope,
|
|
349
351
|
isValidElement,
|
|
350
352
|
keyedForBlock,
|
|
351
353
|
lazy,
|