cypress 10.4.0 → 10.7.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (43) hide show
  1. package/angular/CHANGELOG.md +86 -0
  2. package/angular/README.md +85 -0
  3. package/angular/dist/index.d.ts +1 -0
  4. package/angular/dist/index.js +265 -0
  5. package/angular/dist/mount.d.ts +112 -0
  6. package/angular/package.json +68 -0
  7. package/lib/tasks/download.js +4 -3
  8. package/mount-utils/CHANGELOG.md +7 -0
  9. package/mount-utils/package.json +5 -1
  10. package/package.json +16 -4
  11. package/react/CHANGELOG.md +20 -0
  12. package/react/dist/createMount.d.ts +7 -6
  13. package/react/dist/cypress-react.cjs.js +653 -140
  14. package/react/dist/cypress-react.esm-bundler.js +640 -127
  15. package/react/dist/mount.d.ts +2 -1
  16. package/react/dist/mountHook.d.ts +1 -0
  17. package/react/dist/types.d.ts +2 -7
  18. package/react/package.json +4 -6
  19. package/react18/CHANGELOG.md +13 -0
  20. package/react18/dist/cypress-react.cjs.js +300 -118
  21. package/react18/dist/cypress-react.esm-bundler.js +286 -104
  22. package/react18/dist/index.d.ts +2 -1
  23. package/react18/package.json +2 -2
  24. package/svelte/CHANGELOG.md +0 -0
  25. package/svelte/README.md +83 -0
  26. package/svelte/dist/cypress-svelte.cjs.js +213 -0
  27. package/svelte/dist/cypress-svelte.esm-bundler.js +209 -0
  28. package/svelte/dist/index.d.ts +1 -0
  29. package/svelte/dist/mount.d.ts +30 -0
  30. package/svelte/package.json +43 -0
  31. package/types/cypress-type-helpers.d.ts +3 -1
  32. package/types/cypress.d.ts +61 -5
  33. package/vue/CHANGELOG.md +14 -0
  34. package/vue/dist/cypress-vue.cjs.js +30 -38
  35. package/vue/dist/cypress-vue.esm-bundler.js +30 -38
  36. package/vue/dist/index.d.ts +1 -0
  37. package/vue/package.json +2 -8
  38. package/vue2/CHANGELOG.md +7 -0
  39. package/vue2/dist/cypress-vue2.cjs.js +53 -84
  40. package/vue2/dist/cypress-vue2.esm-bundler.js +53 -84
  41. package/vue2/dist/index.d.ts +1 -0
  42. package/vue2/package.json +2 -5
  43. package/vue2/dist/cypress-vue2.browser.js +0 -20197
@@ -12,7 +12,11 @@
12
12
  },
13
13
  "dependencies": {},
14
14
  "devDependencies": {
15
- "typescript": "^4.2.3"
15
+ "@rollup/plugin-commonjs": "^17.1.0",
16
+ "@rollup/plugin-node-resolve": "^11.1.1",
17
+ "rollup": "^2.38.5",
18
+ "rollup-plugin-typescript2": "^0.29.0",
19
+ "typescript": "^4.7.4"
16
20
  },
