svelte 4.2.13 → 4.2.15

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/compiler.cjs CHANGED
@@ -10013,7 +10013,7 @@ function parse$6() {
10013
10013
  // Container name doesn't match a query keyword, so assign it as container name.
10014
10014
  if (!CONTAINER_QUERY_KEYWORDS.has(container_name.toLowerCase())) {
10015
10015
  name = container_name;
10016
- this.eatIdent(container_name);
10016
+ this.eat(Ident);
10017
10017
  }
10018
10018
  }
10019
10019
 
@@ -42313,7 +42313,7 @@ class Selector {
42313
42313
  index !== 0 &&
42314
42314
  selector.children &&
42315
42315
  selector.children.length > 0 &&
42316
- !/[.:#\s]/.test(selector.children[0].value[0])
42316
+ !/[.:#[\s]/.test(selector.children[0].value[0])
42317
42317
  ) {
42318
42318
  component.error(selector, compiler_errors.css_invalid_global_selector_position);
42319
42319
  }
@@ -43607,7 +43607,7 @@ function is_used_as_reference(node, parent) {
43607
43607
  * https://svelte.dev/docs/svelte-compiler#svelte-version
43608
43608
  * @type {string}
43609
43609
  */
43610
- const VERSION = '4.2.13';
43610
+ const VERSION = '4.2.15';
43611
43611
 
43612
43612
  const regex_leading_directory_separator = /^[/\\]/;
43613
43613
  const regex_starts_with_term_export = /^Export/;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "svelte",
3
- "version": "4.2.13",
3
+ "version": "4.2.15",
4
4
  "description": "Cybernetically enhanced web apps",
5
5
  "type": "module",
6
6
  "module": "src/runtime/index.js",
@@ -214,7 +214,7 @@ export default class Selector {
214
214
  index !== 0 &&
215
215
  selector.children &&
216
216
  selector.children.length > 0 &&
217
- !/[.:#\s]/.test(selector.children[0].value[0])
217
+ !/[.:#[\s]/.test(selector.children[0].value[0])
218
218
  ) {
219
219
  component.error(selector, compiler_errors.css_invalid_global_selector_position);
220
220
  }
@@ -26,7 +26,7 @@ export function parse() {
26
26
  // Container name doesn't match a query keyword, so assign it as container name.
27
27
  if (!CONTAINER_QUERY_KEYWORDS.has(container_name.toLowerCase())) {
28
28
  name = container_name;
29
- this.eatIdent(container_name);
29
+ this.eat(Ident);
30
30
  }
31
31
  }
32
32
 
@@ -6,5 +6,5 @@
6
6
  * https://svelte.dev/docs/svelte-compiler#svelte-version
7
7
  * @type {string}
8
8
  */
9
- export const VERSION = '4.2.13';
9
+ export const VERSION = '4.2.15';
10
10
  export const PUBLIC_VERSION = '4';