From 4c5a38722b5b6202c20b091854a5a81a42e10e66 Mon Sep 17 00:00:00 2001 From: cexbrayat Date: Fri, 26 Jun 2020 17:07:58 +0200 Subject: [PATCH] chore(release): 4.0.0 --- CHANGELOG.md | 20 ++++++++++++++++++++ projects/ngx-speculoos/package.json | 8 ++++---- 2 files changed, 24 insertions(+), 4 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 44851133..bfe2b95f 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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 | null + const testLink = tester.element('.selector'); // inferred as TestHtmlElement | null + const testButtons = tester.elements('.btn'); // inferred as Array + const testElements = tester.elements('div'); // inferred as Array> + const testLinks = tester.elements('.selector'); // inferred as Array> + +### ⚠ 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) diff --git a/projects/ngx-speculoos/package.json b/projects/ngx-speculoos/package.json index e635c588..466e33ae 100644 --- a/projects/ngx-speculoos/package.json +++ b/projects/ngx-speculoos/package.json @@ -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",