svelte 4.2.16 → 4.2.18

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
@@ -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.16';
43610
+ const VERSION = '4.2.18';
43611
43611
 
43612
43612
  const regex_leading_directory_separator = /^[/\\]/;
43613
43613
  const regex_starts_with_term_export = /^Export/;
@@ -46035,9 +46035,9 @@ function stringify_tag_attributes(attributes) {
46035
46035
  }
46036
46036
 
46037
46037
  const regex_style_tags =
46038
- /<!--[^]*?-->|<style((?:\s+[^=>'"\/]+=(?:"[^"]*"|'[^']*'|[^>\s]+)|\s+[^=>'"\/]+)*\s*)(?:\/>|>([\S\s]*?)<\/style>)/g;
46038
+ /<!--[^]*?-->|<style((?:\s+[^=>'"\/\s]+=(?:"[^"]*"|'[^']*'|[^>\s]+)|\s+[^=>'"\/\s]+)*\s*)(?:\/>|>([\S\s]*?)<\/style>)/g;
46039
46039
  const regex_script_tags =
46040
- /<!--[^]*?-->|<script((?:\s+[^=>'"\/]+=(?:"[^"]*"|'[^']*'|[^>\s]+)|\s+[^=>'"\/]+)*\s*)(?:\/>|>([\S\s]*?)<\/script>)/g;
46040
+ /<!--[^]*?-->|<script((?:\s+[^=>'"\/\s]+=(?:"[^"]*"|'[^']*'|[^>\s]+)|\s+[^=>'"\/\s]+)*\s*)(?:\/>|>([\S\s]*?)<\/script>)/g;
46041
46041
 
46042
46042
  /**
46043
46043
  * Calculate the updates required to process all instances of the specified tag.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "svelte",
3
- "version": "4.2.16",
3
+ "version": "4.2.18",
4
4
  "description": "Cybernetically enhanced web apps",
5
5
  "type": "module",
6
6
  "module": "src/runtime/index.js",
@@ -253,9 +253,9 @@ function stringify_tag_attributes(attributes) {
253
253
  }
254
254
 
255
255
  const regex_style_tags =
256
- /<!--[^]*?-->|<style((?:\s+[^=>'"\/]+=(?:"[^"]*"|'[^']*'|[^>\s]+)|\s+[^=>'"\/]+)*\s*)(?:\/>|>([\S\s]*?)<\/style>)/g;
256
+ /<!--[^]*?-->|<style((?:\s+[^=>'"\/\s]+=(?:"[^"]*"|'[^']*'|[^>\s]+)|\s+[^=>'"\/\s]+)*\s*)(?:\/>|>([\S\s]*?)<\/style>)/g;
257
257
  const regex_script_tags =
258
- /<!--[^]*?-->|<script((?:\s+[^=>'"\/]+=(?:"[^"]*"|'[^']*'|[^>\s]+)|\s+[^=>'"\/]+)*\s*)(?:\/>|>([\S\s]*?)<\/script>)/g;
258
+ /<!--[^]*?-->|<script((?:\s+[^=>'"\/\s]+=(?:"[^"]*"|'[^']*'|[^>\s]+)|\s+[^=>'"\/\s]+)*\s*)(?:\/>|>([\S\s]*?)<\/script>)/g;
259
259
 
260
260
  /**
261
261
  * Calculate the updates required to process all instances of the specified tag.
@@ -193,7 +193,7 @@ export function add_classes(classes) {
193
193
  /** @returns {string} */
194
194
  function style_object_to_string(style_object) {
195
195
  return Object.keys(style_object)
196
- .filter((key) => style_object[key])
196
+ .filter((key) => style_object[key] != null && style_object[key] !== '')
197
197
  .map((key) => `${key}: ${escape_attribute_value(style_object[key])};`)
198
198
  .join(' ');
199
199
  }
@@ -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.16';
9
+ export const VERSION = '4.2.18';
10
10
  export const PUBLIC_VERSION = '4';