@equinor/fusion-framework-dev-server 2.1.0-next.2 → 2.1.1
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/dist/esm/version.js +1 -1
- package/dist/esm/version.js.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/dist/types/version.d.ts +1 -1
- package/package.json +7 -4
- package/CHANGELOG.md +0 -789
- package/docs/advanced.md +0 -79
- package/docs/configuration.md +0 -117
- package/docs/getting-started.md +0 -82
- package/docs/mocking.md +0 -229
- package/docs/troubleshooting.md +0 -68
- package/src/create-dev-server-config.ts +0 -124
- package/src/create-dev-server.ts +0 -48
- package/src/index.ts +0 -40
- package/src/process-services.test.ts +0 -36
- package/src/process-services.ts +0 -99
- package/src/types.ts +0 -105
- package/src/version.ts +0 -2
- package/tsconfig.json +0 -21
- package/vitest.config.ts +0 -11
package/CHANGELOG.md
DELETED
|
@@ -1,789 +0,0 @@
|
|
|
1
|
-
# @equinor/fusion-framework-dev-server
|
|
2
|
-
|
|
3
|
-
## 2.1.0-next.2
|
|
4
|
-
|
|
5
|
-
### Minor Changes
|
|
6
|
-
|
|
7
|
-
- 09a9bcc: Expose `DevServerOptions` as an interface so optional development tooling can add typed
|
|
8
|
-
configuration through TypeScript module augmentation.
|
|
9
|
-
|
|
10
|
-
### Patch Changes
|
|
11
|
-
|
|
12
|
-
- 09a9bcc: Proxy mock services advertised through `<service>.localhost` via plain `localhost` while preserving
|
|
13
|
-
the service-key path. This avoids `ENOTFOUND` failures on Linux runners without changing normal
|
|
14
|
-
upstream service proxying.
|
|
15
|
-
- Updated dependencies [09a9bcc]
|
|
16
|
-
- Updated dependencies [09a9bcc]
|
|
17
|
-
- @equinor/fusion-framework-vite-plugin-api-service@2.0.6-next.1
|
|
18
|
-
- @equinor/fusion-framework-vite-plugin-spa@4.1.0-next.2
|
|
19
|
-
|
|
20
|
-
## 2.0.19-next.1
|
|
21
|
-
|
|
22
|
-
### Patch Changes
|
|
23
|
-
|
|
24
|
-
- @equinor/fusion-framework-vite-plugin-spa@4.0.17-next.1
|
|
25
|
-
|
|
26
|
-
## 2.0.19-next.0
|
|
27
|
-
|
|
28
|
-
### Patch Changes
|
|
29
|
-
|
|
30
|
-
- e8aae1f: Internal: publish every package on the `next` pre-release tag so the whole framework can be installed as a coherent set.
|
|
31
|
-
|
|
32
|
-
Packages without their own changes are bumped only to receive a `-next.N` version and the `next` dist-tag on npm. Install with:
|
|
33
|
-
|
|
34
|
-
```bash
|
|
35
|
-
pnpm add @equinor/fusion-framework-react-app@next
|
|
36
|
-
```
|
|
37
|
-
|
|
38
|
-
- Updated dependencies [e8aae1f]
|
|
39
|
-
- Updated dependencies [2836e0b]
|
|
40
|
-
- @equinor/fusion-framework-vite-plugin-api-service@2.0.6-next.0
|
|
41
|
-
- @equinor/fusion-framework-vite-plugin-spa@4.0.17-next.0
|
|
42
|
-
- @equinor/fusion-log@2.0.3-next.0
|
|
43
|
-
|
|
44
|
-
## 2.0.18
|
|
45
|
-
|
|
46
|
-
### Patch Changes
|
|
47
|
-
|
|
48
|
-
- 0d9d876: Internal: bump transitive dependencies bundled into these packages' build output via `pnpm.overrides` — `undici` (`<7.29.0`), `brace-expansion` (`<2.1.4`), `fast-uri` (`<3.1.5`), and `postcss` (`<=8.5.22`) — to resolve Dependabot security alerts. These packages bundle their dependency tree (rollup/vite build) and are therefore always changesetted for dependency changes, even when only the root lockfile resolution moves.
|
|
49
|
-
- @equinor/fusion-framework-vite-plugin-spa@4.0.16
|
|
50
|
-
|
|
51
|
-
## 2.0.17
|
|
52
|
-
|
|
53
|
-
### Patch Changes
|
|
54
|
-
|
|
55
|
-
- Updated dependencies [12071a3]
|
|
56
|
-
- Updated dependencies [6a3080a]
|
|
57
|
-
- @equinor/fusion-framework-vite-plugin-api-service@2.0.5
|
|
58
|
-
- @equinor/fusion-framework-vite-plugin-spa@4.0.15
|
|
59
|
-
|
|
60
|
-
## 2.0.16
|
|
61
|
-
|
|
62
|
-
### Patch Changes
|
|
63
|
-
|
|
64
|
-
- Updated dependencies [3dcaae6]
|
|
65
|
-
- @equinor/fusion-log@2.0.2
|
|
66
|
-
|
|
67
|
-
## 2.0.15
|
|
68
|
-
|
|
69
|
-
### Patch Changes
|
|
70
|
-
|
|
71
|
-
- 80c3e4a: Internal: add a clarifying intent comment to satisfy fusion-lint; no behavior changes.
|
|
72
|
-
- Updated dependencies [80c3e4a]
|
|
73
|
-
- Updated dependencies [80c3e4a]
|
|
74
|
-
- Updated dependencies [80c3e4a]
|
|
75
|
-
- Updated dependencies [80c3e4a]
|
|
76
|
-
- @equinor/fusion-log@2.0.1
|
|
77
|
-
- @equinor/fusion-framework-vite-plugin-api-service@2.0.4
|
|
78
|
-
- @equinor/fusion-framework-vite-plugin-spa@4.0.14
|
|
79
|
-
|
|
80
|
-
## 2.0.14
|
|
81
|
-
|
|
82
|
-
### Patch Changes
|
|
83
|
-
|
|
84
|
-
- Updated dependencies [70268ab]
|
|
85
|
-
- @equinor/fusion-framework-vite-plugin-api-service@2.0.3
|
|
86
|
-
- @equinor/fusion-framework-vite-plugin-spa@4.0.13
|
|
87
|
-
|
|
88
|
-
## 2.0.13
|
|
89
|
-
|
|
90
|
-
### Patch Changes
|
|
91
|
-
|
|
92
|
-
- Updated dependencies [74beb1c]
|
|
93
|
-
- @equinor/fusion-framework-vite-plugin-spa@4.0.12
|
|
94
|
-
|
|
95
|
-
## 2.0.12
|
|
96
|
-
|
|
97
|
-
### Patch Changes
|
|
98
|
-
|
|
99
|
-
- @equinor/fusion-framework-vite-plugin-spa@4.0.11
|
|
100
|
-
|
|
101
|
-
## 2.0.11
|
|
102
|
-
|
|
103
|
-
### Patch Changes
|
|
104
|
-
|
|
105
|
-
- @equinor/fusion-framework-vite-plugin-spa@4.0.10
|
|
106
|
-
|
|
107
|
-
## 2.0.10
|
|
108
|
-
|
|
109
|
-
### Patch Changes
|
|
110
|
-
|
|
111
|
-
- @equinor/fusion-framework-vite-plugin-spa@4.0.9
|
|
112
|
-
|
|
113
|
-
## 2.0.9
|
|
114
|
-
|
|
115
|
-
### Patch Changes
|
|
116
|
-
|
|
117
|
-
- @equinor/fusion-framework-vite-plugin-spa@4.0.8
|
|
118
|
-
|
|
119
|
-
## 2.0.8
|
|
120
|
-
|
|
121
|
-
### Patch Changes
|
|
122
|
-
|
|
123
|
-
- Updated dependencies [806c623]
|
|
124
|
-
- @equinor/fusion-framework-vite-plugin-api-service@2.0.2
|
|
125
|
-
|
|
126
|
-
## 2.0.7
|
|
127
|
-
|
|
128
|
-
### Patch Changes
|
|
129
|
-
|
|
130
|
-
- Updated dependencies [5c05455]
|
|
131
|
-
- @equinor/fusion-framework-vite-plugin-spa@4.0.7
|
|
132
|
-
|
|
133
|
-
## 2.0.6
|
|
134
|
-
|
|
135
|
-
### Patch Changes
|
|
136
|
-
|
|
137
|
-
- @equinor/fusion-framework-vite-plugin-spa@4.0.6
|
|
138
|
-
|
|
139
|
-
## 2.0.5
|
|
140
|
-
|
|
141
|
-
### Patch Changes
|
|
142
|
-
|
|
143
|
-
- @equinor/fusion-framework-vite-plugin-spa@4.0.5
|
|
144
|
-
|
|
145
|
-
## 2.0.4
|
|
146
|
-
|
|
147
|
-
### Patch Changes
|
|
148
|
-
|
|
149
|
-
- Updated dependencies [3005189]
|
|
150
|
-
- @equinor/fusion-framework-vite-plugin-spa@4.0.4
|
|
151
|
-
|
|
152
|
-
## 2.0.3
|
|
153
|
-
|
|
154
|
-
### Patch Changes
|
|
155
|
-
|
|
156
|
-
- @equinor/fusion-framework-vite-plugin-spa@4.0.3
|
|
157
|
-
|
|
158
|
-
## 2.0.2
|
|
159
|
-
|
|
160
|
-
### Patch Changes
|
|
161
|
-
|
|
162
|
-
- Updated dependencies [4f71408]
|
|
163
|
-
- Updated dependencies [ee9c669]
|
|
164
|
-
- @equinor/fusion-framework-vite-plugin-api-service@2.0.1
|
|
165
|
-
- @equinor/fusion-framework-vite-plugin-spa@4.0.2
|
|
166
|
-
|
|
167
|
-
## 2.0.1
|
|
168
|
-
|
|
169
|
-
### Patch Changes
|
|
170
|
-
|
|
171
|
-
- Updated dependencies [8f16c97]
|
|
172
|
-
- @equinor/fusion-framework-vite-plugin-spa@4.0.1
|
|
173
|
-
|
|
174
|
-
## 2.0.0
|
|
175
|
-
|
|
176
|
-
### Major Changes
|
|
177
|
-
|
|
178
|
-
- abffa53: Major version bump for Fusion Framework React 19 release.
|
|
179
|
-
|
|
180
|
-
All packages are bumped to the next major version as part of the React 19 upgrade. This release drops support for React versions below 18 and includes breaking changes across the framework.
|
|
181
|
-
|
|
182
|
-
**Breaking changes:**
|
|
183
|
-
- Peer dependencies now require React 18 or 19 (`^18.0.0 || ^19.0.0`)
|
|
184
|
-
- React Router upgraded from v6 to v7
|
|
185
|
-
- Navigation module refactored with new history API
|
|
186
|
-
- `renderComponent` and `renderApp` now use `createRoot` API
|
|
187
|
-
|
|
188
|
-
**Migration:**
|
|
189
|
-
- Update your React version to 18.0.0 or higher before upgrading
|
|
190
|
-
- Replace `NavigationProvider.createRouter()` with `@equinor/fusion-framework-react-router`
|
|
191
|
-
- See individual package changelogs for package-specific migration steps
|
|
192
|
-
|
|
193
|
-
### Patch Changes
|
|
194
|
-
|
|
195
|
-
- aa35c46: chore: bump @vitejs/plugin-react from 5.1.4 to 6.0.1
|
|
196
|
-
- 32bcf83: Bump `vite` from `7.3.1` to `8.0.0`.
|
|
197
|
-
|
|
198
|
-
Vite 8 replaces Rollup with Rolldown and esbuild with Oxc for faster builds.
|
|
199
|
-
No breaking API changes affect this codebase. The `dev-server` peerDependency
|
|
200
|
-
is widened to accept both Vite 7 and Vite 8.
|
|
201
|
-
|
|
202
|
-
- Updated dependencies [abffa53]
|
|
203
|
-
- Updated dependencies [32bcf83]
|
|
204
|
-
- @equinor/fusion-framework-vite-plugin-api-service@2.0.0
|
|
205
|
-
- @equinor/fusion-framework-vite-plugin-spa@4.0.0
|
|
206
|
-
- @equinor/fusion-log@2.0.0
|
|
207
|
-
|
|
208
|
-
## 1.1.31
|
|
209
|
-
|
|
210
|
-
### Patch Changes
|
|
211
|
-
|
|
212
|
-
- [#4157](https://github.com/equinor/fusion-framework/pull/4157) [`6aa8e1f`](https://github.com/equinor/fusion-framework/commit/6aa8e1f5c9d852b25e97aa7d98a63008c64d4581) Thanks [@Noggling](https://github.com/Noggling)! - Internal: patch release to align TypeScript types across packages for consistent type compatibility.
|
|
213
|
-
|
|
214
|
-
- Updated dependencies [[`9d4d520`](https://github.com/equinor/fusion-framework/commit/9d4d520e9d3c3a3c4ef68a96952fbbc6f6d34720), [`6aa8e1f`](https://github.com/equinor/fusion-framework/commit/6aa8e1f5c9d852b25e97aa7d98a63008c64d4581)]:
|
|
215
|
-
- @equinor/fusion-framework-vite-plugin-spa@3.1.11
|
|
216
|
-
- @equinor/fusion-log@1.1.8
|
|
217
|
-
- @equinor/fusion-framework-vite-plugin-api-service@1.2.5
|
|
218
|
-
|
|
219
|
-
## 1.1.30
|
|
220
|
-
|
|
221
|
-
### Patch Changes
|
|
222
|
-
|
|
223
|
-
- Updated dependencies []:
|
|
224
|
-
- @equinor/fusion-framework-vite-plugin-spa@3.1.10
|
|
225
|
-
|
|
226
|
-
## 1.1.29
|
|
227
|
-
|
|
228
|
-
### Patch Changes
|
|
229
|
-
|
|
230
|
-
- Updated dependencies []:
|
|
231
|
-
- @equinor/fusion-framework-vite-plugin-spa@3.1.9
|
|
232
|
-
|
|
233
|
-
## 1.1.28
|
|
234
|
-
|
|
235
|
-
### Patch Changes
|
|
236
|
-
|
|
237
|
-
- Updated dependencies []:
|
|
238
|
-
- @equinor/fusion-framework-vite-plugin-spa@3.1.8
|
|
239
|
-
|
|
240
|
-
## 1.1.27
|
|
241
|
-
|
|
242
|
-
### Patch Changes
|
|
243
|
-
|
|
244
|
-
- Updated dependencies []:
|
|
245
|
-
- @equinor/fusion-framework-vite-plugin-spa@3.1.7
|
|
246
|
-
|
|
247
|
-
## 1.1.26
|
|
248
|
-
|
|
249
|
-
### Patch Changes
|
|
250
|
-
|
|
251
|
-
- Updated dependencies []:
|
|
252
|
-
- @equinor/fusion-framework-vite-plugin-spa@3.1.6
|
|
253
|
-
|
|
254
|
-
## 1.1.25
|
|
255
|
-
|
|
256
|
-
### Patch Changes
|
|
257
|
-
|
|
258
|
-
- Updated dependencies []:
|
|
259
|
-
- @equinor/fusion-framework-vite-plugin-spa@3.1.5
|
|
260
|
-
|
|
261
|
-
## 1.1.24
|
|
262
|
-
|
|
263
|
-
### Patch Changes
|
|
264
|
-
|
|
265
|
-
- Updated dependencies []:
|
|
266
|
-
- @equinor/fusion-framework-vite-plugin-spa@3.1.4
|
|
267
|
-
|
|
268
|
-
## 1.1.23
|
|
269
|
-
|
|
270
|
-
### Patch Changes
|
|
271
|
-
|
|
272
|
-
- Updated dependencies []:
|
|
273
|
-
- @equinor/fusion-framework-vite-plugin-spa@3.1.3
|
|
274
|
-
|
|
275
|
-
## 1.1.22
|
|
276
|
-
|
|
277
|
-
### Patch Changes
|
|
278
|
-
|
|
279
|
-
- Updated dependencies []:
|
|
280
|
-
- @equinor/fusion-framework-vite-plugin-spa@3.1.2
|
|
281
|
-
|
|
282
|
-
## 1.1.21
|
|
283
|
-
|
|
284
|
-
### Patch Changes
|
|
285
|
-
|
|
286
|
-
- Updated dependencies [[`122752b`](https://github.com/equinor/fusion-framework/commit/122752b075113b206583ec2c46240997162329b8)]:
|
|
287
|
-
- @equinor/fusion-framework-vite-plugin-spa@3.1.1
|
|
288
|
-
|
|
289
|
-
## 1.1.20
|
|
290
|
-
|
|
291
|
-
### Patch Changes
|
|
292
|
-
|
|
293
|
-
- Updated dependencies [[`d34ebd8`](https://github.com/equinor/fusion-framework/commit/d34ebd82c93acabc88f88e44a725f084af3af5ec)]:
|
|
294
|
-
- @equinor/fusion-framework-vite-plugin-spa@3.1.0
|
|
295
|
-
|
|
296
|
-
## 1.1.19
|
|
297
|
-
|
|
298
|
-
### Patch Changes
|
|
299
|
-
|
|
300
|
-
- Updated dependencies [[`15aaa87`](https://github.com/equinor/fusion-framework/commit/15aaa87e6a8b391c0672db0dcdca4c1cac3b50a7)]:
|
|
301
|
-
- @equinor/fusion-framework-vite-plugin-spa@3.0.7
|
|
302
|
-
|
|
303
|
-
## 1.1.18
|
|
304
|
-
|
|
305
|
-
### Patch Changes
|
|
306
|
-
|
|
307
|
-
- Updated dependencies []:
|
|
308
|
-
- @equinor/fusion-framework-vite-plugin-spa@3.0.6
|
|
309
|
-
|
|
310
|
-
## 1.1.17
|
|
311
|
-
|
|
312
|
-
### Patch Changes
|
|
313
|
-
|
|
314
|
-
- Updated dependencies []:
|
|
315
|
-
- @equinor/fusion-framework-vite-plugin-spa@3.0.5
|
|
316
|
-
|
|
317
|
-
## 1.1.16
|
|
318
|
-
|
|
319
|
-
### Patch Changes
|
|
320
|
-
|
|
321
|
-
- Updated dependencies []:
|
|
322
|
-
- @equinor/fusion-framework-vite-plugin-spa@3.0.4
|
|
323
|
-
|
|
324
|
-
## 1.1.15
|
|
325
|
-
|
|
326
|
-
### Patch Changes
|
|
327
|
-
|
|
328
|
-
- Updated dependencies [[`ee6aa77`](https://github.com/equinor/fusion-framework/commit/ee6aa7764776000edab9233ad9a4716b2d85c4eb)]:
|
|
329
|
-
- @equinor/fusion-framework-vite-plugin-spa@3.0.3
|
|
330
|
-
|
|
331
|
-
## 1.1.14
|
|
332
|
-
|
|
333
|
-
### Patch Changes
|
|
334
|
-
|
|
335
|
-
- Updated dependencies []:
|
|
336
|
-
- @equinor/fusion-framework-vite-plugin-spa@3.0.2
|
|
337
|
-
|
|
338
|
-
## 1.1.13
|
|
339
|
-
|
|
340
|
-
### Patch Changes
|
|
341
|
-
|
|
342
|
-
- Updated dependencies []:
|
|
343
|
-
- @equinor/fusion-framework-vite-plugin-spa@3.0.1
|
|
344
|
-
|
|
345
|
-
## 1.1.12
|
|
346
|
-
|
|
347
|
-
### Patch Changes
|
|
348
|
-
|
|
349
|
-
- Updated dependencies [[`11fe961`](https://github.com/equinor/fusion-framework/commit/11fe961794e4960ccb987bc320268cc9b263f1f8)]:
|
|
350
|
-
- @equinor/fusion-framework-vite-plugin-spa@3.0.0
|
|
351
|
-
|
|
352
|
-
## 1.1.11
|
|
353
|
-
|
|
354
|
-
### Patch Changes
|
|
355
|
-
|
|
356
|
-
- [#3686](https://github.com/equinor/fusion-framework/pull/3686) [`d6465bc`](https://github.com/equinor/fusion-framework/commit/d6465bc2787a37465e22964803501e44f6b19517) Thanks [@odinr](https://github.com/odinr)! - Update vite peerDependency version constraint from ^6.0.7 to ^7.0.0 to support the latest vite features and improvements.
|
|
357
|
-
|
|
358
|
-
## 1.1.10
|
|
359
|
-
|
|
360
|
-
### Patch Changes
|
|
361
|
-
|
|
362
|
-
- [#3637](https://github.com/equinor/fusion-framework/pull/3637) [`f5b88e7`](https://github.com/equinor/fusion-framework/commit/f5b88e7ff8e896624de67bdf29091ba44bf8a628) Thanks [@dependabot](https://github.com/apps/dependabot)! - Internal: bump rollup from 4.52.4 to 4.52.5 to fix sourcemap debugId generation; no public API changes.
|
|
363
|
-
|
|
364
|
-
- Updated dependencies [[`f5b88e7`](https://github.com/equinor/fusion-framework/commit/f5b88e7ff8e896624de67bdf29091ba44bf8a628), [`1706e4c`](https://github.com/equinor/fusion-framework/commit/1706e4c503d8ef4db46a9572392d23e9c081c82c), [`581306b`](https://github.com/equinor/fusion-framework/commit/581306bb7ace1646548865ea1711255065e90570)]:
|
|
365
|
-
- @equinor/fusion-framework-vite-plugin-api-service@1.2.4
|
|
366
|
-
- @equinor/fusion-framework-vite-plugin-spa@2.0.2
|
|
367
|
-
|
|
368
|
-
## 1.1.9
|
|
369
|
-
|
|
370
|
-
### Patch Changes
|
|
371
|
-
|
|
372
|
-
- [#3652](https://github.com/equinor/fusion-framework/pull/3652) [`8d50adc`](https://github.com/equinor/fusion-framework/commit/8d50adc17e81fc46da81795125832af8add5f678) Thanks [@dependabot](https://github.com/apps/dependabot)! - **Security:** Update Vite to v7.1.12
|
|
373
|
-
|
|
374
|
-
This update addresses a security vulnerability in Vite's development server and includes bug fixes for improved compatibility. The update ensures secure development environments and better plugin ecosystem compatibility.
|
|
375
|
-
|
|
376
|
-
**Changes:**
|
|
377
|
-
- Updated Vite from v7.1.10 to v7.1.12
|
|
378
|
-
- Includes security fix for development server file system checks
|
|
379
|
-
- Includes compatibility fix for CommonJS plugin
|
|
380
|
-
- No breaking changes or API modifications
|
|
381
|
-
|
|
382
|
-
**Security Fix (v7.1.11):**
|
|
383
|
-
- **dev**: trim trailing slash before `server.fs.deny` check ([#20968](https://github.com/vitejs/vite/issues/20968))
|
|
384
|
-
- Prevents potential path traversal vulnerability in development server
|
|
385
|
-
- Only affects development environment, not production builds
|
|
386
|
-
|
|
387
|
-
**Bug Fix (v7.1.12):**
|
|
388
|
-
- **deps**: downgrade commonjs plugin to 28.0.6 to avoid rollup/plugins issues ([#20990](https://github.com/vitejs/vite/issues/20990))
|
|
389
|
-
- Improves compatibility with Rollup plugin ecosystem
|
|
390
|
-
- Prevents potential build issues
|
|
391
|
-
|
|
392
|
-
All packages using Vite as a development dependency are updated to the latest secure version. This is a patch-level security and bug fix update that maintains full compatibility with existing functionality.
|
|
393
|
-
|
|
394
|
-
closes: https://github.com/equinor/fusion/issues/723
|
|
395
|
-
|
|
396
|
-
- Updated dependencies [[`8d50adc`](https://github.com/equinor/fusion-framework/commit/8d50adc17e81fc46da81795125832af8add5f678)]:
|
|
397
|
-
- @equinor/fusion-framework-vite-plugin-api-service@1.2.3
|
|
398
|
-
- @equinor/fusion-framework-vite-plugin-spa@2.0.1
|
|
399
|
-
|
|
400
|
-
## 1.1.8
|
|
401
|
-
|
|
402
|
-
### Patch Changes
|
|
403
|
-
|
|
404
|
-
- Updated dependencies [[`0dd31cd`](https://github.com/equinor/fusion-framework/commit/0dd31cd1078b383ddab4a8cf1bb03d502e214715), [`31e2581`](https://github.com/equinor/fusion-framework/commit/31e2581fca2765dc7caf54f74db3db51020b53b7)]:
|
|
405
|
-
- @equinor/fusion-framework-vite-plugin-spa@2.0.0
|
|
406
|
-
|
|
407
|
-
## 1.1.7
|
|
408
|
-
|
|
409
|
-
### Patch Changes
|
|
410
|
-
|
|
411
|
-
- Updated dependencies [[`dd560e7`](https://github.com/equinor/fusion-framework/commit/dd560e75683788c875c6ba1e78463ae18d57fce2)]:
|
|
412
|
-
- @equinor/fusion-framework-vite-plugin-spa@1.2.2
|
|
413
|
-
|
|
414
|
-
## 1.1.6
|
|
415
|
-
|
|
416
|
-
### Patch Changes
|
|
417
|
-
|
|
418
|
-
- Updated dependencies [[`b6a64d9`](https://github.com/equinor/fusion-framework/commit/b6a64d94bad7248c06b3aa7d65d7d698052437c7)]:
|
|
419
|
-
- @equinor/fusion-framework-vite-plugin-spa@1.2.1
|
|
420
|
-
|
|
421
|
-
## 1.1.5
|
|
422
|
-
|
|
423
|
-
### Patch Changes
|
|
424
|
-
|
|
425
|
-
- Updated dependencies [[`99a3c26`](https://github.com/equinor/fusion-framework/commit/99a3c26275c2089c3708124f5819ce383d8dc3dc)]:
|
|
426
|
-
- @equinor/fusion-framework-vite-plugin-spa@1.2.0
|
|
427
|
-
|
|
428
|
-
## 1.1.4
|
|
429
|
-
|
|
430
|
-
### Patch Changes
|
|
431
|
-
|
|
432
|
-
- [#3532](https://github.com/equinor/fusion-framework/pull/3532) [`63ecde5`](https://github.com/equinor/fusion-framework/commit/63ecde5c29e775b341c3fac0c1eeb7123db5e2db) Thanks [@dependabot](https://github.com/apps/dependabot)! - Bump vite from 7.1.8 to 7.1.9 across development tools and plugins.
|
|
433
|
-
|
|
434
|
-
This patch update fixes bugs and improves stability in the vite dependency.
|
|
435
|
-
|
|
436
|
-
- Updated dependencies [[`45954e5`](https://github.com/equinor/fusion-framework/commit/45954e5db471a2faa24e88e41fc6d6c18817d6d1), [`63ecde5`](https://github.com/equinor/fusion-framework/commit/63ecde5c29e775b341c3fac0c1eeb7123db5e2db), [`d1098f7`](https://github.com/equinor/fusion-framework/commit/d1098f7eeff04380c9e05e4a7a7d6b16e1d95884)]:
|
|
437
|
-
- @equinor/fusion-framework-vite-plugin-spa@1.1.4
|
|
438
|
-
- @equinor/fusion-framework-vite-plugin-api-service@1.2.2
|
|
439
|
-
|
|
440
|
-
## 1.1.3
|
|
441
|
-
|
|
442
|
-
### Patch Changes
|
|
443
|
-
|
|
444
|
-
- [`56c27ec`](https://github.com/equinor/fusion-framework/commit/56c27ec9de03e07e725eecfdf2c028a1e29b6ece) Thanks [@odinr](https://github.com/odinr)! - Updated workspace dependencies to use exact version specifiers for consistent release behavior.
|
|
445
|
-
- Changed workspace dependencies from `workspace:^` to `workspace:*` across CLI, dev-server, and SPA vite plugin packages
|
|
446
|
-
- Ensures exact version resolution within the monorepo for predictable builds and releases
|
|
447
|
-
- Affects both dependencies and devDependencies where applicable
|
|
448
|
-
|
|
449
|
-
- Updated dependencies [[`56c27ec`](https://github.com/equinor/fusion-framework/commit/56c27ec9de03e07e725eecfdf2c028a1e29b6ece)]:
|
|
450
|
-
- @equinor/fusion-framework-vite-plugin-spa@1.1.3
|
|
451
|
-
|
|
452
|
-
## 1.1.2
|
|
453
|
-
|
|
454
|
-
### Patch Changes
|
|
455
|
-
|
|
456
|
-
- [#3432](https://github.com/equinor/fusion-framework/pull/3432) [`528d72c`](https://github.com/equinor/fusion-framework/commit/528d72c04066f93fca1fa6469f33ec8d5383dcdc) Thanks [@dependabot](https://github.com/apps/dependabot)! - Updated vite from 7.1.5 to 7.1.7, including bug fixes for HMR, build system, and glob imports.
|
|
457
|
-
|
|
458
|
-
- Updated dependencies [[`528d72c`](https://github.com/equinor/fusion-framework/commit/528d72c04066f93fca1fa6469f33ec8d5383dcdc)]:
|
|
459
|
-
- @equinor/fusion-framework-vite-plugin-api-service@1.2.1
|
|
460
|
-
- @equinor/fusion-framework-vite-plugin-spa@1.1.1
|
|
461
|
-
|
|
462
|
-
## 1.1.1
|
|
463
|
-
|
|
464
|
-
### Patch Changes
|
|
465
|
-
|
|
466
|
-
- [#3443](https://github.com/equinor/fusion-framework/pull/3443) [`2291483`](https://github.com/equinor/fusion-framework/commit/2291483b10ea288102155839dc47dcfe2addc22c) Thanks [@eikeland](https://github.com/eikeland)! - Fix OPTIONS requests missing Allow header after Vite 7 update
|
|
467
|
-
- Disabled Vite's internal CORS handling by setting `server.cors: false`
|
|
468
|
-
- This allows backend services to properly handle OPTIONS requests with correct headers
|
|
469
|
-
- Resolves issue where OPTIONS requests were not forwarded to backend after Vite 7 upgrade
|
|
470
|
-
- Backend services can now include Allow, Access-Control-Allow-Methods, and other CORS headers
|
|
471
|
-
|
|
472
|
-
closes: #3436
|
|
473
|
-
|
|
474
|
-
## 1.1.0
|
|
475
|
-
|
|
476
|
-
### Minor Changes
|
|
477
|
-
|
|
478
|
-
- [#3349](https://github.com/equinor/fusion-framework/pull/3349) [`c511123`](https://github.com/equinor/fusion-framework/commit/c511123c835e24e9ddefcc4c47c2455f5df12087) Thanks [@dependabot](https://github.com/apps/dependabot)! - chore: bump vite from 6.x to 7.1.5
|
|
479
|
-
|
|
480
|
-
Major version update of Vite build tool across all packages. This update includes:
|
|
481
|
-
- Enhanced build performance and caching
|
|
482
|
-
- Better error reporting with code frames
|
|
483
|
-
- Improved TypeScript integration
|
|
484
|
-
- Updated plugin ecosystem compatibility
|
|
485
|
-
- New development server features
|
|
486
|
-
|
|
487
|
-
### Links
|
|
488
|
-
- [Vite 7.1.5 Release Notes](https://github.com/vitejs/vite/releases/tag/v7.1.5)
|
|
489
|
-
- [Vite 7.x Migration Guide](https://vitejs.dev/guide/migration)
|
|
490
|
-
|
|
491
|
-
### Patch Changes
|
|
492
|
-
|
|
493
|
-
- [#3391](https://github.com/equinor/fusion-framework/pull/3391) [`7792659`](https://github.com/equinor/fusion-framework/commit/7792659bf2ade10dba5e54c610d5abff522324b6) Thanks [@dependabot](https://github.com/apps/dependabot)! - chore: bump vitest from 2.0.1 to 3.2.4
|
|
494
|
-
|
|
495
|
-
Major version update of Vitest testing framework for dev-server package.
|
|
496
|
-
|
|
497
|
-
### Breaking Changes
|
|
498
|
-
- Updated from Vitest v2 to v3
|
|
499
|
-
- Test runner behavior improvements
|
|
500
|
-
|
|
501
|
-
### New Features
|
|
502
|
-
- Enhanced test performance
|
|
503
|
-
- Better error handling and reporting
|
|
504
|
-
- Updated Vite integration (v6.3.5)
|
|
505
|
-
|
|
506
|
-
### Links
|
|
507
|
-
- [Vitest v3.2.4 Release Notes](https://github.com/vitest-dev/vitest/releases/tag/v3.2.4)
|
|
508
|
-
- [Vitest v3 Migration Guide](https://vitest.dev/guide/migration.html)
|
|
509
|
-
|
|
510
|
-
- Updated dependencies [[`c511123`](https://github.com/equinor/fusion-framework/commit/c511123c835e24e9ddefcc4c47c2455f5df12087)]:
|
|
511
|
-
- @equinor/fusion-framework-vite-plugin-api-service@1.2.0
|
|
512
|
-
- @equinor/fusion-framework-vite-plugin-spa@1.1.0
|
|
513
|
-
|
|
514
|
-
## 1.0.3
|
|
515
|
-
|
|
516
|
-
### Patch Changes
|
|
517
|
-
|
|
518
|
-
- [#2910](https://github.com/equinor/fusion-framework/pull/2910) [`07cc985`](https://github.com/equinor/fusion-framework/commit/07cc9857e1427b574e011cc319518e701dba784d) Thanks [@dependabot](https://github.com/apps/dependabot)! - Updated vitest from 2.1.9 to 3.2.4 across all packages.
|
|
519
|
-
|
|
520
|
-
## Breaking Changes
|
|
521
|
-
- **Node.js Requirements**: Requires Node.js 18+ (already satisfied)
|
|
522
|
-
- **Vite Compatibility**: Updated to work with Vite 7.x (already using Vite 7.1.5)
|
|
523
|
-
- **Snapshot Format**: Snapshots now use backtick quotes (\`) instead of single quotes
|
|
524
|
-
- **Coverage API**: New coverage methods `enableCoverage()` and `disableCoverage()`
|
|
525
|
-
- **TypeScript Support**: Enhanced TypeScript integration and type definitions
|
|
526
|
-
|
|
527
|
-
## Security Updates
|
|
528
|
-
- CVE-2025-24963: Browser mode serves arbitrary files (fixed in 2.1.9)
|
|
529
|
-
- CVE-2025-24964: Remote Code Execution vulnerability (fixed in 2.1.9)
|
|
530
|
-
|
|
531
|
-
## Migration Notes
|
|
532
|
-
- Test snapshots may need regeneration due to quote format changes
|
|
533
|
-
- Some test configurations might need updates for new TypeScript support
|
|
534
|
-
- Peer dependency warnings for @vitest/coverage-v8 are expected and safe to ignore
|
|
535
|
-
|
|
536
|
-
## Links
|
|
537
|
-
- [Vitest 3.0 Migration Guide](https://vitest.dev/guide/migration)
|
|
538
|
-
- [Vitest 3.2.4 Release Notes](https://github.com/vitest-dev/vitest/releases/tag/v3.2.4)
|
|
539
|
-
|
|
540
|
-
- Updated dependencies [[`bae9c95`](https://github.com/equinor/fusion-framework/commit/bae9c9554f335d0384b864436874bded47d00ed8), [`07cc985`](https://github.com/equinor/fusion-framework/commit/07cc9857e1427b574e011cc319518e701dba784d)]:
|
|
541
|
-
- @equinor/fusion-framework-vite-plugin-spa@1.0.1
|
|
542
|
-
- @equinor/fusion-log@1.1.7
|
|
543
|
-
- @equinor/fusion-framework-vite-plugin-api-service@1.1.1
|
|
544
|
-
|
|
545
|
-
## 1.0.2
|
|
546
|
-
|
|
547
|
-
### Patch Changes
|
|
548
|
-
|
|
549
|
-
- [#3330](https://github.com/equinor/fusion-framework/pull/3330) [`3590104`](https://github.com/equinor/fusion-framework/commit/3590104bdf3bba3386cdec7e2692078e6a92bd01) Thanks [@odinr](https://github.com/odinr)! - Enhanced dev server configuration by removing `vite-tsconfig-paths` plugin.
|
|
550
|
-
|
|
551
|
-
> The responsibility for adding the `vite-tsconfig-paths` plugin has been moved to `@equinor/fusion-framework-cli`, which now provides it via the `overrides` parameter in `createDevServerConfig`. This ensures consistent TypeScript path resolution in both development and build environments.
|
|
552
|
-
- Removed `vite-tsconfig-paths` dependency from package.json
|
|
553
|
-
- Removed plugin usage from `create-dev-server-config.ts`
|
|
554
|
-
|
|
555
|
-
**Breaking change:**
|
|
556
|
-
|
|
557
|
-
If you use `@equinor/fusion-framework-dev-server` outside of the CLI, you must manually add the `vite-tsconfig-paths` plugin to your Vite config overrides to maintain the same TypeScript path resolution behavior.
|
|
558
|
-
|
|
559
|
-
## 1.0.1
|
|
560
|
-
|
|
561
|
-
### Patch Changes
|
|
562
|
-
|
|
563
|
-
- [#3327](https://github.com/equinor/fusion-framework/pull/3327) [`22d6d3b`](https://github.com/equinor/fusion-framework/commit/22d6d3b7753da8ad30054839e8a6083850a208fa) Thanks [@odinr](https://github.com/odinr)! - Enhanced dev server configuration with improved React and TypeScript path resolution support.
|
|
564
|
-
- Added `@vitejs/plugin-react` for better React development experience
|
|
565
|
-
- Added `vite-tsconfig-paths` for improved TypeScript path resolution
|
|
566
|
-
- Updated `create-dev-server-config.ts` to include both plugins in the vite configuration
|
|
567
|
-
|
|
568
|
-
## 1.0.0
|
|
569
|
-
|
|
570
|
-
### Major Changes
|
|
571
|
-
|
|
572
|
-
- [#3075](https://github.com/equinor/fusion-framework/pull/3075) [`8fffbfb`](https://github.com/equinor/fusion-framework/commit/8fffbfb12daa9748bf5290e5084cd4d409aed253) Thanks [@odinr](https://github.com/odinr)! - Introduced a new package, `@equinor/fusion-framework-dev-server`, designed to provide a development server tailored for Fusion Framework applications. Built on top of Vite, it seamlessly integrates Vite and Fusion Framework configurations.
|
|
573
|
-
|
|
574
|
-
For more details, visit the [GitHub repository](https://github.com/equinor/fusion-framework/tree/main/packages/dev-server/README.md).
|
|
575
|
-
|
|
576
|
-
**Features**
|
|
577
|
-
- _`createDevServer` Function_: Simplifies the creation of a development server using a configuration object.
|
|
578
|
-
- _`createDevServerConfig` Function_: Generates a Vite-compatible configuration for the development server.
|
|
579
|
-
- _SPA Support_: Includes `spa.templateEnv` for defining environment variables specific to Single Page Applications.
|
|
580
|
-
- _API Service Discovery_: Enables proxying and route mapping for API services via `api.serviceDiscoveryUrl`.
|
|
581
|
-
- _Dynamic Proxy Routes_: Introduced the `processServices` function to remap Fusion services' URIs and dynamically generate proxy routes.
|
|
582
|
-
- _Logging_: Integrated `@equinor/fusion-log` for customizable logging, with dedicated sub-loggers for SPA and API services.
|
|
583
|
-
|
|
584
|
-
**Dependencies**
|
|
585
|
-
|
|
586
|
-
The following dependencies were added to support the new package:
|
|
587
|
-
- `@equinor/fusion-framework-vite-plugin-api-service`
|
|
588
|
-
- `@equinor/fusion-framework-vite-plugin-spa`
|
|
589
|
-
- `@equinor/fusion-log`
|
|
590
|
-
|
|
591
|
-
**Examples**
|
|
592
|
-
|
|
593
|
-
_Using `createDevServer`_
|
|
594
|
-
|
|
595
|
-
```ts
|
|
596
|
-
import { createDevServer } from "@equinor/fusion-framework-dev-server";
|
|
597
|
-
|
|
598
|
-
const devServer = await createDevServer({
|
|
599
|
-
spa: {
|
|
600
|
-
templateEnv: {
|
|
601
|
-
portal: {
|
|
602
|
-
id: "dev-portal",
|
|
603
|
-
},
|
|
604
|
-
title: "My Test Dev Server",
|
|
605
|
-
},
|
|
606
|
-
},
|
|
607
|
-
api: {
|
|
608
|
-
serviceDiscoveryUrl: "https://location.of.your.service.discovery",
|
|
609
|
-
processServices: (data, route) => {
|
|
610
|
-
return {
|
|
611
|
-
data: data.concat({
|
|
612
|
-
key: "mock-service",
|
|
613
|
-
name: "Mock Service",
|
|
614
|
-
uri: "/mock-api",
|
|
615
|
-
}),
|
|
616
|
-
routes: [],
|
|
617
|
-
};
|
|
618
|
-
},
|
|
619
|
-
},
|
|
620
|
-
});
|
|
621
|
-
```
|
|
622
|
-
|
|
623
|
-
### Patch Changes
|
|
624
|
-
|
|
625
|
-
- [#3075](https://github.com/equinor/fusion-framework/pull/3075) [`8fffbfb`](https://github.com/equinor/fusion-framework/commit/8fffbfb12daa9748bf5290e5084cd4d409aed253) Thanks [@odinr](https://github.com/odinr)! - update Vite to 6.3.5
|
|
626
|
-
|
|
627
|
-
- Updated dependencies [[`8fffbfb`](https://github.com/equinor/fusion-framework/commit/8fffbfb12daa9748bf5290e5084cd4d409aed253), [`8fffbfb`](https://github.com/equinor/fusion-framework/commit/8fffbfb12daa9748bf5290e5084cd4d409aed253), [`8fffbfb`](https://github.com/equinor/fusion-framework/commit/8fffbfb12daa9748bf5290e5084cd4d409aed253)]:
|
|
628
|
-
- @equinor/fusion-framework-vite-plugin-api-service@1.0.0
|
|
629
|
-
- @equinor/fusion-framework-vite-plugin-spa@1.0.0
|
|
630
|
-
- @equinor/fusion-log@1.1.5
|
|
631
|
-
|
|
632
|
-
## 1.0.0-next.10
|
|
633
|
-
|
|
634
|
-
### Patch Changes
|
|
635
|
-
|
|
636
|
-
- [#3137](https://github.com/equinor/fusion-framework/pull/3137) [`7c58c78`](https://github.com/equinor/fusion-framework/commit/7c58c7868c66b1fc0f720b4ed13d39e0fe505461) Thanks [@odinr](https://github.com/odinr)! - updates from main
|
|
637
|
-
|
|
638
|
-
- [#3075](https://github.com/equinor/fusion-framework/pull/3075) [`db34d90`](https://github.com/equinor/fusion-framework/commit/db34d9003d64e4c7cb46cf0c95f0c7a0e7587128) Thanks [@odinr](https://github.com/odinr)! - merge with main
|
|
639
|
-
|
|
640
|
-
- Updated dependencies [[`7c58c78`](https://github.com/equinor/fusion-framework/commit/7c58c7868c66b1fc0f720b4ed13d39e0fe505461), [`db34d90`](https://github.com/equinor/fusion-framework/commit/db34d9003d64e4c7cb46cf0c95f0c7a0e7587128)]:
|
|
641
|
-
- @equinor/fusion-framework-vite-plugin-api-service@1.0.0-next.2
|
|
642
|
-
- @equinor/fusion-framework-vite-plugin-spa@1.0.0-next.9
|
|
643
|
-
- @equinor/fusion-log@1.1.5-next.0
|
|
644
|
-
|
|
645
|
-
## 1.0.0-next.9
|
|
646
|
-
|
|
647
|
-
### Patch Changes
|
|
648
|
-
|
|
649
|
-
- Updated dependencies [[`5973182`](https://github.com/equinor/fusion-framework/commit/5973182b156adb56137f1fc683635ae15274cc57)]:
|
|
650
|
-
- @equinor/fusion-framework-vite-plugin-spa@1.0.0-next.8
|
|
651
|
-
|
|
652
|
-
## 1.0.0-next.8
|
|
653
|
-
|
|
654
|
-
### Patch Changes
|
|
655
|
-
|
|
656
|
-
- Updated dependencies [[`23fdc8a`](https://github.com/equinor/fusion-framework/commit/23fdc8a80d21ff063b17d8c596c0afc0a891305f)]:
|
|
657
|
-
- @equinor/fusion-framework-vite-plugin-spa@1.0.0-next.7
|
|
658
|
-
|
|
659
|
-
## 1.0.0-next.7
|
|
660
|
-
|
|
661
|
-
### Patch Changes
|
|
662
|
-
|
|
663
|
-
- Updated dependencies [[`713cb15`](https://github.com/equinor/fusion-framework/commit/713cb15c5f1607e7f7285940a58165d97d8e41df)]:
|
|
664
|
-
- @equinor/fusion-framework-vite-plugin-spa@1.0.0-next.6
|
|
665
|
-
|
|
666
|
-
## 1.0.0-next.6
|
|
667
|
-
|
|
668
|
-
### Patch Changes
|
|
669
|
-
|
|
670
|
-
- Updated dependencies [[`ea96493`](https://github.com/equinor/fusion-framework/commit/ea96493d95336f682e31a7b63161783ae7c99a63)]:
|
|
671
|
-
- @equinor/fusion-framework-vite-plugin-spa@1.0.0-next.5
|
|
672
|
-
|
|
673
|
-
## 1.0.0-next.5
|
|
674
|
-
|
|
675
|
-
### Patch Changes
|
|
676
|
-
|
|
677
|
-
- Updated dependencies [[`8870e73`](https://github.com/equinor/fusion-framework/commit/8870e73bd6d4141142c69c11c67b5b154bc80023)]:
|
|
678
|
-
- @equinor/fusion-framework-vite-plugin-spa@1.0.0-next.4
|
|
679
|
-
|
|
680
|
-
## 1.0.0-next.4
|
|
681
|
-
|
|
682
|
-
### Patch Changes
|
|
683
|
-
|
|
684
|
-
- Updated dependencies []:
|
|
685
|
-
- @equinor/fusion-framework-vite-plugin-spa@1.0.0-next.3
|
|
686
|
-
|
|
687
|
-
## 1.0.0-next.3
|
|
688
|
-
|
|
689
|
-
### Patch Changes
|
|
690
|
-
|
|
691
|
-
- [#3075](https://github.com/equinor/fusion-framework/pull/3075) [`2ed792a`](https://github.com/equinor/fusion-framework/commit/2ed792a1118f3726f811c4dbdf8d25c69d7bb756) Thanks [@odinr](https://github.com/odinr)! - removed options for server options for `createDevServerConfig`, use overrides instead on `createDevServer`
|
|
692
|
-
|
|
693
|
-
- Updated dependencies [[`ca8d6c8`](https://github.com/equinor/fusion-framework/commit/ca8d6c834f9df35041ce8c7e2563c452d8b19276), [`7878f59`](https://github.com/equinor/fusion-framework/commit/7878f591c528d463bfbe558094c2c31004db8586)]:
|
|
694
|
-
- @equinor/fusion-framework-vite-plugin-spa@1.0.0-next.2
|
|
695
|
-
|
|
696
|
-
## 1.0.0-next.2
|
|
697
|
-
|
|
698
|
-
### Patch Changes
|
|
699
|
-
|
|
700
|
-
- Updated dependencies [[`96ad5d3`](https://github.com/equinor/fusion-framework/commit/96ad5d3a3aafe7adf5bd7f8e48e58bb19aa95ba8)]:
|
|
701
|
-
- @equinor/fusion-framework-vite-plugin-spa@1.0.0-next.1
|
|
702
|
-
- @equinor/fusion-framework-vite-plugin-api-service@1.0.0-next.1
|
|
703
|
-
|
|
704
|
-
## 1.0.0-next.1
|
|
705
|
-
|
|
706
|
-
### Patch Changes
|
|
707
|
-
|
|
708
|
-
- [#3075](https://github.com/equinor/fusion-framework/pull/3075) [`84c16d7`](https://github.com/equinor/fusion-framework/commit/84c16d74c3235f809ce4c3e75868be12010ed695) Thanks [@odinr](https://github.com/odinr)! - Add `prepack` script to `dev-portal` and `dev-server` packages
|
|
709
|
-
- Added a `prepack` script to `@equinor/fusion-framework-dev-portal` and `@equinor/fusion-framework-dev-server` to ensure the build runs before packaging.
|
|
710
|
-
- This helps guarantee that the latest build artifacts are included when publishing these packages.
|
|
711
|
-
|
|
712
|
-
## 1.0.0-next.0
|
|
713
|
-
|
|
714
|
-
### Major Changes
|
|
715
|
-
|
|
716
|
-
- [#3074](https://github.com/equinor/fusion-framework/pull/3074) [`6b034e5`](https://github.com/equinor/fusion-framework/commit/6b034e5459094cea0c0f2490335eef3092390a13) Thanks [@odinr](https://github.com/odinr)! - Introduced a new package, `@equinor/fusion-framework-dev-server`, designed to provide a development server tailored for Fusion Framework applications. Built on top of Vite, it seamlessly integrates Vite and Fusion Framework configurations.
|
|
717
|
-
|
|
718
|
-
**Features**
|
|
719
|
-
- _`createDevServer` Function_: Simplifies the creation of a development server using a configuration object.
|
|
720
|
-
- _`createDevServerConfig` Function_: Generates a Vite-compatible configuration for the development server.
|
|
721
|
-
- _SPA Support_: Includes `spa.templateEnv` for defining environment variables specific to Single Page Applications.
|
|
722
|
-
- _API Service Discovery_: Enables proxying and route mapping for API services via `api.serviceDiscoveryUrl`.
|
|
723
|
-
- _Dynamic Proxy Routes_: Introduced the `processServices` function to remap Fusion services' URIs and dynamically generate proxy routes.
|
|
724
|
-
- _Logging_: Integrated `@equinor/fusion-log` for customizable logging, with dedicated sub-loggers for SPA and API services.
|
|
725
|
-
|
|
726
|
-
**Dependencies**
|
|
727
|
-
|
|
728
|
-
The following dependencies were added to support the new package:
|
|
729
|
-
- `@equinor/fusion-framework-vite-plugin-api-service`
|
|
730
|
-
- `@equinor/fusion-framework-vite-plugin-spa`
|
|
731
|
-
- `@equinor/fusion-log`
|
|
732
|
-
|
|
733
|
-
**Examples**
|
|
734
|
-
|
|
735
|
-
_Using `createDevServer`_
|
|
736
|
-
|
|
737
|
-
```ts
|
|
738
|
-
import { createDevServer } from "@equinor/fusion-framework-dev-server";
|
|
739
|
-
|
|
740
|
-
const devServer = await createDevServer({
|
|
741
|
-
spa: {
|
|
742
|
-
templateEnv: {
|
|
743
|
-
portal: {
|
|
744
|
-
id: "dev-portal",
|
|
745
|
-
},
|
|
746
|
-
title: "My Test Dev Server",
|
|
747
|
-
},
|
|
748
|
-
},
|
|
749
|
-
api: {
|
|
750
|
-
serviceDiscoveryUrl: "https://location.of.your.service.discovery",
|
|
751
|
-
processServices: (data, route) => {
|
|
752
|
-
return {
|
|
753
|
-
data: data.concat({
|
|
754
|
-
key: "mock-service",
|
|
755
|
-
name: "Mock Service",
|
|
756
|
-
uri: "/mock-api",
|
|
757
|
-
}),
|
|
758
|
-
routes: [],
|
|
759
|
-
};
|
|
760
|
-
},
|
|
761
|
-
},
|
|
762
|
-
});
|
|
763
|
-
```
|
|
764
|
-
|
|
765
|
-
_Using `createDevServerConfig`_
|
|
766
|
-
|
|
767
|
-
```ts
|
|
768
|
-
import { createDevServerConfig } from "@equinor/fusion-framework-dev-server";
|
|
769
|
-
|
|
770
|
-
const config = createDevServerConfig({
|
|
771
|
-
spa: {
|
|
772
|
-
templateEnv: { API_URL: "https://api.example.com" },
|
|
773
|
-
},
|
|
774
|
-
api: {
|
|
775
|
-
serviceDiscoveryUrl: "https://discovery.example.com",
|
|
776
|
-
routes: ["/api"],
|
|
777
|
-
},
|
|
778
|
-
});
|
|
779
|
-
```
|
|
780
|
-
|
|
781
|
-
### Patch Changes
|
|
782
|
-
|
|
783
|
-
- [#3074](https://github.com/equinor/fusion-framework/pull/3074) [`6b034e5`](https://github.com/equinor/fusion-framework/commit/6b034e5459094cea0c0f2490335eef3092390a13) Thanks [@odinr](https://github.com/odinr)! - update Vite to 6.3.5
|
|
784
|
-
|
|
785
|
-
- [#3074](https://github.com/equinor/fusion-framework/pull/3074) [`6b034e5`](https://github.com/equinor/fusion-framework/commit/6b034e5459094cea0c0f2490335eef3092390a13) Thanks [@odinr](https://github.com/odinr)! - exported UserConfig interface from vite
|
|
786
|
-
|
|
787
|
-
- Updated dependencies [[`6b034e5`](https://github.com/equinor/fusion-framework/commit/6b034e5459094cea0c0f2490335eef3092390a13), [`6b034e5`](https://github.com/equinor/fusion-framework/commit/6b034e5459094cea0c0f2490335eef3092390a13), [`6b034e5`](https://github.com/equinor/fusion-framework/commit/6b034e5459094cea0c0f2490335eef3092390a13), [`6b034e5`](https://github.com/equinor/fusion-framework/commit/6b034e5459094cea0c0f2490335eef3092390a13)]:
|
|
788
|
-
- @equinor/fusion-framework-vite-plugin-spa@1.0.0-next.0
|
|
789
|
-
- @equinor/fusion-framework-vite-plugin-api-service@1.0.0-next.0
|