unstale

npm / jasmine-core

jasmine-core

What changed in jasmine-core 4 to 7, from its official release notes, upgrade guides and advisories. Sources checked 2026-11-30.

82 breaking7 deprecations15 new APIs and options9 behavior and defaults18 fixes and other

See which of these apply to your code, ranked, in your agent:

npx @unstale/cli init

@unstale/cli on npm

jasmine-core 741 changes

Breaking changes 24

Deprecations 2

New APIs and options 5

Behavior and default changes 3

  • The browser boot process has been simplified; maintainers of custom boot files should update them to match the distributed boot.js.

    7.0.0upgrade guide

  • This call can be made any time after jasmine.js loads and before env.execute() is called.

    7.0.0upgrade guide

  • Specs disabled with xdescribe receive a pending reason indicating they were temporarily disabled.

    7.0.0release notesupgrade guide

Fixes and other changes 7

  • The reported version number is corrected; it was incorrect in 7.0.0.

    7.0.1release notes

  • Fixed excess skipping of intervals when clearInterval is called from a timer callback.

    7.0.0upgrade guide

  • Fixed excess skipping of timeouts when clearTimeout is called from a timer callback.

    7.0.0upgrade guide

  • Jasmine no longer calls hasOwnProperty on user-provided objects.

    7.0.0release notesupgrade guide

  • Node 26 was added to the supported environments.

    7.0.0release notesupgrade guide

  • The HTML reporter now shows the correct mark for pending specs.

    7.0.0release notesupgrade guide

  • Fixes excess skipping of timeouts and intervals when clearTimeout or clearInterval is called from a timer callback.

    7.0.0release notes

jasmine-core 644 changes

Breaking changes 31

  • Specs disabled with xdescribe now have the pending reason “Temporarily disabled with xdescribe”.

    6.3.0release notes

  • Firefox 102, 115, and 128 are no longer supported or tested.

    6.2.0release notes

  • Safari 16 and 17 are no longer supported because Jasmine can no longer reliably test them.

    6.1.0release notes

  • The actual property is no longer included in expectation results passed to reporters; use passed and message instead.

    6.0.0upgrade guide

  • In Node, boot now creates a new core instance each time by default; pass false to retain the 5.x behavior.

    6.0.0upgrade guide

  • boot1.js no longer adds jsApiReporter to the env.

    6.0.0release notesupgrade guideupgrade guide

  • Spec/suite orders that cause a suite to be entered more than once are no longer supported when passing IDs to Env#execute.

    6.0.0upgrade guide

  • The expected and actual properties have been removed from passed and failed expectations.

    6.0.0upgrade guiderelease notes

  • The expected property is no longer included in expectation results passed to reporters; use passed and message instead.

    6.0.0upgrade guide

  • Set this core configuration property to false to retain the old behavior of allowing duplicate spec and suite names.

    6.0.0upgrade guiderelease notesupgrade guide

  • Global error spies always receive a single argument; the browser error event is no longer passed as a second argument.

    6.0.0release notesupgrade guide

  • HTML reporters cache configuration throughout each run, so changes made while specs are running no longer affect reporter behavior.

    6.0.0release notesupgrade guide

  • HTML reporters use a larger body font size.

    6.0.0release notesupgrade guide

  • The createElement option is ignored; HtmlReporter now unconditionally uses document.createElement.

    6.0.0release notesupgrade guideupgrade guide

  • The createTextNode option is ignored; HtmlReporter now unconditionally uses document.createTextNode.

    6.0.0release notesupgrade guideupgrade guide

  • HtmlReporterV2 creates different query string parameters than HtmlReporter, so software that processes those parameters needs updating.

    6.0.0upgrade guide

  • Private APIs have been removed from the jasmine namespace; only documented APIs should be relied on.

    6.0.0release notesupgrade guide

  • The order property no longer includes undocumented properties.

    6.0.0upgrade guide

  • The order property no longer includes undocumented properties.

    6.0.0upgrade guide

  • The mock clock no longer supports eval forms of setTimeout and setInterval.

    6.0.0upgrade guideupgrade guide

  • Mock clock timing functions can no longer be spied on, which previously prevented the mock clock from uninstalling itself.

    6.0.0release notesupgrade guideupgrade guide

  • Node 18 is no longer supported; supported Node versions are 20, 22, and 24.

    6.0.0release notesupgrade guide

  • Undocumented properties of the order property are no longer included in jasmineStarted and jasmineDone reporter events.

    6.0.0upgrade guide

  • Reporter events are deep-cloned before being passed to each reporter, protecting reporters against later mutation by jasmine-core or other reporters.

    6.0.0release notesupgrade guideupgrade guide

  • The mock clock no longer supports the eval form of setInterval.

    6.0.0release notes

  • Keys must be strings, and values must be both structured-cloneable and JSON-serializable.

    6.0.0release notesupgrade guide

  • The mock clock no longer supports the eval form of setTimeout.

    6.0.0release notes

  • The argument passed to spec filters is a spec metadata instance rather than the internal spec object.

    6.0.0release notesupgrade guideupgrade guide

  • A spy invoked via .call(null, ...) or .apply(null, ...) receives null as its this argument instead of globalThis.

    6.0.0release notesupgrade guide

  • Meaningless properties such as status and failedExpectations are omitted from these reporter events; that data is available from suiteDone and specDone.

    6.0.0upgrade guide

  • Meaningless properties such as status and failedExpectations are omitted from suiteStarted events.

    6.0.0upgrade guide

Deprecations 5

New APIs and options 4

Behavior and default changes 1

  • Jasmine reports the underlying errors that make up an AggregateError.

    6.1.0release notes

