From d4b76a4d3bc5e293c570d18fff5c88b9f2a7a2d3 Mon Sep 17 00:00:00 2001 From: Gregg Van Hove Date: Tue, 6 Feb 2018 09:33:49 -0800 Subject: [PATCH] version bump to 3.0 --- lib/jasmine-core/jasmine.js | 4 +- lib/jasmine-core/version.rb | 2 +- package.json | 2 +- release_notes/3.0.md | 82 +++++++++++++++++++++++++++++++++++++ 4 files changed, 85 insertions(+), 5 deletions(-) create mode 100644 release_notes/3.0.md diff --git a/lib/jasmine-core/jasmine.js b/lib/jasmine-core/jasmine.js index 23bb6861..50cb7c17 100644 --- a/lib/jasmine-core/jasmine.js +++ b/lib/jasmine-core/jasmine.js @@ -1231,7 +1231,6 @@ getJasmineRequireObj().Env = function(j$) { var focusedRunnables = []; this.fdescribe = function(description, specDefinitions) { - this.deprecated('fit and fdescribe will cause your suite to report an \'incomplete\' status in Jasmine 3.0'); ensureIsNotNested('fdescribe'); ensureIsFunction(specDefinitions, 'fdescribe'); var suite = suiteFactory(description); @@ -1356,7 +1355,6 @@ getJasmineRequireObj().Env = function(j$) { }; this.fit = function(description, fn, timeout){ - this.deprecated('fit and fdescribe will cause your suite to report an \'incomplete\' status in Jasmine 3.0'); ensureIsNotNested('fit'); ensureIsFunctionOrAsync(fn, 'fit'); var spec = specFactory(description, fn, currentDeclarationSuite, timeout); @@ -6022,5 +6020,5 @@ getJasmineRequireObj().UserContext = function(j$) { }; getJasmineRequireObj().version = function() { - return '3.0.0-pre'; + return '3.0.0'; }; diff --git a/lib/jasmine-core/version.rb b/lib/jasmine-core/version.rb index 0bbc361e..56e062fe 100644 --- a/lib/jasmine-core/version.rb +++ b/lib/jasmine-core/version.rb @@ -4,6 +4,6 @@ # module Jasmine module Core - VERSION = "3.0.0.pre" + VERSION = "3.0.0" end end diff --git a/package.json b/package.json index 4c612f2c..aac12271 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "jasmine-core", "license": "MIT", - "version": "3.0.0-pre", + "version": "3.0.0", "repository": { "type": "git", "url": "https://github.com/jasmine/jasmine.git" diff --git a/release_notes/3.0.md b/release_notes/3.0.md new file mode 100644 index 00000000..ce4c7c4c --- /dev/null +++ b/release_notes/3.0.md @@ -0,0 +1,82 @@ +# Jasmine-Core 3.0 Release Notes + +## Summary + +Jasmine 3.0 is a major release of Jasmine, and as such includes some breaking changes in addition to various new features. + +There is also a 2.99 release of Jasmine that will present deprecation warnings for suites that will encounter different behavior in 3.0. + +## Breaking Changes + +* Replace old "catch exceptions" logic with proper fail fast with error reporting + - Fixes [#414](https://github.com/jasmine/jasmine/issues/414) + - Fixes [jasmine/jasmine-npm#16](https://github.com/jasmine/jasmine/jasmine-npm/issues/16) + +* Detect an Error passed to `done` and add an expectation failure + - Fixes [#567](https://github.com/jasmine/jasmine/issues/567) + +* Unify status for xdescribe and xit + - Ensure *All's only execute if at least one child will run + - Specs will report a status of `excluded` instead of disabled + - Fixes [#1418](https://github.com/jasmine/jasmine/issues/1418) + +* Suite level errors all report the same way (on suiteDone) + +* Refactor QueueRunner and remove references to functions that Jasmine is done with + +* expect(null).toEqual(jasmine.any(Object)) no longer passes + - Fixes [#1255](https://github.com/jasmine/jasmine/issues/1255) + +* Default to running tests in random order + +## Changes + +* Remove node modules from python wheel, and update languages + +* Allow reporter callbacks to be asynchronous + - Fixes [#842](https://github.com/jasmine/jasmine/issues/842) + +* Allow adding custom spy strategies + +* Add the ability to specify the strategy to use for a spy based on which parameters are passed + +* Added links to re-run the suites containing a failing spec + +* Added a toHaveClass matcher + +* More informative pretty-printing of DOM elements + +* Allow jasmine-npm to handle its own load errors + +* Treat random= as a no-op rather than disabling randomization + +* Use prototype for spy strategy for better memory management + +* Remove console.js altogether + +* Add safari 10 and update readme to include edge + +* Determine overall status in core, not reporters + +* Filter Jasmine frames from stack traces + +* Treat afterAll errors at any level as failures + +* Improved reporting of load errors and afterAll errors + - Pass file and line number to reporters when present + - Show file and line number in the HTML reporter when present + - Visually separate adjacent errors in the HTML reporter + +* Report loading errors as loading errors, not afterAll errors + +* HTML reporter reports overall failure if there are any global errors + +* Fail if error events (e.g. syntax errors) occur during loading + +* Allow use of a predicate function to validate thrown exceptions + +* Check truthiness of toThrowError args, not arg count + +------ + +_Release Notes generated with _[Anchorman](http://github.com/infews/anchorman)_