cypress 12.8.1 → 12.10.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/cli.js CHANGED
@@ -124,17 +124,12 @@ const text = description => {
124
124
  return descriptions[description];
125
125
  };
126
126
  function includesVersion(args) {
127
- return _.includes(args, 'version') || _.includes(args, '--version') || _.includes(args, '-v');
127
+ return _.includes(args, '--version') || _.includes(args, '-v');
128
128
  }
129
- function showVersions(args) {
129
+ function showVersions(opts) {
130
130
  debug('printing Cypress version');
131
- debug('additional arguments %o', args);
132
- const versionParser = commander.option('--component <package|binary|electron|node>', 'component to report version for').allowUnknownOption(true);
133
- const parsed = versionParser.parse(args);
134
- const parsedOptions = {
135
- component: parsed.component
136
- };
137
- debug('parsed version arguments %o', parsedOptions);
131
+ debug('additional arguments %o', opts);
132
+ debug('parsed version arguments %o', opts);
138
133
  const reportAllVersions = versions => {
139
134
  logger.always('Cypress package version:', versions.package);
140
135
  logger.always('Cypress binary version:', versions.binary);
@@ -165,8 +160,8 @@ function showVersions(args) {
165
160
  electronNodeVersion: undefined
166
161
  };
167
162
  return require('./exec/versions').getVersions().then((versions = defaultVersions) => {
168
- if (parsedOptions.component) {
169
- reportComponentVersion(parsedOptions.component, versions);
163
+ if (opts !== null && opts !== void 0 && opts.component) {
164
+ reportComponentVersion(opts.component, versions);
170
165
  } else {
171
166
  reportAllVersions(versions);
172
167
  }
@@ -323,9 +318,12 @@ module.exports = {
323
318
  program.command('help').description('Shows CLI help and exits').action(() => {
324
319
  program.help();
325
320
  });
326
- program.option('-v, --version', text('version')).command('version').description(text('version')).action(() => {
327
- showVersions(args);
328
- });
321
+ const handleVersion = cmd => {
322
+ return cmd.option('--component <package|binary|electron|node>', 'component to report version for').action((opts, ...other) => {
323
+ showVersions(util.parseOpts(opts));
324
+ });
325
+ };
326
+ handleVersion(program.storeOptionsAsProperties().option('-v, --version', text('version')).command('version').description(text('version')));
329
327
  maybeAddInspectFlags(addCypressOpenCommand(program)).action(opts => {
330
328
  debug('opening Cypress');
331
329
  require('./exec/open').start(util.parseOpts(opts)).then(util.exit).catch(util.logErrorExit1);
@@ -426,7 +424,7 @@ module.exports = {
426
424
  // and now does not understand top level options
427
425
  // .option('-v, --version').command('version')
428
426
  // so we have to manually catch '-v, --version'
429
- return showVersions(args);
427
+ handleVersion(program);
430
428
  }
431
429
  debug('program parsing arguments');
432
430
  return program.parse(args);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cypress",
3
- "version": "12.8.1",
3
+ "version": "12.10.0",
4
4
  "main": "index.js",
5
5
  "scripts": {
6
6
  "postinstall": "node index.js --exec install",
@@ -21,7 +21,7 @@
21
21
  "check-more-types": "^2.24.0",
22
22
  "cli-cursor": "^3.1.0",
23
23
  "cli-table3": "~0.6.1",
24
- "commander": "^5.1.0",
24
+ "commander": "^6.2.1",
25
25
  "common-tags": "^1.8.0",
26
26
  "dayjs": "^1.10.4",
27
27
  "debug": "^4.3.4",
@@ -39,7 +39,7 @@
39
39
  "listr2": "^3.8.3",
40
40
  "lodash": "^4.17.21",
41
41
  "log-symbols": "^4.0.0",
42
- "minimist": "^1.2.6",
42
+ "minimist": "^1.2.8",
43
43
  "ospath": "^1.2.2",
44
44
  "pretty-bytes": "^5.6.0",
45
45
  "proxy-from-env": "1.0.0",
@@ -118,8 +118,8 @@
118
118
  },
119
119
  "buildInfo": {
120
120
  "commitBranch": "develop",
121
- "commitSha": "86175a95ec0b5a0dafba2c8f0b242e282f27c279",
122
- "commitDate": "2023-03-15T17:26:54.000Z",
121
+ "commitSha": "1ed2031faac6e01848fafe71f27e5c3afd9c21a3",
122
+ "commitDate": "2023-04-17T15:59:15.000Z",
123
123
  "stable": true
124
124
  },
125
125
  "description": "Cypress is a next generation front end testing tool built for the modern web",
@@ -1,3 +1,10 @@
1
+ # [@cypress/react-v7.0.3](https://github.com/cypress-io/cypress/compare/@cypress/react-v7.0.2...@cypress/react-v7.0.3) (2023-03-20)
2
+
3
+
4
+ ### Bug Fixes
5
+
6
+ * **vite-dev-server:** do not use incremental esbuild option with Vite v4.2.0+ ([#26139](https://github.com/cypress-io/cypress/issues/26139)) ([3a2b2d3](https://github.com/cypress-io/cypress/commit/3a2b2d3323310c68f72f6e42203f5e93afc1cde5))
7
+
1
8
  # [@cypress/react-v7.0.2](https://github.com/cypress-io/cypress/compare/@cypress/react-v7.0.1...@cypress/react-v7.0.2) (2022-12-02)
2
9
 
3
10
 
@@ -28,7 +28,7 @@
28
28
  "react-router-dom": "6.0.0-alpha.1",
29
29
  "semver": "^7.3.2",
30
30
  "typescript": "^4.7.4",
31
- "vite": "4.0.1",
31
+ "vite": "4.1.4",
32
32
  "vite-plugin-require-transform": "1.0.3"
33
33
  },
34
34
  "peerDependencies": {
package/vue/CHANGELOG.md CHANGED
@@ -1,3 +1,10 @@
1
+ # [@cypress/vue-v5.0.5](https://github.com/cypress-io/cypress/compare/@cypress/vue-v5.0.4...@cypress/vue-v5.0.5) (2023-03-20)
2
+
3
+
4
+ ### Bug Fixes
5
+
6
+ * **vite-dev-server:** do not use incremental esbuild option with Vite v4.2.0+ ([#26139](https://github.com/cypress-io/cypress/issues/26139)) ([3a2b2d3](https://github.com/cypress-io/cypress/commit/3a2b2d3323310c68f72f6e42203f5e93afc1cde5))
7
+
1
8
  # [@cypress/vue-v5.0.4](https://github.com/cypress-io/cypress/compare/@cypress/vue-v5.0.3...@cypress/vue-v5.0.4) (2023-02-06)
2
9
 
3
10
  # [@cypress/vue-v5.0.3](https://github.com/cypress-io/cypress/compare/@cypress/vue-v5.0.2...@cypress/vue-v5.0.3) (2022-12-02)
package/vue/package.json CHANGED
@@ -27,7 +27,7 @@
27
27
  "globby": "^11.0.1",
28
28
  "tailwindcss": "1.1.4",
29
29
  "typescript": "^4.7.4",
30
- "vite": "4.0.1",
30
+ "vite": "4.1.4",
31
31
  "vue": "3.2.31",
32
32
  "vue-i18n": "9.0.0-rc.6",
33
33
  "vue-router": "^4.0.0",