Skip to content

Commit

Permalink
chore(release): 4.0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
cexbrayat committed Jun 26, 2020
1 parent 822963d commit 4c5a387
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 4 deletions.
20 changes: 20 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,26 @@

All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.

## [4.0.0](https://github.com/Ninja-Squad/ngx-speculoos/compare/v3.0.0...v4.0.0) (2020-06-26)


### Features

* strict and better typings ([822963d](https://github.com/Ninja-Squad/ngx-speculoos/commit/822963de66609826c44edf88d0b60c1931af5dc0))

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](https://github.com/Ninja-Squad/ngx-speculoos/compare/v2.0.0...v3.0.0) (2020-02-07)


Expand Down
8 changes: 4 additions & 4 deletions projects/ngx-speculoos/package.json
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
{
"name": "ngx-speculoos",
"version": "3.0.0",
"version": "4.0.0",
"description": "Helps writing Angular unit tests",
"peerDependencies": {
"@angular/core": "^9.0.0",
"@angular/platform-browser": "^9.0.0",
"@angular/router": "^9.0.0",
"@angular/core": "^10.0.0",
"@angular/platform-browser": "^10.0.0",
"@angular/router": "^10.0.0",
"rxjs": "^6.5.4"
},
"license": "MIT",
Expand Down

0 comments on commit 4c5a387

Please sign in to comment.