Compare commits

..

4 Commits

Author SHA1 Message Date
Steve Gravrock 7379a3a11b Bump version to 6.0.1
Test in latest available Safari / build (push) Has been cancelled
2026-01-19 07:59:36 -08:00
Steve Gravrock 066669cfee Revert "Temporarily (I hope) disable testing against Safari 16 and 17"
This reverts commit 6755b03f12.
2026-01-18 20:51:20 -08:00
Steve Gravrock 87177d9d43 Fix browser ESM deprecation wraning
Previously, the warning was issued if jasmineRequire.core was called from
an ES module rather than being defined in an ES module.
2026-01-17 17:12:32 -08:00
Steve Gravrock 0c75a154a8 Fix typo 2026-01-17 12:00:58 -08:00
6 changed files with 42 additions and 9 deletions
+5 -3
View File
@@ -43,6 +43,9 @@ var getJasmineRequireObj = (function() {
return jasmineRequire; return jasmineRequire;
} }
const loadedAsBrowserEsm =
globalThis.document && !globalThis.document.currentScript;
getJasmineRequire().core = function(jRequire) { getJasmineRequire().core = function(jRequire) {
const j$ = {}; const j$ = {};
Object.defineProperty(j$, 'private', { Object.defineProperty(j$, 'private', {
@@ -124,8 +127,7 @@ var getJasmineRequireObj = (function() {
j$.private.matchers = jRequire.requireMatchers(jRequire, j$); j$.private.matchers = jRequire.requireMatchers(jRequire, j$);
j$.private.asyncMatchers = jRequire.requireAsyncMatchers(jRequire, j$); j$.private.asyncMatchers = jRequire.requireAsyncMatchers(jRequire, j$);
j$.private.loadedAsBrowserEsm = j$.private.loadedAsBrowserEsm = loadedAsBrowserEsm;
globalThis.document && !globalThis.document.currentScript;
j$.private.deprecateMonkeyPatching(j$, [ j$.private.deprecateMonkeyPatching(j$, [
// These are meant to be set by users. // These are meant to be set by users.
@@ -12406,5 +12408,5 @@ getJasmineRequireObj().UserContext = function(j$) {
}; };
getJasmineRequireObj().version = function() { getJasmineRequireObj().version = function() {
return '6.0.0'; return '6.0.1';
}; };
+1 -1
View File
@@ -1,7 +1,7 @@
{ {
"name": "jasmine-core", "name": "jasmine-core",
"license": "MIT", "license": "MIT",
"version": "6.0.0", "version": "6.0.1",
"repository": { "repository": {
"type": "git", "type": "git",
"url": "https://github.com/jasmine/jasmine.git" "url": "https://github.com/jasmine/jasmine.git"
+1 -1
View File
@@ -10,7 +10,7 @@ jasmine-core's internal state, removing ambiguities from the reporter API, and
warning about monkey patching. warning about monkey patching.
6.x is intended to ba a relatively short-lived, transitional series. It is 6.x is intended to ba a relatively short-lived, transitional series. It is
compatible with the current versions of karam-jasmine and other legacy Angular compatible with the current versions of karma-jasmine and other legacy Angular
tools but emits deprecation warnings when used with them. 7.0 will drop tools but emits deprecation warnings when used with them. 7.0 will drop
compatibility with those tools. If you use Karma in a non-Angular context, compatibility with those tools. If you use Karma in a non-Angular context,
consider migrating to a maintained alternative such as jasmine-browser-runner or consider migrating to a maintained alternative such as jasmine-browser-runner or
+29
View File
@@ -0,0 +1,29 @@
# Jasmine Core 6.0.1 Release Notes
## Bug fixes
* Don't emit a deprecation warning when `jasmineRequire.core` is called from an
ES module
## Supported environments
This version has been tested in the following environments.
| Environment | Supported versions |
|-------------------|--------------------------------|
| Node | 20, 22, 24 |
| Safari** | 16, 17, 26.2 |
| Chrome | 143* |
| Firefox | 102**, 115**, 128**, 140, 147* |
| Edge | 143* |
\* Evergreen browser. Each version of Jasmine is tested against the latest
version available at release time.<br>
\** Supported on a best-effort basis. Support for these versions may be dropped
if it becomes impractical, and bugs affecting only these versions may not be
treated as release blockers.
------
_Release Notes generated with _[Anchorman](http://github.com/infews/anchorman)_
+2 -2
View File
@@ -44,8 +44,8 @@ else
fi fi
run_browser firefox 102 run_browser firefox 102
# run_browser safari 17 run_browser safari 17
# run_browser safari 16 run_browser safari 16
run_browser MicrosoftEdge latest run_browser MicrosoftEdge latest
+4 -2
View File
@@ -19,6 +19,9 @@ var getJasmineRequireObj = (function() {
return jasmineRequire; return jasmineRequire;
} }
const loadedAsBrowserEsm =
globalThis.document && !globalThis.document.currentScript;
getJasmineRequire().core = function(jRequire) { getJasmineRequire().core = function(jRequire) {
const j$ = {}; const j$ = {};
Object.defineProperty(j$, 'private', { Object.defineProperty(j$, 'private', {
@@ -100,8 +103,7 @@ var getJasmineRequireObj = (function() {
j$.private.matchers = jRequire.requireMatchers(jRequire, j$); j$.private.matchers = jRequire.requireMatchers(jRequire, j$);
j$.private.asyncMatchers = jRequire.requireAsyncMatchers(jRequire, j$); j$.private.asyncMatchers = jRequire.requireAsyncMatchers(jRequire, j$);
j$.private.loadedAsBrowserEsm = j$.private.loadedAsBrowserEsm = loadedAsBrowserEsm;
globalThis.document && !globalThis.document.currentScript;
j$.private.deprecateMonkeyPatching(j$, [ j$.private.deprecateMonkeyPatching(j$, [
// These are meant to be set by users. // These are meant to be set by users.