@katabatic/runtime 1.1.1 → 1.1.2

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/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@katabatic/runtime",
3
3
  "license": "MIT",
4
- "version": "1.1.1",
4
+ "version": "1.1.2",
5
5
  "type": "module",
6
6
  "repository": {
7
7
  "type": "git",
@@ -15,7 +15,7 @@
15
15
  }
16
16
  },
17
17
  "dependencies": {
18
- "@katabatic/signals": "^1.0.0"
18
+ "@katabatic/signals": "^1.0.3"
19
19
  },
20
20
  "devDependencies": {
21
21
  "@vitest/browser": "^4.1.0",
package/src/client.js CHANGED
@@ -3,7 +3,7 @@ import { Animate } from './animate.js'
3
3
 
4
4
  export class Client extends Set {
5
5
  effect(fn) {
6
- const effect = new Effect(fn, { orphaned: true, async: true }).run()
6
+ const effect = new Effect(fn, { orphaned: true }).run()
7
7
  this.add(effect)
8
8
  return effect
9
9
  }
package/src/eachBlock.js CHANGED
@@ -94,7 +94,7 @@ export class EachBlock extends Map {
94
94
  index++
95
95
  }
96
96
  },
97
- { orphaned: true, async: true }
97
+ { orphaned: true }
98
98
  ).run()
99
99
 
100
100
  return this
package/src/ifBlock.js CHANGED
@@ -46,6 +46,7 @@ export class IfBlock {
46
46
  init() {
47
47
  this.#effect = new Effect(
48
48
  () => {
49
+ console.log
49
50
  if (this.getCondition()) {
50
51
  this.#altBlock?.out(() => this.#removeBlock(this.#altBlock))
51
52
  this.#condBlock ??= this.#insertBlock(new Block(), this.concequent)
@@ -58,7 +59,7 @@ export class IfBlock {
58
59
  }
59
60
  }
60
61
  },
61
- { orphaned: true, async: true }
62
+ { orphaned: true }
62
63
  ).run()
63
64
 
64
65
  return this