cradova 3.15.7 → 3.15.9

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.
Files changed (2) hide show
  1. package/dist/index.js +3 -1
  2. package/package.json +2 -2
package/dist/index.js CHANGED
@@ -315,7 +315,9 @@ var compManager = {
315
315
  component.reference = html;
316
316
  component.rendered = true;
317
317
  component.published = true;
318
- this.runScheduledEffects(component);
318
+ queueMicrotask(() => {
319
+ this.runScheduledEffects(component);
320
+ });
319
321
  return html;
320
322
  } else {
321
323
  console.error(" Cradova err : Component function must return an HTMLElement. Got:", html);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cradova",
3
- "version": "3.15.7",
3
+ "version": "3.15.9",
4
4
  "description": "A UI framework for web applications.",
5
5
  "main": "dist/index.js",
6
6
  "type": "module",
@@ -14,7 +14,7 @@
14
14
  "url": "git+https://github.com/CodeDynasty-dev/Cradova.git"
15
15
  },
16
16
  "scripts": {
17
- "compile": "bun bundle.ts && run clean",
17
+ "compile": "bun bundle.ts && npm run clean",
18
18
  "lint": "eslint . --fix",
19
19
  "tsc": "tsc --target esnext tests/index.ts --watch --moduleResolution NodeNext --module NodeNext",
20
20
  "clean": "rm -rf tests/dist && cp -r dist tests/dist"