Comparing version 1.43.0 to 1.43.1
# Svelte changelog | ||
## 1.43.1 | ||
* Fix parameterised transitions ([#962](https://github.com/sveltejs/svelte/issues/962)) | ||
* Prevent boolean attributes breaking estree-walker expectations ([#961](https://github.com/sveltejs/svelte/issues/961)) | ||
* Throw error on cyclical store computations ([#964](https://github.com/sveltejs/svelte/pull/964)) | ||
## 1.43.0 | ||
@@ -4,0 +10,0 @@ |
{ | ||
"name": "svelte", | ||
"version": "1.43.0", | ||
"version": "1.43.1", | ||
"description": "The magical disappearing UI framework", | ||
@@ -5,0 +5,0 @@ "main": "compiler/svelte.js", |
13
store.js
@@ -51,9 +51,17 @@ import { | ||
var sorted = this._sortedComputedProperties = []; | ||
var cycles; | ||
var visited = blankObject(); | ||
function visit(key) { | ||
if (cycles[key]) { | ||
throw new Error('Cyclical dependency detected'); | ||
} | ||
if (visited[key]) return; | ||
visited[key] = true; | ||
var c = computed[key]; | ||
if (c) { | ||
cycles[key] = true; | ||
c.deps.forEach(visit); | ||
@@ -64,3 +72,6 @@ sorted.push(c); | ||
for (var key in this._computed) visit(key); | ||
for (var key in this._computed) { | ||
cycles = blankObject(); | ||
visit(key); | ||
} | ||
}, | ||
@@ -67,0 +78,0 @@ |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Mixed license
License(Experimental) Package contains multiple licenses.
Found 1 instance in 1 package
2114395
0
18495