@absolutejs/absolute 0.19.0-beta.873 → 0.19.0-beta.874

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.
@@ -22,15 +22,12 @@ import type {} from '../../../types/globals';
22
22
  * • Old projection content (ng-content) doesn't transfer. If the
23
23
  * parent injected a child via ng-content, the new instance has an
24
24
  * empty projection slot until parent re-renders.
25
- * • Class field initializers (e.g. `private foo = inject(Bar)`) are
26
- * baked into the original class's compiled constructor at bundle
27
- * time. The surgical update patches `Class.ɵcmp` and prototype
28
- * methods, but does NOT replace the class itself so a NEW field
29
- * added in source after the initial bundle won't appear on the
30
- * fresh instance. Method-body / decorator / provider / template
31
- * changes DO take effect (they live on the def, not the
32
- * constructor). To pick up new field initializers requires a
33
- * class-level rewrite or escalation to Tier 1b rebootstrap. */
25
+ * • Components with explicit constructor parameters (DI args
26
+ * declared as `constructor(private foo: Foo)`) need the live
27
+ * factory's parameter passing, which the surgical module's
28
+ * `_Fresh.ɵfac = () => new _Fresh()` doesn't yet replicate. Use
29
+ * modern field-initializer DI (`private foo = inject(Foo)`)
30
+ * instead, or escalate such components to Tier 1b rebootstrap. */
34
31
 
35
32
  import {
36
33
  CONTEXT,
package/dist/index.js CHANGED
@@ -19208,7 +19208,15 @@ ${block}
19208
19208
  if (methodsBlock) {
19209
19209
  const tail = `
19210
19210
  if (typeof _Fresh !== 'undefined') {
19211
- _Fresh.\u0275cmp = ${className}.\u0275cmp;
19211
+ _Fresh.\u0275cmp = Object.assign(
19212
+ Object.create(Object.getPrototypeOf(${className}.\u0275cmp)),
19213
+ ${className}.\u0275cmp,
19214
+ {
19215
+ type: _Fresh,
19216
+ factory: function() { return new _Fresh(); },
19217
+ tView: null
19218
+ }
19219
+ );
19212
19220
  _Fresh.\u0275fac = function() { return new _Fresh(); };
19213
19221
  return _Fresh;
19214
19222
  }
@@ -30454,5 +30462,5 @@ export {
30454
30462
  ANGULAR_INIT_TIMEOUT_MS
30455
30463
  };
30456
30464
 
30457
- //# debugId=318C2BB565882B2764756E2164756E21
30465
+ //# debugId=BE7265BEB28B7BC164756E2164756E21
30458
30466
  //# sourceMappingURL=index.js.map