epos-unit 1.0.3 → 1.0.4

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.
@@ -10,7 +10,7 @@ export declare class Unit<TRoot = unknown> {
10
10
  private [_parent_];
11
11
  private [_disposers_];
12
12
  [key: PropertyKey]: unknown;
13
- constructor(parent?: Unit<TRoot> | null);
13
+ constructor(parent: Unit<TRoot> | null);
14
14
  [epos.state.symbols.model.init](): void;
15
15
  [epos.state.symbols.model.cleanup](): void;
16
16
  static get [epos.state.symbols.model.versioner](): unknown;
package/dist/epos-unit.js CHANGED
@@ -4,7 +4,7 @@ export const _root_ = Symbol('root');
4
4
  export const _parent_ = Symbol('parent');
5
5
  export const _disposers_ = Symbol('disposers');
6
6
  export class Unit {
7
- constructor(parent = null) {
7
+ constructor(parent) {
8
8
  Reflect.defineProperty(this, _parent_, { get: () => parent });
9
9
  }
10
10
  // ---------------------------------------------------------------------------
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "epos-unit",
3
- "version": "1.0.3",
3
+ "version": "1.0.4",
4
4
  "type": "module",
5
5
  "license": "MIT",
6
6
  "author": "imkost",