Skip to content

Latest commit

 

History

History
279 lines (141 loc) · 13 KB

CHANGELOG.md

File metadata and controls

279 lines (141 loc) · 13 KB

Changelog

All notable changes to this project will be documented in this file. See standard-version for commit guidelines.

12.0.1 (2024-05-27)

Bug Fixes

  • missing ending parenthesis in error message (e9f07a0)

12.0.0 (2024-05-26)

⚠ BREAKING CHANGES

  • ngx-speculoos is now based on Angular 18.x. If you want to use it with an older version of Angular, then stick to a previous version of `ngx-speculoos
  • TestSelect's selectIndex, selectValue and selectLabel methods now throw if an invalid index, value or label is passed, instead of ignoring it.
  • The deprecated fakeRoute and fakeSnapshot functions have been dropped. Use stubRoute, or the RoutingTester instead.

Features

  • drop the deprecated fakeRoute and fakeSnapshot functions (6a5225a)
  • throw when selecting invalid index, value or label (093cb5a)
  • upgrade to Angular and CLI 18 (99af81c)

11.1.0 (2024-02-16)

Features

  • introduce routing tester to test with the RouterTestingHarness (4bebe7c)

11.0.0 (2023-11-15)

⚠ BREAKING CHANGES

  • ngx-speculoos is now based on Angular 17.x. If you want to use it with an older version of Angular, then stick to a previous version of ngx-speculoos.

Features

  • upgrade to Angular and CLI 17 (a838a69)

10.0.0 (2023-05-05)

⚠ BREAKING CHANGES

  • ngx-speculoos is now based on Angular 16.x. If you want to use it with an older version of Angular, then stick to a previous version of ngx-speculoos.

Features

9.0.0 (2022-11-18)

⚠ BREAKING CHANGES

  • ngx-speculoos is now based on Angular 15.x. If you want to use it with an older version of Angular, then stick to a previous version of ngx-speculoos.

Features

  • route: Allows setting the title of a route and of its snapshot (06d70d8)
  • upgrade to Angular 15 (8662e7d)

8.0.1 (2022-06-17)

Bug Fixes

  • route: make sure param maps contain the same values as params (c7859a1)

8.0.0 (2022-06-03)

⚠ BREAKING CHANGES

  • ngx-speculoos is now based on Angular 14.x. It also needs RxJS v7.5+. If you want to use it with an older version of Angular, then stick to the previous version of ngx-speculoos.

Bug Fixes

  • ngx-speculoos.d.ts is now index.d.ts (7bf3ed0)

7.2.0 (2022-03-03)

Features

  • add routeConfig to the stub snapshot and route (768c113)

7.1.0 (2022-02-21)

Features

  • allow selecting by type, and getting tokens (a84096b)
  • createMock, for easier SpyObj creations (bf9309e)
  • introduce stubRoute and deprecate fakeRoute and fakeSnapshot (55de6e2)
  • query for custom test elements (53b3a45)
  • toHaveTrimmedText matcher (825f19f)

7.0.0 (2021-11-04)

⚠ BREAKING CHANGES

  • ngx-speculoos is now based on Angular 13.x. It also needs RxJS v7.4+. If you want to use it with an older version of Angular, then stick to the previous version of ngx-speculoos.

  • bump to ng and cli v13 (6ca161c)

6.0.0 (2021-05-13)

Features

  • enable Ivy partial compilation (5731919)

Bug Fixes

⚠ BREAKING CHANGES

  • ngx-speculoos now targets Angular 12.0.0 and Ivy only. If you want to use it with Angular 11.x or View Engine, stick to the previous version of ngx-speculoos. Partial Ivy compilation is now enabled, allowing ngcc to skip this package and you to have faster builds! 🚀

5.0.0 (2020-11-20)

⚠ BREAKING CHANGES

  • ngx-speculoos is now built against Angular 11.0.0. If you want to use it with Angular 10.x, stick to the previous version of ngx-speculoos.

Features

4.1.0 (2020-08-15)

Features

  • test if html element is visible + corresponding matcher (192a2bd)

4.0.0 (2020-06-26)

Features

  • strict and better typings (822963d)

We now properly infer (if possible) the type of the queried element(s). For example:

const testElement = tester.element('div'); // inferred as TestHtmlElement<HTMLDivElement> | null
const testLink = tester.element<HTMLAnchorElement>('.selector'); // inferred as TestHtmlElement<HTMLAnchorElement> | null
const testButtons = tester.elements<HTMLButtonElement>('.btn'); // inferred as Array<TestButton>
const testElements = tester.elements('div'); // inferred as Array<TestHtmlElement<HTMLDivElement>>
const testLinks = tester.elements<HTMLAnchorElement>('.selector'); // inferred as Array<TestHtmlElement<HTMLAnchorElement>>

⚠ BREAKING CHANGES

  • ngx-speculoos is now built against Angular 10.0.0. If you want to use it with Angular 9.x, stick to the previous version of ngx-speculoos.

3.0.0 (2020-02-07)

⚠ BREAKING CHANGES

  • ngx-speculoos is now built against Angular 9.0.0. If you want to use it with Angular 8.x, stick to the previous version of ngx-speculoos.

Features

Bug Fixes

chore

  • update to Angular and CLI 9.0.0 (1c0395b)

2.0.0 (2019-05-31)

Bug Fixes

  • add @angular/platform-browser as a peer dep (e354723)
  • add ngx-speculoos as an implicit dependency (df43796)
  • codelyzer rule name (3b7ff6c)
  • combine imports (17ac60f)
  • do not lint public_api.ts (6179153)
  • jsdoc formatting (3c95bc6)
  • readonly is already public (3a159e3)
  • update polyfill.ts with latest (27b885a)

chore

  • upgrade to Angular 8.0.0 (f46816e)

BREAKING CHANGES

  • ngx-speculoos is now built against Angular 8.0.0. If you want to use it with Angular 7.x, stick to the previous version of ngx-speculoos.

1.1.0 (2018-11-17)

Features

  • add disabled property on TestInput, TestTextarea and TestSelect (b2e77d6), closes #100

1.0.0 (2018-11-02)

This 1.0.0 version is based and tested on Angular 7.0.0, although it should run fine with Angular 6. Future versions are not guaranteed to support Angular 6, though. We encourage you to ugrade.

Bug Fixes

0.2.3 (2018-06-17)

0.2.2 (2018-06-04)

0.2.1 (2018-06-04)

0.2.0 (2018-05-28)

Bug Fixes

  • custom matchers always return false if no element (a282826)
  • fix toHaveText on empty text contents (0172de3)

Features

  • add custom matcher for class (39d1f3a)
  • add custom matcher for value (eee2e97)
  • custom matcher toBeChecked (065ab58)
  • custom matcher toContainText (#13) (e0a0472)
  • custom matcher toHaveSelectedIndex (e1163fb)
  • custom matcher toHaveSelectedLabel (2c49330)
  • custom matcher toHaveSelectedValue (085fd65)
  • custom matcher toHaveText (8036c22)

0.1.0 (2018-05-25)

Very first release 🍾