diff --git a/jasmine-core.gemspec b/jasmine-core.gemspec index 15999b31..fece3c1c 100644 --- a/jasmine-core.gemspec +++ b/jasmine-core.gemspec @@ -8,7 +8,18 @@ Gem::Specification.new do |s| s.platform = Gem::Platform::RUBY s.authors = ["Gregg Van Hove"] s.summary = %q{JavaScript BDD framework} - s.description = %q{Test your JavaScript without any framework dependencies, in any environment, and with a nice descriptive syntax.} + s.description = <<~DESC + Test your JavaScript without any framework dependencies, in any environment, + and with a nice descriptive syntax. + + Jasmine for Ruby is deprecated. The direct replacment for the jasmine-core + gem is the jasmine-core NPM package. If you are also using the jasmine gem, + we recommend using the jasmine-browser-runner NPM package instead. It + supports all the same scenarios as the jasmine gem gem plus Webpacker. See + https://jasmine.github.io/setup/browser.html for setup instructions, and + https://github.com/jasmine/jasmine-gem/blob/main/release_notes/3.9.0.md + for other options. + DESC s.email = %q{jasmine-js@googlegroups.com} s.homepage = "http://jasmine.github.io" s.license = "MIT" diff --git a/lib/jasmine-core.rb b/lib/jasmine-core.rb index d540f631..6ba57dd8 100644 --- a/lib/jasmine-core.rb +++ b/lib/jasmine-core.rb @@ -1,3 +1,28 @@ +if ENV["SUPPRESS_JASMINE_DEPRECATION"].nil? + puts <<~END_DEPRECATION_MSG + The Jasmine Ruby gems are deprecated. There will be no further releases after + the end of the Jasmine 3.x series. We recommend that most users migrate to the + jasmine-browser-runner npm package, which is the direct replacement for the + jasmine gem. See for setup + instructions, including for Rails applications that use either Sprockets or + Webpacker. + + If jasmine-browser-runner doesn't meet your needs, one of these might: + + * The jasmine npm package to run specs in Node.js: + + * The standalone distribution to run specs in browsers with no additional + tools: + * The jasmine-core npm package if all you need is the Jasmine assets: + . This is the direct equivalent of the + jasmine-core Ruby gem. + + To prevent this message from appearing, set the SUPPRESS_JASMINE_DEPRECATION + environment variable. + + END_DEPRECATION_MSG +end + module Jasmine module Core class << self diff --git a/lib/jasmine-core/jasmine.js b/lib/jasmine-core/jasmine.js index dd2e988a..827b137f 100644 --- a/lib/jasmine-core/jasmine.js +++ b/lib/jasmine-core/jasmine.js @@ -10373,5 +10373,5 @@ getJasmineRequireObj().UserContext = function(j$) { }; getJasmineRequireObj().version = function() { - return '3.8.0'; + return '3.9.0'; }; diff --git a/lib/jasmine-core/version.rb b/lib/jasmine-core/version.rb index f879e1d5..ccee40c5 100644 --- a/lib/jasmine-core/version.rb +++ b/lib/jasmine-core/version.rb @@ -4,6 +4,6 @@ # module Jasmine module Core - VERSION = "3.8.0" + VERSION = "3.9.0" end end diff --git a/package.json b/package.json index 521249e7..84dd9372 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "jasmine-core", "license": "MIT", - "version": "3.8.0", + "version": "3.9.0", "repository": { "type": "git", "url": "https://github.com/jasmine/jasmine.git" diff --git a/release_notes/3.9.0.md b/release_notes/3.9.0.md new file mode 100644 index 00000000..ca12f32b --- /dev/null +++ b/release_notes/3.9.0.md @@ -0,0 +1,65 @@ +# Jasmine Core 3.9 Release Notes + +## New features and bug fixes + +* Fixed Trusted Types error in `j$.isError_` in Chromium-based browsers + * Merges [#1921](https://github.com/jasmine/jasmine/pull/1921) from @bjarkler + * Fixes [#1910](https://github.com/jasmine/jasmine/issues/1910) + * Fixes [#1653](https://github.com/jasmine/jasmine/issues/1653) + +* Better reporting of unhandled promise rejections with truthy but non-`Error` + reasons on Node +* `Env#execute` returns a promise in environments that support promises +* Renamed `failFast` and `oneFailurePerSpec` config props to `stopOnSpecFailure` + and `stopSpecOnExpectationFailure` + + The new names are more self-explanatory and consistent with jasmine-npm. The + old names are deprecated but will still work until the next major release. + +* Split `boot.js` into two files to allow the env to be configured in between + + This is mainly intended to support jasmine-browser-runner, which will load + a script that configures the env in between the two boot files (`boot0.js` and + `boot1.js`). The single-file `boot.js` will still be included until the next + major release. + +## Ruby deprecation + +The Jasmine Ruby gems are deprecated. There will be no further releases after +the end of the Jasmine 3.x series. We recommend that most users migrate to the +[jasmine-browser-runner](https://github.com/jasmine/jasmine-browser) +npm package, which is the direct replacement for the `jasmine` gem. + +If `jasmine-browser-runner` doesn't meet your needs, one of these might: + +* The [jasmine](https://github.com/jasmine/jasmine-npm) npm package to run + specs in Node.js. +* The [standalone distribution](https://github.com/jasmine/jasmine#installation) + to run specs in browsers with no additional tools. +* The [jasmine-core](https://github.com/jasmine/jasmine) npm package if all + you need is the Jasmine assets. This is the direct equivalent of the + `jasmine-core` Ruby gem. + +## Documentation updates + +* Added API docs for `Suite#id` and `Spec#id` +* Marked `Env#hideDisabled` deprecated in jsdocs + + +------ + +## Supported environments + +jasmine-core 3.9.0 has been tested in the following environments. + +| Environment | Supported versions | +|-------------------|--------------------| +| Node | 10, 12, 14, 16 | +| Safari | 8-14 | +| Chrome | 92 | +| Firefox | 91, 78, 68 | +| Edge | 92 | +| Internet Explorer | 10, 11 | + + +_Release Notes generated with _[Anchorman](http://github.com/infews/anchorman)_