cypress 12.17.3 → 12.17.4

Sign up to get free protection for your applications and to get access to all the features.
@@ -7,7 +7,6 @@
7
7
  "prebuild": "rimraf dist",
8
8
  "build": "rollup -c rollup.config.mjs",
9
9
  "postbuild": "node ../../scripts/sync-exported-npm-with-cli.js",
10
- "build-prod": "yarn build",
11
10
  "check-ts": "tsc --noEmit",
12
11
  "lint": "eslint --ext .js,.ts,.json, ."
13
12
  },
@@ -59,6 +58,18 @@
59
58
  "publishConfig": {
60
59
  "access": "public"
61
60
  },
61
+ "nx": {
62
+ "targets": {
63
+ "build": {
64
+ "inputs": [
65
+ "{workspaceRoot}/scripts"
66
+ ],
67
+ "outputs": [
68
+ "{workspaceRoot}/cli/angular"
69
+ ]
70
+ }
71
+ }
72
+ },
62
73
  "standard": {
63
74
  "globals": [
64
75
  "Cypress",
package/lib/util.js CHANGED
@@ -25,7 +25,6 @@ const isInstalledGlobally = require('is-installed-globally');
25
25
  const logger = require('./logger');
26
26
  const debug = require('debug')('cypress:cli');
27
27
  const fs = require('./fs');
28
- const semver = require('semver');
29
28
  const pkg = require(path.join(__dirname, '..', 'package.json'));
30
29
  const issuesUrl = 'https://github.com/cypress-io/cypress/issues';
31
30
  const getosAsync = Promise.promisify(getos);
@@ -231,23 +230,6 @@ const util = {
231
230
  if (process.env.NODE_OPTIONS) {
232
231
  opts.ORIGINAL_NODE_OPTIONS = process.env.NODE_OPTIONS;
233
232
  }
234
-
235
- // https://github.com/cypress-io/cypress/issues/18914
236
- // Node 17+ ships with OpenSSL 3 by default, so we may need the option
237
- // --openssl-legacy-provider so that webpack@4 can use the legacy MD4 hash
238
- // function. This option doesn't exist on Node <17 or when it is built
239
- // against OpenSSL 1, so we have to detect Node's major version and check
240
- // which version of OpenSSL it was built against before spawning the plugins
241
- // process.
242
-
243
- // To be removed when the Cypress binary pulls in the @cypress/webpack-batteries-included-preprocessor
244
- // version that has been updated to webpack >= 5.61, which no longer relies on
245
- // Node's builtin crypto.hash function.
246
- if (process.versions && semver.satisfies(process.versions.node, '>=17.0.0') && semver.satisfies(process.versions.openssl, '>=3', {
247
- includePrerelease: true
248
- })) {
249
- opts.ORIGINAL_NODE_OPTIONS = `${opts.ORIGINAL_NODE_OPTIONS || ''} --openssl-legacy-provider`;
250
- }
251
233
  return opts;
252
234
  },
253
235
  getForceTty() {
@@ -6,7 +6,6 @@
6
6
  "scripts": {
7
7
  "build": "tsc || echo 'built, with type errors'",
8
8
  "postbuild": "node ../../scripts/sync-exported-npm-with-cli.js",
9
- "build-prod": "yarn build",
10
9
  "check-ts": "tsc --noEmit",
11
10
  "watch": "tsc -w",
12
11
  "lint": "eslint --ext .js,.ts,.json, ."
@@ -33,5 +32,18 @@
33
32
  "bugs": "https://github.com/cypress-io/cypress/issues/new?template=1-bug-report.md",
34
33
  "publishConfig": {
35
34
  "access": "public"
35
+ },
36
+ "nx": {
37
+ "targets": {
38
+ "build": {
39
+ "inputs": [
40
+ "{workspaceRoot}/scripts"
41
+ ],
42
+ "outputs": [
43
+ "{workspaceRoot}/cli/mount-utils",
44
+ "{projectRoot}/dist"
45
+ ]
46
+ }
47
+ }
36
48
  }
37
49
  }
package/package.json CHANGED
@@ -1,13 +1,13 @@
1
1
  {
2
2
  "name": "cypress",
3
- "version": "12.17.3",
3
+ "version": "12.17.4",
4
4
  "main": "index.js",
5
5
  "scripts": {
6
6
  "postinstall": "node index.js --exec install",
7
7
  "size": "t=\"$(npm pack .)\"; wc -c \"${t}\"; tar tvf \"${t}\"; rm \"${t}\";"
8
8
  },
9
9
  "dependencies": {
10
- "@cypress/request": "^2.88.11",
10
+ "@cypress/request": "2.88.12",
11
11
  "@cypress/xvfb": "^1.2.4",
12
12
  "@types/node": "^16.18.39",
13
13
  "@types/sinonjs__fake-timers": "8.1.1",
@@ -42,6 +42,7 @@
42
42
  "minimist": "^1.2.8",
43
43
  "ospath": "^1.2.2",
44
44
  "pretty-bytes": "^5.6.0",
45
+ "process": "^0.11.10",
45
46
  "proxy-from-env": "1.0.0",
46
47
  "request-progress": "^3.0.0",
47
48
  "semver": "^7.5.3",
@@ -116,10 +117,20 @@
116
117
  "require": "./svelte/dist/cypress-svelte.cjs.js"
117
118
  }
118
119
  },
120
+ "nx": {
121
+ "targets": {
122
+ "build": {
123
+ "outputs": [
124
+ "{projectRoot}/types",
125
+ "{projectRoot}/build"
126
+ ]
127
+ }
128
+ }
129
+ },
119
130
  "buildInfo": {
120
131
  "commitBranch": "main",
121
- "commitSha": "14a7416e126f6b296a2da037ae257c27e7915d5b",
122
- "commitDate": "2023-08-01T19:13:43.000Z",
132
+ "commitSha": "95b4a14f13aa01deaaa7aa62a30ae70d2c013840",
133
+ "commitDate": "2023-08-15T15:12:01.000Z",
123
134
  "stable": true
124
135
  },
125
136
  "description": "Cypress is a next generation front end testing tool built for the modern web",
@@ -304,7 +304,11 @@ function createCommonjsModule(fn) {
304
304
  }
305
305
 
306
306
  var re_1 = createCommonjsModule(function (module, exports) {
307
- const { MAX_SAFE_COMPONENT_LENGTH, MAX_SAFE_BUILD_LENGTH } = constants;
307
+ const {
308
+ MAX_SAFE_COMPONENT_LENGTH,
309
+ MAX_SAFE_BUILD_LENGTH,
310
+ MAX_LENGTH,
311
+ } = constants;
308
312
 
309
313
  exports = module.exports = {};
310
314
 
@@ -325,7 +329,7 @@ const LETTERDASHNUMBER = '[a-zA-Z0-9-]';
325
329
  // all input should have extra whitespace removed.
326
330
  const safeRegexReplacements = [
327
331
  ['\\s', 1],
328
- ['\\d', MAX_SAFE_COMPONENT_LENGTH],
332
+ ['\\d', MAX_LENGTH],
329
333
  [LETTERDASHNUMBER, MAX_SAFE_BUILD_LENGTH],
330
334
  ];
331
335
 
@@ -284,7 +284,11 @@ function createCommonjsModule(fn) {
284
284
  }
285
285
 
286
286
  var re_1 = createCommonjsModule(function (module, exports) {
287
- const { MAX_SAFE_COMPONENT_LENGTH, MAX_SAFE_BUILD_LENGTH } = constants;
287
+ const {
288
+ MAX_SAFE_COMPONENT_LENGTH,
289
+ MAX_SAFE_BUILD_LENGTH,
290
+ MAX_LENGTH,
291
+ } = constants;
288
292
 
289
293
  exports = module.exports = {};
290
294
 
@@ -305,7 +309,7 @@ const LETTERDASHNUMBER = '[a-zA-Z0-9-]';
305
309
  // all input should have extra whitespace removed.
306
310
  const safeRegexReplacements = [
307
311
  ['\\s', 1],
308
- ['\\d', MAX_SAFE_COMPONENT_LENGTH],
312
+ ['\\d', MAX_LENGTH],
309
313
  [LETTERDASHNUMBER, MAX_SAFE_BUILD_LENGTH],
310
314
  ];
311
315
 
@@ -6,7 +6,7 @@
6
6
  "scripts": {
7
7
  "build": "rimraf dist && rollup -c rollup.config.mjs",
8
8
  "postbuild": "node ../../scripts/sync-exported-npm-with-cli.js",
9
- "build-prod": "yarn build",
9
+ "check-ts": "tsc --noEmit",
10
10
  "cy:open": "node ../../scripts/cypress.js open --component",
11
11
  "cy:open:debug": "node --inspect-brk ../../scripts/start.js --component-testing --run-project ${PWD}",
12
12
  "cy:run": "node ../../scripts/cypress.js run --component",
@@ -88,6 +88,19 @@
88
88
  "publishConfig": {
89
89
  "access": "public"
90
90
  },
91
+ "nx": {
92
+ "targets": {
93
+ "build": {
94
+ "inputs": [
95
+ "{workspaceRoot}/scripts"
96
+ ],
97
+ "outputs": [
98
+ "{workspaceRoot}/cli/react",
99
+ "{projectRoot}/dist"
100
+ ]
101
+ }
102
+ }
103
+ },
91
104
  "standard": {
92
105
  "globals": [
93
106
  "Cypress",
@@ -313,7 +313,11 @@ function createCommonjsModule(fn) {
313
313
  }
314
314
 
315
315
  createCommonjsModule(function (module, exports) {
316
- const { MAX_SAFE_COMPONENT_LENGTH, MAX_SAFE_BUILD_LENGTH } = constants;
316
+ const {
317
+ MAX_SAFE_COMPONENT_LENGTH,
318
+ MAX_SAFE_BUILD_LENGTH,
319
+ MAX_LENGTH,
320
+ } = constants;
317
321
 
318
322
  exports = module.exports = {};
319
323
 
@@ -334,7 +338,7 @@ const LETTERDASHNUMBER = '[a-zA-Z0-9-]';
334
338
  // all input should have extra whitespace removed.
335
339
  const safeRegexReplacements = [
336
340
  ['\\s', 1],
337
- ['\\d', MAX_SAFE_COMPONENT_LENGTH],
341
+ ['\\d', MAX_LENGTH],
338
342
  [LETTERDASHNUMBER, MAX_SAFE_BUILD_LENGTH],
339
343
  ];
340
344
 
@@ -292,7 +292,11 @@ function createCommonjsModule(fn) {
292
292
  }
293
293
 
294
294
  createCommonjsModule(function (module, exports) {
295
- const { MAX_SAFE_COMPONENT_LENGTH, MAX_SAFE_BUILD_LENGTH } = constants;
295
+ const {
296
+ MAX_SAFE_COMPONENT_LENGTH,
297
+ MAX_SAFE_BUILD_LENGTH,
298
+ MAX_LENGTH,
299
+ } = constants;
296
300
 
297
301
  exports = module.exports = {};
298
302
 
@@ -313,7 +317,7 @@ const LETTERDASHNUMBER = '[a-zA-Z0-9-]';
313
317
  // all input should have extra whitespace removed.
314
318
  const safeRegexReplacements = [
315
319
  ['\\s', 1],
316
- ['\\d', MAX_SAFE_COMPONENT_LENGTH],
320
+ ['\\d', MAX_LENGTH],
317
321
  [LETTERDASHNUMBER, MAX_SAFE_BUILD_LENGTH],
318
322
  ];
319
323
 
@@ -6,7 +6,7 @@
6
6
  "scripts": {
7
7
  "build": "rimraf dist && rollup -c rollup.config.mjs",
8
8
  "postbuild": "node ../../scripts/sync-exported-npm-with-cli.js",
9
- "build-prod": "yarn build",
9
+ "check-ts": "tsc --noEmit",
10
10
  "watch": "yarn build --watch --watch.exclude ./dist/**/*",
11
11
  "lint": "eslint --ext .js,.jsx,.ts,.tsx,.json, ."
12
12
  },
@@ -57,5 +57,18 @@
57
57
  },
58
58
  "publishConfig": {
59
59
  "access": "public"
60
+ },
61
+ "nx": {
62
+ "targets": {
63
+ "build": {
64
+ "inputs": [
65
+ "{workspaceRoot}/scripts"
66
+ ],
67
+ "outputs": [
68
+ "{workspaceRoot}/cli/react18",
69
+ "{projectRoot}/dist"
70
+ ]
71
+ }
72
+ }
60
73
  }
61
74
  }
@@ -7,7 +7,6 @@
7
7
  "prebuild": "rimraf dist",
8
8
  "build": "rollup -c rollup.config.mjs",
9
9
  "postbuild": "node ../../scripts/sync-exported-npm-with-cli.js",
10
- "build-prod": "yarn build",
11
10
  "lint": "eslint --ext .js,.jsx,.ts,.tsx,.json, .",
12
11
  "check-ts": "tsc --noEmit"
13
12
  },
@@ -40,5 +39,18 @@
40
39
  "module": "dist/cypress-svelte.esm-bundler.js",
41
40
  "publishConfig": {
42
41
  "access": "public"
42
+ },
43
+ "nx": {
44
+ "targets": {
45
+ "build": {
46
+ "inputs": [
47
+ "{workspaceRoot}/scripts"
48
+ ],
49
+ "outputs": [
50
+ "{workspaceRoot}/cli/svelte",
51
+ "{projectRoot}/dist"
52
+ ]
53
+ }
54
+ }
43
55
  }
44
56
  }
package/vue/package.json CHANGED
@@ -4,12 +4,10 @@
4
4
  "description": "Browser-based Component Testing for Vue.js with Cypress.io ✌️🌲",
5
5
  "main": "dist/cypress-vue.cjs.js",
6
6
  "scripts": {
7
- "build-prod": "yarn build",
8
7
  "cy:open": "node ../../scripts/cypress.js open --component --project ${PWD}",
9
8
  "cy:run": "node ../../scripts/cypress.js run --component --project ${PWD}",
10
9
  "build": "rimraf dist && rollup -c rollup.config.mjs",
11
10
  "postbuild": "node ../../scripts/sync-exported-npm-with-cli.js",
12
- "typecheck": "yarn tsd && vue-tsc --noEmit",
13
11
  "check-ts": "yarn tsd && vue-tsc --noEmit",
14
12
  "lint": "eslint --ext .js,.jsx,.ts,.tsx,.json,.vue .",
15
13
  "test": "yarn cy:run",
@@ -81,5 +79,18 @@
81
79
  },
82
80
  "publishConfig": {
83
81
  "access": "public"
82
+ },
83
+ "nx": {
84
+ "targets": {
85
+ "build": {
86
+ "inputs": [
87
+ "{workspaceRoot}/scripts"
88
+ ],
89
+ "outputs": [
90
+ "{workspaceRoot}/cli/vue",
91
+ "{projectRoot}/dist"
92
+ ]
93
+ }
94
+ }
84
95
  }
85
96
  }
package/vue2/package.json CHANGED
@@ -4,10 +4,9 @@
4
4
  "description": "Browser-based Component Testing for Vue.js@2 with Cypress.io ✌️🌲",
5
5
  "main": "dist/cypress-vue2.cjs.js",
6
6
  "scripts": {
7
- "typecheck": "tsc --noEmit",
7
+ "check-ts": "tsc --noEmit",
8
8
  "build": "rimraf dist && yarn rollup -c rollup.config.mjs",
9
9
  "postbuild": "node ../../scripts/sync-exported-npm-with-cli.js",
10
- "build-prod": "yarn build",
11
10
  "test": "echo \"Tests for @cypress/vue2 are run from system-tests\"",
12
11
  "watch": "yarn build --watch --watch.exclude ./dist/**/*",
13
12
  "lint": "eslint --ext .js,.jsx,.ts,.tsx,.json,.vue .",
@@ -49,5 +48,18 @@
49
48
  "module": "dist/cypress-vue2.esm-bundler.js",
50
49
  "publishConfig": {
51
50
  "access": "public"
51
+ },
52
+ "nx": {
53
+ "targets": {
54
+ "build": {
55
+ "inputs": [
56
+ "{workspaceRoot}/scripts"
57
+ ],
58
+ "outputs": [
59
+ "{workspaceRoot}/cli/vue2",
60
+ "{projectRoot}/dist"
61
+ ]
62
+ }
63
+ }
52
64
  }
53
65
  }