octane 0.1.35 → 0.1.37
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/aria-diagnostics.d.ts +9 -0
- package/dist/aria-diagnostics.js +92 -0
- package/dist/cjs/aria-diagnostics.cjs +119 -0
- package/dist/cjs/constants.cjs +3 -0
- package/dist/cjs/css.cjs +56 -0
- package/dist/cjs/error-codes.client.generated.cjs +30 -0
- package/dist/cjs/error-codes.server.generated.cjs +5 -0
- package/dist/cjs/index.cjs +20 -0
- package/dist/cjs/runtime.cjs +549 -121
- package/dist/cjs/runtime.server.cjs +544 -154
- package/dist/cjs/server/index.cjs +16 -0
- package/dist/cjs/shared-value-helpers.cjs +68 -0
- package/dist/cjs/version.cjs +1 -1
- package/dist/compiler/bundler.js +134 -0
- package/dist/compiler/compile-universal.js +33 -6
- package/dist/compiler/compile.js +844 -207
- package/dist/compiler/native-change-diagnostics.js +4 -3
- package/dist/compiler/renderers.js +22 -1
- package/dist/compiler/vite.d.ts +2 -0
- package/dist/compiler/vite.js +354 -21
- package/dist/constants.d.ts +3 -0
- package/dist/constants.js +2 -0
- package/dist/css.d.ts +4 -0
- package/dist/css.js +54 -0
- package/dist/error-codes.client.generated.d.ts +6 -0
- package/dist/error-codes.client.generated.js +30 -0
- package/dist/error-codes.server.generated.d.ts +1 -0
- package/dist/error-codes.server.generated.js +5 -0
- package/dist/index.d.ts +1 -1
- package/dist/index.js +20 -0
- package/dist/internal/client.d.ts +7 -0
- package/dist/internal/client.js +5 -0
- package/dist/internal/server.d.ts +5 -0
- package/dist/internal/server.js +1 -0
- package/dist/jsx-runtime.d.ts +59 -4
- package/dist/runtime.d.ts +74 -1
- package/dist/runtime.js +539 -109
- package/dist/runtime.server.d.ts +58 -3
- package/dist/runtime.server.js +538 -144
- package/dist/server/index.d.ts +1 -1
- package/dist/server/index.js +16 -0
- package/dist/shared-value-helpers.d.ts +11 -0
- package/dist/shared-value-helpers.js +40 -0
- package/dist/static/index.d.ts +9 -2
- package/dist/static/index.js +6 -2
- package/dist/universal-core.d.ts +31 -0
- package/dist/universal-core.js +260 -137
- package/dist/version.js +1 -1
- package/package.json +12 -2
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/** Development-only ARIA naming diagnostics shared by the DOM and SSR runtimes. */
|
|
2
|
+
/** Return whether an authored property belongs to the ARIA naming surface. */
|
|
3
|
+
export declare function isAriaAttributeName(name: string): boolean;
|
|
4
|
+
/** Unknown lowercase aria-* names aggregate by host; casing errors do not. */
|
|
5
|
+
export declare function isUnknownAriaAttribute(name: string): boolean;
|
|
6
|
+
/** Build Octane's actionable development diagnostic without changing serialization. */
|
|
7
|
+
export declare function ariaAttributeWarning(name: string, tag: string): string | null;
|
|
8
|
+
/** Group separately unknown lowercase names into React's singular/plural form. */
|
|
9
|
+
export declare function unknownAriaAttributeWarning(names: readonly string[], tag: string): string;
|
|
@@ -0,0 +1,92 @@
|
|
|
1
|
+
const VALID_ARIA_ATTRIBUTES = /* @__PURE__ */ new Set([
|
|
2
|
+
"aria-activedescendant",
|
|
3
|
+
"aria-atomic",
|
|
4
|
+
"aria-autocomplete",
|
|
5
|
+
"aria-braillelabel",
|
|
6
|
+
"aria-brailleroledescription",
|
|
7
|
+
"aria-busy",
|
|
8
|
+
"aria-checked",
|
|
9
|
+
"aria-colcount",
|
|
10
|
+
"aria-colindex",
|
|
11
|
+
"aria-colindextext",
|
|
12
|
+
"aria-colspan",
|
|
13
|
+
"aria-controls",
|
|
14
|
+
"aria-current",
|
|
15
|
+
"aria-describedby",
|
|
16
|
+
"aria-description",
|
|
17
|
+
"aria-details",
|
|
18
|
+
"aria-disabled",
|
|
19
|
+
"aria-dropeffect",
|
|
20
|
+
"aria-errormessage",
|
|
21
|
+
"aria-expanded",
|
|
22
|
+
"aria-flowto",
|
|
23
|
+
"aria-grabbed",
|
|
24
|
+
"aria-haspopup",
|
|
25
|
+
"aria-hidden",
|
|
26
|
+
"aria-invalid",
|
|
27
|
+
"aria-keyshortcuts",
|
|
28
|
+
"aria-label",
|
|
29
|
+
"aria-labelledby",
|
|
30
|
+
"aria-level",
|
|
31
|
+
"aria-live",
|
|
32
|
+
"aria-modal",
|
|
33
|
+
"aria-multiline",
|
|
34
|
+
"aria-multiselectable",
|
|
35
|
+
"aria-orientation",
|
|
36
|
+
"aria-owns",
|
|
37
|
+
"aria-placeholder",
|
|
38
|
+
"aria-posinset",
|
|
39
|
+
"aria-pressed",
|
|
40
|
+
"aria-readonly",
|
|
41
|
+
"aria-relevant",
|
|
42
|
+
"aria-required",
|
|
43
|
+
"aria-roledescription",
|
|
44
|
+
"aria-rowcount",
|
|
45
|
+
"aria-rowindex",
|
|
46
|
+
"aria-rowindextext",
|
|
47
|
+
"aria-rowspan",
|
|
48
|
+
"aria-selected",
|
|
49
|
+
"aria-setsize",
|
|
50
|
+
"aria-sort",
|
|
51
|
+
"aria-valuemax",
|
|
52
|
+
"aria-valuemin",
|
|
53
|
+
"aria-valuenow",
|
|
54
|
+
"aria-valuetext"
|
|
55
|
+
]);
|
|
56
|
+
function isAriaAttributeName(name) {
|
|
57
|
+
if (name === "aria") return true;
|
|
58
|
+
if (name.length < 5 || name.slice(0, 4) !== "aria") return false;
|
|
59
|
+
const next = name.charCodeAt(4);
|
|
60
|
+
return next === 45 || next >= 65 && next <= 90;
|
|
61
|
+
}
|
|
62
|
+
function isUnknownAriaAttribute(name) {
|
|
63
|
+
return name.startsWith("aria-") && !VALID_ARIA_ATTRIBUTES.has(name.toLowerCase());
|
|
64
|
+
}
|
|
65
|
+
function ariaAttributeWarning(name, tag) {
|
|
66
|
+
if (name === "aria") {
|
|
67
|
+
return "The `aria` attribute is reserved for future use. Pass individual `aria-*` attributes instead.";
|
|
68
|
+
}
|
|
69
|
+
if (name.length < 5 || name.slice(0, 4) !== "aria") return null;
|
|
70
|
+
if (name.charCodeAt(4) === 45) {
|
|
71
|
+
const lowercase = name.toLowerCase();
|
|
72
|
+
if (VALID_ARIA_ATTRIBUTES.has(lowercase)) {
|
|
73
|
+
return name === lowercase ? null : `Unknown ARIA attribute \`${name}\`. Did you mean \`${lowercase}\`?`;
|
|
74
|
+
}
|
|
75
|
+
return `Invalid aria prop \`${name}\` on <${tag}> tag. ARIA attributes must use valid, lowercase aria-* names.`;
|
|
76
|
+
}
|
|
77
|
+
const next = name.charCodeAt(4);
|
|
78
|
+
if (next < 65 || next > 90) return null;
|
|
79
|
+
const correctName = "aria-" + name.slice(4).toLowerCase();
|
|
80
|
+
return VALID_ARIA_ATTRIBUTES.has(correctName) ? `Invalid ARIA attribute \`${name}\`. Did you mean \`${correctName}\`?` : `Invalid ARIA attribute \`${name}\`. ARIA attributes follow the pattern aria-* and must be lowercase.`;
|
|
81
|
+
}
|
|
82
|
+
function unknownAriaAttributeWarning(names, tag) {
|
|
83
|
+
const noun = names.length === 1 ? "prop" : "props";
|
|
84
|
+
const quoted = names.map((name) => `\`${name}\``).join(", ");
|
|
85
|
+
return `Invalid aria ${noun} ${quoted} on <${tag}> tag. ARIA attributes must use valid, lowercase aria-* names.`;
|
|
86
|
+
}
|
|
87
|
+
export {
|
|
88
|
+
ariaAttributeWarning,
|
|
89
|
+
isAriaAttributeName,
|
|
90
|
+
isUnknownAriaAttribute,
|
|
91
|
+
unknownAriaAttributeWarning
|
|
92
|
+
};
|
|
@@ -0,0 +1,119 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
+
var __export = (target, all) => {
|
|
7
|
+
for (var name in all)
|
|
8
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
9
|
+
};
|
|
10
|
+
var __copyProps = (to, from, except, desc) => {
|
|
11
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
12
|
+
for (let key of __getOwnPropNames(from))
|
|
13
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
14
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
15
|
+
}
|
|
16
|
+
return to;
|
|
17
|
+
};
|
|
18
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
|
+
var aria_diagnostics_exports = {};
|
|
20
|
+
__export(aria_diagnostics_exports, {
|
|
21
|
+
ariaAttributeWarning: () => ariaAttributeWarning,
|
|
22
|
+
isAriaAttributeName: () => isAriaAttributeName,
|
|
23
|
+
isUnknownAriaAttribute: () => isUnknownAriaAttribute,
|
|
24
|
+
unknownAriaAttributeWarning: () => unknownAriaAttributeWarning
|
|
25
|
+
});
|
|
26
|
+
module.exports = __toCommonJS(aria_diagnostics_exports);
|
|
27
|
+
const VALID_ARIA_ATTRIBUTES = /* @__PURE__ */ new Set([
|
|
28
|
+
"aria-activedescendant",
|
|
29
|
+
"aria-atomic",
|
|
30
|
+
"aria-autocomplete",
|
|
31
|
+
"aria-braillelabel",
|
|
32
|
+
"aria-brailleroledescription",
|
|
33
|
+
"aria-busy",
|
|
34
|
+
"aria-checked",
|
|
35
|
+
"aria-colcount",
|
|
36
|
+
"aria-colindex",
|
|
37
|
+
"aria-colindextext",
|
|
38
|
+
"aria-colspan",
|
|
39
|
+
"aria-controls",
|
|
40
|
+
"aria-current",
|
|
41
|
+
"aria-describedby",
|
|
42
|
+
"aria-description",
|
|
43
|
+
"aria-details",
|
|
44
|
+
"aria-disabled",
|
|
45
|
+
"aria-dropeffect",
|
|
46
|
+
"aria-errormessage",
|
|
47
|
+
"aria-expanded",
|
|
48
|
+
"aria-flowto",
|
|
49
|
+
"aria-grabbed",
|
|
50
|
+
"aria-haspopup",
|
|
51
|
+
"aria-hidden",
|
|
52
|
+
"aria-invalid",
|
|
53
|
+
"aria-keyshortcuts",
|
|
54
|
+
"aria-label",
|
|
55
|
+
"aria-labelledby",
|
|
56
|
+
"aria-level",
|
|
57
|
+
"aria-live",
|
|
58
|
+
"aria-modal",
|
|
59
|
+
"aria-multiline",
|
|
60
|
+
"aria-multiselectable",
|
|
61
|
+
"aria-orientation",
|
|
62
|
+
"aria-owns",
|
|
63
|
+
"aria-placeholder",
|
|
64
|
+
"aria-posinset",
|
|
65
|
+
"aria-pressed",
|
|
66
|
+
"aria-readonly",
|
|
67
|
+
"aria-relevant",
|
|
68
|
+
"aria-required",
|
|
69
|
+
"aria-roledescription",
|
|
70
|
+
"aria-rowcount",
|
|
71
|
+
"aria-rowindex",
|
|
72
|
+
"aria-rowindextext",
|
|
73
|
+
"aria-rowspan",
|
|
74
|
+
"aria-selected",
|
|
75
|
+
"aria-setsize",
|
|
76
|
+
"aria-sort",
|
|
77
|
+
"aria-valuemax",
|
|
78
|
+
"aria-valuemin",
|
|
79
|
+
"aria-valuenow",
|
|
80
|
+
"aria-valuetext"
|
|
81
|
+
]);
|
|
82
|
+
function isAriaAttributeName(name) {
|
|
83
|
+
if (name === "aria") return true;
|
|
84
|
+
if (name.length < 5 || name.slice(0, 4) !== "aria") return false;
|
|
85
|
+
const next = name.charCodeAt(4);
|
|
86
|
+
return next === 45 || next >= 65 && next <= 90;
|
|
87
|
+
}
|
|
88
|
+
function isUnknownAriaAttribute(name) {
|
|
89
|
+
return name.startsWith("aria-") && !VALID_ARIA_ATTRIBUTES.has(name.toLowerCase());
|
|
90
|
+
}
|
|
91
|
+
function ariaAttributeWarning(name, tag) {
|
|
92
|
+
if (name === "aria") {
|
|
93
|
+
return "The `aria` attribute is reserved for future use. Pass individual `aria-*` attributes instead.";
|
|
94
|
+
}
|
|
95
|
+
if (name.length < 5 || name.slice(0, 4) !== "aria") return null;
|
|
96
|
+
if (name.charCodeAt(4) === 45) {
|
|
97
|
+
const lowercase = name.toLowerCase();
|
|
98
|
+
if (VALID_ARIA_ATTRIBUTES.has(lowercase)) {
|
|
99
|
+
return name === lowercase ? null : `Unknown ARIA attribute \`${name}\`. Did you mean \`${lowercase}\`?`;
|
|
100
|
+
}
|
|
101
|
+
return `Invalid aria prop \`${name}\` on <${tag}> tag. ARIA attributes must use valid, lowercase aria-* names.`;
|
|
102
|
+
}
|
|
103
|
+
const next = name.charCodeAt(4);
|
|
104
|
+
if (next < 65 || next > 90) return null;
|
|
105
|
+
const correctName = "aria-" + name.slice(4).toLowerCase();
|
|
106
|
+
return VALID_ARIA_ATTRIBUTES.has(correctName) ? `Invalid ARIA attribute \`${name}\`. Did you mean \`${correctName}\`?` : `Invalid ARIA attribute \`${name}\`. ARIA attributes follow the pattern aria-* and must be lowercase.`;
|
|
107
|
+
}
|
|
108
|
+
function unknownAriaAttributeWarning(names, tag) {
|
|
109
|
+
const noun = names.length === 1 ? "prop" : "props";
|
|
110
|
+
const quoted = names.map((name) => `\`${name}\``).join(", ");
|
|
111
|
+
return `Invalid aria ${noun} ${quoted} on <${tag}> tag. ARIA attributes must use valid, lowercase aria-* names.`;
|
|
112
|
+
}
|
|
113
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
114
|
+
0 && (module.exports = {
|
|
115
|
+
ariaAttributeWarning,
|
|
116
|
+
isAriaAttributeName,
|
|
117
|
+
isUnknownAriaAttribute,
|
|
118
|
+
unknownAriaAttributeWarning
|
|
119
|
+
});
|
package/dist/cjs/constants.cjs
CHANGED
|
@@ -43,6 +43,7 @@ __export(constants_exports, {
|
|
|
43
43
|
POSITIVE_NUMERIC_ATTR_PROPS: () => POSITIVE_NUMERIC_ATTR_PROPS,
|
|
44
44
|
REJECTION_SENTINEL_KEY: () => REJECTION_SENTINEL_KEY,
|
|
45
45
|
STREAM_BOUNDARY_ATTR: () => import_stream_protocol2.STREAM_BOUNDARY_ATTR,
|
|
46
|
+
STREAM_RESOURCE_ATTR: () => STREAM_RESOURCE_ATTR,
|
|
46
47
|
STREAM_SCRIPT_ATTR: () => STREAM_SCRIPT_ATTR,
|
|
47
48
|
STREAM_SEED_ATTR: () => STREAM_SEED_ATTR,
|
|
48
49
|
STREAM_SEED_COMMENT: () => STREAM_SEED_COMMENT,
|
|
@@ -90,6 +91,7 @@ const HYDRATE_SEED_ATTR = "data-octane-hydrate-seed";
|
|
|
90
91
|
const STREAM_SEGMENT_ATTR = "data-oct-s";
|
|
91
92
|
const STREAM_SEED_ATTR = "data-oct-seed";
|
|
92
93
|
const STREAM_SCRIPT_ATTR = "data-octane-stream";
|
|
94
|
+
const STREAM_RESOURCE_ATTR = "data-oct-fr";
|
|
93
95
|
const STREAM_SEED_COMMENT = "oct-seed:";
|
|
94
96
|
const VOID_ELEMENTS = import_dom_tables.VOID_ELEMENTS;
|
|
95
97
|
const BOOLEAN_ATTR_PROPS = import_dom_tables.BOOLEAN_ATTR_PROPS;
|
|
@@ -128,6 +130,7 @@ const cssStyleValue = import_dom_tables.cssStyleValue;
|
|
|
128
130
|
POSITIVE_NUMERIC_ATTR_PROPS,
|
|
129
131
|
REJECTION_SENTINEL_KEY,
|
|
130
132
|
STREAM_BOUNDARY_ATTR,
|
|
133
|
+
STREAM_RESOURCE_ATTR,
|
|
131
134
|
STREAM_SCRIPT_ATTR,
|
|
132
135
|
STREAM_SEED_ATTR,
|
|
133
136
|
STREAM_SEED_COMMENT,
|
package/dist/cjs/css.cjs
CHANGED
|
@@ -18,6 +18,8 @@ var __copyProps = (to, from, except, desc) => {
|
|
|
18
18
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
19
|
var css_exports = {};
|
|
20
20
|
__export(css_exports, {
|
|
21
|
+
devWarnStyleCoercion: () => devWarnStyleCoercion,
|
|
22
|
+
devWarnStyleProperty: () => devWarnStyleProperty,
|
|
21
23
|
normalizeClass: () => normalizeClass,
|
|
22
24
|
styleName: () => styleName
|
|
23
25
|
});
|
|
@@ -53,8 +55,62 @@ function styleName(name) {
|
|
|
53
55
|
styleNameCache.set(name, result);
|
|
54
56
|
return result;
|
|
55
57
|
}
|
|
58
|
+
let warnedStyleNames = null;
|
|
59
|
+
let warnedStyleValues = null;
|
|
60
|
+
let warnedStyleNaN = 0;
|
|
61
|
+
let warnedStyleInfinity = 0;
|
|
62
|
+
function devWarnStyleProperty(name, value, server) {
|
|
63
|
+
const type = typeof value;
|
|
64
|
+
if (name.charCodeAt(0) === 45 && name.charCodeAt(1) === 45) return;
|
|
65
|
+
let prefixLength = 0;
|
|
66
|
+
if (name.startsWith("webkit")) prefixLength = 6;
|
|
67
|
+
else if (name.startsWith("moz")) prefixLength = 3;
|
|
68
|
+
else if (name.charCodeAt(0) === 111) prefixLength = 1;
|
|
69
|
+
const following = name.charCodeAt(prefixLength);
|
|
70
|
+
if (prefixLength !== 0 && following >= 65 && following <= 90) {
|
|
71
|
+
const key = (server ? "s:" : "c:") + name;
|
|
72
|
+
const warned = warnedStyleNames ??= /* @__PURE__ */ new Set();
|
|
73
|
+
if (!warned.has(key)) {
|
|
74
|
+
warned.add(key);
|
|
75
|
+
console.error(
|
|
76
|
+
`Unsupported vendor-prefixed style property ${name}. Did you mean ${name.charAt(0).toUpperCase()}${name.slice(1)}?`
|
|
77
|
+
);
|
|
78
|
+
}
|
|
79
|
+
} else if (type === "string") {
|
|
80
|
+
const text = value;
|
|
81
|
+
if (text.trimEnd().endsWith(";")) {
|
|
82
|
+
const key = (server ? "s:" : "c:") + text;
|
|
83
|
+
const warned = warnedStyleValues ??= /* @__PURE__ */ new Set();
|
|
84
|
+
if (!warned.has(key)) {
|
|
85
|
+
warned.add(key);
|
|
86
|
+
console.error(
|
|
87
|
+
`Style property values shouldn't contain a semicolon. Try "${name}: ${text.slice(0, text.lastIndexOf(";"))}" instead.`
|
|
88
|
+
);
|
|
89
|
+
}
|
|
90
|
+
}
|
|
91
|
+
}
|
|
92
|
+
if (type !== "number") return;
|
|
93
|
+
const surface = server ? 2 : 1;
|
|
94
|
+
if (Number.isNaN(value)) {
|
|
95
|
+
if ((warnedStyleNaN & surface) !== 0) return;
|
|
96
|
+
warnedStyleNaN |= surface;
|
|
97
|
+
console.error(`\`NaN\` is an invalid value for the \`${name}\` css style property.`);
|
|
98
|
+
} else if (!Number.isFinite(value)) {
|
|
99
|
+
if ((warnedStyleInfinity & surface) !== 0) return;
|
|
100
|
+
warnedStyleInfinity |= surface;
|
|
101
|
+
console.error(`\`Infinity\` is an invalid value for the \`${name}\` css style property.`);
|
|
102
|
+
}
|
|
103
|
+
}
|
|
104
|
+
function devWarnStyleCoercion(name, value) {
|
|
105
|
+
const valueType = typeof value === "symbol" ? "Symbol" : value.constructor?.name || "Object";
|
|
106
|
+
console.error(
|
|
107
|
+
`The provided \`${name}\` CSS property is an unsupported type ${valueType}. This value must be coerced to a string before using it here.`
|
|
108
|
+
);
|
|
109
|
+
}
|
|
56
110
|
// Annotate the CommonJS export names for ESM import in node:
|
|
57
111
|
0 && (module.exports = {
|
|
112
|
+
devWarnStyleCoercion,
|
|
113
|
+
devWarnStyleProperty,
|
|
58
114
|
normalizeClass,
|
|
59
115
|
styleName
|
|
60
116
|
});
|
|
@@ -164,6 +164,36 @@ function formatClientError(code, ...args) {
|
|
|
164
164
|
);
|
|
165
165
|
case 50:
|
|
166
166
|
return (0, import_error_message.formatDevErrorMessage)("Unclosed server-rendered Fragment descriptor.", args);
|
|
167
|
+
case 51:
|
|
168
|
+
return (0, import_error_message.formatDevErrorMessage)(
|
|
169
|
+
"Hydration mismatch: the server-rendered node did not match the client render; the mismatched subtree was rebuilt on the client.",
|
|
170
|
+
args
|
|
171
|
+
);
|
|
172
|
+
case 52:
|
|
173
|
+
return (0, import_error_message.formatDevErrorMessage)(
|
|
174
|
+
"Hydration mismatch: root adoption was abandoned after a server/client shape divergence; the root was rebuilt on the client.",
|
|
175
|
+
args
|
|
176
|
+
);
|
|
177
|
+
case 53:
|
|
178
|
+
return (0, import_error_message.formatDevErrorMessage)(
|
|
179
|
+
"Hydration mismatch: the server rendered more root content than the client; the stale remainder was discarded.",
|
|
180
|
+
args
|
|
181
|
+
);
|
|
182
|
+
case 54:
|
|
183
|
+
return (0, import_error_message.formatDevErrorMessage)(
|
|
184
|
+
"Hydration mismatch: the client rendered text where the server rendered none; the client text was built fresh.",
|
|
185
|
+
args
|
|
186
|
+
);
|
|
187
|
+
case 55:
|
|
188
|
+
return (0, import_error_message.formatDevErrorMessage)(
|
|
189
|
+
"Hydration mismatch: the server rendered a different child shape where the client renders a component; the stale range was discarded and the component was built on the client.",
|
|
190
|
+
args
|
|
191
|
+
);
|
|
192
|
+
case 56:
|
|
193
|
+
return (0, import_error_message.formatDevErrorMessage)(
|
|
194
|
+
"Hydration mismatch: the server rendered more list items than the client; the extra server items were discarded.",
|
|
195
|
+
args
|
|
196
|
+
);
|
|
167
197
|
default:
|
|
168
198
|
return (0, import_error_message.formatUnknownDevErrorMessage)(code);
|
|
169
199
|
}
|
|
@@ -135,6 +135,11 @@ function formatServerError(code, ...args) {
|
|
|
135
135
|
"octane SSR: %s consecutive streaming passes completed no boundary \u2014 a use(thenable) never resolved. If promises are re-created on every render pass (e.g. created in an ancestor render and passed down through props), create them at their use() site or hoist them out of render.",
|
|
136
136
|
args
|
|
137
137
|
);
|
|
138
|
+
case 57:
|
|
139
|
+
return (0, import_error_message.formatDevErrorMessage)(
|
|
140
|
+
"prerenderToNodeStream requires a Node.js runtime with process.getBuiltinModule; use prerender() in non-Node environments.",
|
|
141
|
+
args
|
|
142
|
+
);
|
|
138
143
|
default:
|
|
139
144
|
return (0, import_error_message.formatUnknownDevErrorMessage)(code);
|
|
140
145
|
}
|
package/dist/cjs/index.cjs
CHANGED
|
@@ -85,6 +85,7 @@ __export(index_exports, {
|
|
|
85
85
|
createScopedValue: () => import_runtime.createScopedValue,
|
|
86
86
|
delegateCaptureEvents: () => import_runtime.delegateCaptureEvents,
|
|
87
87
|
delegateEvents: () => import_runtime.delegateEvents,
|
|
88
|
+
descriptorChildren: () => import_runtime.descriptorChildren,
|
|
88
89
|
devEventListener: () => import_runtime.devEventListener,
|
|
89
90
|
drainFrag: () => import_runtime.drainFrag,
|
|
90
91
|
drainPassiveEffects: () => import_runtime.drainPassiveEffects,
|
|
@@ -133,7 +134,9 @@ __export(index_exports, {
|
|
|
133
134
|
preconnect: () => import_runtime.preconnect,
|
|
134
135
|
prefetchDNS: () => import_runtime.prefetchDNS,
|
|
135
136
|
preinit: () => import_runtime.preinit,
|
|
137
|
+
preinitModule: () => import_runtime.preinitModule,
|
|
136
138
|
preload: () => import_runtime.preload,
|
|
139
|
+
preloadModule: () => import_runtime.preloadModule,
|
|
137
140
|
provideContext: () => import_runtime.provideContext,
|
|
138
141
|
puMiss: () => import_runtime.puMiss,
|
|
139
142
|
puPub: () => import_runtime.puPub,
|
|
@@ -143,10 +146,14 @@ __export(index_exports, {
|
|
|
143
146
|
puTake3: () => import_runtime.puTake3,
|
|
144
147
|
puTake4: () => import_runtime.puTake4,
|
|
145
148
|
queueNativeChangeDiagnostic: () => import_runtime.queueNativeChangeDiagnostic,
|
|
149
|
+
queueOwnRefDetach: () => import_runtime.queueOwnRefDetach,
|
|
146
150
|
queueRefAttach: () => import_runtime.queueRefAttach,
|
|
147
151
|
queueRefDetach: () => import_runtime.queueRefDetach,
|
|
148
152
|
renderBlock: () => import_runtime.renderBlock,
|
|
153
|
+
replaceRef: () => import_runtime.replaceRef,
|
|
149
154
|
requestFormReset: () => import_runtime.requestFormReset,
|
|
155
|
+
resetFloatResourceState: () => import_runtime.resetFloatResourceState,
|
|
156
|
+
scriptResource: () => import_runtime.scriptResource,
|
|
150
157
|
seedOrCreate: () => import_runtime.seedOrCreate,
|
|
151
158
|
setAriaAttribute: () => import_runtime.setAriaAttribute,
|
|
152
159
|
setAttribute: () => import_runtime.setAttribute,
|
|
@@ -178,11 +185,14 @@ __export(index_exports, {
|
|
|
178
185
|
sibling: () => import_runtime.sibling,
|
|
179
186
|
snapshotSpread: () => import_runtime.snapshotSpread,
|
|
180
187
|
startTransition: () => import_runtime.startTransition,
|
|
188
|
+
styleResource: () => import_runtime.styleResource,
|
|
189
|
+
stylesheetResource: () => import_runtime.stylesheetResource,
|
|
181
190
|
switchBlock: () => import_runtime.switchBlock,
|
|
182
191
|
template: () => import_runtime.template,
|
|
183
192
|
textHole: () => import_runtime.textHole,
|
|
184
193
|
textSlot: () => import_runtime.textSlot,
|
|
185
194
|
tryBlock: () => import_runtime.tryBlock,
|
|
195
|
+
unstable_Activity: () => import_runtime.Activity,
|
|
186
196
|
unstable_ViewTransition: () => import_runtime.ViewTransition,
|
|
187
197
|
unstable_addTransitionType: () => import_runtime.addTransitionType,
|
|
188
198
|
use: () => import_runtime.use,
|
|
@@ -288,6 +298,7 @@ var import_method_dep = require("./method-dep.cjs");
|
|
|
288
298
|
createScopedValue,
|
|
289
299
|
delegateCaptureEvents,
|
|
290
300
|
delegateEvents,
|
|
301
|
+
descriptorChildren,
|
|
291
302
|
devEventListener,
|
|
292
303
|
drainFrag,
|
|
293
304
|
drainPassiveEffects,
|
|
@@ -336,7 +347,9 @@ var import_method_dep = require("./method-dep.cjs");
|
|
|
336
347
|
preconnect,
|
|
337
348
|
prefetchDNS,
|
|
338
349
|
preinit,
|
|
350
|
+
preinitModule,
|
|
339
351
|
preload,
|
|
352
|
+
preloadModule,
|
|
340
353
|
provideContext,
|
|
341
354
|
puMiss,
|
|
342
355
|
puPub,
|
|
@@ -346,10 +359,14 @@ var import_method_dep = require("./method-dep.cjs");
|
|
|
346
359
|
puTake3,
|
|
347
360
|
puTake4,
|
|
348
361
|
queueNativeChangeDiagnostic,
|
|
362
|
+
queueOwnRefDetach,
|
|
349
363
|
queueRefAttach,
|
|
350
364
|
queueRefDetach,
|
|
351
365
|
renderBlock,
|
|
366
|
+
replaceRef,
|
|
352
367
|
requestFormReset,
|
|
368
|
+
resetFloatResourceState,
|
|
369
|
+
scriptResource,
|
|
353
370
|
seedOrCreate,
|
|
354
371
|
setAriaAttribute,
|
|
355
372
|
setAttribute,
|
|
@@ -381,11 +398,14 @@ var import_method_dep = require("./method-dep.cjs");
|
|
|
381
398
|
sibling,
|
|
382
399
|
snapshotSpread,
|
|
383
400
|
startTransition,
|
|
401
|
+
styleResource,
|
|
402
|
+
stylesheetResource,
|
|
384
403
|
switchBlock,
|
|
385
404
|
template,
|
|
386
405
|
textHole,
|
|
387
406
|
textSlot,
|
|
388
407
|
tryBlock,
|
|
408
|
+
unstable_Activity,
|
|
389
409
|
unstable_ViewTransition,
|
|
390
410
|
unstable_addTransitionType,
|
|
391
411
|
use,
|