revojs 0.0.38 → 0.0.39

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 +2 -1
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -408,6 +408,7 @@ const toCustomElement = (Component) => {
408
408
  return class extends HTMLElement {
409
409
  static formAssociated = true;
410
410
  component = new Component();
411
+ internals = this.attachInternals();
411
412
  async connectedCallback() {
412
413
  let rootNode = this;
413
414
  const findParent = (node) => {
@@ -432,7 +433,7 @@ const toCustomElement = (Component) => {
432
433
  });
433
434
  this.component.scope.setContext(HOST_CONTEXT, {
434
435
  host: this,
435
- internals: this.attachInternals()
436
+ internals: this.internals
436
437
  });
437
438
  await hydrate(this.component.scope, rootNode, await this.component.setup(), 0);
438
439
  this.dispatchEvent(new MountedEvent());
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "revojs",
3
- "version": "0.0.38",
3
+ "version": "0.0.39",
4
4
  "type": "module",
5
5
  "repository": "coverbase/revojs",
6
6
  "license": "MIT",