@webjsdev/core 0.7.13 → 0.7.14

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,6 +1,6 @@
1
1
  {
2
2
  "name": "@webjsdev/core",
3
- "version": "0.7.13",
3
+ "version": "0.7.14",
4
4
  "type": "module",
5
5
  "description": "webjs core runtime - html/css tags, WebComponent base, isomorphic renderers",
6
6
  "types": "./index.d.ts",
@@ -114,7 +114,11 @@ export abstract class WebComponent extends HTMLElement {
114
114
  /** Optional render-error boundary inside the component. */
115
115
  renderError?(error: Error): TemplateResult | void;
116
116
 
117
- connectedCallback?(): void;
118
- disconnectedCallback?(): void;
119
- attributeChangedCallback?(name: string, oldValue: string | null, newValue: string | null): void;
117
+ // Concrete on the base (component.js implements all three), so a subclass
118
+ // override can call `super.connectedCallback()` etc. without a
119
+ // possibly-undefined error (#433). NOT optional, unlike the subclass-only
120
+ // hooks above (firstUpdated / renderError).
121
+ connectedCallback(): void;
122
+ disconnectedCallback(): void;
123
+ attributeChangedCallback(name: string, oldValue: string | null, newValue: string | null): void;
120
124
  }