pull/16197/head
Rich Harris 6 months ago
commit fcbb54db3d

@ -1,5 +0,0 @@
---
'svelte': patch
---
chore: default params for html blocks

@ -1,5 +0,0 @@
---
'svelte': patch
---
fix: Throw on unrendered snippets in `dev`

@ -1,5 +0,0 @@
---
'svelte': patch
---
fix: avoid unnecessary read version increments

@ -1,5 +1,17 @@
# svelte
## 5.27.1
### Patch Changes
- chore: default params for html blocks ([#15778](https://github.com/sveltejs/svelte/pull/15778))
- fix: correct suggested type for custom events without detail ([#15763](https://github.com/sveltejs/svelte/pull/15763))
- fix: Throw on unrendered snippets in `dev` ([#15766](https://github.com/sveltejs/svelte/pull/15766))
- fix: avoid unnecessary read version increments ([#15777](https://github.com/sveltejs/svelte/pull/15777))
## 5.27.0
### Minor Changes

@ -2,7 +2,7 @@
"name": "svelte",
"description": "Cybernetically enhanced web apps",
"license": "MIT",
"version": "5.27.0",
"version": "5.27.1",
"type": "module",
"types": "./types/index.d.ts",
"engines": {

@ -114,7 +114,7 @@ function create_custom_event(type, detail, { bubbles = false, cancelable = false
* The event dispatcher can be typed to narrow the allowed event names and the type of the `detail` argument:
* ```ts
* const dispatch = createEventDispatcher<{
* loaded: never; // does not take a detail argument
* loaded: null; // does not take a detail argument
* change: string; // takes a detail argument of type string, which is required
* optional: number | null; // takes an optional detail argument of type number
* }>();

@ -53,6 +53,7 @@ export function log_effect_tree(effect, depth = 0) {
let status =
(flags & CLEAN) !== 0 ? 'clean' : (flags & MAYBE_DIRTY) !== 0 ? 'maybe dirty' : 'dirty';
// eslint-disable-next-line no-console
console.group(`%c${label} (${status})`, `font-weight: ${status === 'clean' ? 'normal' : 'bold'}`);
if (depth === 0) {
@ -60,14 +61,19 @@ export function log_effect_tree(effect, depth = 0) {
?.split('\n')[2]
.replace(/\s+at (?: \w+\(?)?(.+)\)?/, (m, $1) => $1.replace(/\?[^:]+/, ''));
// eslint-disable-next-line no-console
console.log(callsite);
}
if (effect.deps !== null) {
// eslint-disable-next-line no-console
console.groupCollapsed('%cdeps', 'font-weight: normal');
for (const dep of effect.deps) {
log_dep(dep);
}
// eslint-disable-next-line no-console
console.groupEnd();
}
@ -77,6 +83,7 @@ export function log_effect_tree(effect, depth = 0) {
child = child.next;
}
// eslint-disable-next-line no-console
console.groupEnd();
}
@ -87,14 +94,19 @@ export function log_effect_tree(effect, depth = 0) {
function log_dep(dep) {
if ((dep.f & DERIVED) !== 0) {
const derived = /** @type {Derived} */ (dep);
// eslint-disable-next-line no-console
console.groupCollapsed('%cderived', 'font-weight: normal', derived.v);
if (derived.deps) {
for (const d of derived.deps) {
log_dep(d);
}
}
// eslint-disable-next-line no-console
console.groupEnd();
} else {
// eslint-disable-next-line no-console
console.log('state', dep.v);
}
}

@ -4,5 +4,5 @@
* The current version, as set in package.json.
* @type {string}
*/
export const VERSION = '5.27.0';
export const VERSION = '5.27.1';
export const PUBLIC_VERSION = '5';

@ -381,7 +381,7 @@ declare module 'svelte' {
* The event dispatcher can be typed to narrow the allowed event names and the type of the `detail` argument:
* ```ts
* const dispatch = createEventDispatcher<{
* loaded: never; // does not take a detail argument
* loaded: null; // does not take a detail argument
* change: string; // takes a detail argument of type string, which is required
* optional: number | null; // takes an optional detail argument of type number
* }>();

Loading…
Cancel
Save