firefly-compiler 0.6.12 → 0.6.13

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/bin/Release.ff CHANGED
@@ -16,7 +16,7 @@ release(
16
16
  system.writeErrorLine("You need to be in the directory of Release.ff")
17
17
  system.exit(1)
18
18
  }
19
- requireNpmLoggedIn(system, system.path(".."))
19
+ //requireNpmLoggedIn(system, system.path(".."))
20
20
  requireVsceLoggedIn(system, system.path("../vscode"))
21
21
  runSuccessful(system, "node", ["output/js/ff/compiler/Main.run.mjs", "bootstrap"], system.path(".."))
22
22
  runSuccessful(system, "node", ["output/js/ff/compiler/Main.run.mjs", "bootstrap"], system.path(".."))
@@ -36,7 +36,7 @@ release(
36
36
  runSuccessful(system, "git", ["commit", "-a", "-m", "Autorelease_v" + version], system.path(".."))
37
37
  runSuccessful(system, "git", ["push"], system.path(".."))
38
38
  system.writeLine("Due to 2FA requirements, you must now manually run:")
39
- system.writeLine("cd ..; npm publish; npm install -g firefly-compiler")
39
+ system.writeLine("cd ..; npm login; npm publish; npm install -g firefly-compiler")
40
40
  //runSuccessful(system, "npm", ["install", "-g", "firefly-compiler"], system.path(".."))
41
41
  }
42
42
 
package/lux/Lux.ff CHANGED
@@ -296,6 +296,11 @@ extend self: Lux {
296
296
  }
297
297
  }
298
298
  function setState(newValue: T): Unit {
299
+ if(hook.luxCopy.element.element.hasOwn("_lux$R")) {
300
+ hook.luxCopy.element = hook.luxCopy.element.LuxElement(
301
+ element = hook.luxCopy.element.element->"_lux$R"
302
+ )
303
+ }
299
304
  hook.setValue(newValue)
300
305
  self.renderQueue.push(RenderQueueItem(
301
306
  luxCopy = hook.luxCopy
@@ -354,6 +359,7 @@ extend self: Lux {
354
359
  self.useHook: hook =>
355
360
  if(hook.dry()) {suspense()} else:
356
361
  hook.cleanup()
362
+ suspense()
357
363
  let fragment = hook.luxCopy.document.createFragment()
358
364
  let subtask = hook.luxCopy.task.spawn {task =>
359
365
  let lux = hook.luxCopy.Lux(
@@ -376,7 +382,6 @@ extend self: Lux {
376
382
  }
377
383
  }
378
384
  hook.setCleanup {subtask.abort()}
379
- suspense()
380
385
  }
381
386
 
382
387
  useWebSocket(
@@ -496,6 +501,7 @@ replaceWithFragment(element: JsValue, fragment: JsValue, depth: Int) {
496
501
  True
497
502
  }
498
503
  }
504
+ fragment->"_lux$R" = element
499
505
  element->replaceChildren(fragment)
500
506
  }
501
507
 
package/package.json CHANGED
@@ -4,7 +4,7 @@
4
4
  "description": "Firefly compiler",
5
5
  "author": "Firefly team",
6
6
  "license": "MIT",
7
- "version": "0.6.12",
7
+ "version": "0.6.13",
8
8
  "repository": {
9
9
  "type": "git",
10
10
  "url": "https://github.com/Ahnfelt/firefly-boot"
@@ -4,7 +4,7 @@
4
4
  "description": "Firefly language support",
5
5
  "author": "Firefly team",
6
6
  "license": "MIT",
7
- "version": "0.6.12",
7
+ "version": "0.6.13",
8
8
  "repository": {
9
9
  "type": "git",
10
10
  "url": "https://github.com/Ahnfelt/firefly-boot"