Fixes and other changes 3

  • Calling jasmineRequire.core from an ES module no longer emits a deprecation warning.

    6.0.1release notes

  • An execution order passed to Env#execute must not enter any suite more than once.

    6.0.0release notesupgrade guide

  • globalThis is used to determine the global object during initialization, making jasmine-core more tolerant of buggy bundlers or loaders that leave this undefined in the global context.

    6.0.0release notesupgrade guide

jasmine-core 516 changes

Breaking changes 6

  • Global errors are detected via addEventListener rather than setting window.onerror.

    5.0.0upgrade guide

  • Env#execute is now async and no longer accepts a callback parameter.

    5.0.0upgrade guide

  • Firefox 91 support was dropped; supported Firefox versions are 102 and 113.

    5.0.0upgrade guide

  • node_boot.js was removed; use the exported boot function instead.

    5.0.0upgrade guide

  • Node 20 is now supported; support for Node 12, 14, and 16 was dropped. Supported Node versions are 18 and 20.

    5.0.0upgrade guide

  • Safari 14 support was dropped; supported Safari versions are 15–16.

    5.0.0upgrade guide

New APIs and options 4

  • Adds a config option to fix reporter-event filename properties when configurations wrap describe, such as zone.js.

    5.13.0release notes

  • Adds a config option to fix reporter-event filename properties when configurations wrap it, such as zone.js.

    5.13.0release notes

  • Adds an asymmetric equality tester that merges multiple testers.

    5.13.0release notes

  • Parallel execution in Node is supported via the jasmine package.

    5.0.0upgrade guide

Behavior and default changes 1

  • The boot function exported by the core module returns the same object every time it is called.

    5.0.0upgrade guide

Fixes and other changes 5

  • Reporter-event filename properties are no longer deprecated.

    5.13.0release notes

  • Safari 26 is supported on a best-effort basis; future support will focus on the latest Safari available on GitHub Actions and, while practical, Safari 16 and 17.

    5.13.0release notes

  • The global error handler is uninstalled at the end of env execution.

    5.0.0upgrade guide

  • Pending specs always have a non-color indication.

    5.0.0upgrade guide

  • The contrast of the version number and inactive tab links was improved.

    5.0.0upgrade guide

jasmine-core 430 changes

Breaking changes 21

  • Combining callback-based and promise-based async forms now reports an error rather than a warning.

    4.0.0upgrade guide

  • If a beforeAll function fails for a reason other than a failed expectation, Jasmine skips the suite contents and child suites, except same-suite afterAll functions; affected specs are reported as failed.

    4.0.0upgrade guide

  • If a beforeEach function fails for a reason other than a failed expectation, Jasmine skips subsequent beforeEach functions, the spec, and child-suite afterEach functions; same- or higher-level afterEach functions still run.

    4.0.0upgrade guide

  • No longer included; use boot0.js and boot1.js instead.

    4.0.0upgrade guide

  • The old custom equality tester style, where matchers received testers from Jasmine and passed them back to matchersUtil methods, is no longer supported.

    4.0.0upgrade guide

  • this in describe functions is no longer a Suite object.

    4.0.0upgrade guide

  • Multiple calls to an asynchronous function's done callback are treated as errors.

    4.0.0upgrade guide

  • Any argument other than undefined passed to a done callback is treated as an error.

    4.0.0upgrade guide

  • Empty suites are treated as errors.

    4.0.0upgrade guide

  • The individual configuration property getter and setter was removed; use Env#configuration and Env#configure instead.

    4.0.0upgrade guide

  • The configuration property was removed; use stopOnSpecFailure instead.

    4.0.0upgrade guide

  • Throws when its argument is not a Date; previous versions ignored non-Date arguments.

    4.0.0upgrade guide

  • The current time value no longer decreases when tick is called from a setTimeout or setInterval callback.

    4.0.0upgrade guide

  • No longer included because all supported environments provide a JSON parser.

    4.0.0upgrade guide

  • Boot files in this directory are no longer included in the NPM package; use the boot files in lib/jasmine-core instead.

    4.0.0upgrade guide

  • No longer available globally; use the instances passed to custom matcher factories.

    4.0.0upgrade guide

  • The configuration property was removed; use stopSpecOnExpectationFailure instead.

    4.0.0upgrade guide

  • No longer available globally; use the instances passed to custom matcher factories and to jasmineToString.

    4.0.0upgrade guide

  • The Promise configuration property was removed. Jasmine can consume non-native promises but always uses the global Promise to create promises.

    4.0.0upgrade guide

  • Internet Explorer, PhantomJS, Safari 8–13, Firefox 68 and 78, Node 10 and 12.0–12.16, Python, Ruby, and Bower are no longer supported.

    4.0.0upgrade guide

  • Set members are compared using deep equality rather than ===, which may cause previously passing .not.toContain() expectations to fail.

    4.0.0upgrade guide

New APIs and options 2

  • Adds a log entry during spec execution; if the spec fails, entries are reported in the specDone reporter event.

    4.0.0upgrade guide

  • Jasmine can optionally be used without creating globals in Node.js.

    4.0.0upgrade guide

Behavior and default changes 4

  • afterAll functions run after a failure even when stopOnSpecFailure is set.

    4.0.0upgrade guide

  • Custom spy strategies are inherited from parent suites like other runnable resources.

    4.0.0upgrade guide

  • Can now be called from beforeEach functions.

    4.0.0upgrade guide

  • Supports custom equality testers.

    4.0.0upgrade guide

Fixes and other changes 3

  • Includes top suite failures in the reported failure count.

    4.0.0upgrade guide

  • Stack trace filtering on Safari 15 was fixed.

    4.0.0upgrade guide

  • Duplicate messages were removed from errors, including matcher failures.

    4.0.0upgrade guide