@cypress/vite-dev-server 3.0.0 → 3.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/README.md CHANGED
@@ -2,6 +2,8 @@
2
2
 
3
3
  Implements the APIs for the object-syntax of the Cypress Component-testing "vite dev server".
4
4
 
5
+ > **Note:** This package is bundled with the Cypress binary and should not need to be installed separately. See the [Component Framework Configuration Docs](https://docs.cypress.io/guides/component-testing/component-framework-configuration) for setting up component testing with vite. The `devServer` function signature is for advanced use-cases.
6
+
5
7
  Object syntax:
6
8
 
7
9
  ```ts
@@ -26,9 +28,9 @@ import { defineConfig } from 'cypress'
26
28
 
27
29
  export default defineConfig({
28
30
  component: {
29
- devServer(cypressConfig) {
31
+ devServer(devServerConfig) {
30
32
  return devServer({
31
- cypressConfig,
33
+ ...devServerConfig,
32
34
  framework: 'react',
33
35
  viteConfig: require('./vite.config.js')
34
36
  })
@@ -47,6 +49,17 @@ From there, we check the "framework" field to source or define any known vite tr
47
49
 
48
50
  We then merge the sourced config with the user's vite config, and layer on our own transforms, and provide this to a vite instance. The vite instance used to create a vite-dev-server, which is returned.
49
51
 
50
- ## Changelog
52
+ ## Compatibility
53
+
54
+ | @cypress/vite-dev-server | cypress |
55
+ | ------------------------ | ------- |
56
+ | <= v2 | <= v9 |
57
+ | >= v3 | >= v10 |
58
+
59
+ ## License
60
+
61
+ [![license](https://img.shields.io/badge/license-MIT-green.svg)](https://github.com/cypress-io/cypress/blob/master/LICENSE)
62
+
63
+ This project is licensed under the terms of the [MIT license](/LICENSE).
51
64
 
52
- [Changelog](./CHANGELOG.md)
65
+ ## [Changelog](./CHANGELOG.md)
package/dist/constants.js CHANGED
@@ -6,4 +6,6 @@ exports.configFiles = [
6
6
  'vite.config.js',
7
7
  'vite.config.mjs',
8
8
  'vite.config.cjs',
9
+ 'vite.config.mts',
10
+ 'vite.config.cts',
9
11
  ];
@@ -4,6 +4,7 @@ exports.Cypress = void 0;
4
4
  const tslib_1 = require("tslib");
5
5
  const debug_1 = (0, tslib_1.__importDefault)(require("debug"));
6
6
  const pathe_1 = require("pathe");
7
+ const node_html_parser_1 = require("node-html-parser");
7
8
  const fs_1 = (0, tslib_1.__importDefault)(require("fs"));
8
9
  const path_1 = (0, tslib_1.__importDefault)(require("path"));
9
10
  const debug = (0, debug_1.default)('cypress:vite-dev-server:plugins:cypress');
@@ -20,6 +21,8 @@ const Cypress = (options, vite) => {
20
21
  const specs = options.specs;
21
22
  const indexHtmlFile = options.cypressConfig.indexHtmlFile;
22
23
  let specsPathsSet = getSpecsPathsSet(specs);
24
+ // TODO: use async fs methods here
25
+ // eslint-disable-next-line no-restricted-syntax
23
26
  let loader = fs_1.default.readFileSync(INIT_FILEPATH, 'utf8');
24
27
  devServerEvents.on('dev-server:specs:changed', (specs) => {
25
28
  specsPathsSet = getSpecsPathsSet(specs);
@@ -30,16 +33,33 @@ const Cypress = (options, vite) => {
30
33
  configResolved(config) {
31
34
  base = config.base;
32
35
  },
33
- async transformIndexHtml() {
36
+ async transformIndexHtml(html) {
37
+ // it's possibe other plugins have modified the HTML
38
+ // before we get to. For example vitejs/plugin-react will
39
+ // add a preamble. We do our best to look at the HTML we
40
+ // receive and inject it.
41
+ // For now we just grab any `<script>` tags and inject them to <head>.
42
+ // We will add more handling as we learn the use cases.
43
+ const root = (0, node_html_parser_1.parse)(html);
44
+ const scriptTagsToInject = root.childNodes.filter((node) => {
45
+ return node instanceof node_html_parser_1.HTMLElement && node.rawTagName === 'script';
46
+ });
34
47
  const indexHtmlPath = (0, pathe_1.resolve)(projectRoot, indexHtmlFile);
35
48
  debug('resolved the indexHtmlPath as', indexHtmlPath, 'from', indexHtmlFile);
36
- const indexHtmlContent = await fs_1.default.promises.readFile(indexHtmlPath, { encoding: 'utf8' });
49
+ let indexHtmlContent = await fs_1.default.promises.readFile(indexHtmlPath, { encoding: 'utf8' });
50
+ // Inject the script tags
51
+ indexHtmlContent = indexHtmlContent.replace('<head>', `<head>
52
+ ${scriptTagsToInject.map((script) => script.toString())}
53
+ `);
37
54
  // find </body> last index
38
55
  const endOfBody = indexHtmlContent.lastIndexOf('</body>');
39
56
  // insert the script in the end of the body
40
- return `${indexHtmlContent.substring(0, endOfBody)}<script>
41
- ${loader}
42
- </script>${indexHtmlContent.substring(endOfBody)}`;
57
+ const newHtml = `
58
+ ${indexHtmlContent.substring(0, endOfBody)}
59
+ <script>${loader}</script>
60
+ ${indexHtmlContent.substring(endOfBody)}
61
+ `;
62
+ return newHtml;
43
63
  },
44
64
  configureServer: async (server) => {
45
65
  server.middlewares.use(`${base}index.html`, async (req, res) => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cypress/vite-dev-server",
3
- "version": "3.0.0",
3
+ "version": "3.1.0",
4
4
  "description": "Launches Vite Dev Server for Component Testing",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -18,6 +18,7 @@
18
18
  "debug": "4.3.3",
19
19
  "find-up": "6.3.0",
20
20
  "local-pkg": "0.4.1",
21
+ "node-html-parser": "5.3.3",
21
22
  "pathe": "0.2.0"
22
23
  },
23
24
  "devDependencies": {
@@ -26,7 +27,7 @@
26
27
  "mocha": "^9.2.2",
27
28
  "sinon": "^13.0.1",
28
29
  "ts-node": "^10.2.1",
29
- "vite": "2.9.0-beta.3",
30
+ "vite": "3.0.3",
30
31
  "vite-plugin-inspect": "0.4.3"
31
32
  },
32
33
  "files": [
package/CHANGELOG.md DELETED
@@ -1,341 +0,0 @@
1
- # [@cypress/vite-dev-server-v3.0.0](https://github.com/cypress-io/cypress/compare/@cypress/vite-dev-server-v2.2.3...@cypress/vite-dev-server-v3.0.0) (2022-06-13)
2
-
3
-
4
- ### Bug Fixes
5
-
6
- * issue with compilation failures in component testing ([#21599](https://github.com/cypress-io/cypress/issues/21599)) ([f2bce02](https://github.com/cypress-io/cypress/commit/f2bce02f5dcab7a73a2a1b8e102518d706a29c25))
7
- * restart dev-server on config change ([#21212](https://github.com/cypress-io/cypress/issues/21212)) ([00a0f5a](https://github.com/cypress-io/cypress/commit/00a0f5a0e905fdfe5ef9f8ba71f915ed20ca4b72))
8
- * sanitize internal vite plugins ([#22055](https://github.com/cypress-io/cypress/issues/22055)) ([3b5a245](https://github.com/cypress-io/cypress/commit/3b5a245ec4aa9bf9f348fbc4bc2f0decc7c4a692))
9
- * supportFile path and supportFile false for vite on windows ([#21156](https://github.com/cypress-io/cypress/issues/21156)) ([dd180c8](https://github.com/cypress-io/cypress/commit/dd180c89b27546b0c96cc3f4fb4e75d983c8003e))
10
- * UNIFY-1774 error if component config is not sourced for webpack/vite ([#21563](https://github.com/cypress-io/cypress/issues/21563)) ([566a7b1](https://github.com/cypress-io/cypress/commit/566a7b1feb0fc1a8f1ccf83a23d8ad7a94409a6b))
11
- * update scaffold template to use correct path ([#20047](https://github.com/cypress-io/cypress/issues/20047)) ([6e80359](https://github.com/cypress-io/cypress/commit/6e803597a379222cf936e5977c8314d693ee1912))
12
- * use resolved port for vite ([#21490](https://github.com/cypress-io/cypress/issues/21490)) ([630e422](https://github.com/cypress-io/cypress/commit/630e4220ca5ebbaa8c39044b86d434510b3a0f1b))
13
- * wire up scaffolded indexHtml to dev servers ([#20453](https://github.com/cypress-io/cypress/issues/20453)) ([3a8797e](https://github.com/cypress-io/cypress/commit/3a8797e54db9fd0ef93a14ddc71c138ba8251e53))
14
-
15
-
16
- ### chore
17
-
18
- * prep npm packages for use with Cypress v10 ([b924d08](https://github.com/cypress-io/cypress/commit/b924d086ee2e2ccc93303731e001b2c9e9d0af17))
19
-
20
-
21
- ### Features
22
-
23
- * add devServer to config file ([#18962](https://github.com/cypress-io/cypress/issues/18962)) ([2573375](https://github.com/cypress-io/cypress/commit/2573375b5b6616efd2d213a94cd55fd8e0385864))
24
- * Add typings for new devServer config ([#18797](https://github.com/cypress-io/cypress/issues/18797)) ([e018a14](https://github.com/cypress-io/cypress/commit/e018a14c211bfcbdc4568a9a737f14f5c1686e35))
25
- * Deprecate run-ct / open-ct, and update all examples to use --ct instead ([#18422](https://github.com/cypress-io/cypress/issues/18422)) ([196e8f6](https://github.com/cypress-io/cypress/commit/196e8f62cc6d27974f235945cb5700624b3dae41))
26
- * improved DX and support for running component and e2e tests w/ gulp ([#18135](https://github.com/cypress-io/cypress/issues/18135)) ([d39b169](https://github.com/cypress-io/cypress/commit/d39b1694aac19fdcf557236ac421e2cc1c45da8b))
27
- * index.html configurability and storybook support ([#18242](https://github.com/cypress-io/cypress/issues/18242)) ([745b3ac](https://github.com/cypress-io/cypress/commit/745b3ac4518302983522daedf817623334feae5b))
28
- * merging / delegating remote queries to cloud schema ([#17875](https://github.com/cypress-io/cypress/issues/17875)) ([94541d4](https://github.com/cypress-io/cypress/commit/94541d4f18591e8fa4b8702c39e92b0a7238aa5d))
29
- * remove testFiles reference ([#20565](https://github.com/cypress-io/cypress/issues/20565)) ([5670344](https://github.com/cypress-io/cypress/commit/567034459089d9d53dfab5556cb9369fb335c3db))
30
- * Set up cypress in cypress ([#19602](https://github.com/cypress-io/cypress/issues/19602)) ([ed51bcb](https://github.com/cypress-io/cypress/commit/ed51bcbdda480f90bef557f06c297098f1897499))
31
- * Structuring context & schema so it can be used on the client ([#17489](https://github.com/cypress-io/cypress/issues/17489)) ([e2f395e](https://github.com/cypress-io/cypress/commit/e2f395e330f384993ed1116469102a5315a21270)), closes [#17551](https://github.com/cypress-io/cypress/issues/17551)
32
- * support specPattern, deprecate integrationFolder and componentFolder ([#19319](https://github.com/cypress-io/cypress/issues/19319)) ([792980a](https://github.com/cypress-io/cypress/commit/792980ac12746ef47b9c944ebe4c6c353a187ab2))
33
- * swap the #__cy_root id selector to become data-cy-root for component mounting ([#20951](https://github.com/cypress-io/cypress/issues/20951)) ([0e7b555](https://github.com/cypress-io/cypress/commit/0e7b555f93fb403f431c5de4a07ae7ad6ac89ba2))
34
- * Use .config files ([#18578](https://github.com/cypress-io/cypress/issues/18578)) ([081dd19](https://github.com/cypress-io/cypress/commit/081dd19cc6da3da229a7af9c84f62730c85a5cd6))
35
- * use devServer instad of startDevServer ([#20092](https://github.com/cypress-io/cypress/issues/20092)) ([8a6768f](https://github.com/cypress-io/cypress/commit/8a6768fee6f46b908c5a9daf23da8b804a6c627f))
36
- * Use plugins on config files ([#18798](https://github.com/cypress-io/cypress/issues/18798)) ([bb8251b](https://github.com/cypress-io/cypress/commit/bb8251b752ac44f1184f9160194cf12d41fc867f))
37
- * use supportFile by testingType ([#19364](https://github.com/cypress-io/cypress/issues/19364)) ([0366d4f](https://github.com/cypress-io/cypress/commit/0366d4fa8971e5e5189c6fd6450cc3c8d72dcfe1))
38
- * vue-cli and nuxt preset for CT object API architecture ([#20956](https://github.com/cypress-io/cypress/issues/20956)) ([57659c4](https://github.com/cypress-io/cypress/commit/57659c42468591265143aae2ff06bae4e440085f))
39
- * **unify:** removing prism and adding infrastructure for shiki ([#18514](https://github.com/cypress-io/cypress/issues/18514)) ([9a2e550](https://github.com/cypress-io/cypress/commit/9a2e55071d5b6dcfd97ff750b80548b834b94d30))
40
-
41
-
42
- ### BREAKING CHANGES
43
-
44
- * new version of packages for Cypress v10
45
-
46
- # [@cypress/vite-dev-server-v2.2.3](https://github.com/cypress-io/cypress/compare/@cypress/vite-dev-server-v2.2.2...@cypress/vite-dev-server-v2.2.3) (2022-05-10)
47
-
48
-
49
- ### Bug Fixes
50
-
51
- * handle specs with white space in vite-dev-server ([#21386](https://github.com/cypress-io/cypress/issues/21386)) ([f1c3a9b](https://github.com/cypress-io/cypress/commit/f1c3a9b3186057dd63645fd9e617f343db5c473b))
52
-
53
- # [@cypress/vite-dev-server-v2.2.2](https://github.com/cypress-io/cypress/compare/@cypress/vite-dev-server-v2.2.1...@cypress/vite-dev-server-v2.2.2) (2021-12-16)
54
-
55
-
56
- ### Bug Fixes
57
-
58
- * check the port is avail on all local hosts ([#19402](https://github.com/cypress-io/cypress/issues/19402)) ([4826175](https://github.com/cypress-io/cypress/commit/4826175040bfc024a36df47dc0c74f2871fa944f))
59
-
60
- # [@cypress/vite-dev-server-v2.2.1](https://github.com/cypress-io/cypress/compare/@cypress/vite-dev-server-v2.2.0...@cypress/vite-dev-server-v2.2.1) (2021-11-19)
61
-
62
-
63
- ### Bug Fixes
64
-
65
- * compile npm packages for node 12 ([#18989](https://github.com/cypress-io/cypress/issues/18989)) ([30b3eb2](https://github.com/cypress-io/cypress/commit/30b3eb2376bc1ed69087ba96f60448687e8489e6))
66
-
67
- # [@cypress/vite-dev-server-v2.2.0](https://github.com/cypress-io/cypress/compare/@cypress/vite-dev-server-v2.1.1...@cypress/vite-dev-server-v2.2.0) (2021-10-15)
68
-
69
-
70
- ### Features
71
-
72
- * normalized signatures webpack & vite servers ([#18379](https://github.com/cypress-io/cypress/issues/18379)) ([8f5308f](https://github.com/cypress-io/cypress/commit/8f5308f7068b80fb877da539ce34fb67ba497c4f))
73
-
74
- # [@cypress/vite-dev-server-v2.1.1](https://github.com/cypress-io/cypress/compare/@cypress/vite-dev-server-v2.1.0...@cypress/vite-dev-server-v2.1.1) (2021-10-04)
75
-
76
-
77
- ### Bug Fixes
78
-
79
- * **vite-dev-server:** remove base and root from inlineVitConfig types ([#17180](https://github.com/cypress-io/cypress/issues/17180)) ([07e7d0e](https://github.com/cypress-io/cypress/commit/07e7d0ed252bf1a2bd3224f617e1fc2e64f19a06))
80
- * **vite-dev-server:** replace UserConfig with InlineConfig to allow correct `configFile` types ([#18167](https://github.com/cypress-io/cypress/issues/18167)) ([6e0c2c1](https://github.com/cypress-io/cypress/commit/6e0c2c1af81be750a74bad0528d52de45746a453))
81
- * **vite-dev-server:** windows `supportFile` + preserve optimize entries ([#18286](https://github.com/cypress-io/cypress/issues/18286)) ([ea2f6a4](https://github.com/cypress-io/cypress/commit/ea2f6a45c7057e51b2fc879ff70da75538fa1002))
82
-
83
- # [@cypress/vite-dev-server-v2.1.0](https://github.com/cypress-io/cypress/compare/@cypress/vite-dev-server-v2.0.8...@cypress/vite-dev-server-v2.1.0) (2021-09-10)
84
-
85
-
86
- ### Features
87
-
88
- * allow usage of @react/plugins with cypress.config.js ([#17738](https://github.com/cypress-io/cypress/issues/17738)) ([da4b1e0](https://github.com/cypress-io/cypress/commit/da4b1e06ce33945aabddda0e6e175dc0e1b488a5))
89
-
90
- # [@cypress/vite-dev-server-v2.0.8](https://github.com/cypress-io/cypress/compare/@cypress/vite-dev-server-v2.0.7...@cypress/vite-dev-server-v2.0.8) (2021-08-30)
91
-
92
-
93
- ### Bug Fixes
94
-
95
- * prevent vite from crashing where there are no support files or specs found ([#17624](https://github.com/cypress-io/cypress/issues/17624)) ([ae0ea87](https://github.com/cypress-io/cypress/commit/ae0ea87802168c524ee5cfe04d0aa59a46195a7d)), closes [#17373](https://github.com/cypress-io/cypress/issues/17373)
96
- * publish the types for vite-dev-server ([#17786](https://github.com/cypress-io/cypress/issues/17786)) ([a94ff69](https://github.com/cypress-io/cypress/commit/a94ff69d09564140ad0cc890771175396eb351cc)), closes [#17648](https://github.com/cypress-io/cypress/issues/17648)
97
- * repair re-run of vite-dev-server issues ([4139631](https://github.com/cypress-io/cypress/commit/4139631b159bac159bd6d2d4c020b5d8b3aa0fa7))
98
-
99
- # [@cypress/vite-dev-server-v2.0.7](https://github.com/cypress-io/cypress/compare/@cypress/vite-dev-server-v2.0.6...@cypress/vite-dev-server-v2.0.7) (2021-08-12)
100
-
101
-
102
- ### Bug Fixes
103
-
104
- * **vite-dev-server:** chain update all specs when changing child ([#17693](https://github.com/cypress-io/cypress/issues/17693)) ([66e8896](https://github.com/cypress-io/cypress/commit/66e8896b66207e9ce2d1a5dd9f66f73fe58a1e7e)), closes [#17691](https://github.com/cypress-io/cypress/issues/17691)
105
-
106
- # [@cypress/vite-dev-server-v2.0.6](https://github.com/cypress-io/cypress/compare/@cypress/vite-dev-server-v2.0.5...@cypress/vite-dev-server-v2.0.6) (2021-08-10)
107
-
108
-
109
- ### Bug Fixes
110
-
111
- * prevent vite from crashing where there are no support files or s… ([#17641](https://github.com/cypress-io/cypress/issues/17641)) ([1d2b053](https://github.com/cypress-io/cypress/commit/1d2b053322eb36935928122e4552563a7f98f35d)), closes [#17624](https://github.com/cypress-io/cypress/issues/17624) [#17373](https://github.com/cypress-io/cypress/issues/17373)
112
-
113
- # [@cypress/vite-dev-server-v2.0.5](https://github.com/cypress-io/cypress/compare/@cypress/vite-dev-server-v2.0.4...@cypress/vite-dev-server-v2.0.5) (2021-08-04)
114
-
115
-
116
- ### Bug Fixes
117
-
118
- * reload every spec file when support updated ([#17598](https://github.com/cypress-io/cypress/issues/17598)) ([efc38b6](https://github.com/cypress-io/cypress/commit/efc38b67497b48db5b3a636acac3be45dd930593))
119
-
120
- # [@cypress/vite-dev-server-v2.0.4](https://github.com/cypress-io/cypress/compare/@cypress/vite-dev-server-v2.0.3...@cypress/vite-dev-server-v2.0.4) (2021-07-31)
121
-
122
-
123
- ### Bug Fixes
124
-
125
- * **server:** correctly include projectRoot when adding a CI project from GUI ([#17514](https://github.com/cypress-io/cypress/issues/17514)) ([e49b3a4](https://github.com/cypress-io/cypress/commit/e49b3a4b9fc99bb392235b7cad36139faff08eec))
126
- * only rerun if current spec+deps changed ([#17269](https://github.com/cypress-io/cypress/issues/17269)) ([1433b64](https://github.com/cypress-io/cypress/commit/1433b64d25f186774471593892c1c03aa954c4e3))
127
-
128
- # [@cypress/vite-dev-server-v2.0.3](https://github.com/cypress-io/cypress/compare/@cypress/vite-dev-server-v2.0.2...@cypress/vite-dev-server-v2.0.3) (2021-07-27)
129
-
130
-
131
- ### Bug Fixes
132
-
133
- * make vite re-run on supportFile change ([#17485](https://github.com/cypress-io/cypress/issues/17485)) ([6cbf4c3](https://github.com/cypress-io/cypress/commit/6cbf4c38296d6287fbcbb0ef5ecd21cf63606153))
134
-
135
- # [@cypress/vite-dev-server-v2.0.2](https://github.com/cypress-io/cypress/compare/@cypress/vite-dev-server-v2.0.1...@cypress/vite-dev-server-v2.0.2) (2021-07-15)
136
-
137
-
138
- ### Bug Fixes
139
-
140
- * **vite:** autorefresh new spec files ([#17270](https://github.com/cypress-io/cypress/issues/17270)) ([99f9352](https://github.com/cypress-io/cypress/commit/99f93528c87b22656d4d732dfb2ed6843991d861))
141
-
142
- # [@cypress/vite-dev-server-v2.0.1](https://github.com/cypress-io/cypress/compare/@cypress/vite-dev-server-v2.0.0...@cypress/vite-dev-server-v2.0.1) (2021-06-18)
143
-
144
-
145
- ### Bug Fixes
146
-
147
- * vite startDevServer needs to return close() ([#16950](https://github.com/cypress-io/cypress/issues/16950)) ([67b2b3b](https://github.com/cypress-io/cypress/commit/67b2b3b9be13437e56384e377c7d32c6e433e064))
148
-
149
- # [@cypress/vite-dev-server-v2.0.0](https://github.com/cypress-io/cypress/compare/@cypress/vite-dev-server-v1.2.7...@cypress/vite-dev-server-v2.0.0) (2021-05-31)
150
-
151
-
152
- ### Continuous Integration
153
-
154
- * deliver vue3 on master ([#16728](https://github.com/cypress-io/cypress/issues/16728)) ([0ee001f](https://github.com/cypress-io/cypress/commit/0ee001f6250604711653caf5365d8aca063a9cad)), closes [#15100](https://github.com/cypress-io/cypress/issues/15100)
155
-
156
-
157
- ### BREAKING CHANGES
158
-
159
- * no support for vue 2 anymore
160
-
161
- * build: disable auto deliver of next vue
162
-
163
- * Revert "feat(vue): vue 3 support in @cypress/vue"
164
-
165
- This reverts commit 8f55d7baaff1f240677239ae5fdc4180c4a06475.
166
-
167
- * Revert "build: disable auto deliver of next vue"
168
-
169
- This reverts commit ed46c9e5c551e57901dbdc75db2e83bf194c4b18.
170
-
171
- * chore: release @cypress/vue-v1.1.0-alpha.1
172
-
173
- [skip ci]
174
- * dropped support for vue 2 in favor of vue 3
175
-
176
- * test: remove filter tests not relevant in vue 3
177
-
178
- * build: try publishing as a private new major
179
-
180
- * chore: release @cypress/vue-v3.0.0-alpha.1
181
-
182
- [skip ci]
183
-
184
- * chore: bring back access public
185
-
186
- * fix: update dependency to webpack dev server
187
-
188
- * chore: release @cypress/vue-v3.0.0-alpha.2
189
-
190
- [skip ci]
191
-
192
- * chore: remove unnecessary dependency
193
-
194
- * fix: mistreatment of monorepo dependency
195
-
196
- * chore: release @cypress/vue-v3.0.0-alpha.3
197
-
198
- [skip ci]
199
-
200
- * chore: release @cypress/vue-v3.0.0-alpha.4
201
-
202
- [skip ci]
203
-
204
- * fix: use __cy_root at the root element
205
-
206
- * build: avoid using array spread (tslib imports issue)
207
-
208
- * fix: setup for cypress vue tests
209
-
210
- * fix: add cleanup event
211
-
212
- * test: make sure we use the right build of compiler
213
-
214
- * chore: downgrade VTU to rc-1
215
-
216
- * chore: release @cypress/vue-v3.0.0
217
-
218
- [skip ci]
219
-
220
- * chore: upgrade vue version to 3.0.11
221
-
222
- * fix: adjust optional peer deps
223
-
224
- * fix: allow fo any VTU 2 version using ^
225
-
226
- * test: ignore nuxt example
227
-
228
- * test: update yarn lock on vue cli
229
-
230
- * chore: release @cypress/vue-v3.0.1
231
-
232
- [skip ci]
233
-
234
- * ci: release vue@next on master
235
-
236
- * test: fix vue3 examples
237
-
238
- * ci: open only needed server in circle npm-vue
239
-
240
- Co-authored-by: semantic-release-bot <semantic-release-bot@martynus.net>
241
- Co-authored-by: Lachlan Miller <lachlan.miller.1990@outlook.com>
242
-
243
- # [@cypress/vite-dev-server-v1.2.7](https://github.com/cypress-io/cypress/compare/@cypress/vite-dev-server-v1.2.6...@cypress/vite-dev-server-v1.2.7) (2021-05-11)
244
-
245
-
246
- ### Bug Fixes
247
-
248
- * **vite-dev-server:** only re-run tests when specs deps are updated ([#16215](https://github.com/cypress-io/cypress/issues/16215)) ([31d89a5](https://github.com/cypress-io/cypress/commit/31d89a5e1af9acf173a24c26903a48ff11cde894))
249
-
250
- # [@cypress/vite-dev-server-v1.2.6](https://github.com/cypress-io/cypress/compare/@cypress/vite-dev-server-v1.2.5...@cypress/vite-dev-server-v1.2.6) (2021-04-29)
251
-
252
-
253
- ### Bug Fixes
254
-
255
- * **vite-dev-server:** only re-run tests when specs deps are updated ([#16215](https://github.com/cypress-io/cypress/issues/16215)) ([4d23476](https://github.com/cypress-io/cypress/commit/4d23476711d71711590752cada4863a03e1f777f))
256
- * analyze deps of the specs before starting ([3f52def](https://github.com/cypress-io/cypress/commit/3f52def82e7afe9ee0942e6621924d1d6af5efa8))
257
-
258
- # [@cypress/vite-dev-server-v1.2.5](https://github.com/cypress-io/cypress/compare/@cypress/vite-dev-server-v1.2.4...@cypress/vite-dev-server-v1.2.5) (2021-04-27)
259
-
260
-
261
- ### Bug Fixes
262
-
263
- * **vite-dev-server:** fix url to the client on win ([#16220](https://github.com/cypress-io/cypress/issues/16220)) ([c809d19](https://github.com/cypress-io/cypress/commit/c809d19cc139200232a4292529b3bac60d68e995))
264
-
265
- # [@cypress/vite-dev-server-v1.2.4](https://github.com/cypress-io/cypress/compare/@cypress/vite-dev-server-v1.2.3...@cypress/vite-dev-server-v1.2.4) (2021-04-26)
266
-
267
-
268
- ### Bug Fixes
269
-
270
- * accept absolute paths in vite dev server ([#16148](https://github.com/cypress-io/cypress/issues/16148)) ([684730f](https://github.com/cypress-io/cypress/commit/684730fb68b0394a5c602421b38fbb4d066bf439))
271
-
272
- # [@cypress/vite-dev-server-v1.2.3](https://github.com/cypress-io/cypress/compare/@cypress/vite-dev-server-v1.2.2...@cypress/vite-dev-server-v1.2.3) (2021-04-22)
273
-
274
-
275
- ### Bug Fixes
276
-
277
- * make vite-dev-server work on windows ([#16103](https://github.com/cypress-io/cypress/issues/16103)) ([a380d02](https://github.com/cypress-io/cypress/commit/a380d020a4211ddbb2f10a61308bd1a6d2e45057))
278
-
279
- # [@cypress/vite-dev-server-v1.2.2](https://github.com/cypress-io/cypress/compare/@cypress/vite-dev-server-v1.2.1...@cypress/vite-dev-server-v1.2.2) (2021-04-15)
280
-
281
-
282
- ### Bug Fixes
283
-
284
- * conditionally require vue and update alias if installed ([#16000](https://github.com/cypress-io/cypress/issues/16000)) ([8b97b46](https://github.com/cypress-io/cypress/commit/8b97b4641e7e1b2af8ea38d44273dcc149267e20))
285
-
286
- # [@cypress/vite-dev-server-v1.2.1](https://github.com/cypress-io/cypress/compare/@cypress/vite-dev-server-v1.2.0...@cypress/vite-dev-server-v1.2.1) (2021-04-13)
287
-
288
-
289
- ### Bug Fixes
290
-
291
- * **vite-dev-server:** Use viteConfig.server.port if defined ([#15893](https://github.com/cypress-io/cypress/issues/15893)) ([d0dcf22](https://github.com/cypress-io/cypress/commit/d0dcf221018cf2c364bc00ff6f750146eb048e7d))
292
-
293
- # [@cypress/vite-dev-server-v1.2.0](https://github.com/cypress-io/cypress/compare/@cypress/vite-dev-server-v1.1.0...@cypress/vite-dev-server-v1.2.0) (2021-04-05)
294
-
295
-
296
- ### Bug Fixes
297
-
298
- * **vite-dev-server:** import cypress client script asynchronously to avoid flake ([#15778](https://github.com/cypress-io/cypress/issues/15778)) ([88a3830](https://github.com/cypress-io/cypress/commit/88a3830d68ef71290ecad3ab7ba440370f314741))
299
- * make sure the vite server starts on a new port ([57e2988](https://github.com/cypress-io/cypress/commit/57e29886cb731a90724dc5473cfd97760b370c62))
300
- * make vite dev server open on a free port ([#15756](https://github.com/cypress-io/cypress/issues/15756)) ([cd66b05](https://github.com/cypress-io/cypress/commit/cd66b05307ff3f40b3a8bf312a409de2e9ab9399))
301
-
302
-
303
- ### Features
304
-
305
- * simplify vite server ([#15416](https://github.com/cypress-io/cypress/issues/15416)) ([adc2fc8](https://github.com/cypress-io/cypress/commit/adc2fc893fbf32f1f6121d18ddb8a8096e5ebf39))
306
-
307
- # [@cypress/vite-dev-server-v1.1.0](https://github.com/cypress-io/cypress/compare/@cypress/vite-dev-server-v1.0.2...@cypress/vite-dev-server-v1.1.0) (2021-03-15)
308
-
309
-
310
- ### Bug Fixes
311
-
312
- * **component-testing:** ensure to call unmount after each test ([#15385](https://github.com/cypress-io/cypress/issues/15385)) ([153fc51](https://github.com/cypress-io/cypress/commit/153fc515a53343758393db795879a64494374551))
313
- * **component-testing:** make sure vite html is published on npm ([#15379](https://github.com/cypress-io/cypress/issues/15379)) ([325a7ec](https://github.com/cypress-io/cypress/commit/325a7ec56e9dd91e25f39184407751daf3b9a371))
314
- * **component-testing:** vite server dependency refresh ([#15366](https://github.com/cypress-io/cypress/issues/15366)) ([59dbed9](https://github.com/cypress-io/cypress/commit/59dbed90dcfd6c71d3478cd61d0228cff702087f))
315
-
316
-
317
- ### Features
318
-
319
- * create-cypress-tests installation wizard ([#9563](https://github.com/cypress-io/cypress/issues/9563)) ([c405ee8](https://github.com/cypress-io/cypress/commit/c405ee89ef5321df6151fdeec1e917ac952c0d38)), closes [#9116](https://github.com/cypress-io/cypress/issues/9116)
320
- * rollup-dev-server for CT ([#15215](https://github.com/cypress-io/cypress/issues/15215)) ([6f02719](https://github.com/cypress-io/cypress/commit/6f02719511459ebe682ec85eecc02f6b418d233a))
321
-
322
- # [@cypress/vite-dev-server-v1.0.2](https://github.com/cypress-io/cypress/compare/@cypress/vite-dev-server-v1.0.1...@cypress/vite-dev-server-v1.0.2) (2021-03-10)
323
-
324
-
325
- ### Bug Fixes
326
-
327
- * trigger release of the packages ([#15405](https://github.com/cypress-io/cypress/issues/15405)) ([1ce5755](https://github.com/cypress-io/cypress/commit/1ce57554e260850472cf753de68858f47b3f7b3d))
328
-
329
- # [@cypress/vite-dev-server-v1.0.1](https://github.com/cypress-io/cypress/compare/@cypress/vite-dev-server-v1.0.0...@cypress/vite-dev-server-v1.0.1) (2021-02-17)
330
-
331
-
332
- ### Bug Fixes
333
-
334
- * trigger semantic release ([#15128](https://github.com/cypress-io/cypress/issues/15128)) ([3a6f3b1](https://github.com/cypress-io/cypress/commit/3a6f3b1928277f7086062b1107f424e5a0247e00))
335
-
336
- # @cypress/vite-dev-server-v1.0.0 (2021-02-16)
337
-
338
-
339
- ### Features
340
-
341
- * adding vite-dev-server plugin ([#14839](https://github.com/cypress-io/cypress/issues/14839)) ([0225406](https://github.com/cypress-io/cypress/commit/022540605139545d137125dbb6a85eb995053fcb))