17
21
  "files": [
18
22
  "dist"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cypress",
3
- "version": "10.4.0",
3
+ "version": "10.7.0",
4
4
  "main": "index.js",
5
5
  "scripts": {
6
6
  "postinstall": "node index.js --exec install",
@@ -60,7 +60,9 @@
60
60
  "vue",
61
61
  "react",
62
62
  "vue2",
63
- "react18"
63
+ "react18",
64
+ "angular",
65
+ "svelte"
64
66
  ],
65
67
  "bin": {
66
68
  "cypress": "bin/cypress"
@@ -102,12 +104,22 @@
102
104
  "./mount-utils": {
103
105
  "require": "./mount-utils/dist/index.js",
104
106
  "types": "./mount-utils/dist/index.d.ts"
107
+ },
108
+ "./angular": {
109
+ "import": "./angular/dist/index.js",
110
+ "require": "./angular/dist/index.js",
111
+ "types": "./angular/dist/index.d.ts"
112
+ },
113
+ "./svelte": {
114
+ "import": "./svelte/dist/cypress-svelte.esm-bundler.js",
115
+ "require": "./svelte/dist/cypress-svelte.cjs.js",
116
+ "types": "./svelte/dist/index.d.ts"
105
117
  }
106
118
  },
107
119
  "buildInfo": {
108
120
  "commitBranch": "develop",
109
- "commitSha": "ee177195ebc9279bf41bcdbacebbf1218aa660eb",
110
- "commitDate": "2022-08-02T15:18:13.000Z",
121
+ "commitSha": "b5e6fd67a9080864274ffa54cef30ca6445650d1",
122
+ "commitDate": "2022-08-30T14:25:23.000Z",
111
123
  "stable": true
112
124
  },
113
125
  "description": "Cypress.io end to end testing tool",
@@ -1,3 +1,23 @@
1
+ # [@cypress/react-v6.1.1](https://github.com/cypress-io/cypress/compare/@cypress/react-v6.1.0...@cypress/react-v6.1.1) (2022-08-15)
2
+
3
+
4
+ ### Bug Fixes
5
+
6
+ * **react18:** unmount component with react18 API ([#23204](https://github.com/cypress-io/cypress/issues/23204)) ([eab950b](https://github.com/cypress-io/cypress/commit/eab950bec013f9caf5836e3fa58670fde25e2684))
7
+
8
+ # [@cypress/react-v6.1.0](https://github.com/cypress-io/cypress/compare/@cypress/react-v6.0.0...@cypress/react-v6.1.0) (2022-08-11)
9
+
10
+
11
+ ### Bug Fixes
12
+
13
+ * remove CT side effects from mount when e2e testing ([#22633](https://github.com/cypress-io/cypress/issues/22633)) ([a9476ec](https://github.com/cypress-io/cypress/commit/a9476ecb3d43f628b689e060294a1952937cb1a7))
14
+
15
+
16
+ ### Features
17
+
18
+ * React 18 support ([#22876](https://github.com/cypress-io/cypress/issues/22876)) ([f0d3a48](https://github.com/cypress-io/cypress/commit/f0d3a4867907bf6e60468510daa883ccc8dcfb63))
19
+ * update to Vite 3 ([#22915](https://github.com/cypress-io/cypress/issues/22915)) ([6adba46](https://github.com/cypress-io/cypress/commit/6adba462ea6b76dbb96f99aa3837492ca1f17ed3))
20
+
1
21
  # [@cypress/react-v6.0.0](https://github.com/cypress-io/cypress/compare/@cypress/react-v5.12.5...@cypress/react-v6.0.0) (2022-06-13)
2
22
 
3
23
 
@@ -1,8 +1,9 @@
1
1
  /// <reference types="cypress" />
2
+ /// <reference types="cypress" />
3
+ /// <reference types="cypress" />
4
+ /// <reference types="cypress" />
2
5
  import * as React from 'react';
3
- import ReactDOM from 'react-dom';
4
- import type { InternalMountOptions, InternalUnmountOptions, MountOptions, MountReturn, UnmountArgs } from './types';
5
- export declare let lastMountedReactDom: (typeof ReactDOM) | undefined;
6
+ import type { InternalMountOptions, MountOptions, MountReturn, UnmountArgs } from './types';
6
7
  /**
7
8
  * Create an `mount` function. Performs all the non-React-version specific
8
9
  * behavior related to mounting. The React-version-specific code
@@ -12,7 +13,7 @@ export declare let lastMountedReactDom: (typeof ReactDOM) | undefined;
12
13
  * This is designed to be consumed by `npm/react{16,17,18}`, and other React adapters,
13
14
  * or people writing adapters for third-party, custom adapters.
14
15
  */
15
- export declare const makeMountFn: (type: 'mount' | 'rerender', jsx: React.ReactNode, options?: MountOptions, rerenderKey?: string | undefined, internalMountOptions?: InternalMountOptions | undefined) => globalThis.Cypress.Chainable<MountReturn>;
16
+ export declare const makeMountFn: (type: 'mount' | 'rerender', jsx: React.ReactNode, options?: MountOptions, rerenderKey?: string, internalMountOptions?: InternalMountOptions) => globalThis.Cypress.Chainable<MountReturn>;
16
17
  /**
17
18
  * Create an `unmount` function. Performs all the non-React-version specific
18
19
  * behavior related to unmounting.
@@ -20,9 +21,9 @@ export declare const makeMountFn: (type: 'mount' | 'rerender', jsx: React.ReactN
20
21
  * This is designed to be consumed by `npm/react{16,17,18}`, and other React adapters,
21
22
  * or people writing adapters for third-party, custom adapters.
22
23
  */
23
- export declare const makeUnmountFn: (options: UnmountArgs, internalUnmountOptions: InternalUnmountOptions) => Cypress.Chainable<JQuery<HTMLElement>>;
24
+ export declare const makeUnmountFn: (options: UnmountArgs) => Cypress.Chainable<undefined>;
24
25
  declare const _mount: (jsx: React.ReactNode, options?: MountOptions) => Cypress.Chainable<MountReturn>;
25
- export declare const createMount: (defaultOptions: MountOptions) => (element: React.ReactElement, options?: Partial<import("@cypress/mount-utils").StyleOptions & import("./types").MountReactComponentOptions> | undefined) => Cypress.Chainable<MountReturn>;
26
+ export declare const createMount: (defaultOptions: MountOptions) => (element: React.ReactElement, options?: MountOptions) => Cypress.Chainable<MountReturn>;
26
27
  /** @deprecated Should be removed in the next major version */
27
28
  export default _mount;
28
29
  export interface JSX extends Function {