From 47f3105ef0d8c0f257a352487f15d7e115d50f7e Mon Sep 17 00:00:00 2001 From: Steve Gravrock Date: Sat, 22 Jul 2023 09:12:36 -0700 Subject: [PATCH] Bump version to 5.1.0 --- lib/jasmine-core/jasmine.js | 2 +- package.json | 2 +- release_notes/5.1.0.md | 39 +++++++++++++++++++++++++++++++++++++ 3 files changed, 41 insertions(+), 2 deletions(-) create mode 100644 release_notes/5.1.0.md diff --git a/lib/jasmine-core/jasmine.js b/lib/jasmine-core/jasmine.js index eb91e3d7..81fc2d29 100644 --- a/lib/jasmine-core/jasmine.js +++ b/lib/jasmine-core/jasmine.js @@ -10798,5 +10798,5 @@ getJasmineRequireObj().UserContext = function(j$) { }; getJasmineRequireObj().version = function() { - return '5.0.1'; + return '5.1.0'; }; diff --git a/package.json b/package.json index ca068540..5eaf1a1e 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "jasmine-core", "license": "MIT", - "version": "5.0.1", + "version": "5.1.0", "repository": { "type": "git", "url": "https://github.com/jasmine/jasmine.git" diff --git a/release_notes/5.1.0.md b/release_notes/5.1.0.md new file mode 100644 index 00000000..b04770e8 --- /dev/null +++ b/release_notes/5.1.0.md @@ -0,0 +1,39 @@ +# Jasmine Core 5.1.0 Release Notes + +## Changes + +* Exclude inherited Error properties from stack trace + +* Fixed error when formatting Error object with non-Error cause property + + Merges [#2013](https://github.com/jasmine/jasmine/pull/2013) from @angrycat9000. + + Fixes [#2011](https://github.com/jasmine/jasmine/issues/2011). + +* Added `throwUnless` and `throwUnlessAsync` + + These are similar to `expect` and `expectAsync` except that they throw + exceptions rather than recording matcher failures as spec/suite failures. + They're intended to support using Jasmine matchers in [testing-library's](https://testing-library.com/) + `waitFor`, and also provide a way to integration-test custom matchers. + + Fixes [#2003](https://github.com/jasmine/jasmine/issues/2003). + + Fixes [#1980](https://github.com/jasmine/jasmine/issues/1980). + +## Supported environments + +jasmine-core 5.1.0 has been tested in the following environments. + +| Environment | Supported versions | +|-------------------|--------------------| +| Node | 18, 20 | +| Safari | 15-16 | +| Chrome | 114 | +| Firefox | 102, 113 | +| Edge | 113 | + + +------ + +_Release Notes generated with _[Anchorman](http://github.com/infews/anchorman)_