cypress 14.3.2 → 14.4.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -8,7 +8,7 @@
8
8
  import 'zone.js';
9
9
  import 'zone.js/testing';
10
10
  import { CommonModule } from '@angular/common';
11
- import { assertInInjectionContext, inject, Injector, effect, untracked, DestroyRef, Injectable, Component, EventEmitter, SimpleChange, ErrorHandler, signal } from '@angular/core';
11
+ import { assertInInjectionContext, inject, Injector, effect, untracked, DestroyRef, Injectable, Component, EventEmitter, ErrorHandler, SimpleChange, signal } from '@angular/core';
12
12
  import { getTestBed, TestComponentRenderer, TestBed } from '@angular/core/testing';
13
13
  import { BrowserDynamicTestingModule, platformBrowserDynamicTesting } from '@angular/platform-browser-dynamic/testing';
14
14
 
@@ -278,12 +278,7 @@ function execFinalizer(finalizer) {
278
278
  }
279
279
 
280
280
  var config = {
281
- onUnhandledError: null,
282
- onStoppedNotification: null,
283
- Promise: undefined,
284
- useDeprecatedSynchronousErrorHandling: false,
285
- useDeprecatedNextContext: false,
286
- };
281
+ Promise: undefined};
287
282
 
288
283
  var timeoutProvider = {
289
284
  setTimeout: function (handler, timeout) {
@@ -382,10 +377,6 @@ var Subscriber = (function (_super) {
382
377
  };
383
378
  return Subscriber;
384
379
  }(Subscription));
385
- var _bind = Function.prototype.bind;
386
- function bind(fn, thisArg) {
387
- return _bind.call(fn, thisArg);
388
- }
389
380
  var ConsumerObserver = (function () {
390
381
  function ConsumerObserver(partialObserver) {
391
382
  this.partialObserver = partialObserver;
@@ -441,17 +432,7 @@ var SafeSubscriber = (function (_super) {
441
432
  };
442
433
  }
443
434
  else {
444
- var context_1;
445
- if (_this && config.useDeprecatedNextContext) {
446
- context_1 = Object.create(observerOrNext);
447
- context_1.unsubscribe = function () { return _this.unsubscribe(); };
448
- partialObserver = {
449
- next: observerOrNext.next && bind(observerOrNext.next, context_1),
450
- error: observerOrNext.error && bind(observerOrNext.error, context_1),
451
- complete: observerOrNext.complete && bind(observerOrNext.complete, context_1),
452
- };
453
- }
454
- else {
435
+ {
455
436
  partialObserver = observerOrNext;
456
437
  }
457
438
  }
@@ -938,7 +919,7 @@ CypressAngularErrorHandler = __decorate([
938
919
  */
939
920
  function bootstrapModule(component, config) {
940
921
  var _a;
941
- const testModuleMetaData = __rest(config, ["componentProperties"]);
922
+ const { componentProperties } = config, testModuleMetaData = __rest(config, ["componentProperties"]);
942
923
  if (!testModuleMetaData.declarations) {
943
924
  testModuleMetaData.declarations = [];
944
925
  }
@@ -8,7 +8,7 @@
8
8
  import 'zone.js';
9
9
  import 'zone.js/testing';
10
10
  import { CommonModule } from '@angular/common';
11
- import { assertInInjectionContext, inject, Injector, effect, untracked, DestroyRef, Injectable, Component, EventEmitter, SimpleChange, ErrorHandler, signal } from '@angular/core';
11
+ import { assertInInjectionContext, inject, Injector, effect, untracked, DestroyRef, Injectable, Component, EventEmitter, ErrorHandler, SimpleChange, signal } from '@angular/core';
12
12
  import { getTestBed, TestComponentRenderer, TestBed } from '@angular/core/testing';
13
13
  import { BrowserDynamicTestingModule, platformBrowserDynamicTesting } from '@angular/platform-browser-dynamic/testing';
14
14
 
@@ -278,12 +278,7 @@ function execFinalizer(finalizer) {
278
278
  }
279
279
 
280
280
  var config = {
281
- onUnhandledError: null,
282
- onStoppedNotification: null,
283
- Promise: undefined,
284
- useDeprecatedSynchronousErrorHandling: false,
285
- useDeprecatedNextContext: false,
286
- };
281
+ Promise: undefined};
287
282
 
288
283
  var timeoutProvider = {
289
284
  setTimeout: function (handler, timeout) {
@@ -382,10 +377,6 @@ var Subscriber = (function (_super) {
382
377
  };
383
378
  return Subscriber;
384
379
  }(Subscription));
385
- var _bind = Function.prototype.bind;
386
- function bind(fn, thisArg) {
387
- return _bind.call(fn, thisArg);
388
- }
389
380
  var ConsumerObserver = (function () {
390
381
  function ConsumerObserver(partialObserver) {
391
382
  this.partialObserver = partialObserver;
@@ -441,17 +432,7 @@ var SafeSubscriber = (function (_super) {
441
432
  };
442
433
  }
443
434
  else {
444
- var context_1;
445
- if (_this && config.useDeprecatedNextContext) {
446
- context_1 = Object.create(observerOrNext);
447
- context_1.unsubscribe = function () { return _this.unsubscribe(); };
448
- partialObserver = {
449
- next: observerOrNext.next && bind(observerOrNext.next, context_1),
450
- error: observerOrNext.error && bind(observerOrNext.error, context_1),
451
- complete: observerOrNext.complete && bind(observerOrNext.complete, context_1),
452
- };
453
- }
454
- else {
435
+ {
455
436
  partialObserver = observerOrNext;
456
437
  }
457
438
  }
@@ -938,7 +919,7 @@ CypressAngularErrorHandler = __decorate([
938
919
  */
939
920
  function bootstrapModule(component, config) {
940
921
  var _a;
941
- const testModuleMetaData = __rest(config, ["componentProperties"]);
922
+ const { componentProperties } = config, testModuleMetaData = __rest(config, ["componentProperties"]);
942
923
  if (!testModuleMetaData.declarations) {
943
924
  testModuleMetaData.declarations = [];
944
925
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cypress",
3
- "version": "14.3.2",
3
+ "version": "14.4.0",
4
4
  "main": "index.js",
5
5
  "scripts": {
6
6
  "postinstall": "node index.js --exec install",
@@ -20,7 +20,7 @@
20
20
  "check-more-types": "^2.24.0",
21
21
  "ci-info": "^4.1.0",
22
22
  "cli-cursor": "^3.1.0",
23
- "cli-table3": "~0.6.5",
23
+ "cli-table3": "0.6.1",
24
24
  "commander": "^6.2.1",
25
25
  "common-tags": "^1.8.0",
26
26
  "dayjs": "^1.10.4",
@@ -123,8 +123,8 @@
123
123
  },
124
124
  "buildInfo": {
125
125
  "commitBranch": "develop",
126
- "commitSha": "b2a2c90242551eb0ae4ce50889c69a96fac9bd01",
127
- "commitDate": "2025-04-22T19:13:38.000Z",
126
+ "commitSha": "09868d73b13fc24d79ef02eac3cd7809b918179d",
127
+ "commitDate": "2025-05-20T17:10:12.000Z",
128
128
  "stable": true
129
129
  },
130
130
  "description": "Cypress is a next generation front end testing tool built for the modern web",
@@ -28,7 +28,7 @@
28
28
  "react-router-dom": "6.28.0",
29
29
  "semver": "^7.7.1",
30
30
  "typescript": "~5.4.5",
31
- "vite": "5.4.10",
31
+ "vite": "5.4.18",
32
32
  "vite-plugin-require-transform": "1.0.12"
33
33
  },
34
34
  "peerDependencies": {
@@ -28,7 +28,7 @@
28
28
  "react-router-dom": "6.28.0",
29
29
  "semver": "^7.7.1",
30
30
  "typescript": "~5.4.5",
31
- "vite": "5.4.10",
31
+ "vite": "5.4.18",
32
32
  "vite-plugin-require-transform": "1.0.12"
33
33
  },
34
34
  "peerDependencies": {
@@ -1755,7 +1755,7 @@ declare namespace Cypress {
1755
1755
  * cy.press(Cypress.Keyboard.Keys.TAB) // dispatches a keydown and press event to the browser, followed by a keyup event.
1756
1756
  * @see https://on.cypress.io/press
1757
1757
  */
1758
- press(key: typeof Cypress.Keyboard.Keys[keyof typeof Cypress.Keyboard.Keys], options?: Partial<Loggable & Timeoutable>): void
1758
+ press(key: typeof Cypress.Keyboard.Keys[keyof typeof Cypress.Keyboard.Keys], options?: Partial<Loggable & Timeoutable>): Chainable<null>
1759
1759
 
1760
1760
  /**
1761
1761
  * Get the immediately preceding sibling of each element in a set of the elements.
@@ -3330,7 +3330,6 @@ declare namespace Cypress {
3330
3330
  spec: Cypress['spec'] | null
3331
3331
  specs: Array<Cypress['spec']>
3332
3332
  isDefaultProtocolEnabled: boolean
3333
- isStudioProtocolEnabled: boolean
3334
3333
  hideCommandLog: boolean
3335
3334
  hideRunnerUi: boolean
3336
3335
  }
@@ -1,20 +1,10 @@
1
- // Type definitions for sinon-chai 3.2.0
2
- // Project: https://github.com/domenic/sinon-chai
3
- // Definitions by: Kazi Manzur Rashid <https://github.com/kazimanzurrashid>
4
- // Jed Mao <https://github.com/jedmao>
5
- // Eyal Lapid <https://github.com/elpdpt>
6
- // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
7
- // TypeScript Version: 3.0
8
-
9
1
  /// <reference path="../chai/index.d.ts" />
10
2
  /// <reference path="../sinon/index.d.ts" />
11
3
 
12
- import * as Sinon from '../sinon';
4
+ import * as Sinon from "../sinon";
13
5
 
14
6
  declare global {
15
-
16
7
  export namespace Chai {
17
-
18
8
  interface LanguageChains {
19
9
  always: Assertion;
20
10
  }
@@ -43,21 +33,21 @@ declare global {
43
33
  /**
44
34
  * Returns true if the spy was called before anotherSpy.
45
35
  */
46
- calledBefore(anotherSpy: Sinon.SinonSpy): Assertion;
36
+ calledBefore(anotherSpy: Sinon.SinonSpy | Sinon.SinonSpyCall | Sinon.SinonStub): Assertion;
47
37
  /**
48
38
  * Returns true if the spy was called after anotherSpy.
49
39
  */
50
- calledAfter(anotherSpy: Sinon.SinonSpy): Assertion;
40
+ calledAfter(anotherSpy: Sinon.SinonSpy | Sinon.SinonSpyCall | Sinon.SinonStub): Assertion;
51
41
  /**
52
42
  * Returns true if spy was called before anotherSpy, and no spy calls occurred
53
43
  * between spy and anotherSpy.
54
44
  */
55
- calledImmediatelyBefore(anotherSpy: Sinon.SinonSpy): Assertion;
45
+ calledImmediatelyBefore(anotherSpy: Sinon.SinonSpy | Sinon.SinonStub): Assertion;
56
46
  /**
57
47
  * Returns true if spy was called after anotherSpy, and no spy calls occurred
58
48
  * between anotherSpy and spy.
59
49
  */
60
- calledImmediatelyAfter(anotherSpy: Sinon.SinonSpy): Assertion;
50
+ calledImmediatelyAfter(anotherSpy: Sinon.SinonSpy | Sinon.SinonStub): Assertion;
61
51
  /**
62
52
  * Returns true if spy/stub was called with the new operator. Beware that
63
53
  * this is inferred based on the value of the this object and the spy
@@ -105,5 +95,5 @@ declare global {
105
95
  }
106
96
 
107
97
  declare const sinonChai: Chai.ChaiPlugin;
108
- declare namespace sinonChai { }
98
+ declare namespace sinonChai {}
109
99
  export = sinonChai;
package/vue/package.json CHANGED
@@ -25,7 +25,7 @@
25
25
  "globby": "^11.0.1",
26
26
  "tailwindcss": "1.1.4",
27
27
  "typescript": "~5.4.5",
28
- "vite": "5.2.11",
28
+ "vite": "5.4.18",
29
29
  "vue": "3.2.47",
30
30
  "vue-i18n": "9.13.1",
31
31
  "vue-router": "^4.0.0",
@@ -25,7 +25,7 @@
25
25
  "globby": "^11.0.1",
26
26
  "tailwindcss": "1.1.4",
27
27
  "typescript": "~5.4.5",
28
- "vite": "5.2.11",
28
+ "vite": "5.4.18",
29
29
  "vue": "3.2.47",
30
30
  "vue-i18n": "9.13.1",
31
31
  "vue-router": "^4.0.0",