Compare commits
9 Commits
v6.0.0-bet
...
v6.0.0-bet
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
9f0488dc32 | ||
|
|
f3dba82b04 | ||
|
|
c999ce0787 | ||
|
|
5b76bf9552 | ||
|
|
9cf9b856b0 | ||
|
|
db6c142afd | ||
|
|
1e691b2470 | ||
|
|
c5555dd8cc | ||
|
|
78c14f81a8 |
@@ -49,11 +49,16 @@ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|||||||
*/
|
*/
|
||||||
env.configure(urls.configFromCurrentUrl());
|
env.configure(urls.configFromCurrentUrl());
|
||||||
|
|
||||||
window.addEventListener('load', function() {
|
const currentWindowOnload = window.onload;
|
||||||
|
window.onload = function() {
|
||||||
|
if (currentWindowOnload) {
|
||||||
|
currentWindowOnload();
|
||||||
|
}
|
||||||
|
|
||||||
// The HTML reporter needs to be set up here so it can access the DOM. Other
|
// The HTML reporter needs to be set up here so it can access the DOM. Other
|
||||||
// reporters can be added at any time before env.execute() is called.
|
// reporters can be added at any time before env.execute() is called.
|
||||||
const htmlReporter = new jasmine.HtmlReporterV2({ env, urls });
|
const htmlReporter = new jasmine.HtmlReporterV2({ env, urls });
|
||||||
env.addReporter(htmlReporter);
|
env.addReporter(htmlReporter);
|
||||||
env.execute();
|
env.execute();
|
||||||
});
|
};
|
||||||
})();
|
})();
|
||||||
|
|||||||
@@ -12385,5 +12385,5 @@ getJasmineRequireObj().UserContext = function(j$) {
|
|||||||
};
|
};
|
||||||
|
|
||||||
getJasmineRequireObj().version = function() {
|
getJasmineRequireObj().version = function() {
|
||||||
return '6.0.0-beta.0';
|
return '6.0.0-beta.1';
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
{
|
{
|
||||||
"name": "jasmine-core",
|
"name": "jasmine-core",
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"version": "6.0.0-beta.0",
|
"version": "6.0.0-beta.1",
|
||||||
"repository": {
|
"repository": {
|
||||||
"type": "git",
|
"type": "git",
|
||||||
"url": "https://github.com/jasmine/jasmine.git"
|
"url": "https://github.com/jasmine/jasmine.git"
|
||||||
@@ -43,10 +43,10 @@
|
|||||||
"ejs": "^3.1.10",
|
"ejs": "^3.1.10",
|
||||||
"eslint": "^9.24.0",
|
"eslint": "^9.24.0",
|
||||||
"eslint-plugin-compat": "^6.0.2",
|
"eslint-plugin-compat": "^6.0.2",
|
||||||
"glob": "^10.2.3",
|
"glob": "^13.0.0",
|
||||||
"globals": "^16.0.0",
|
"globals": "^16.0.0",
|
||||||
"jasmine": "github:jasmine/jasmine-npm#6.0",
|
"jasmine": "github:jasmine/jasmine-npm",
|
||||||
"jasmine-browser-runner": "github:jasmine/jasmine-browser-runner#4.0",
|
"jasmine-browser-runner": "github:jasmine/jasmine-browser-runner",
|
||||||
"jsdom": "^26.0.0",
|
"jsdom": "^26.0.0",
|
||||||
"prettier": "1.17.1",
|
"prettier": "1.17.1",
|
||||||
"sass": "^1.58.3"
|
"sass": "^1.58.3"
|
||||||
|
|||||||
44
release_notes/5.13.0.md
Normal file
44
release_notes/5.13.0.md
Normal file
@@ -0,0 +1,44 @@
|
|||||||
|
# Jasmine Core 5.13.0 Release Notes
|
||||||
|
|
||||||
|
## Changes to supported environments
|
||||||
|
|
||||||
|
Safari 26 is now supported on a best-effort basis.
|
||||||
|
|
||||||
|
Due to the limited availability of Safari 18 and later on free CI services,
|
||||||
|
Safari support in future jasmine-core versions will be limited to:
|
||||||
|
|
||||||
|
* Best-effort support for the latest Safari version available on GitHub Actions,
|
||||||
|
which may change at any time.
|
||||||
|
* Best-effort support for Safari 16 and 17 for as long as it remains practical.
|
||||||
|
|
||||||
|
## New Features
|
||||||
|
|
||||||
|
* New `extraItStackFrames` and `extraDescribeStackFrames` config options to fix
|
||||||
|
the filename properties of reporter events in configurations that wrap
|
||||||
|
`it`/`describe`, such as zone.js. The `filename` properties of reporter events
|
||||||
|
are no longer deprecated.
|
||||||
|
* `jasmine.allOf` asymmetric equality tester
|
||||||
|
* Merges [#2087](https://github.com/jasmine/jasmine/issues/2083) from @jonahd-g
|
||||||
|
* Fixes [#2083](https://github.com/jasmine/jasmine/pull/2087)
|
||||||
|
|
||||||
|
## Supported environments
|
||||||
|
|
||||||
|
This version has been tested in the following environments.
|
||||||
|
|
||||||
|
| Environment | Supported versions |
|
||||||
|
|-------------|--------------------------------|
|
||||||
|
| Node | 18.20.5**, 20, 22, 24 |
|
||||||
|
| Safari** | 16, 17, 26.1 |
|
||||||
|
| Chrome | 142* |
|
||||||
|
| Firefox | 102**, 115**, 128**, 140, 145* |
|
||||||
|
| Edge | 142* |
|
||||||
|
|
||||||
|
\* 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)_
|
||||||
47
release_notes/6.0.0-beta.1.md
Normal file
47
release_notes/6.0.0-beta.1.md
Normal file
@@ -0,0 +1,47 @@
|
|||||||
|
# Jasmine Core 6.0.0-beta.1 Release Notes
|
||||||
|
|
||||||
|
This is a pre-release, intended to offer a preview of upcoming changes and to
|
||||||
|
solicit feedback.
|
||||||
|
|
||||||
|
A corresponding release of the `jasmine` package is not planned because the
|
||||||
|
change in this release only affects browser users.
|
||||||
|
|
||||||
|
## A Note About Pre-Release Compatibility
|
||||||
|
|
||||||
|
There may be additional breaking changes in future 6.0 pre-releases or in the
|
||||||
|
final 6.0 release. That's allowed by the semver specification, but users are
|
||||||
|
sometimes unpleasantly surprised by it.
|
||||||
|
|
||||||
|
NPM's implementation of carat version ranges assumes that subsequent
|
||||||
|
pre-releases and final releases are fully compatible with earlier pre-releases.
|
||||||
|
If your package.json contains `"jasmine-core": "^6.0.0-beta.1`,
|
||||||
|
NPM might install any later 6.x version even though there is no guarantee of
|
||||||
|
compatibility. If that isn't ok, you should specify an exact pre-release version:
|
||||||
|
`"jasmine-core": "6.0.0-beta.1`.
|
||||||
|
|
||||||
|
## Bug Fixes
|
||||||
|
|
||||||
|
* Revert to using window.onload in boot1.js. This fixes top level await in
|
||||||
|
jasmine-browser-runner.
|
||||||
|
|
||||||
|
## Supported environments
|
||||||
|
|
||||||
|
This version has been tested in the following environments.
|
||||||
|
|
||||||
|
| Environment | Supported versions |
|
||||||
|
|-------------------|--------------------------------|
|
||||||
|
| Node | 20, 22, 24 |
|
||||||
|
| Safari** | 16, 17, 26.1 |
|
||||||
|
| Chrome | 143* |
|
||||||
|
| Firefox | 102**, 115**, 128**, 140, 145* |
|
||||||
|
| Edge | 142* |
|
||||||
|
|
||||||
|
\* 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)_
|
||||||
@@ -768,7 +768,16 @@ describe('matchersUtil', function() {
|
|||||||
a2[0] = 1;
|
a2[0] = 1;
|
||||||
const diffBuilder = new privateUnderTest.DiffBuilder();
|
const diffBuilder = new privateUnderTest.DiffBuilder();
|
||||||
expect(matchersUtil.equals(a1, a2, diffBuilder)).toBe(false);
|
expect(matchersUtil.equals(a1, a2, diffBuilder)).toBe(false);
|
||||||
jasmine.debugLog('Diff: ' + diffBuilder.getMessage());
|
jasmine.debugLog(
|
||||||
|
'a1 keys: ' + jasmine.pp(privateUnderTest.MatchersUtil.keys(a1))
|
||||||
|
);
|
||||||
|
jasmine.debugLog(
|
||||||
|
'a2 keys: ' + jasmine.pp(privateUnderTest.MatchersUtil.keys(a2))
|
||||||
|
);
|
||||||
|
jasmine.debugLog('a1 length:' + a1.length);
|
||||||
|
jasmine.debugLog('a2 length:' + a2.length);
|
||||||
|
jasmine.debugLog('a1[0]: ' + a1[0]);
|
||||||
|
jasmine.debugLog('a2[0]: ' + a2[0]);
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|||||||
@@ -25,11 +25,16 @@
|
|||||||
*/
|
*/
|
||||||
env.configure(urls.configFromCurrentUrl());
|
env.configure(urls.configFromCurrentUrl());
|
||||||
|
|
||||||
window.addEventListener('load', function() {
|
const currentWindowOnload = window.onload;
|
||||||
|
window.onload = function() {
|
||||||
|
if (currentWindowOnload) {
|
||||||
|
currentWindowOnload();
|
||||||
|
}
|
||||||
|
|
||||||
// The HTML reporter needs to be set up here so it can access the DOM. Other
|
// The HTML reporter needs to be set up here so it can access the DOM. Other
|
||||||
// reporters can be added at any time before env.execute() is called.
|
// reporters can be added at any time before env.execute() is called.
|
||||||
const htmlReporter = new jasmine.HtmlReporterV2({ env, urls });
|
const htmlReporter = new jasmine.HtmlReporterV2({ env, urls });
|
||||||
env.addReporter(htmlReporter);
|
env.addReporter(htmlReporter);
|
||||||
env.execute();
|
env.execute();
|
||||||
});
|
};
|
||||||
})();
|
})();
|
||||||
|
|||||||
Reference in New Issue
Block a user