chore: bump esrap (#14969)

* chore: bump esrap

* fix

* bump again
main
Rich Harris 23 hours ago committed by GitHub
parent 9b6e65fbeb
commit 76ce303b0a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -155,7 +155,7 @@
"axobject-query": "^4.1.0", "axobject-query": "^4.1.0",
"clsx": "^2.1.1", "clsx": "^2.1.1",
"esm-env": "^1.2.1", "esm-env": "^1.2.1",
"esrap": "^1.3.2", "esrap": "^1.4.2",
"is-reference": "^3.0.3", "is-reference": "^3.0.3",
"locate-character": "^3.0.0", "locate-character": "^3.0.0",
"magic-string": "^0.30.11", "magic-string": "^0.30.11",

File diff suppressed because it is too large Load Diff

@ -44,84 +44,84 @@ function w(node, code, message) {
} }
export const codes = [ export const codes = [
"a11y_accesskey", 'a11y_accesskey',
"a11y_aria_activedescendant_has_tabindex", 'a11y_aria_activedescendant_has_tabindex',
"a11y_aria_attributes", 'a11y_aria_attributes',
"a11y_autocomplete_valid", 'a11y_autocomplete_valid',
"a11y_autofocus", 'a11y_autofocus',
"a11y_click_events_have_key_events", 'a11y_click_events_have_key_events',
"a11y_consider_explicit_label", 'a11y_consider_explicit_label',
"a11y_distracting_elements", 'a11y_distracting_elements',
"a11y_figcaption_index", 'a11y_figcaption_index',
"a11y_figcaption_parent", 'a11y_figcaption_parent',
"a11y_hidden", 'a11y_hidden',
"a11y_img_redundant_alt", 'a11y_img_redundant_alt',
"a11y_incorrect_aria_attribute_type", 'a11y_incorrect_aria_attribute_type',
"a11y_incorrect_aria_attribute_type_boolean", 'a11y_incorrect_aria_attribute_type_boolean',
"a11y_incorrect_aria_attribute_type_id", 'a11y_incorrect_aria_attribute_type_id',
"a11y_incorrect_aria_attribute_type_idlist", 'a11y_incorrect_aria_attribute_type_idlist',
"a11y_incorrect_aria_attribute_type_integer", 'a11y_incorrect_aria_attribute_type_integer',
"a11y_incorrect_aria_attribute_type_token", 'a11y_incorrect_aria_attribute_type_token',
"a11y_incorrect_aria_attribute_type_tokenlist", 'a11y_incorrect_aria_attribute_type_tokenlist',
"a11y_incorrect_aria_attribute_type_tristate", 'a11y_incorrect_aria_attribute_type_tristate',
"a11y_interactive_supports_focus", 'a11y_interactive_supports_focus',
"a11y_invalid_attribute", 'a11y_invalid_attribute',
"a11y_label_has_associated_control", 'a11y_label_has_associated_control',
"a11y_media_has_caption", 'a11y_media_has_caption',
"a11y_misplaced_role", 'a11y_misplaced_role',
"a11y_misplaced_scope", 'a11y_misplaced_scope',
"a11y_missing_attribute", 'a11y_missing_attribute',
"a11y_missing_content", 'a11y_missing_content',
"a11y_mouse_events_have_key_events", 'a11y_mouse_events_have_key_events',
"a11y_no_abstract_role", 'a11y_no_abstract_role',
"a11y_no_interactive_element_to_noninteractive_role", 'a11y_no_interactive_element_to_noninteractive_role',
"a11y_no_noninteractive_element_interactions", 'a11y_no_noninteractive_element_interactions',
"a11y_no_noninteractive_element_to_interactive_role", 'a11y_no_noninteractive_element_to_interactive_role',
"a11y_no_noninteractive_tabindex", 'a11y_no_noninteractive_tabindex',
"a11y_no_redundant_roles", 'a11y_no_redundant_roles',
"a11y_no_static_element_interactions", 'a11y_no_static_element_interactions',
"a11y_positive_tabindex", 'a11y_positive_tabindex',
"a11y_role_has_required_aria_props", 'a11y_role_has_required_aria_props',
"a11y_role_supports_aria_props", 'a11y_role_supports_aria_props',
"a11y_role_supports_aria_props_implicit", 'a11y_role_supports_aria_props_implicit',
"a11y_unknown_aria_attribute", 'a11y_unknown_aria_attribute',
"a11y_unknown_role", 'a11y_unknown_role',
"legacy_code", 'legacy_code',
"unknown_code", 'unknown_code',
"options_deprecated_accessors", 'options_deprecated_accessors',
"options_deprecated_immutable", 'options_deprecated_immutable',
"options_missing_custom_element", 'options_missing_custom_element',
"options_removed_enable_sourcemap", 'options_removed_enable_sourcemap',
"options_removed_hydratable", 'options_removed_hydratable',
"options_removed_loop_guard_timeout", 'options_removed_loop_guard_timeout',
"options_renamed_ssr_dom", 'options_renamed_ssr_dom',
"export_let_unused", 'export_let_unused',
"legacy_component_creation", 'legacy_component_creation',
"non_reactive_update", 'non_reactive_update',
"perf_avoid_inline_class", 'perf_avoid_inline_class',
"perf_avoid_nested_class", 'perf_avoid_nested_class',
"reactive_declaration_invalid_placement", 'reactive_declaration_invalid_placement',
"reactive_declaration_module_script_dependency", 'reactive_declaration_module_script_dependency',
"state_referenced_locally", 'state_referenced_locally',
"store_rune_conflict", 'store_rune_conflict',
"css_unused_selector", 'css_unused_selector',
"attribute_avoid_is", 'attribute_avoid_is',
"attribute_global_event_reference", 'attribute_global_event_reference',
"attribute_illegal_colon", 'attribute_illegal_colon',
"attribute_invalid_property_name", 'attribute_invalid_property_name',
"attribute_quoted", 'attribute_quoted',
"bind_invalid_each_rest", 'bind_invalid_each_rest',
"block_empty", 'block_empty',
"component_name_lowercase", 'component_name_lowercase',
"element_invalid_self_closing_tag", 'element_invalid_self_closing_tag',
"event_directive_deprecated", 'event_directive_deprecated',
"node_invalid_placement_ssr", 'node_invalid_placement_ssr',
"script_context_deprecated", 'script_context_deprecated',
"script_unknown_attribute", 'script_unknown_attribute',
"slot_element_deprecated", 'slot_element_deprecated',
"svelte_component_deprecated", 'svelte_component_deprecated',
"svelte_element_invalid_this", 'svelte_element_invalid_this',
"svelte_self_deprecated" 'svelte_self_deprecated'
]; ];
/** /**
@ -129,7 +129,7 @@ export const codes = [
* @param {null | NodeLike} node * @param {null | NodeLike} node
*/ */
export function a11y_accesskey(node) { export function a11y_accesskey(node) {
w(node, "a11y_accesskey", `Avoid using accesskey\nhttps://svelte.dev/e/a11y_accesskey`); w(node, 'a11y_accesskey', `Avoid using accesskey\nhttps://svelte.dev/e/a11y_accesskey`);
} }
/** /**
@ -137,7 +137,7 @@ export function a11y_accesskey(node) {
* @param {null | NodeLike} node * @param {null | NodeLike} node
*/ */
export function a11y_aria_activedescendant_has_tabindex(node) { export function a11y_aria_activedescendant_has_tabindex(node) {
w(node, "a11y_aria_activedescendant_has_tabindex", `An element with an aria-activedescendant attribute should have a tabindex value\nhttps://svelte.dev/e/a11y_aria_activedescendant_has_tabindex`); w(node, 'a11y_aria_activedescendant_has_tabindex', `An element with an aria-activedescendant attribute should have a tabindex value\nhttps://svelte.dev/e/a11y_aria_activedescendant_has_tabindex`);
} }
/** /**
@ -146,7 +146,7 @@ export function a11y_aria_activedescendant_has_tabindex(node) {
* @param {string} name * @param {string} name
*/ */
export function a11y_aria_attributes(node, name) { export function a11y_aria_attributes(node, name) {
w(node, "a11y_aria_attributes", `\`<${name}>\` should not have aria-* attributes\nhttps://svelte.dev/e/a11y_aria_attributes`); w(node, 'a11y_aria_attributes', `\`<${name}>\` should not have aria-* attributes\nhttps://svelte.dev/e/a11y_aria_attributes`);
} }
/** /**
@ -156,7 +156,7 @@ export function a11y_aria_attributes(node, name) {
* @param {string} type * @param {string} type
*/ */
export function a11y_autocomplete_valid(node, value, type) { export function a11y_autocomplete_valid(node, value, type) {
w(node, "a11y_autocomplete_valid", `'${value}' is an invalid value for 'autocomplete' on \`<input type="${type}">\`\nhttps://svelte.dev/e/a11y_autocomplete_valid`); w(node, 'a11y_autocomplete_valid', `'${value}' is an invalid value for 'autocomplete' on \`<input type="${type}">\`\nhttps://svelte.dev/e/a11y_autocomplete_valid`);
} }
/** /**
@ -164,7 +164,7 @@ export function a11y_autocomplete_valid(node, value, type) {
* @param {null | NodeLike} node * @param {null | NodeLike} node
*/ */
export function a11y_autofocus(node) { export function a11y_autofocus(node) {
w(node, "a11y_autofocus", `Avoid using autofocus\nhttps://svelte.dev/e/a11y_autofocus`); w(node, 'a11y_autofocus', `Avoid using autofocus\nhttps://svelte.dev/e/a11y_autofocus`);
} }
/** /**
@ -172,7 +172,7 @@ export function a11y_autofocus(node) {
* @param {null | NodeLike} node * @param {null | NodeLike} node
*/ */
export function a11y_click_events_have_key_events(node) { export function a11y_click_events_have_key_events(node) {
w(node, "a11y_click_events_have_key_events", `Visible, non-interactive elements with a click event must be accompanied by a keyboard event handler. Consider whether an interactive element such as \`<button type="button">\` or \`<a>\` might be more appropriate\nhttps://svelte.dev/e/a11y_click_events_have_key_events`); w(node, 'a11y_click_events_have_key_events', `Visible, non-interactive elements with a click event must be accompanied by a keyboard event handler. Consider whether an interactive element such as \`<button type="button">\` or \`<a>\` might be more appropriate\nhttps://svelte.dev/e/a11y_click_events_have_key_events`);
} }
/** /**
@ -180,7 +180,7 @@ export function a11y_click_events_have_key_events(node) {
* @param {null | NodeLike} node * @param {null | NodeLike} node
*/ */
export function a11y_consider_explicit_label(node) { export function a11y_consider_explicit_label(node) {
w(node, "a11y_consider_explicit_label", `Buttons and links should either contain text or have an \`aria-label\` or \`aria-labelledby\` attribute\nhttps://svelte.dev/e/a11y_consider_explicit_label`); w(node, 'a11y_consider_explicit_label', `Buttons and links should either contain text or have an \`aria-label\` or \`aria-labelledby\` attribute\nhttps://svelte.dev/e/a11y_consider_explicit_label`);
} }
/** /**
@ -189,7 +189,7 @@ export function a11y_consider_explicit_label(node) {
* @param {string} name * @param {string} name
*/ */
export function a11y_distracting_elements(node, name) { export function a11y_distracting_elements(node, name) {
w(node, "a11y_distracting_elements", `Avoid \`<${name}>\` elements\nhttps://svelte.dev/e/a11y_distracting_elements`); w(node, 'a11y_distracting_elements', `Avoid \`<${name}>\` elements\nhttps://svelte.dev/e/a11y_distracting_elements`);
} }
/** /**
@ -197,7 +197,7 @@ export function a11y_distracting_elements(node, name) {
* @param {null | NodeLike} node * @param {null | NodeLike} node
*/ */
export function a11y_figcaption_index(node) { export function a11y_figcaption_index(node) {
w(node, "a11y_figcaption_index", `\`<figcaption>\` must be first or last child of \`<figure>\`\nhttps://svelte.dev/e/a11y_figcaption_index`); w(node, 'a11y_figcaption_index', `\`<figcaption>\` must be first or last child of \`<figure>\`\nhttps://svelte.dev/e/a11y_figcaption_index`);
} }
/** /**
@ -205,7 +205,7 @@ export function a11y_figcaption_index(node) {
* @param {null | NodeLike} node * @param {null | NodeLike} node
*/ */
export function a11y_figcaption_parent(node) { export function a11y_figcaption_parent(node) {
w(node, "a11y_figcaption_parent", `\`<figcaption>\` must be an immediate child of \`<figure>\`\nhttps://svelte.dev/e/a11y_figcaption_parent`); w(node, 'a11y_figcaption_parent', `\`<figcaption>\` must be an immediate child of \`<figure>\`\nhttps://svelte.dev/e/a11y_figcaption_parent`);
} }
/** /**
@ -214,7 +214,7 @@ export function a11y_figcaption_parent(node) {
* @param {string} name * @param {string} name
*/ */
export function a11y_hidden(node, name) { export function a11y_hidden(node, name) {
w(node, "a11y_hidden", `\`<${name}>\` element should not be hidden\nhttps://svelte.dev/e/a11y_hidden`); w(node, 'a11y_hidden', `\`<${name}>\` element should not be hidden\nhttps://svelte.dev/e/a11y_hidden`);
} }
/** /**
@ -222,7 +222,7 @@ export function a11y_hidden(node, name) {
* @param {null | NodeLike} node * @param {null | NodeLike} node
*/ */
export function a11y_img_redundant_alt(node) { export function a11y_img_redundant_alt(node) {
w(node, "a11y_img_redundant_alt", `Screenreaders already announce \`<img>\` elements as an image\nhttps://svelte.dev/e/a11y_img_redundant_alt`); w(node, 'a11y_img_redundant_alt', `Screenreaders already announce \`<img>\` elements as an image\nhttps://svelte.dev/e/a11y_img_redundant_alt`);
} }
/** /**
@ -232,7 +232,7 @@ export function a11y_img_redundant_alt(node) {
* @param {string} type * @param {string} type
*/ */
export function a11y_incorrect_aria_attribute_type(node, attribute, type) { export function a11y_incorrect_aria_attribute_type(node, attribute, type) {
w(node, "a11y_incorrect_aria_attribute_type", `The value of '${attribute}' must be a ${type}\nhttps://svelte.dev/e/a11y_incorrect_aria_attribute_type`); w(node, 'a11y_incorrect_aria_attribute_type', `The value of '${attribute}' must be a ${type}\nhttps://svelte.dev/e/a11y_incorrect_aria_attribute_type`);
} }
/** /**
@ -241,7 +241,7 @@ export function a11y_incorrect_aria_attribute_type(node, attribute, type) {
* @param {string} attribute * @param {string} attribute
*/ */
export function a11y_incorrect_aria_attribute_type_boolean(node, attribute) { export function a11y_incorrect_aria_attribute_type_boolean(node, attribute) {
w(node, "a11y_incorrect_aria_attribute_type_boolean", `The value of '${attribute}' must be either 'true' or 'false'. It cannot be empty\nhttps://svelte.dev/e/a11y_incorrect_aria_attribute_type_boolean`); w(node, 'a11y_incorrect_aria_attribute_type_boolean', `The value of '${attribute}' must be either 'true' or 'false'. It cannot be empty\nhttps://svelte.dev/e/a11y_incorrect_aria_attribute_type_boolean`);
} }
/** /**
@ -250,7 +250,7 @@ export function a11y_incorrect_aria_attribute_type_boolean(node, attribute) {
* @param {string} attribute * @param {string} attribute
*/ */
export function a11y_incorrect_aria_attribute_type_id(node, attribute) { export function a11y_incorrect_aria_attribute_type_id(node, attribute) {
w(node, "a11y_incorrect_aria_attribute_type_id", `The value of '${attribute}' must be a string that represents a DOM element ID\nhttps://svelte.dev/e/a11y_incorrect_aria_attribute_type_id`); w(node, 'a11y_incorrect_aria_attribute_type_id', `The value of '${attribute}' must be a string that represents a DOM element ID\nhttps://svelte.dev/e/a11y_incorrect_aria_attribute_type_id`);
} }
/** /**
@ -259,7 +259,7 @@ export function a11y_incorrect_aria_attribute_type_id(node, attribute) {
* @param {string} attribute * @param {string} attribute
*/ */
export function a11y_incorrect_aria_attribute_type_idlist(node, attribute) { export function a11y_incorrect_aria_attribute_type_idlist(node, attribute) {
w(node, "a11y_incorrect_aria_attribute_type_idlist", `The value of '${attribute}' must be a space-separated list of strings that represent DOM element IDs\nhttps://svelte.dev/e/a11y_incorrect_aria_attribute_type_idlist`); w(node, 'a11y_incorrect_aria_attribute_type_idlist', `The value of '${attribute}' must be a space-separated list of strings that represent DOM element IDs\nhttps://svelte.dev/e/a11y_incorrect_aria_attribute_type_idlist`);
} }
/** /**
@ -268,7 +268,7 @@ export function a11y_incorrect_aria_attribute_type_idlist(node, attribute) {
* @param {string} attribute * @param {string} attribute
*/ */
export function a11y_incorrect_aria_attribute_type_integer(node, attribute) { export function a11y_incorrect_aria_attribute_type_integer(node, attribute) {
w(node, "a11y_incorrect_aria_attribute_type_integer", `The value of '${attribute}' must be an integer\nhttps://svelte.dev/e/a11y_incorrect_aria_attribute_type_integer`); w(node, 'a11y_incorrect_aria_attribute_type_integer', `The value of '${attribute}' must be an integer\nhttps://svelte.dev/e/a11y_incorrect_aria_attribute_type_integer`);
} }
/** /**
@ -278,7 +278,7 @@ export function a11y_incorrect_aria_attribute_type_integer(node, attribute) {
* @param {string} values * @param {string} values
*/ */
export function a11y_incorrect_aria_attribute_type_token(node, attribute, values) { export function a11y_incorrect_aria_attribute_type_token(node, attribute, values) {
w(node, "a11y_incorrect_aria_attribute_type_token", `The value of '${attribute}' must be exactly one of ${values}\nhttps://svelte.dev/e/a11y_incorrect_aria_attribute_type_token`); w(node, 'a11y_incorrect_aria_attribute_type_token', `The value of '${attribute}' must be exactly one of ${values}\nhttps://svelte.dev/e/a11y_incorrect_aria_attribute_type_token`);
} }
/** /**
@ -288,7 +288,7 @@ export function a11y_incorrect_aria_attribute_type_token(node, attribute, values
* @param {string} values * @param {string} values
*/ */
export function a11y_incorrect_aria_attribute_type_tokenlist(node, attribute, values) { export function a11y_incorrect_aria_attribute_type_tokenlist(node, attribute, values) {
w(node, "a11y_incorrect_aria_attribute_type_tokenlist", `The value of '${attribute}' must be a space-separated list of one or more of ${values}\nhttps://svelte.dev/e/a11y_incorrect_aria_attribute_type_tokenlist`); w(node, 'a11y_incorrect_aria_attribute_type_tokenlist', `The value of '${attribute}' must be a space-separated list of one or more of ${values}\nhttps://svelte.dev/e/a11y_incorrect_aria_attribute_type_tokenlist`);
} }
/** /**
@ -297,7 +297,7 @@ export function a11y_incorrect_aria_attribute_type_tokenlist(node, attribute, va
* @param {string} attribute * @param {string} attribute
*/ */
export function a11y_incorrect_aria_attribute_type_tristate(node, attribute) { export function a11y_incorrect_aria_attribute_type_tristate(node, attribute) {
w(node, "a11y_incorrect_aria_attribute_type_tristate", `The value of '${attribute}' must be exactly one of true, false, or mixed\nhttps://svelte.dev/e/a11y_incorrect_aria_attribute_type_tristate`); w(node, 'a11y_incorrect_aria_attribute_type_tristate', `The value of '${attribute}' must be exactly one of true, false, or mixed\nhttps://svelte.dev/e/a11y_incorrect_aria_attribute_type_tristate`);
} }
/** /**
@ -306,7 +306,7 @@ export function a11y_incorrect_aria_attribute_type_tristate(node, attribute) {
* @param {string} role * @param {string} role
*/ */
export function a11y_interactive_supports_focus(node, role) { export function a11y_interactive_supports_focus(node, role) {
w(node, "a11y_interactive_supports_focus", `Elements with the '${role}' interactive role must have a tabindex value\nhttps://svelte.dev/e/a11y_interactive_supports_focus`); w(node, 'a11y_interactive_supports_focus', `Elements with the '${role}' interactive role must have a tabindex value\nhttps://svelte.dev/e/a11y_interactive_supports_focus`);
} }
/** /**
@ -316,7 +316,7 @@ export function a11y_interactive_supports_focus(node, role) {
* @param {string} href_attribute * @param {string} href_attribute
*/ */
export function a11y_invalid_attribute(node, href_value, href_attribute) { export function a11y_invalid_attribute(node, href_value, href_attribute) {
w(node, "a11y_invalid_attribute", `'${href_value}' is not a valid ${href_attribute} attribute\nhttps://svelte.dev/e/a11y_invalid_attribute`); w(node, 'a11y_invalid_attribute', `'${href_value}' is not a valid ${href_attribute} attribute\nhttps://svelte.dev/e/a11y_invalid_attribute`);
} }
/** /**
@ -324,7 +324,7 @@ export function a11y_invalid_attribute(node, href_value, href_attribute) {
* @param {null | NodeLike} node * @param {null | NodeLike} node
*/ */
export function a11y_label_has_associated_control(node) { export function a11y_label_has_associated_control(node) {
w(node, "a11y_label_has_associated_control", `A form label must be associated with a control\nhttps://svelte.dev/e/a11y_label_has_associated_control`); w(node, 'a11y_label_has_associated_control', `A form label must be associated with a control\nhttps://svelte.dev/e/a11y_label_has_associated_control`);
} }
/** /**
@ -332,7 +332,7 @@ export function a11y_label_has_associated_control(node) {
* @param {null | NodeLike} node * @param {null | NodeLike} node
*/ */
export function a11y_media_has_caption(node) { export function a11y_media_has_caption(node) {
w(node, "a11y_media_has_caption", `\`<video>\` elements must have a \`<track kind="captions">\`\nhttps://svelte.dev/e/a11y_media_has_caption`); w(node, 'a11y_media_has_caption', `\`<video>\` elements must have a \`<track kind="captions">\`\nhttps://svelte.dev/e/a11y_media_has_caption`);
} }
/** /**
@ -341,7 +341,7 @@ export function a11y_media_has_caption(node) {
* @param {string} name * @param {string} name
*/ */
export function a11y_misplaced_role(node, name) { export function a11y_misplaced_role(node, name) {
w(node, "a11y_misplaced_role", `\`<${name}>\` should not have role attribute\nhttps://svelte.dev/e/a11y_misplaced_role`); w(node, 'a11y_misplaced_role', `\`<${name}>\` should not have role attribute\nhttps://svelte.dev/e/a11y_misplaced_role`);
} }
/** /**
@ -349,7 +349,7 @@ export function a11y_misplaced_role(node, name) {
* @param {null | NodeLike} node * @param {null | NodeLike} node
*/ */
export function a11y_misplaced_scope(node) { export function a11y_misplaced_scope(node) {
w(node, "a11y_misplaced_scope", `The scope attribute should only be used with \`<th>\` elements\nhttps://svelte.dev/e/a11y_misplaced_scope`); w(node, 'a11y_misplaced_scope', `The scope attribute should only be used with \`<th>\` elements\nhttps://svelte.dev/e/a11y_misplaced_scope`);
} }
/** /**
@ -360,7 +360,7 @@ export function a11y_misplaced_scope(node) {
* @param {string} sequence * @param {string} sequence
*/ */
export function a11y_missing_attribute(node, name, article, sequence) { export function a11y_missing_attribute(node, name, article, sequence) {
w(node, "a11y_missing_attribute", `\`<${name}>\` element should have ${article} ${sequence} attribute\nhttps://svelte.dev/e/a11y_missing_attribute`); w(node, 'a11y_missing_attribute', `\`<${name}>\` element should have ${article} ${sequence} attribute\nhttps://svelte.dev/e/a11y_missing_attribute`);
} }
/** /**
@ -369,7 +369,7 @@ export function a11y_missing_attribute(node, name, article, sequence) {
* @param {string} name * @param {string} name
*/ */
export function a11y_missing_content(node, name) { export function a11y_missing_content(node, name) {
w(node, "a11y_missing_content", `\`<${name}>\` element should contain text\nhttps://svelte.dev/e/a11y_missing_content`); w(node, 'a11y_missing_content', `\`<${name}>\` element should contain text\nhttps://svelte.dev/e/a11y_missing_content`);
} }
/** /**
@ -379,7 +379,7 @@ export function a11y_missing_content(node, name) {
* @param {string} accompanied_by * @param {string} accompanied_by
*/ */
export function a11y_mouse_events_have_key_events(node, event, accompanied_by) { export function a11y_mouse_events_have_key_events(node, event, accompanied_by) {
w(node, "a11y_mouse_events_have_key_events", `'${event}' event must be accompanied by '${accompanied_by}' event\nhttps://svelte.dev/e/a11y_mouse_events_have_key_events`); w(node, 'a11y_mouse_events_have_key_events', `'${event}' event must be accompanied by '${accompanied_by}' event\nhttps://svelte.dev/e/a11y_mouse_events_have_key_events`);
} }
/** /**
@ -388,7 +388,7 @@ export function a11y_mouse_events_have_key_events(node, event, accompanied_by) {
* @param {string} role * @param {string} role
*/ */
export function a11y_no_abstract_role(node, role) { export function a11y_no_abstract_role(node, role) {
w(node, "a11y_no_abstract_role", `Abstract role '${role}' is forbidden\nhttps://svelte.dev/e/a11y_no_abstract_role`); w(node, 'a11y_no_abstract_role', `Abstract role '${role}' is forbidden\nhttps://svelte.dev/e/a11y_no_abstract_role`);
} }
/** /**
@ -398,7 +398,7 @@ export function a11y_no_abstract_role(node, role) {
* @param {string} role * @param {string} role
*/ */
export function a11y_no_interactive_element_to_noninteractive_role(node, element, role) { export function a11y_no_interactive_element_to_noninteractive_role(node, element, role) {
w(node, "a11y_no_interactive_element_to_noninteractive_role", `\`<${element}>\` cannot have role '${role}'\nhttps://svelte.dev/e/a11y_no_interactive_element_to_noninteractive_role`); w(node, 'a11y_no_interactive_element_to_noninteractive_role', `\`<${element}>\` cannot have role '${role}'\nhttps://svelte.dev/e/a11y_no_interactive_element_to_noninteractive_role`);
} }
/** /**
@ -407,7 +407,7 @@ export function a11y_no_interactive_element_to_noninteractive_role(node, element
* @param {string} element * @param {string} element
*/ */
export function a11y_no_noninteractive_element_interactions(node, element) { export function a11y_no_noninteractive_element_interactions(node, element) {
w(node, "a11y_no_noninteractive_element_interactions", `Non-interactive element \`<${element}>\` should not be assigned mouse or keyboard event listeners\nhttps://svelte.dev/e/a11y_no_noninteractive_element_interactions`); w(node, 'a11y_no_noninteractive_element_interactions', `Non-interactive element \`<${element}>\` should not be assigned mouse or keyboard event listeners\nhttps://svelte.dev/e/a11y_no_noninteractive_element_interactions`);
} }
/** /**
@ -417,7 +417,7 @@ export function a11y_no_noninteractive_element_interactions(node, element) {
* @param {string} role * @param {string} role
*/ */
export function a11y_no_noninteractive_element_to_interactive_role(node, element, role) { export function a11y_no_noninteractive_element_to_interactive_role(node, element, role) {
w(node, "a11y_no_noninteractive_element_to_interactive_role", `Non-interactive element \`<${element}>\` cannot have interactive role '${role}'\nhttps://svelte.dev/e/a11y_no_noninteractive_element_to_interactive_role`); w(node, 'a11y_no_noninteractive_element_to_interactive_role', `Non-interactive element \`<${element}>\` cannot have interactive role '${role}'\nhttps://svelte.dev/e/a11y_no_noninteractive_element_to_interactive_role`);
} }
/** /**
@ -425,7 +425,7 @@ export function a11y_no_noninteractive_element_to_interactive_role(node, element
* @param {null | NodeLike} node * @param {null | NodeLike} node
*/ */
export function a11y_no_noninteractive_tabindex(node) { export function a11y_no_noninteractive_tabindex(node) {
w(node, "a11y_no_noninteractive_tabindex", `noninteractive element cannot have nonnegative tabIndex value\nhttps://svelte.dev/e/a11y_no_noninteractive_tabindex`); w(node, 'a11y_no_noninteractive_tabindex', `noninteractive element cannot have nonnegative tabIndex value\nhttps://svelte.dev/e/a11y_no_noninteractive_tabindex`);
} }
/** /**
@ -434,7 +434,7 @@ export function a11y_no_noninteractive_tabindex(node) {
* @param {string} role * @param {string} role
*/ */
export function a11y_no_redundant_roles(node, role) { export function a11y_no_redundant_roles(node, role) {
w(node, "a11y_no_redundant_roles", `Redundant role '${role}'\nhttps://svelte.dev/e/a11y_no_redundant_roles`); w(node, 'a11y_no_redundant_roles', `Redundant role '${role}'\nhttps://svelte.dev/e/a11y_no_redundant_roles`);
} }
/** /**
@ -444,7 +444,7 @@ export function a11y_no_redundant_roles(node, role) {
* @param {string} handler * @param {string} handler
*/ */
export function a11y_no_static_element_interactions(node, element, handler) { export function a11y_no_static_element_interactions(node, element, handler) {
w(node, "a11y_no_static_element_interactions", `\`<${element}>\` with a ${handler} handler must have an ARIA role\nhttps://svelte.dev/e/a11y_no_static_element_interactions`); w(node, 'a11y_no_static_element_interactions', `\`<${element}>\` with a ${handler} handler must have an ARIA role\nhttps://svelte.dev/e/a11y_no_static_element_interactions`);
} }
/** /**
@ -452,7 +452,7 @@ export function a11y_no_static_element_interactions(node, element, handler) {
* @param {null | NodeLike} node * @param {null | NodeLike} node
*/ */
export function a11y_positive_tabindex(node) { export function a11y_positive_tabindex(node) {
w(node, "a11y_positive_tabindex", `Avoid tabindex values above zero\nhttps://svelte.dev/e/a11y_positive_tabindex`); w(node, 'a11y_positive_tabindex', `Avoid tabindex values above zero\nhttps://svelte.dev/e/a11y_positive_tabindex`);
} }
/** /**
@ -462,7 +462,7 @@ export function a11y_positive_tabindex(node) {
* @param {string} props * @param {string} props
*/ */
export function a11y_role_has_required_aria_props(node, role, props) { export function a11y_role_has_required_aria_props(node, role, props) {
w(node, "a11y_role_has_required_aria_props", `Elements with the ARIA role "${role}" must have the following attributes defined: ${props}\nhttps://svelte.dev/e/a11y_role_has_required_aria_props`); w(node, 'a11y_role_has_required_aria_props', `Elements with the ARIA role "${role}" must have the following attributes defined: ${props}\nhttps://svelte.dev/e/a11y_role_has_required_aria_props`);
} }
/** /**
@ -472,7 +472,7 @@ export function a11y_role_has_required_aria_props(node, role, props) {
* @param {string} role * @param {string} role
*/ */
export function a11y_role_supports_aria_props(node, attribute, role) { export function a11y_role_supports_aria_props(node, attribute, role) {
w(node, "a11y_role_supports_aria_props", `The attribute '${attribute}' is not supported by the role '${role}'\nhttps://svelte.dev/e/a11y_role_supports_aria_props`); w(node, 'a11y_role_supports_aria_props', `The attribute '${attribute}' is not supported by the role '${role}'\nhttps://svelte.dev/e/a11y_role_supports_aria_props`);
} }
/** /**
@ -483,7 +483,7 @@ export function a11y_role_supports_aria_props(node, attribute, role) {
* @param {string} name * @param {string} name
*/ */
export function a11y_role_supports_aria_props_implicit(node, attribute, role, name) { export function a11y_role_supports_aria_props_implicit(node, attribute, role, name) {
w(node, "a11y_role_supports_aria_props_implicit", `The attribute '${attribute}' is not supported by the role '${role}'. This role is implicit on the element \`<${name}>\`\nhttps://svelte.dev/e/a11y_role_supports_aria_props_implicit`); w(node, 'a11y_role_supports_aria_props_implicit', `The attribute '${attribute}' is not supported by the role '${role}'. This role is implicit on the element \`<${name}>\`\nhttps://svelte.dev/e/a11y_role_supports_aria_props_implicit`);
} }
/** /**
@ -493,7 +493,7 @@ export function a11y_role_supports_aria_props_implicit(node, attribute, role, na
* @param {string | undefined | null} [suggestion] * @param {string | undefined | null} [suggestion]
*/ */
export function a11y_unknown_aria_attribute(node, attribute, suggestion) { export function a11y_unknown_aria_attribute(node, attribute, suggestion) {
w(node, "a11y_unknown_aria_attribute", `${suggestion ? `Unknown aria attribute 'aria-${attribute}'. Did you mean '${suggestion}'?` : `Unknown aria attribute 'aria-${attribute}'`}\nhttps://svelte.dev/e/a11y_unknown_aria_attribute`); w(node, 'a11y_unknown_aria_attribute', `${suggestion ? `Unknown aria attribute 'aria-${attribute}'. Did you mean '${suggestion}'?` : `Unknown aria attribute 'aria-${attribute}'`}\nhttps://svelte.dev/e/a11y_unknown_aria_attribute`);
} }
/** /**
@ -503,7 +503,7 @@ export function a11y_unknown_aria_attribute(node, attribute, suggestion) {
* @param {string | undefined | null} [suggestion] * @param {string | undefined | null} [suggestion]
*/ */
export function a11y_unknown_role(node, role, suggestion) { export function a11y_unknown_role(node, role, suggestion) {
w(node, "a11y_unknown_role", `${suggestion ? `Unknown role '${role}'. Did you mean '${suggestion}'?` : `Unknown role '${role}'`}\nhttps://svelte.dev/e/a11y_unknown_role`); w(node, 'a11y_unknown_role', `${suggestion ? `Unknown role '${role}'. Did you mean '${suggestion}'?` : `Unknown role '${role}'`}\nhttps://svelte.dev/e/a11y_unknown_role`);
} }
/** /**
@ -513,7 +513,7 @@ export function a11y_unknown_role(node, role, suggestion) {
* @param {string} suggestion * @param {string} suggestion
*/ */
export function legacy_code(node, code, suggestion) { export function legacy_code(node, code, suggestion) {
w(node, "legacy_code", `\`${code}\` is no longer valid — please use \`${suggestion}\` instead\nhttps://svelte.dev/e/legacy_code`); w(node, 'legacy_code', `\`${code}\` is no longer valid — please use \`${suggestion}\` instead\nhttps://svelte.dev/e/legacy_code`);
} }
/** /**
@ -523,7 +523,7 @@ export function legacy_code(node, code, suggestion) {
* @param {string | undefined | null} [suggestion] * @param {string | undefined | null} [suggestion]
*/ */
export function unknown_code(node, code, suggestion) { export function unknown_code(node, code, suggestion) {
w(node, "unknown_code", `${suggestion ? `\`${code}\` is not a recognised code (did you mean \`${suggestion}\`?)` : `\`${code}\` is not a recognised code`}\nhttps://svelte.dev/e/unknown_code`); w(node, 'unknown_code', `${suggestion ? `\`${code}\` is not a recognised code (did you mean \`${suggestion}\`?)` : `\`${code}\` is not a recognised code`}\nhttps://svelte.dev/e/unknown_code`);
} }
/** /**
@ -531,7 +531,7 @@ export function unknown_code(node, code, suggestion) {
* @param {null | NodeLike} node * @param {null | NodeLike} node
*/ */
export function options_deprecated_accessors(node) { export function options_deprecated_accessors(node) {
w(node, "options_deprecated_accessors", `The \`accessors\` option has been deprecated. It will have no effect in runes mode\nhttps://svelte.dev/e/options_deprecated_accessors`); w(node, 'options_deprecated_accessors', `The \`accessors\` option has been deprecated. It will have no effect in runes mode\nhttps://svelte.dev/e/options_deprecated_accessors`);
} }
/** /**
@ -539,7 +539,7 @@ export function options_deprecated_accessors(node) {
* @param {null | NodeLike} node * @param {null | NodeLike} node
*/ */
export function options_deprecated_immutable(node) { export function options_deprecated_immutable(node) {
w(node, "options_deprecated_immutable", `The \`immutable\` option has been deprecated. It will have no effect in runes mode\nhttps://svelte.dev/e/options_deprecated_immutable`); w(node, 'options_deprecated_immutable', `The \`immutable\` option has been deprecated. It will have no effect in runes mode\nhttps://svelte.dev/e/options_deprecated_immutable`);
} }
/** /**
@ -547,7 +547,7 @@ export function options_deprecated_immutable(node) {
* @param {null | NodeLike} node * @param {null | NodeLike} node
*/ */
export function options_missing_custom_element(node) { export function options_missing_custom_element(node) {
w(node, "options_missing_custom_element", `The \`customElement\` option is used when generating a custom element. Did you forget the \`customElement: true\` compile option?\nhttps://svelte.dev/e/options_missing_custom_element`); w(node, 'options_missing_custom_element', `The \`customElement\` option is used when generating a custom element. Did you forget the \`customElement: true\` compile option?\nhttps://svelte.dev/e/options_missing_custom_element`);
} }
/** /**
@ -555,7 +555,7 @@ export function options_missing_custom_element(node) {
* @param {null | NodeLike} node * @param {null | NodeLike} node
*/ */
export function options_removed_enable_sourcemap(node) { export function options_removed_enable_sourcemap(node) {
w(node, "options_removed_enable_sourcemap", `The \`enableSourcemap\` option has been removed. Source maps are always generated now, and tooling can choose to ignore them\nhttps://svelte.dev/e/options_removed_enable_sourcemap`); w(node, 'options_removed_enable_sourcemap', `The \`enableSourcemap\` option has been removed. Source maps are always generated now, and tooling can choose to ignore them\nhttps://svelte.dev/e/options_removed_enable_sourcemap`);
} }
/** /**
@ -563,7 +563,7 @@ export function options_removed_enable_sourcemap(node) {
* @param {null | NodeLike} node * @param {null | NodeLike} node
*/ */
export function options_removed_hydratable(node) { export function options_removed_hydratable(node) {
w(node, "options_removed_hydratable", `The \`hydratable\` option has been removed. Svelte components are always hydratable now\nhttps://svelte.dev/e/options_removed_hydratable`); w(node, 'options_removed_hydratable', `The \`hydratable\` option has been removed. Svelte components are always hydratable now\nhttps://svelte.dev/e/options_removed_hydratable`);
} }
/** /**
@ -571,7 +571,7 @@ export function options_removed_hydratable(node) {
* @param {null | NodeLike} node * @param {null | NodeLike} node
*/ */
export function options_removed_loop_guard_timeout(node) { export function options_removed_loop_guard_timeout(node) {
w(node, "options_removed_loop_guard_timeout", `The \`loopGuardTimeout\` option has been removed\nhttps://svelte.dev/e/options_removed_loop_guard_timeout`); w(node, 'options_removed_loop_guard_timeout', `The \`loopGuardTimeout\` option has been removed\nhttps://svelte.dev/e/options_removed_loop_guard_timeout`);
} }
/** /**
@ -579,7 +579,7 @@ export function options_removed_loop_guard_timeout(node) {
* @param {null | NodeLike} node * @param {null | NodeLike} node
*/ */
export function options_renamed_ssr_dom(node) { export function options_renamed_ssr_dom(node) {
w(node, "options_renamed_ssr_dom", `\`generate: "dom"\` and \`generate: "ssr"\` options have been renamed to "client" and "server" respectively\nhttps://svelte.dev/e/options_renamed_ssr_dom`); w(node, 'options_renamed_ssr_dom', `\`generate: "dom"\` and \`generate: "ssr"\` options have been renamed to "client" and "server" respectively\nhttps://svelte.dev/e/options_renamed_ssr_dom`);
} }
/** /**
@ -588,7 +588,7 @@ export function options_renamed_ssr_dom(node) {
* @param {string} name * @param {string} name
*/ */
export function export_let_unused(node, name) { export function export_let_unused(node, name) {
w(node, "export_let_unused", `Component has unused export property '${name}'. If it is for external reference only, please consider using \`export const ${name}\`\nhttps://svelte.dev/e/export_let_unused`); w(node, 'export_let_unused', `Component has unused export property '${name}'. If it is for external reference only, please consider using \`export const ${name}\`\nhttps://svelte.dev/e/export_let_unused`);
} }
/** /**
@ -596,7 +596,7 @@ export function export_let_unused(node, name) {
* @param {null | NodeLike} node * @param {null | NodeLike} node
*/ */
export function legacy_component_creation(node) { export function legacy_component_creation(node) {
w(node, "legacy_component_creation", `Svelte 5 components are no longer classes. Instantiate them using \`mount\` or \`hydrate\` (imported from 'svelte') instead.\nhttps://svelte.dev/e/legacy_component_creation`); w(node, 'legacy_component_creation', `Svelte 5 components are no longer classes. Instantiate them using \`mount\` or \`hydrate\` (imported from 'svelte') instead.\nhttps://svelte.dev/e/legacy_component_creation`);
} }
/** /**
@ -605,7 +605,7 @@ export function legacy_component_creation(node) {
* @param {string} name * @param {string} name
*/ */
export function non_reactive_update(node, name) { export function non_reactive_update(node, name) {
w(node, "non_reactive_update", `\`${name}\` is updated, but is not declared with \`$state(...)\`. Changing its value will not correctly trigger updates\nhttps://svelte.dev/e/non_reactive_update`); w(node, 'non_reactive_update', `\`${name}\` is updated, but is not declared with \`$state(...)\`. Changing its value will not correctly trigger updates\nhttps://svelte.dev/e/non_reactive_update`);
} }
/** /**
@ -613,7 +613,7 @@ export function non_reactive_update(node, name) {
* @param {null | NodeLike} node * @param {null | NodeLike} node
*/ */
export function perf_avoid_inline_class(node) { export function perf_avoid_inline_class(node) {
w(node, "perf_avoid_inline_class", `Avoid 'new class' — instead, declare the class at the top level scope\nhttps://svelte.dev/e/perf_avoid_inline_class`); w(node, 'perf_avoid_inline_class', `Avoid 'new class' — instead, declare the class at the top level scope\nhttps://svelte.dev/e/perf_avoid_inline_class`);
} }
/** /**
@ -621,7 +621,7 @@ export function perf_avoid_inline_class(node) {
* @param {null | NodeLike} node * @param {null | NodeLike} node
*/ */
export function perf_avoid_nested_class(node) { export function perf_avoid_nested_class(node) {
w(node, "perf_avoid_nested_class", `Avoid declaring classes below the top level scope\nhttps://svelte.dev/e/perf_avoid_nested_class`); w(node, 'perf_avoid_nested_class', `Avoid declaring classes below the top level scope\nhttps://svelte.dev/e/perf_avoid_nested_class`);
} }
/** /**
@ -629,7 +629,7 @@ export function perf_avoid_nested_class(node) {
* @param {null | NodeLike} node * @param {null | NodeLike} node
*/ */
export function reactive_declaration_invalid_placement(node) { export function reactive_declaration_invalid_placement(node) {
w(node, "reactive_declaration_invalid_placement", `Reactive declarations only exist at the top level of the instance script\nhttps://svelte.dev/e/reactive_declaration_invalid_placement`); w(node, 'reactive_declaration_invalid_placement', `Reactive declarations only exist at the top level of the instance script\nhttps://svelte.dev/e/reactive_declaration_invalid_placement`);
} }
/** /**
@ -637,7 +637,7 @@ export function reactive_declaration_invalid_placement(node) {
* @param {null | NodeLike} node * @param {null | NodeLike} node
*/ */
export function reactive_declaration_module_script_dependency(node) { export function reactive_declaration_module_script_dependency(node) {
w(node, "reactive_declaration_module_script_dependency", `Reassignments of module-level declarations will not cause reactive statements to update\nhttps://svelte.dev/e/reactive_declaration_module_script_dependency`); w(node, 'reactive_declaration_module_script_dependency', `Reassignments of module-level declarations will not cause reactive statements to update\nhttps://svelte.dev/e/reactive_declaration_module_script_dependency`);
} }
/** /**
@ -645,7 +645,7 @@ export function reactive_declaration_module_script_dependency(node) {
* @param {null | NodeLike} node * @param {null | NodeLike} node
*/ */
export function state_referenced_locally(node) { export function state_referenced_locally(node) {
w(node, "state_referenced_locally", `State referenced in its own scope will never update. Did you mean to reference it inside a closure?\nhttps://svelte.dev/e/state_referenced_locally`); w(node, 'state_referenced_locally', `State referenced in its own scope will never update. Did you mean to reference it inside a closure?\nhttps://svelte.dev/e/state_referenced_locally`);
} }
/** /**
@ -654,7 +654,7 @@ export function state_referenced_locally(node) {
* @param {string} name * @param {string} name
*/ */
export function store_rune_conflict(node, name) { export function store_rune_conflict(node, name) {
w(node, "store_rune_conflict", `It looks like you're using the \`$${name}\` rune, but there is a local binding called \`${name}\`. Referencing a local variable with a \`$\` prefix will create a store subscription. Please rename \`${name}\` to avoid the ambiguity\nhttps://svelte.dev/e/store_rune_conflict`); w(node, 'store_rune_conflict', `It looks like you're using the \`$${name}\` rune, but there is a local binding called \`${name}\`. Referencing a local variable with a \`$\` prefix will create a store subscription. Please rename \`${name}\` to avoid the ambiguity\nhttps://svelte.dev/e/store_rune_conflict`);
} }
/** /**
@ -663,7 +663,7 @@ export function store_rune_conflict(node, name) {
* @param {string} name * @param {string} name
*/ */
export function css_unused_selector(node, name) { export function css_unused_selector(node, name) {
w(node, "css_unused_selector", `Unused CSS selector "${name}"\nhttps://svelte.dev/e/css_unused_selector`); w(node, 'css_unused_selector', `Unused CSS selector "${name}"\nhttps://svelte.dev/e/css_unused_selector`);
} }
/** /**
@ -671,7 +671,7 @@ export function css_unused_selector(node, name) {
* @param {null | NodeLike} node * @param {null | NodeLike} node
*/ */
export function attribute_avoid_is(node) { export function attribute_avoid_is(node) {
w(node, "attribute_avoid_is", `The "is" attribute is not supported cross-browser and should be avoided\nhttps://svelte.dev/e/attribute_avoid_is`); w(node, 'attribute_avoid_is', `The "is" attribute is not supported cross-browser and should be avoided\nhttps://svelte.dev/e/attribute_avoid_is`);
} }
/** /**
@ -680,7 +680,7 @@ export function attribute_avoid_is(node) {
* @param {string} name * @param {string} name
*/ */
export function attribute_global_event_reference(node, name) { export function attribute_global_event_reference(node, name) {
w(node, "attribute_global_event_reference", `You are referencing \`globalThis.${name}\`. Did you forget to declare a variable with that name?\nhttps://svelte.dev/e/attribute_global_event_reference`); w(node, 'attribute_global_event_reference', `You are referencing \`globalThis.${name}\`. Did you forget to declare a variable with that name?\nhttps://svelte.dev/e/attribute_global_event_reference`);
} }
/** /**
@ -688,7 +688,7 @@ export function attribute_global_event_reference(node, name) {
* @param {null | NodeLike} node * @param {null | NodeLike} node
*/ */
export function attribute_illegal_colon(node) { export function attribute_illegal_colon(node) {
w(node, "attribute_illegal_colon", `Attributes should not contain ':' characters to prevent ambiguity with Svelte directives\nhttps://svelte.dev/e/attribute_illegal_colon`); w(node, 'attribute_illegal_colon', `Attributes should not contain ':' characters to prevent ambiguity with Svelte directives\nhttps://svelte.dev/e/attribute_illegal_colon`);
} }
/** /**
@ -698,7 +698,7 @@ export function attribute_illegal_colon(node) {
* @param {string} right * @param {string} right
*/ */
export function attribute_invalid_property_name(node, wrong, right) { export function attribute_invalid_property_name(node, wrong, right) {
w(node, "attribute_invalid_property_name", `'${wrong}' is not a valid HTML attribute. Did you mean '${right}'?\nhttps://svelte.dev/e/attribute_invalid_property_name`); w(node, 'attribute_invalid_property_name', `'${wrong}' is not a valid HTML attribute. Did you mean '${right}'?\nhttps://svelte.dev/e/attribute_invalid_property_name`);
} }
/** /**
@ -706,7 +706,7 @@ export function attribute_invalid_property_name(node, wrong, right) {
* @param {null | NodeLike} node * @param {null | NodeLike} node
*/ */
export function attribute_quoted(node) { export function attribute_quoted(node) {
w(node, "attribute_quoted", `Quoted attributes on components and custom elements will be stringified in a future version of Svelte. If this isn't what you want, remove the quotes\nhttps://svelte.dev/e/attribute_quoted`); w(node, 'attribute_quoted', `Quoted attributes on components and custom elements will be stringified in a future version of Svelte. If this isn't what you want, remove the quotes\nhttps://svelte.dev/e/attribute_quoted`);
} }
/** /**
@ -715,7 +715,7 @@ export function attribute_quoted(node) {
* @param {string} name * @param {string} name
*/ */
export function bind_invalid_each_rest(node, name) { export function bind_invalid_each_rest(node, name) {
w(node, "bind_invalid_each_rest", `The rest operator (...) will create a new object and binding '${name}' with the original object will not work\nhttps://svelte.dev/e/bind_invalid_each_rest`); w(node, 'bind_invalid_each_rest', `The rest operator (...) will create a new object and binding '${name}' with the original object will not work\nhttps://svelte.dev/e/bind_invalid_each_rest`);
} }
/** /**
@ -723,7 +723,7 @@ export function bind_invalid_each_rest(node, name) {
* @param {null | NodeLike} node * @param {null | NodeLike} node
*/ */
export function block_empty(node) { export function block_empty(node) {
w(node, "block_empty", `Empty block\nhttps://svelte.dev/e/block_empty`); w(node, 'block_empty', `Empty block\nhttps://svelte.dev/e/block_empty`);
} }
/** /**
@ -732,7 +732,7 @@ export function block_empty(node) {
* @param {string} name * @param {string} name
*/ */
export function component_name_lowercase(node, name) { export function component_name_lowercase(node, name) {
w(node, "component_name_lowercase", `\`<${name}>\` will be treated as an HTML element unless it begins with a capital letter\nhttps://svelte.dev/e/component_name_lowercase`); w(node, 'component_name_lowercase', `\`<${name}>\` will be treated as an HTML element unless it begins with a capital letter\nhttps://svelte.dev/e/component_name_lowercase`);
} }
/** /**
@ -741,7 +741,7 @@ export function component_name_lowercase(node, name) {
* @param {string} name * @param {string} name
*/ */
export function element_invalid_self_closing_tag(node, name) { export function element_invalid_self_closing_tag(node, name) {
w(node, "element_invalid_self_closing_tag", `Self-closing HTML tags for non-void elements are ambiguous — use \`<${name} ...></${name}>\` rather than \`<${name} ... />\`\nhttps://svelte.dev/e/element_invalid_self_closing_tag`); w(node, 'element_invalid_self_closing_tag', `Self-closing HTML tags for non-void elements are ambiguous — use \`<${name} ...></${name}>\` rather than \`<${name} ... />\`\nhttps://svelte.dev/e/element_invalid_self_closing_tag`);
} }
/** /**
@ -750,7 +750,7 @@ export function element_invalid_self_closing_tag(node, name) {
* @param {string} name * @param {string} name
*/ */
export function event_directive_deprecated(node, name) { export function event_directive_deprecated(node, name) {
w(node, "event_directive_deprecated", `Using \`on:${name}\` to listen to the ${name} event is deprecated. Use the event attribute \`on${name}\` instead\nhttps://svelte.dev/e/event_directive_deprecated`); w(node, 'event_directive_deprecated', `Using \`on:${name}\` to listen to the ${name} event is deprecated. Use the event attribute \`on${name}\` instead\nhttps://svelte.dev/e/event_directive_deprecated`);
} }
/** /**
@ -759,7 +759,7 @@ export function event_directive_deprecated(node, name) {
* @param {string} message * @param {string} message
*/ */
export function node_invalid_placement_ssr(node, message) { export function node_invalid_placement_ssr(node, message) {
w(node, "node_invalid_placement_ssr", `${message}. When rendering this component on the server, the resulting HTML will be modified by the browser (by moving, removing, or inserting elements), likely resulting in a \`hydration_mismatch\` warning\nhttps://svelte.dev/e/node_invalid_placement_ssr`); w(node, 'node_invalid_placement_ssr', `${message}. When rendering this component on the server, the resulting HTML will be modified by the browser (by moving, removing, or inserting elements), likely resulting in a \`hydration_mismatch\` warning\nhttps://svelte.dev/e/node_invalid_placement_ssr`);
} }
/** /**
@ -767,7 +767,7 @@ export function node_invalid_placement_ssr(node, message) {
* @param {null | NodeLike} node * @param {null | NodeLike} node
*/ */
export function script_context_deprecated(node) { export function script_context_deprecated(node) {
w(node, "script_context_deprecated", `\`context="module"\` is deprecated, use the \`module\` attribute instead\nhttps://svelte.dev/e/script_context_deprecated`); w(node, 'script_context_deprecated', `\`context="module"\` is deprecated, use the \`module\` attribute instead\nhttps://svelte.dev/e/script_context_deprecated`);
} }
/** /**
@ -775,7 +775,7 @@ export function script_context_deprecated(node) {
* @param {null | NodeLike} node * @param {null | NodeLike} node
*/ */
export function script_unknown_attribute(node) { export function script_unknown_attribute(node) {
w(node, "script_unknown_attribute", `Unrecognized attribute — should be one of \`generics\`, \`lang\` or \`module\`. If this exists for a preprocessor, ensure that the preprocessor removes it\nhttps://svelte.dev/e/script_unknown_attribute`); w(node, 'script_unknown_attribute', `Unrecognized attribute — should be one of \`generics\`, \`lang\` or \`module\`. If this exists for a preprocessor, ensure that the preprocessor removes it\nhttps://svelte.dev/e/script_unknown_attribute`);
} }
/** /**
@ -783,7 +783,7 @@ export function script_unknown_attribute(node) {
* @param {null | NodeLike} node * @param {null | NodeLike} node
*/ */
export function slot_element_deprecated(node) { export function slot_element_deprecated(node) {
w(node, "slot_element_deprecated", `Using \`<slot>\` to render parent content is deprecated. Use \`{@render ...}\` tags instead\nhttps://svelte.dev/e/slot_element_deprecated`); w(node, 'slot_element_deprecated', `Using \`<slot>\` to render parent content is deprecated. Use \`{@render ...}\` tags instead\nhttps://svelte.dev/e/slot_element_deprecated`);
} }
/** /**
@ -791,7 +791,7 @@ export function slot_element_deprecated(node) {
* @param {null | NodeLike} node * @param {null | NodeLike} node
*/ */
export function svelte_component_deprecated(node) { export function svelte_component_deprecated(node) {
w(node, "svelte_component_deprecated", `\`<svelte:component>\` is deprecated in runes mode — components are dynamic by default\nhttps://svelte.dev/e/svelte_component_deprecated`); w(node, 'svelte_component_deprecated', `\`<svelte:component>\` is deprecated in runes mode — components are dynamic by default\nhttps://svelte.dev/e/svelte_component_deprecated`);
} }
/** /**
@ -799,7 +799,7 @@ export function svelte_component_deprecated(node) {
* @param {null | NodeLike} node * @param {null | NodeLike} node
*/ */
export function svelte_element_invalid_this(node) { export function svelte_element_invalid_this(node) {
w(node, "svelte_element_invalid_this", `\`this\` should be an \`{expression}\`. Using a string attribute value will cause an error in future versions of Svelte\nhttps://svelte.dev/e/svelte_element_invalid_this`); w(node, 'svelte_element_invalid_this', `\`this\` should be an \`{expression}\`. Using a string attribute value will cause an error in future versions of Svelte\nhttps://svelte.dev/e/svelte_element_invalid_this`);
} }
/** /**
@ -809,5 +809,5 @@ export function svelte_element_invalid_this(node) {
* @param {string} basename * @param {string} basename
*/ */
export function svelte_self_deprecated(node, name, basename) { export function svelte_self_deprecated(node, name, basename) {
w(node, "svelte_self_deprecated", `\`<svelte:self>\` is deprecated — use self-imports (e.g. \`import ${name} from './${basename}'\`) instead\nhttps://svelte.dev/e/svelte_self_deprecated`); w(node, 'svelte_self_deprecated', `\`<svelte:self>\` is deprecated — use self-imports (e.g. \`import ${name} from './${basename}'\`) instead\nhttps://svelte.dev/e/svelte_self_deprecated`);
} }

