blockless
Rich Harris 2 years ago
commit a1d70dbd37

@ -228,6 +228,7 @@
"seven-deers-jam",
"seven-hornets-smile",
"seven-jobs-sniff",
"seven-masks-end",
"seven-ravens-check",
"shaggy-cameras-live",
"sharp-gorillas-impress",
@ -260,6 +261,7 @@
"sour-weeks-fix",
"spicy-jeans-deliver",
"spicy-plums-admire",
"spotty-houses-search",
"spotty-pens-agree",
"spotty-rocks-destroy",
"spotty-spiders-compare",
@ -320,6 +322,7 @@
"violet-pigs-jam",
"weak-terms-destroy",
"wet-games-fly",
"wet-wombats-repeat",
"wicked-clouds-exercise",
"wicked-doors-train",
"wicked-hairs-cheer",

@ -1,5 +1,15 @@
# svelte
## 5.0.0-next.72
### Patch Changes
- fix: adjust keyed each block equality handling ([#10699](https://github.com/sveltejs/svelte/pull/10699))
- fix: improve indexed each equality ([#10702](https://github.com/sveltejs/svelte/pull/10702))
- fix: prevent snippet children conflict ([#10700](https://github.com/sveltejs/svelte/pull/10700))
## 5.0.0-next.71
### Patch Changes

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

@ -27,8 +27,7 @@ export function derived(fn) {
};
if (DEV) {
// @ts-expect-error
signal.inspect = new Set();
/** @type {import('#client').DerivedDebug} */ (signal).inspect = new Set();
}
if (current_reaction !== null) {

@ -24,7 +24,7 @@ import { CLEAN, DERIVED, DIRTY, MANAGED } from '../constants.js';
/**
* @template V
* @param {V} value
* @returns {import('./types.js').Source<V>}
* @returns {import('#client').Source<V>}
*/
/*#__NO_SIDE_EFFECTS__*/
export function source(value) {
@ -47,7 +47,7 @@ export function source(value) {
/**
* @template V
* @param {V} initial_value
* @returns {import('./types.js').Source<V>}
* @returns {import('#client').Source<V>}
*/
/*#__NO_SIDE_EFFECTS__*/
export function mutable_source(initial_value) {
@ -127,9 +127,9 @@ export function set(signal, value) {
// @ts-expect-error
if (DEV && signal.inspect) {
if (is_batching_effect) {
set_last_inspected_signal(/** @type {import('#client').SourceDebug} */ (signal));
set_last_inspected_signal(/** @type {import('#client').ValueDebug} */ (signal));
} else {
for (const fn of /** @type {import('#client').SourceDebug} */ (signal).inspect) fn();
for (const fn of /** @type {import('#client').ValueDebug} */ (signal).inspect) fn();
}
}
}

@ -50,7 +50,7 @@ export function store_get(store, store_name, stores) {
/**
* @template V
* @param {import('#client').Store<V> | null | undefined} store
* @param {import('./types.js').Source<V>} source
* @param {import('#client').Source<V>} source
*/
function connect_store_to_signal(store, source) {
if (store == null) {

@ -6,5 +6,5 @@
* https://svelte.dev/docs/svelte-compiler#svelte-version
* @type {string}
*/
export const VERSION = '5.0.0-next.71';
export const VERSION = '5.0.0-next.72';
export const PUBLIC_VERSION = '5';

@ -131,7 +131,13 @@
const __repl_exports = ${$bundle.client?.code};
{
const { mount, unmount, App } = __repl_exports;
const { mount, unmount, App, untrack } = __repl_exports;
const console_log = console.log
console.log = function (...v) {
return untrack(() => console_log.apply(this, v));
}
const component = mount(App, { target: document.body });
window.__unmount_previous = () => unmount(component);
}

@ -485,7 +485,7 @@ async function bundle({ uid, files }) {
lookup.set('./__entry.js', {
name: '__entry',
source: `
export { mount, unmount } from 'svelte';
export { mount, unmount, untrack } from 'svelte';
export {default as App} from './App.svelte';
`,
type: 'js',

Loading…
Cancel
Save