Skip to content

Conversation

timdeschryver
Copy link
Member

No description provided.

the-ult and others added 7 commits November 23, 2021 17:33
BREAKING CHANGE: This version requires the following versions: - Angular v13
BREAKING CHANGE: `rerender` has been renamed to `change`. The `change` method keeps the current fixture intact and invokes `ngOnChanges`. The new `rerender` method destroys the current component and creates a new instance with the updated properties. BEFORE: ```ts const { rerender } = render(...) rerender({...}) ``` AFTER: ```ts const { change } = render(...) change({...}) ```
BREAKING CHANGE: The template property is removed from the render options. Instead, you can pass it as the first argument of `render. BEFORE: ```ts await render(InputOutputComponent, { // 👇 this is deprecated template: '<app-fixture [value]="47" (sendValue)="sendValue($event)" (clicked)="clicked()"></app-fixture>', componentProperties: { sendValue: sendSpy, }, }); ``` AFTER: ```ts // 👇 Move the template in the first argument await render('<app-fixture [value]="47" (sendValue)="sendValue($event)" (clicked)="clicked()"></app-fixture>', { // 👇 Add the component to declarations declarations: [InputOutputComponent], componentProperties: { sendValue: sendSpy, }, }); ```
BREAKING CHANGE: Query params on a router link with the same key are no longer overwriting the last value. Instead they are added to an array.
BEFORE: Wrapper component had `wrapper-component` as selector ```ts @component({ selector: 'wrapper-component', template: '' }) class WrapperComponent {} ``` AFTER: Wrapper component has `atl-wrapper-component` as selector ```ts @component({ selector: 'atl-wrapper-component', template: '' }) class WrapperComponent {} ```
@timdeschryver timdeschryver merged commit 6ea2e7f into main Dec 3, 2021
@timdeschryver timdeschryver deleted the beta branch December 3, 2021 16:01
@github-actions
Copy link

github-actions bot commented Dec 3, 2021

🎉 This PR is included in version 11.0.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

2 participants