@ -76,7 +76,7 @@ export function hydration_attribute_changed(attribute, html, value) {
*/ */
export function hydration_html_changed(location) { export function hydration_html_changed(location) {
if (DEV) { if (DEV) {
console.warn(`%c[svelte] hydration_html_changed\n%c${location ? `The value of an \`{@html ...}\` block ${location} changed between server and client renders. The client value will be ignored in favour of the server value` : "The value of an `{@html ...}` block changed between server and client renders. The client value will be ignored in favour of the server value"}\nhttps://svelte.dev/e/hydration_html_changed`, bold, normal); console.warn(`%c[svelte] hydration_html_changed\n%c${location ? `The value of an \`{@html ...}\` block ${location} changed between server and client renders. The client value will be ignored in favour of the server value` : 'The value of an `{@html ...}` block changed between server and client renders. The client value will be ignored in favour of the server value'}\nhttps://svelte.dev/e/hydration_html_changed`, bold, normal);
} else { } else {
console.warn(`https://svelte.dev/e/hydration_html_changed`); console.warn(`https://svelte.dev/e/hydration_html_changed`);
} }
@ -88,7 +88,7 @@ export function hydration_html_changed(location) {
*/ */
export function hydration_mismatch(location) { export function hydration_mismatch(location) {
if (DEV) { if (DEV) {
console.warn(`%c[svelte] hydration_mismatch\n%c${location ? `Hydration failed because the initial UI does not match what was rendered on the server. The error occurred near ${location}` : "Hydration failed because the initial UI does not match what was rendered on the server"}\nhttps://svelte.dev/e/hydration_mismatch`, bold, normal); console.warn(`%c[svelte] hydration_mismatch\n%c${location ? `Hydration failed because the initial UI does not match what was rendered on the server. The error occurred near ${location}` : 'Hydration failed because the initial UI does not match what was rendered on the server'}\nhttps://svelte.dev/e/hydration_mismatch`, bold, normal);
} else { } else {
console.warn(`https://svelte.dev/e/hydration_mismatch`); console.warn(`https://svelte.dev/e/hydration_mismatch`);
} }
@ -149,7 +149,7 @@ export function ownership_invalid_binding(parent, child, owner) {
*/ */
export function ownership_invalid_mutation(component, owner) { export function ownership_invalid_mutation(component, owner) {
if (DEV) { if (DEV) {
console.warn(`%c[svelte] ownership_invalid_mutation\n%c${component ? `${component} mutated a value owned by ${owner}. This is strongly discouraged. Consider passing values to child components with \`bind:\`, or use a callback instead` : "Mutating a value outside the component that created it is strongly discouraged. Consider passing values to child components with `bind:`, or use a callback instead"}\nhttps://svelte.dev/e/ownership_invalid_mutation`, bold, normal); console.warn(`%c[svelte] ownership_invalid_mutation\n%c${component ? `${component} mutated a value owned by ${owner}. This is strongly discouraged. Consider passing values to child components with \`bind:\`, or use a callback instead` : 'Mutating a value outside the component that created it is strongly discouraged. Consider passing values to child components with `bind:`, or use a callback instead'}\nhttps://svelte.dev/e/ownership_invalid_mutation`, bold, normal);
} else { } else {
console.warn(`https://svelte.dev/e/ownership_invalid_mutation`); console.warn(`https://svelte.dev/e/ownership_invalid_mutation`);
} }

@ -29,7 +29,7 @@ export function state_snapshot_uncloneable(properties) {
? `The following properties cannot be cloned with \`$state.snapshot\` — the return value contains the originals: ? `The following properties cannot be cloned with \`$state.snapshot\` — the return value contains the originals:
${properties}` ${properties}`
: "Value cannot be cloned with `$state.snapshot` — the original value was returned"}\nhttps://svelte.dev/e/state_snapshot_uncloneable`, bold, normal); : 'Value cannot be cloned with `$state.snapshot` — the original value was returned'}\nhttps://svelte.dev/e/state_snapshot_uncloneable`, bold, normal);
} else { } else {
console.warn(`https://svelte.dev/e/state_snapshot_uncloneable`); console.warn(`https://svelte.dev/e/state_snapshot_uncloneable`);
} }

@ -1,5 +1,5 @@
import "svelte/internal/disclose-version"; import 'svelte/internal/disclose-version';
import * as $ from "svelte/internal/client"; import * as $ from 'svelte/internal/client';
function increment(_, counter) { function increment(_, counter) {
counter.count += 1; counter.count += 1;
@ -26,11 +26,11 @@ export default function Await_block_scope($$anchor) {
var text_1 = $.sibling(node); var text_1 = $.sibling(node);
$.template_effect(() => { $.template_effect(() => {
$.set_text(text, `clicks: ${counter.count ?? ""}`); $.set_text(text, `clicks: ${counter.count ?? ''}`);
$.set_text(text_1, ` ${counter.count ?? ""}`); $.set_text(text_1, ` ${counter.count ?? ''}`);
}); });
$.append($$anchor, fragment); $.append($$anchor, fragment);
} }
$.delegate(["click"]); $.delegate(['click']);

@ -1,4 +1,4 @@
import * as $ from "svelte/internal/server"; import * as $ from 'svelte/internal/server';
export default function Await_block_scope($$payload) { export default function Await_block_scope($$payload) {
let counter = { count: 0 }; let counter = { count: 0 };

@ -1,11 +1,11 @@
import "svelte/internal/disclose-version"; import 'svelte/internal/disclose-version';
import * as $ from "svelte/internal/client"; import * as $ from 'svelte/internal/client';
import TextInput from './Child.svelte'; import TextInput from './Child.svelte';
const snippet = ($$anchor) => { const snippet = ($$anchor) => {
$.next(); $.next();
var text = $.text("Something"); var text = $.text('Something');
$.append($$anchor, text); $.append($$anchor, text);
}; };
@ -29,6 +29,6 @@ export default function Bind_component_snippet($$anchor) {
var text_1 = $.sibling(node); var text_1 = $.sibling(node);
$.template_effect(() => $.set_text(text_1, ` value: ${$.get(value) ?? ""}`)); $.template_effect(() => $.set_text(text_1, ` value: ${$.get(value) ?? ''}`));
$.append($$anchor, fragment); $.append($$anchor, fragment);
} }

@ -1,4 +1,4 @@
import * as $ from "svelte/internal/server"; import * as $ from 'svelte/internal/server';
import TextInput from './Child.svelte'; import TextInput from './Child.svelte';
function snippet($$payload) { function snippet($$payload) {

@ -1,6 +1,6 @@
import "svelte/internal/disclose-version"; import 'svelte/internal/disclose-version';
import "svelte/internal/flags/legacy"; import 'svelte/internal/flags/legacy';
import * as $ from "svelte/internal/client"; import * as $ from 'svelte/internal/client';
export default function Bind_this($$anchor) { export default function Bind_this($$anchor) {
$.bind_this(Foo($$anchor, { $$legacy: true }), ($$value) => foo = $$value, () => foo); $.bind_this(Foo($$anchor, { $$legacy: true }), ($$value) => foo = $$value, () => foo);

@ -1,4 +1,4 @@
import * as $ from "svelte/internal/server"; import * as $ from 'svelte/internal/server';
export default function Bind_this($$payload) { export default function Bind_this($$payload) {
Foo($$payload, {}); Foo($$payload, {});

@ -1,5 +1,5 @@
import "svelte/internal/disclose-version"; import 'svelte/internal/disclose-version';
import * as $ from "svelte/internal/client"; import * as $ from 'svelte/internal/client';
export default function Class_state_field_constructor_assignment($$anchor, $$props) { export default function Class_state_field_constructor_assignment($$anchor, $$props) {
$.push($$props, true); $.push($$props, true);

@ -1,4 +1,4 @@
import * as $ from "svelte/internal/server"; import * as $ from 'svelte/internal/server';
export default function Class_state_field_constructor_assignment($$payload, $$props) { export default function Class_state_field_constructor_assignment($$payload, $$props) {
$.push(); $.push();

@ -1,5 +1,5 @@
/* index.svelte.js generated by Svelte VERSION */ /* index.svelte.js generated by Svelte VERSION */
import * as $ from "svelte/internal/client"; import * as $ from 'svelte/internal/client';
let a = $.state(1); let a = $.state(1);
let b = $.state(2); let b = $.state(2);

@ -1,5 +1,5 @@
/* index.svelte.js generated by Svelte VERSION */ /* index.svelte.js generated by Svelte VERSION */
import * as $ from "svelte/internal/server"; import * as $ from 'svelte/internal/server';
let a = 1; let a = 1;
let b = 2; let b = 2;

@ -1,5 +1,5 @@
import "svelte/internal/disclose-version"; import 'svelte/internal/disclose-version';
import * as $ from "svelte/internal/client"; import * as $ from 'svelte/internal/client';
var root = $.template(`<div></div> <svg></svg> <custom-element></custom-element> <div></div> <svg></svg> <custom-element></custom-element>`, 3); var root = $.template(`<div></div> <svg></svg> <custom-element></custom-element> <div></div> <svg></svg> <custom-element></custom-element>`, 3);
@ -13,20 +13,20 @@ export default function Main($$anchor) {
var custom_element = $.sibling(svg, 2); var custom_element = $.sibling(svg, 2);
var div_1 = $.sibling(custom_element, 2); var div_1 = $.sibling(custom_element, 2);
$.template_effect(() => $.set_attribute(div_1, "foobar", y())); $.template_effect(() => $.set_attribute(div_1, 'foobar', y()));
var svg_1 = $.sibling(div_1, 2); var svg_1 = $.sibling(div_1, 2);
$.template_effect(() => $.set_attribute(svg_1, "viewBox", y())); $.template_effect(() => $.set_attribute(svg_1, 'viewBox', y()));
var custom_element_1 = $.sibling(svg_1, 2); var custom_element_1 = $.sibling(svg_1, 2);
$.template_effect(() => $.set_custom_element_data(custom_element_1, "fooBar", y())); $.template_effect(() => $.set_custom_element_data(custom_element_1, 'fooBar', y()));
$.template_effect(() => { $.template_effect(() => {
$.set_attribute(div, "foobar", x); $.set_attribute(div, 'foobar', x);
$.set_attribute(svg, "viewBox", x); $.set_attribute(svg, 'viewBox', x);
$.set_custom_element_data(custom_element, "fooBar", x); $.set_custom_element_data(custom_element, 'fooBar', x);
}); });
$.append($$anchor, fragment); $.append($$anchor, fragment);

@ -1,9 +1,9 @@
import * as $ from "svelte/internal/server"; import * as $ from 'svelte/internal/server';
export default function Main($$payload) { export default function Main($$payload) {
// needs to be a snapshot test because jsdom does auto-correct the attribute casing // needs to be a snapshot test because jsdom does auto-correct the attribute casing
let x = 'test'; let x = 'test';
let y = () => 'test'; let y = () => 'test';
$$payload.out += `<div${$.attr("foobar", x)}></div> <svg${$.attr("viewBox", x)}></svg> <custom-element${$.attr("foobar", x)}></custom-element> <div${$.attr("foobar", y())}></div> <svg${$.attr("viewBox", y())}></svg> <custom-element${$.attr("foobar", y())}></custom-element>`; $$payload.out += `<div${$.attr('foobar', x)}></div> <svg${$.attr('viewBox', x)}></svg> <custom-element${$.attr('foobar', x)}></custom-element> <div${$.attr('foobar', y())}></div> <svg${$.attr('viewBox', y())}></svg> <custom-element${$.attr('foobar', y())}></custom-element>`;
} }

@ -1,6 +1,6 @@
import "svelte/internal/disclose-version"; import 'svelte/internal/disclose-version';
import "svelte/internal/flags/legacy"; import 'svelte/internal/flags/legacy';
import * as $ from "svelte/internal/client"; import * as $ from 'svelte/internal/client';
export default function Each_string_template($$anchor) { export default function Each_string_template($$anchor) {
var fragment = $.comment(); var fragment = $.comment();
@ -11,7 +11,7 @@ export default function Each_string_template($$anchor) {
var text = $.text(); var text = $.text();
$.template_effect(() => $.set_text(text, `${thing ?? ""}, `)); $.template_effect(() => $.set_text(text, `${thing ?? ''}, `));
$.append($$anchor, text); $.append($$anchor, text);
}); });

@ -1,4 +1,4 @@
import * as $ from "svelte/internal/server"; import * as $ from 'svelte/internal/server';
export default function Each_string_template($$payload) { export default function Each_string_template($$payload) {
const each_array = $.ensure_array_like(['foo', 'bar', 'baz']); const each_array = $.ensure_array_like(['foo', 'bar', 'baz']);

@ -1,4 +1,4 @@
/* index.svelte.js generated by Svelte VERSION */ /* index.svelte.js generated by Svelte VERSION */
import * as $ from "svelte/internal/client"; import * as $ from 'svelte/internal/client';
export const object = $.proxy({ ok: true }); export const object = $.proxy({ ok: true });

@ -1,4 +1,4 @@
/* index.svelte.js generated by Svelte VERSION */ /* index.svelte.js generated by Svelte VERSION */
import * as $ from "svelte/internal/server"; import * as $ from 'svelte/internal/server';
export const object = { ok: true }; export const object = { ok: true };

@ -1,5 +1,5 @@
import "svelte/internal/disclose-version"; import 'svelte/internal/disclose-version';
import * as $ from "svelte/internal/client"; import * as $ from 'svelte/internal/client';
export default function Function_prop_no_getter($$anchor) { export default function Function_prop_no_getter($$anchor) {
let count = $.state(0); let count = $.state(0);
@ -19,7 +19,7 @@ export default function Function_prop_no_getter($$anchor) {
var text = $.text(); var text = $.text();
$.template_effect(() => $.set_text(text, `clicks: ${$.get(count) ?? ""}`)); $.template_effect(() => $.set_text(text, `clicks: ${$.get(count) ?? ''}`));
$.append($$anchor, text); $.append($$anchor, text);
}, },
$$slots: { default: true } $$slots: { default: true }

@ -1,4 +1,4 @@
import * as $ from "svelte/internal/server"; import * as $ from 'svelte/internal/server';
export default function Function_prop_no_getter($$payload) { export default function Function_prop_no_getter($$payload) {
let count = 0; let count = 0;

@ -1,6 +1,6 @@
import "svelte/internal/disclose-version"; import 'svelte/internal/disclose-version';
import "svelte/internal/flags/legacy"; import 'svelte/internal/flags/legacy';
import * as $ from "svelte/internal/client"; import * as $ from 'svelte/internal/client';
var root = $.template(`<h1>hello world</h1>`); var root = $.template(`<h1>hello world</h1>`);

@ -1,4 +1,4 @@
import * as $ from "svelte/internal/server"; import * as $ from 'svelte/internal/server';
export default function Hello_world($$payload) { export default function Hello_world($$payload) {
$$payload.out += `<h1>hello world</h1>`; $$payload.out += `<h1>hello world</h1>`;

@ -1,6 +1,6 @@
import "svelte/internal/disclose-version"; import 'svelte/internal/disclose-version';
import "svelte/internal/flags/legacy"; import 'svelte/internal/flags/legacy';
import * as $ from "svelte/internal/client"; import * as $ from 'svelte/internal/client';
var root = $.template(`<h1>hello world</h1>`); var root = $.template(`<h1>hello world</h1>`);

@ -1,4 +1,4 @@
import * as $ from "svelte/internal/server"; import * as $ from 'svelte/internal/server';
export default function Hmr($$payload) { export default function Hmr($$payload) {
$$payload.out += `<h1>hello world</h1>`; $$payload.out += `<h1>hello world</h1>`;

@ -1,6 +1,6 @@
import "svelte/internal/disclose-version"; import 'svelte/internal/disclose-version';
import "svelte/internal/flags/legacy"; import 'svelte/internal/flags/legacy';
import * as $ from "svelte/internal/client"; import * as $ from 'svelte/internal/client';
import { random } from './module.svelte'; import { random } from './module.svelte';
export default function Imports_in_modules($$anchor) { export default function Imports_in_modules($$anchor) {

@ -1,5 +1,5 @@
/* module.svelte.js generated by Svelte VERSION */ /* module.svelte.js generated by Svelte VERSION */
import * as $ from "svelte/internal/client"; import * as $ from 'svelte/internal/client';
import { random } from './export'; import { random } from './export';
export { random }; export { random };

@ -1,4 +1,4 @@
import * as $ from "svelte/internal/server"; import * as $ from 'svelte/internal/server';
import { random } from './module.svelte'; import { random } from './module.svelte';
export default function Imports_in_modules($$payload) { export default function Imports_in_modules($$payload) {

@ -1,5 +1,5 @@
/* module.svelte.js generated by Svelte VERSION */ /* module.svelte.js generated by Svelte VERSION */
import * as $ from "svelte/internal/server"; import * as $ from 'svelte/internal/server';
import { random } from './export'; import { random } from './export';
export { random }; export { random };

@ -1,10 +1,10 @@
import "svelte/internal/disclose-version"; import 'svelte/internal/disclose-version';
import * as $ from "svelte/internal/client"; import * as $ from 'svelte/internal/client';
export default function Props_identifier($$anchor, $$props) { export default function Props_identifier($$anchor, $$props) {
$.push($$props, true); $.push($$props, true);
let props = $.rest_props($$props, ["$$slots", "$$events", "$$legacy"]); let props = $.rest_props($$props, ['$$slots', '$$events', '$$legacy']);
$$props.a; $$props.a;
props[a]; props[a];

@ -1,4 +1,4 @@
import * as $ from "svelte/internal/server"; import * as $ from 'svelte/internal/server';
export default function Props_identifier($$payload, $$props) { export default function Props_identifier($$payload, $$props) {
$.push(); $.push();

@ -1,6 +1,6 @@
import "svelte/internal/disclose-version"; import 'svelte/internal/disclose-version';
import "svelte/internal/flags/legacy"; import 'svelte/internal/flags/legacy';
import * as $ from "svelte/internal/client"; import * as $ from 'svelte/internal/client';
var root = $.template(`<p></p> <p></p> <!>`, 1); var root = $.template(`<p></p> <p></p> <!>`, 1);

@ -1,4 +1,4 @@
import * as $ from "svelte/internal/server"; import * as $ from 'svelte/internal/server';
export default function Purity($$payload) { export default function Purity($$payload) {
$$payload.out += `<p>${$.escape(Math.max(0, Math.min(0, 100)))}</p> <p>${$.escape(location.href)}</p> `; $$payload.out += `<p>${$.escape(Math.max(0, Math.min(0, 100)))}</p> <p>${$.escape(location.href)}</p> `;

@ -1,5 +1,5 @@
import "svelte/internal/disclose-version"; import 'svelte/internal/disclose-version';
import * as $ from "svelte/internal/client"; import * as $ from 'svelte/internal/client';
var root = $.template(`<header><nav><a href="/">Home</a> <a href="/away">Away</a></nav></header> <main><h1> </h1> <div class="static"><p>we don't need to traverse these nodes</p></div> <p>or</p> <p>these</p> <p>ones</p> <!> <p>these</p> <p>trailing</p> <p>nodes</p> <p>can</p> <p>be</p> <p>completely</p> <p>ignored</p></main> <cant-skip><custom-elements></custom-elements></cant-skip> <div><input></div> <div><source></div> <select><option>a</option></select> <img src="..." alt="" loading="lazy"> <div><img src="..." alt="" loading="lazy"></div>`, 3); var root = $.template(`<header><nav><a href="/">Home</a> <a href="/away">Away</a></nav></header> <main><h1> </h1> <div class="static"><p>we don't need to traverse these nodes</p></div> <p>or</p> <p>these</p> <p>ones</p> <!> <p>these</p> <p>trailing</p> <p>nodes</p> <p>can</p> <p>be</p> <p>completely</p> <p>ignored</p></main> <cant-skip><custom-elements></custom-elements></cant-skip> <div><input></div> <div><source></div> <select><option>a</option></select> <img src="..." alt="" loading="lazy"> <div><img src="..." alt="" loading="lazy"></div>`, 3);
@ -20,7 +20,7 @@ export default function Skip_static_subtree($$anchor, $$props) {
var cant_skip = $.sibling(main, 2); var cant_skip = $.sibling(main, 2);
var custom_elements = $.child(cant_skip); var custom_elements = $.child(cant_skip);
$.set_custom_element_data(custom_elements, "with", "attributes"); $.set_custom_element_data(custom_elements, 'with', 'attributes');
$.reset(cant_skip); $.reset(cant_skip);
var div = $.sibling(cant_skip, 2); var div = $.sibling(cant_skip, 2);
@ -38,7 +38,7 @@ export default function Skip_static_subtree($$anchor, $$props) {
var select = $.sibling(div_1, 2); var select = $.sibling(div_1, 2);
var option = $.child(select); var option = $.child(select);
option.value = null == (option.__value = "a") ? "" : "a"; option.value = null == (option.__value = 'a') ? '' : 'a';
$.reset(select); $.reset(select);
var img = $.sibling(select, 2); var img = $.sibling(select, 2);

@ -1,4 +1,4 @@
import * as $ from "svelte/internal/server"; import * as $ from 'svelte/internal/server';
export default function Skip_static_subtree($$payload, $$props) { export default function Skip_static_subtree($$payload, $$props) {
let { title, content } = $$props; let { title, content } = $$props;

@ -1,5 +1,5 @@
import "svelte/internal/disclose-version"; import 'svelte/internal/disclose-version';
import * as $ from "svelte/internal/client"; import * as $ from 'svelte/internal/client';
function reset(_, str, tpl) { function reset(_, str, tpl) {
$.set(str, ''); $.set(str, '');
@ -30,4 +30,4 @@ export default function State_proxy_literal($$anchor) {
$.append($$anchor, fragment); $.append($$anchor, fragment);
} }
$.delegate(["click"]); $.delegate(['click']);

@ -1,4 +1,4 @@
import * as $ from "svelte/internal/server"; import * as $ from 'svelte/internal/server';
export default function State_proxy_literal($$payload) { export default function State_proxy_literal($$payload) {
let str = ''; let str = '';
@ -11,5 +11,5 @@ export default function State_proxy_literal($$payload) {
tpl = ``; tpl = ``;
} }
$$payload.out += `<input${$.attr("value", str)}> <input${$.attr("value", tpl)}> <button>reset</button>`; $$payload.out += `<input${$.attr('value', str)}> <input${$.attr('value', tpl)}> <button>reset</button>`;
} }

@ -1,8 +1,8 @@
import "svelte/internal/disclose-version"; import 'svelte/internal/disclose-version';
import * as $ from "svelte/internal/client"; import * as $ from 'svelte/internal/client';
export default function Svelte_element($$anchor, $$props) { export default function Svelte_element($$anchor, $$props) {
let tag = $.prop($$props, "tag", 3, 'hr'); let tag = $.prop($$props, 'tag', 3, 'hr');
var fragment = $.comment(); var fragment = $.comment();
var node = $.first_child(fragment); var node = $.first_child(fragment);

@ -1,4 +1,4 @@
import * as $ from "svelte/internal/server"; import * as $ from 'svelte/internal/server';
export default function Svelte_element($$payload, $$props) { export default function Svelte_element($$payload, $$props) {
let { tag = 'hr' } = $$props; let { tag = 'hr' } = $$props;

@ -1,5 +1,5 @@
import "svelte/internal/disclose-version"; import 'svelte/internal/disclose-version';
import * as $ from "svelte/internal/client"; import * as $ from 'svelte/internal/client';
var root = $.template(`<p> </p>`); var root = $.template(`<p> </p>`);
@ -16,8 +16,8 @@ export default function Text_nodes_deriveds($$anchor) {
} }
var p = root(); var p = root();
const stringified_text = $.derived(() => text1() ?? ""); const stringified_text = $.derived(() => text1() ?? '');
const stringified_text_1 = $.derived(() => text2() ?? ""); const stringified_text_1 = $.derived(() => text2() ?? '');
var text = $.child(p); var text = $.child(p);
$.template_effect(() => $.set_text(text, `${$.get(stringified_text)}${$.get(stringified_text_1)}`)); $.template_effect(() => $.set_text(text, `${$.get(stringified_text)}${$.get(stringified_text_1)}`));

@ -1,4 +1,4 @@
import * as $ from "svelte/internal/server"; import * as $ from 'svelte/internal/server';
export default function Text_nodes_deriveds($$payload) { export default function Text_nodes_deriveds($$payload) {
let count1 = 0; let count1 = 0;

@ -30,7 +30,7 @@ export default test({
async test({ assert, code_client }) { async test({ assert, code_client }) {
// Check that the css source map embedded in the js is accurate // Check that the css source map embedded in the js is accurate
const match = code_client.match( const match = code_client.match(
/code: "(.*?)(?:\\n\/\*# sourceMappingURL=data:(.*?);charset=(.*?);base64,(.*?) \*\/)?"/ /code: '(.*?)(?:\\n\/\*# sourceMappingURL=data:(.*?);charset=(.*?);base64,(.*?) \*\/)?'/
); );
assert.ok(match); assert.ok(match);

@ -87,8 +87,8 @@ importers:
specifier: ^1.2.1 specifier: ^1.2.1
version: 1.2.1 version: 1.2.1
esrap: esrap:
specifier: ^1.3.2 specifier: ^1.4.2
version: 1.3.2 version: 1.4.2
is-reference: is-reference:
specifier: ^3.0.3 specifier: ^3.0.3
version: 3.0.3 version: 3.0.3
@ -1118,8 +1118,8 @@ packages:
resolution: {integrity: sha512-YQLXUplAwJgCydQ78IMJywZCceoqk1oH01OERdSAJc/7U2AylwjhSCLDEtqwg811idIS/9fIU5GjG73IgjKMVg==} resolution: {integrity: sha512-YQLXUplAwJgCydQ78IMJywZCceoqk1oH01OERdSAJc/7U2AylwjhSCLDEtqwg811idIS/9fIU5GjG73IgjKMVg==}
engines: {node: '>=0.10'} engines: {node: '>=0.10'}
esrap@1.3.2: esrap@1.4.2:
resolution: {integrity: sha512-C4PXusxYhFT98GjLSmb20k9PREuUdporer50dhzGuJu9IJXktbMddVCMLAERl5dAHyAi73GWWCE4FVHGP1794g==} resolution: {integrity: sha512-FhVlJzvTw7ZLxYZ7RyHwQCFE64dkkpzGNNnphaGCLwjqGk1SQcqzbgdx9FowPCktx6NOSHkzvcZ3vsvdH54YXA==}
esrecurse@4.3.0: esrecurse@4.3.0:
resolution: {integrity: sha512-KmfKL3b6G+RXvP8N1vr3Tq1kL/oCFgn2NYXEtqP8/L3pKapUA4G8cFVaoF3SU323CD4XypR/ffioHmkti6/Tag==} resolution: {integrity: sha512-KmfKL3b6G+RXvP8N1vr3Tq1kL/oCFgn2NYXEtqP8/L3pKapUA4G8cFVaoF3SU323CD4XypR/ffioHmkti6/Tag==}
@ -3324,7 +3324,7 @@ snapshots:
dependencies: dependencies:
estraverse: 5.3.0 estraverse: 5.3.0
esrap@1.3.2: esrap@1.4.2:
dependencies: dependencies:
'@jridgewell/sourcemap-codec': 1.5.0 '@jridgewell/sourcemap-codec': 1.5.0

Loading…
Cancel
Save