cypress 15.0.0 → 15.1.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.
- package/lib/util.js +9 -10
- package/package.json +7 -4
- package/react/package.json +1 -1
- package/react/react/package.json +1 -1
- package/types/cypress-automation.d.ts +18 -0
- package/types/cypress.d.ts +15 -2
- package/types/index.d.ts +1 -1
- package/vue/package.json +1 -1
- package/vue/vue/package.json +1 -1
package/lib/util.js
CHANGED
@@ -11,7 +11,7 @@ const tty = require('tty');
|
|
11
11
|
const path = require('path');
|
12
12
|
const isCi = require('ci-info').isCI;
|
13
13
|
const execa = require('execa');
|
14
|
-
const
|
14
|
+
const si = require('systeminformation');
|
15
15
|
const chalk = require('chalk');
|
16
16
|
const Promise = require('bluebird');
|
17
17
|
const cachedir = require('cachedir');
|
@@ -27,7 +27,6 @@ const debug = require('debug')('cypress:cli');
|
|
27
27
|
const fs = require('./fs');
|
28
28
|
const pkg = require(path.join(__dirname, '..', 'package.json'));
|
29
29
|
const issuesUrl = 'https://github.com/cypress-io/cypress/issues';
|
30
|
-
const getosAsync = Promise.promisify(getos);
|
31
30
|
|
32
31
|
/**
|
33
32
|
* Returns SHA512 of a file
|
@@ -322,14 +321,14 @@ const util = {
|
|
322
321
|
isLinux,
|
323
322
|
getOsVersionAsync() {
|
324
323
|
return Promise.try(() => {
|
325
|
-
|
326
|
-
|
327
|
-
return
|
328
|
-
}
|
329
|
-
|
330
|
-
|
331
|
-
|
332
|
-
|
324
|
+
return si.osInfo().then(osInfo => {
|
325
|
+
if (osInfo.distro && osInfo.release) {
|
326
|
+
return `${osInfo.distro} - ${osInfo.release}`;
|
327
|
+
}
|
328
|
+
return os.release();
|
329
|
+
}).catch(() => {
|
330
|
+
return os.release();
|
331
|
+
});
|
333
332
|
});
|
334
333
|
},
|
335
334
|
async getPlatformInfo() {
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "cypress",
|
3
|
-
"version": "15.
|
3
|
+
"version": "15.1.0",
|
4
4
|
"main": "index.js",
|
5
5
|
"scripts": {
|
6
6
|
"postinstall": "node index.js --exec install",
|
@@ -32,7 +32,6 @@
|
|
32
32
|
"extract-zip": "2.0.1",
|
33
33
|
"figures": "^3.2.0",
|
34
34
|
"fs-extra": "^9.1.0",
|
35
|
-
"getos": "^3.2.1",
|
36
35
|
"hasha": "5.2.2",
|
37
36
|
"is-installed-globally": "~0.4.0",
|
38
37
|
"lazy-ass": "^1.6.0",
|
@@ -47,6 +46,7 @@
|
|
47
46
|
"request-progress": "^3.0.0",
|
48
47
|
"semver": "^7.7.1",
|
49
48
|
"supports-color": "^8.1.1",
|
49
|
+
"systeminformation": "5.27.7",
|
50
50
|
"tmp": "~0.2.4",
|
51
51
|
"tree-kill": "1.2.2",
|
52
52
|
"untildify": "^4.0.0",
|
@@ -77,6 +77,9 @@
|
|
77
77
|
"import": "./index.mjs",
|
78
78
|
"require": "./index.js"
|
79
79
|
},
|
80
|
+
"./types/net-stubbing": {
|
81
|
+
"types": "./types/net-stubbing.d.ts"
|
82
|
+
},
|
80
83
|
"./vue": {
|
81
84
|
"types": "./vue/dist/index.d.ts",
|
82
85
|
"import": "./vue/dist/cypress-vue.esm-bundler.js",
|
@@ -124,8 +127,8 @@
|
|
124
127
|
},
|
125
128
|
"buildInfo": {
|
126
129
|
"commitBranch": "develop",
|
127
|
-
"commitSha": "
|
128
|
-
"commitDate": "2025-
|
130
|
+
"commitSha": "591de461fd8ca9a56af617845b2c55b5b23ebf29",
|
131
|
+
"commitDate": "2025-09-02T18:31:16.000Z",
|
129
132
|
"stable": true
|
130
133
|
},
|
131
134
|
"description": "Cypress is a next generation front end testing tool built for the modern web",
|
package/react/package.json
CHANGED
package/react/react/package.json
CHANGED
@@ -0,0 +1,18 @@
|
|
1
|
+
declare namespace Cypress {
|
2
|
+
type SupportedNamedKey = 'ArrowDown' |
|
3
|
+
'ArrowLeft' |
|
4
|
+
'ArrowRight' |
|
5
|
+
'ArrowUp' |
|
6
|
+
'End' |
|
7
|
+
'Home' |
|
8
|
+
'PageDown' |
|
9
|
+
'PageUp' |
|
10
|
+
'Space' |
|
11
|
+
'Enter' |
|
12
|
+
'Tab' |
|
13
|
+
'Backspace' |
|
14
|
+
'Delete' |
|
15
|
+
'Insert'
|
16
|
+
|
17
|
+
type SupportedKey = SupportedNamedKey | string | number
|
18
|
+
}
|
package/types/cypress.d.ts
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
/// <reference path="./cypress-npm-api.d.ts" />
|
3
3
|
/// <reference path="./cypress-eventemitter.d.ts" />
|
4
4
|
/// <reference path="./cypress-type-helpers.d.ts" />
|
5
|
-
|
5
|
+
/// <reference path="./cypress-automation.d.ts" />
|
6
6
|
declare namespace Cypress {
|
7
7
|
type FileContents = string | any[] | object
|
8
8
|
type HistoryDirection = 'back' | 'forward'
|
@@ -684,7 +684,20 @@ declare namespace Cypress {
|
|
684
684
|
Keyboard: {
|
685
685
|
defaults(options: Partial<KeyboardDefaultsOptions>): void
|
686
686
|
Keys: {
|
687
|
+
DOWN: 'ArrowDown',
|
688
|
+
LEFT: 'ArrowLeft',
|
689
|
+
RIGHT: 'ArrowRight',
|
690
|
+
UP: 'ArrowUp',
|
691
|
+
END: 'End',
|
692
|
+
HOME: 'Home',
|
693
|
+
PAGEDOWN: 'PageDown',
|
694
|
+
PAGEUP: 'PageUp',
|
695
|
+
ENTER: 'Enter',
|
687
696
|
TAB: 'Tab',
|
697
|
+
BACKSPACE: 'Backspace',
|
698
|
+
SPACE: 'Space',
|
699
|
+
DELETE: 'Delete',
|
700
|
+
INSERT: 'Insert',
|
688
701
|
},
|
689
702
|
}
|
690
703
|
|
@@ -1765,7 +1778,7 @@ declare namespace Cypress {
|
|
1765
1778
|
* cy.press(Cypress.Keyboard.Keys.TAB) // dispatches a keydown and press event to the browser, followed by a keyup event.
|
1766
1779
|
* @see https://on.cypress.io/press
|
1767
1780
|
*/
|
1768
|
-
press(key:
|
1781
|
+
press(key: SupportedKey, options?: Partial<Loggable & Timeoutable>): Chainable<null>
|
1769
1782
|
|
1770
1783
|
/**
|
1771
1784
|
* Get the immediately preceding sibling of each element in a set of the elements.
|
package/types/index.d.ts
CHANGED
@@ -4,7 +4,7 @@
|
|
4
4
|
// Mike Woudenberg <https://github.com/mikewoudenberg>
|
5
5
|
// Robbert van Markus <https://github.com/rvanmarkus>
|
6
6
|
// Nicholas Boll <https://github.com/nicholasboll>
|
7
|
-
// TypeScript Version:
|
7
|
+
// TypeScript Version: 5.0
|
8
8
|
// Updated by the Cypress team: https://www.cypress.io/about/
|
9
9
|
|
10
10
|
/// <reference path="./cy-blob-util.d.ts" />
|
package/vue/package.json
CHANGED
package/vue/vue/package.json
CHANGED