Skip to content

v13.0.0

Compare
Choose a tag to compare
@github-actions github-actions released this 14 Dec 12:28
· 92 commits to main since this release
6ae1363

13.0.0 (2022-12-14)

Features

BREAKING CHANGES

  • The render property ɵcomponentImports is not experimental anymore, and is renamed to componentImports

BEFORE:

render(ParentComponent, {
    ɵcomponentImports: [ChildComponent],
});

AFTER:

render(ParentComponent, {
    componentImports: [ChildComponent],
});
  • This change is made to have the same behavior as the run time behavior.

BEFORE:

The ngOnChanges lifecycle is always invoked when a component is rendered.

AFTER:

The ngOnChanges lifecycle is only invoked if a component is rendered with componentProperties.

  • rerender expects properties to be wrapped in an object containing componentProperties (or componentInputs and componentOutputs to have a more fine-grained control).

BEFORE:

await render(PersonComponent, { 
  componentProperties: { 
    name: 'Sarah' 
  }
});


await rerender({ name: 'Sarah 2' });

AFTER:

await render(PersonComponent, { 
  componentProperties: { 
    name: 'Sarah' 
  }
});


await rerender({ 
  componentProperties: { 
    name: 'Sarah 2' 
  }
});
  • BEFORE:

The minimum version of Angular is v14.0.0

AFTER:

The minimum version of Angular is v15.0.0

  • The config property detectChanges is renamed to detectChangesOnRender.

BEFORE:

const component = await render(AppComponent, {
  detectChanges: false
});

AFTER:

const component = await render(AppComponent, {
  detectChangesOnRender: false
});