malinajs 0.6.60 → 0.6.61

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/compile.js CHANGED
@@ -5377,6 +5377,11 @@ function makeFragment(node) {
5377
5377
  });
5378
5378
  }
5379
5379
 
5380
+ if(external) {
5381
+ this.require('$component');
5382
+ if(props?.length) this.require('apply');
5383
+ }
5384
+
5380
5385
  return xNode('fragment', {
5381
5386
  name,
5382
5387
  props,
package/malina.js CHANGED
@@ -5378,6 +5378,11 @@
5378
5378
  });
5379
5379
  }
5380
5380
 
5381
+ if(external) {
5382
+ this.require('$component');
5383
+ if(props?.length) this.require('apply');
5384
+ }
5385
+
5381
5386
  return xNode('fragment', {
5382
5387
  name,
5383
5388
  props,
@@ -5926,7 +5931,7 @@
5926
5931
  return {event, fn};
5927
5932
  }
5928
5933
 
5929
- const version = '0.6.60';
5934
+ const version = '0.6.61';
5930
5935
 
5931
5936
 
5932
5937
  async function compile(source, config = {}) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "malinajs",
3
- "version": "0.6.60",
3
+ "version": "0.6.61",
4
4
  "license": "MIT",
5
5
  "scripts": {
6
6
  "prepare": "npm run build",
package/runtime.js CHANGED
@@ -718,7 +718,7 @@ const exportFragment = ($component, name, fn) => {
718
718
  let $cd = $childCD.new();
719
719
  cd_onDestroy($parentCD, () => $cd.destroy());
720
720
  fn($cd, label, props, events, slot);
721
- $component.apply();
721
+ $component.apply?.();
722
722
  };
723
723
  };
724
724
 
@@ -734,7 +734,7 @@ const observeProps = (cmp, fn) => {
734
734
  let result;
735
735
  fire($watch(cd, fn, value => {
736
736
  result = value;
737
- target.$$.apply();
737
+ target.$$.apply?.();
738
738
  }, {ro: true, value: {}, cmp}));
739
739
  return () => result;
740
740
  }