Skip to content

Commit fcbb54d

Browse files
committed
merge main
2 parents d5922f8 + 189bd47 commit fcbb54d

File tree

9 files changed

+28
-19
lines changed

9 files changed

+28
-19
lines changed

.changeset/chatty-apples-flash.md

Lines changed: 0 additions & 5 deletions
This file was deleted.

.changeset/strong-pianos-promise.md

Lines changed: 0 additions & 5 deletions
This file was deleted.

.changeset/sweet-adults-complain.md

Lines changed: 0 additions & 5 deletions
This file was deleted.

packages/svelte/CHANGELOG.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,17 @@
11
# svelte
22

3+
## 5.27.1
4+
5+
### Patch Changes
6+
7+
- chore: default params for html blocks ([#15778](https://github.com/sveltejs/svelte/pull/15778))
8+
9+
- fix: correct suggested type for custom events without detail ([#15763](https://github.com/sveltejs/svelte/pull/15763))
10+
11+
- fix: Throw on unrendered snippets in `dev` ([#15766](https://github.com/sveltejs/svelte/pull/15766))
12+
13+
- fix: avoid unnecessary read version increments ([#15777](https://github.com/sveltejs/svelte/pull/15777))
14+
315
## 5.27.0
416

517
### Minor Changes

packages/svelte/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "svelte",
33
"description": "Cybernetically enhanced web apps",
44
"license": "MIT",
5-
"version": "5.27.0",
5+
"version": "5.27.1",
66
"type": "module",
77
"types": "./types/index.d.ts",
88
"engines": {

packages/svelte/src/index-client.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ function create_custom_event(type, detail, { bubbles = false, cancelable = false
114114
* The event dispatcher can be typed to narrow the allowed event names and the type of the `detail` argument:
115115
* ```ts
116116
* const dispatch = createEventDispatcher<{
117-
* loaded: never; // does not take a detail argument
117+
* loaded: null; // does not take a detail argument
118118
* change: string; // takes a detail argument of type string, which is required
119119
* optional: number | null; // takes an optional detail argument of type number
120120
* }>();

packages/svelte/src/internal/client/dev/debug.js

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,21 +53,27 @@ export function log_effect_tree(effect, depth = 0) {
5353
let status =
5454
(flags & CLEAN) !== 0 ? 'clean' : (flags & MAYBE_DIRTY) !== 0 ? 'maybe dirty' : 'dirty';
5555

56+
// eslint-disable-next-line no-console
5657
console.group(`%c${label} (${status})`, `font-weight: ${status === 'clean' ? 'normal' : 'bold'}`);
5758

5859
if (depth === 0) {
5960
const callsite = new Error().stack
6061
?.split('\n')[2]
6162
.replace(/\s+at (?: \w+\(?)?(.+)\)?/, (m, $1) => $1.replace(/\?[^:]+/, ''));
6263

64+
// eslint-disable-next-line no-console
6365
console.log(callsite);
6466
}
6567

6668
if (effect.deps !== null) {
69+
// eslint-disable-next-line no-console
6770
console.groupCollapsed('%cdeps', 'font-weight: normal');
71+
6872
for (const dep of effect.deps) {
6973
log_dep(dep);
7074
}
75+
76+
// eslint-disable-next-line no-console
7177
console.groupEnd();
7278
}
7379

@@ -77,6 +83,7 @@ export function log_effect_tree(effect, depth = 0) {
7783
child = child.next;
7884
}
7985

86+
// eslint-disable-next-line no-console
8087
console.groupEnd();
8188
}
8289

@@ -87,14 +94,19 @@ export function log_effect_tree(effect, depth = 0) {
8794
function log_dep(dep) {
8895
if ((dep.f & DERIVED) !== 0) {
8996
const derived = /** @type {Derived} */ (dep);
97+
98+
// eslint-disable-next-line no-console
9099
console.groupCollapsed('%cderived', 'font-weight: normal', derived.v);
91100
if (derived.deps) {
92101
for (const d of derived.deps) {
93102
log_dep(d);
94103
}
95104
}
105+
106+
// eslint-disable-next-line no-console
96107
console.groupEnd();
97108
} else {
109+
// eslint-disable-next-line no-console
98110
console.log('state', dep.v);
99111
}
100112
}

packages/svelte/src/version.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,5 @@
44
* The current version, as set in package.json.
55
* @type {string}
66
*/
7-
export const VERSION = '5.27.0';
7+
export const VERSION = '5.27.1';
88
export const PUBLIC_VERSION = '5';

packages/svelte/types/index.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -381,7 +381,7 @@ declare module 'svelte' {
381381
* The event dispatcher can be typed to narrow the allowed event names and the type of the `detail` argument:
382382
* ```ts
383383
* const dispatch = createEventDispatcher<{
384-
* loaded: never; // does not take a detail argument
384+
* loaded: null; // does not take a detail argument
385385
* change: string; // takes a detail argument of type string, which is required
386386
* optional: number | null; // takes an optional detail argument of type number
387387
* }>();

0 commit comments

Comments
 (0)