@open-pioneer/vite-plugin-pioneer 7.0.0 → 7.0.1-dev.20260910131557
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/CHANGELOG.md +85 -75
- package/dist/index.d.ts +2 -2
- package/dist/index.js +265 -126
- package/dist/index.js.map +1 -1
- package/package.json +15 -18
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,15 @@
|
|
|
1
1
|
# Changelog @open-pioneer/vite-plugin-pioneer
|
|
2
2
|
|
|
3
|
+
## 7.0.1-dev.20260910131557
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- 9e63026: ---
|
|
8
|
+
|
|
9
|
+
## "@open-pioneer/vite-plugin-pioneer": patch
|
|
10
|
+
|
|
11
|
+
Replace the `@babel/*` dependencies used for code generation with `esrap`.
|
|
12
|
+
|
|
3
13
|
## 7.0.0
|
|
4
14
|
|
|
5
15
|
### Major Changes
|
|
@@ -12,7 +22,7 @@
|
|
|
12
22
|
- Updated dependencies [8e38b33]
|
|
13
23
|
- Updated dependencies [8e38b33]
|
|
14
24
|
- Updated dependencies [8e38b33]
|
|
15
|
-
|
|
25
|
+
- @open-pioneer/build-common@5.0.0
|
|
16
26
|
|
|
17
27
|
## 6.0.3
|
|
18
28
|
|
|
@@ -20,7 +30,7 @@
|
|
|
20
30
|
|
|
21
31
|
- 3b1f9cf: Migrate from eslint to oxlint and from prettier to oxfmt
|
|
22
32
|
- Updated dependencies [3b1f9cf]
|
|
23
|
-
|
|
33
|
+
- @open-pioneer/build-common@4.0.3
|
|
24
34
|
|
|
25
35
|
## 6.0.2
|
|
26
36
|
|
|
@@ -30,7 +40,7 @@
|
|
|
30
40
|
- 82b4559: Fix parsing of `qualifier` for services defined by dependencies in `node_modules`.
|
|
31
41
|
- Updated dependencies [1a78924]
|
|
32
42
|
- Updated dependencies [82b4559]
|
|
33
|
-
|
|
43
|
+
- @open-pioneer/build-common@4.0.2
|
|
34
44
|
|
|
35
45
|
## 6.0.1
|
|
36
46
|
|
|
@@ -39,7 +49,7 @@
|
|
|
39
49
|
- 78e38e2: Bump various dependencies
|
|
40
50
|
- 7d706a3: Refactor: use private javascript properties instead of typescript private keyword
|
|
41
51
|
- Updated dependencies [78e38e2]
|
|
42
|
-
|
|
52
|
+
- @open-pioneer/build-common@4.0.1
|
|
43
53
|
|
|
44
54
|
## 6.0.0
|
|
45
55
|
|
|
@@ -51,14 +61,14 @@
|
|
|
51
61
|
|
|
52
62
|
- 9dda91c: Support a new virtual module to get the current deployment's base URL both during development and production:
|
|
53
63
|
|
|
54
|
-
|
|
55
|
-
|
|
64
|
+
```ts
|
|
65
|
+
import { baseUrl } from "open-pioneer:deployment";
|
|
56
66
|
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
67
|
+
// Base URL of the deployed application, for example:
|
|
68
|
+
// - http://localhost:5173/ or http://localhost:5173/optional/path/ (during development)
|
|
69
|
+
// - https://example.com/path/to/root/ (during production)
|
|
70
|
+
console.log(baseUrl);
|
|
71
|
+
```
|
|
62
72
|
|
|
63
73
|
- 18c9d75: Add codegen support for hot reloading of i18n message during development.
|
|
64
74
|
HMR of i18n messages requires the latest version of the runtime package.
|
|
@@ -72,7 +82,7 @@
|
|
|
72
82
|
- Updated dependencies [9dda91c]
|
|
73
83
|
- Updated dependencies [9dda91c]
|
|
74
84
|
- Updated dependencies [9dda91c]
|
|
75
|
-
|
|
85
|
+
- @open-pioneer/build-common@4.0.0
|
|
76
86
|
|
|
77
87
|
## 5.1.2
|
|
78
88
|
|
|
@@ -80,7 +90,7 @@
|
|
|
80
90
|
|
|
81
91
|
- 50ddcbd: Fix default package property values not being applied correctly when using a trails package from node modules.
|
|
82
92
|
- Updated dependencies [50ddcbd]
|
|
83
|
-
|
|
93
|
+
- @open-pioneer/build-common@3.2.2
|
|
84
94
|
|
|
85
95
|
## 5.1.1
|
|
86
96
|
|
|
@@ -89,7 +99,7 @@
|
|
|
89
99
|
- fa84b0e: Bump dependencies
|
|
90
100
|
- 093ae42: Prevent detection of duplicated packages on windows
|
|
91
101
|
- Updated dependencies [fa84b0e]
|
|
92
|
-
|
|
102
|
+
- @open-pioneer/build-common@3.2.1
|
|
93
103
|
|
|
94
104
|
## 5.1.0
|
|
95
105
|
|
|
@@ -97,27 +107,27 @@
|
|
|
97
107
|
|
|
98
108
|
- eac3ef4: Add service modules of trails packages from `node_modules` to the modules optimized by vite's deps optimizer.
|
|
99
109
|
|
|
100
|
-
|
|
110
|
+
This can reduce the number of events like this:
|
|
101
111
|
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
112
|
+
```
|
|
113
|
+
5:14:21 PM [vite] (client) ✨ new dependencies optimized: <...>
|
|
114
|
+
5:14:21 PM [vite] (client) ✨ optimized dependencies changed. reloading
|
|
115
|
+
```
|
|
106
116
|
|
|
107
117
|
- 19aa36f: Implement sourceId helper which provides an easy way to obtain an id for the current source file:
|
|
108
118
|
|
|
109
|
-
|
|
110
|
-
|
|
119
|
+
```ts
|
|
120
|
+
import { sourceId } from "open-pioneer:source-info";
|
|
111
121
|
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
122
|
+
// If imported from foo/bar/baz.ts in package my-package: my-package/foo/bar/baz
|
|
123
|
+
console.log(sourceId);
|
|
124
|
+
```
|
|
115
125
|
|
|
116
126
|
### Patch Changes
|
|
117
127
|
|
|
118
128
|
- eac3ef4: Switch from fast-glob to tinyglobby (it has fewer dependencies).
|
|
119
129
|
- Updated dependencies [19aa36f]
|
|
120
|
-
|
|
130
|
+
- @open-pioneer/build-common@3.2.0
|
|
121
131
|
|
|
122
132
|
## 5.0.3
|
|
123
133
|
|
|
@@ -125,7 +135,7 @@
|
|
|
125
135
|
|
|
126
136
|
- 2c45a18: Bump dependencies
|
|
127
137
|
- Updated dependencies [2c45a18]
|
|
128
|
-
|
|
138
|
+
- @open-pioneer/build-common@3.1.2
|
|
129
139
|
|
|
130
140
|
## 5.0.2
|
|
131
141
|
|
|
@@ -134,7 +144,7 @@
|
|
|
134
144
|
- fe37e18: Remove obsolete eslint directive from typings.
|
|
135
145
|
- f229f63: Bump dependencies
|
|
136
146
|
- Updated dependencies [f229f63]
|
|
137
|
-
|
|
147
|
+
- @open-pioneer/build-common@3.1.1
|
|
138
148
|
|
|
139
149
|
## 5.0.1
|
|
140
150
|
|
|
@@ -143,17 +153,17 @@
|
|
|
143
153
|
- 1b99d82: Update eslint to version 9.
|
|
144
154
|
- f12e73f: Emit better errors when an application's i18n configuration does not match the supported locales of its dependencies.
|
|
145
155
|
|
|
146
|
-
|
|
156
|
+
This can happen if:
|
|
147
157
|
|
|
148
|
-
|
|
149
|
-
|
|
158
|
+
- An application does not list the `i18n` option in its `build.config.mjs` at all, or if
|
|
159
|
+
- there is no overlap between the application's locales and the locales supported by one of its dependencies.
|
|
150
160
|
|
|
151
|
-
|
|
161
|
+
The vite plugin will now throw errors such as this to make it easier to detect the issue:
|
|
152
162
|
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
163
|
+
```
|
|
164
|
+
[plugin:pioneer:codegen] Invalid i18n configuration in application at <...>/src/samples/chakra-sample/chakra-app:
|
|
165
|
+
There is no match between the locales supported by the application (none) and the locales supported by the packages '@open-pioneer/chakra-snippets' (de, en).
|
|
166
|
+
```
|
|
157
167
|
|
|
158
168
|
## 5.0.0
|
|
159
169
|
|
|
@@ -171,7 +181,7 @@
|
|
|
171
181
|
- 6dc999e: Refactor caching of package.json, build.config.mjs and i18n files. Manual caching code was removed.
|
|
172
182
|
- Updated dependencies [340c415]
|
|
173
183
|
- Updated dependencies [ba600ea]
|
|
174
|
-
|
|
184
|
+
- @open-pioneer/build-common@3.1.0
|
|
175
185
|
|
|
176
186
|
## 4.0.2
|
|
177
187
|
|
|
@@ -179,7 +189,7 @@
|
|
|
179
189
|
|
|
180
190
|
- 26cb9d8: Bump dependencies
|
|
181
191
|
- Updated dependencies [26cb9d8]
|
|
182
|
-
|
|
192
|
+
- @open-pioneer/build-common@3.0.2
|
|
183
193
|
|
|
184
194
|
## 4.0.1
|
|
185
195
|
|
|
@@ -190,7 +200,7 @@
|
|
|
190
200
|
- 67ba039: Bump dependencies
|
|
191
201
|
- Updated dependencies [23c031a]
|
|
192
202
|
- Updated dependencies [67ba039]
|
|
193
|
-
|
|
203
|
+
- @open-pioneer/build-common@3.0.1
|
|
194
204
|
|
|
195
205
|
## 4.0.0
|
|
196
206
|
|
|
@@ -207,7 +217,7 @@
|
|
|
207
217
|
|
|
208
218
|
- Updated dependencies [798ef0b]
|
|
209
219
|
- Updated dependencies [798ef0b]
|
|
210
|
-
|
|
220
|
+
- @open-pioneer/build-common@3.0.0
|
|
211
221
|
|
|
212
222
|
## 3.0.5
|
|
213
223
|
|
|
@@ -217,7 +227,7 @@
|
|
|
217
227
|
- 7668cd9: Update dependencies.
|
|
218
228
|
- Updated dependencies [2526935]
|
|
219
229
|
- Updated dependencies [7668cd9]
|
|
220
|
-
|
|
230
|
+
- @open-pioneer/build-common@2.0.5
|
|
221
231
|
|
|
222
232
|
## 3.0.4
|
|
223
233
|
|
|
@@ -225,11 +235,11 @@
|
|
|
225
235
|
|
|
226
236
|
- 1b84a49: Fix a problem that may produce dev server errors on newer versions of vite:
|
|
227
237
|
|
|
228
|
-
|
|
229
|
-
|
|
238
|
+
```
|
|
239
|
+
11:11:21 AM [vite] Internal server error: Failed to resolve services entry point for package $DIR/src/samples/showcase/showcase-app
|
|
230
240
|
|
|
231
|
-
|
|
232
|
-
|
|
241
|
+
Caused by: Cannot read properties of undefined (reading 'resolveId')
|
|
242
|
+
```
|
|
233
243
|
|
|
234
244
|
## 3.0.3
|
|
235
245
|
|
|
@@ -237,7 +247,7 @@
|
|
|
237
247
|
|
|
238
248
|
- 3550ca8: Update dependencies
|
|
239
249
|
- Updated dependencies [d9a0c1b]
|
|
240
|
-
|
|
250
|
+
- @open-pioneer/build-common@2.0.4
|
|
241
251
|
|
|
242
252
|
## 3.0.2
|
|
243
253
|
|
|
@@ -251,7 +261,7 @@
|
|
|
251
261
|
|
|
252
262
|
- 017b8f3: Harmonize naming of Open Pioneer Trails in READMEs, package.json files and error messages.
|
|
253
263
|
- Updated dependencies [017b8f3]
|
|
254
|
-
|
|
264
|
+
- @open-pioneer/build-common@2.0.3
|
|
255
265
|
|
|
256
266
|
## 3.0.0
|
|
257
267
|
|
|
@@ -266,7 +276,7 @@
|
|
|
266
276
|
- c08520d: Update dependencies
|
|
267
277
|
- Updated dependencies [c08520d]
|
|
268
278
|
- Updated dependencies [c08520d]
|
|
269
|
-
|
|
279
|
+
- @open-pioneer/build-common@2.0.2
|
|
270
280
|
|
|
271
281
|
## 2.0.1
|
|
272
282
|
|
|
@@ -275,7 +285,7 @@
|
|
|
275
285
|
- 9d4a9d5: Bump dependencies
|
|
276
286
|
- 715b45e: Update package.json metadata
|
|
277
287
|
- Updated dependencies [715b45e]
|
|
278
|
-
|
|
288
|
+
- @open-pioneer/build-common@2.0.1
|
|
279
289
|
|
|
280
290
|
## 2.0.0
|
|
281
291
|
|
|
@@ -285,17 +295,17 @@
|
|
|
285
295
|
- c15512c: **Breaking Change:** A trails package's `devDependencies` are no longer included in the build (fixes #43).
|
|
286
296
|
For normal dependencies, service classes are automatically picked up and compiled into the application.
|
|
287
297
|
|
|
288
|
-
|
|
289
|
-
|
|
298
|
+
This behavior is surprising for `devDependencies`: license scanners and cve scanner sometimes chose to exclude
|
|
299
|
+
`devDependencies`; which would have been invalid prior to this change (as the code was compiled in anyway).
|
|
290
300
|
|
|
291
|
-
|
|
301
|
+
If your package depends on another trails package at runtime, configure an entry in `peerDependencies` instead.
|
|
292
302
|
|
|
293
303
|
### Patch Changes
|
|
294
304
|
|
|
295
305
|
- 5601a5e: Bump dependencies
|
|
296
306
|
- Updated dependencies [5601a5e]
|
|
297
307
|
- Updated dependencies [5601a5e]
|
|
298
|
-
|
|
308
|
+
- @open-pioneer/build-common@2.0.0
|
|
299
309
|
|
|
300
310
|
## 1.1.2
|
|
301
311
|
|
|
@@ -320,29 +330,29 @@
|
|
|
320
330
|
- 99354bf: Improve error message when two versions of the same Trails package are encountered.
|
|
321
331
|
Only a single version per Trails package per app is supported: all packages must share the same version and location on disk.
|
|
322
332
|
|
|
323
|
-
|
|
333
|
+
The vite overlay in the browser now shows a comprehensible error message such as this:
|
|
324
334
|
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
335
|
+
```text
|
|
336
|
+
[plugin:pioneer:codegen] Encountered the package '@open-pioneer/runtime' at two different locations.
|
|
337
|
+
Trails packages cannot be used more than once in the same application.
|
|
338
|
+
All packages must use a common version of '@open-pioneer/runtime'.
|
|
329
339
|
|
|
330
|
-
|
|
340
|
+
1. @open-pioneer/runtime@1.0.0 at $HOME/projects/pioneer/starter/node_modules/.pnpm/@open-pioneer+runtime@1.0.0_@formatjs+intl@2.9.0_@open-pioneer+chakra-integration@1.0.0_@open_4cza3noe47gq2v2rsqn2cypo4q/node_modules/@open-pioneer/runtime
|
|
331
341
|
|
|
332
|
-
|
|
333
|
-
|
|
342
|
+
2. @open-pioneer/runtime@0.1.5 at $HOME/projects/pioneer/starter/node_modules/.pnpm/@open-pioneer+runtime@0.1.5_@formatjs+intl@2.9.0_@open-pioneer+chakra-integration@0.1.4_@open_m544g2vyxvedm3ipuqpqhltgfy/node_modules/@open-pioneer/runtime
|
|
343
|
+
```
|
|
334
344
|
|
|
335
345
|
- 146743d: Bump dependencies
|
|
336
346
|
- Updated dependencies [3a0fb62]
|
|
337
347
|
- Updated dependencies [146743d]
|
|
338
|
-
|
|
348
|
+
- @open-pioneer/build-common@1.0.2
|
|
339
349
|
|
|
340
350
|
## 1.0.2
|
|
341
351
|
|
|
342
352
|
### Patch Changes
|
|
343
353
|
|
|
344
354
|
- Updated dependencies [1a8c745]
|
|
345
|
-
|
|
355
|
+
- @open-pioneer/build-common@1.0.1
|
|
346
356
|
|
|
347
357
|
## 1.0.1
|
|
348
358
|
|
|
@@ -359,7 +369,7 @@
|
|
|
359
369
|
### Patch Changes
|
|
360
370
|
|
|
361
371
|
- Updated dependencies [991be0f]
|
|
362
|
-
|
|
372
|
+
- @open-pioneer/build-common@1.0.0
|
|
363
373
|
|
|
364
374
|
## 0.8.7
|
|
365
375
|
|
|
@@ -367,7 +377,7 @@
|
|
|
367
377
|
|
|
368
378
|
- f0cd283: Add package.json metadata
|
|
369
379
|
- Updated dependencies [f0cd283]
|
|
370
|
-
|
|
380
|
+
- @open-pioneer/build-common@0.6.1
|
|
371
381
|
|
|
372
382
|
## 0.8.6
|
|
373
383
|
|
|
@@ -375,9 +385,9 @@
|
|
|
375
385
|
|
|
376
386
|
- cf32df5: Add another workaround that unfortunately currently requires pnpm's `shamefully-hoist` option.
|
|
377
387
|
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
388
|
+
[`shamefully-hoist`](https://pnpm.io/npmrc#shamefully-hoist) allows the application to 'see' all other installed node packages.
|
|
389
|
+
This is usually a bad practice but we currently require it for the virtual module that imports all Open Pioneer Trails services.
|
|
390
|
+
For more details see the linked commit.
|
|
381
391
|
|
|
382
392
|
## 0.8.5
|
|
383
393
|
|
|
@@ -399,7 +409,7 @@
|
|
|
399
409
|
- e6bbbfb: Simplify license comment in README
|
|
400
410
|
- Updated dependencies [b6f55fe]
|
|
401
411
|
- Updated dependencies [e6bbbfb]
|
|
402
|
-
|
|
412
|
+
- @open-pioneer/build-common@0.6.0
|
|
403
413
|
|
|
404
414
|
## 0.8.2
|
|
405
415
|
|
|
@@ -407,7 +417,7 @@
|
|
|
407
417
|
|
|
408
418
|
- fdb5347: Use unresolved module ids for generated code.
|
|
409
419
|
- Updated dependencies [fdb5347]
|
|
410
|
-
|
|
420
|
+
- @open-pioneer/build-common@0.5.1
|
|
411
421
|
|
|
412
422
|
## 0.8.1
|
|
413
423
|
|
|
@@ -415,7 +425,7 @@
|
|
|
415
425
|
|
|
416
426
|
- 9f82090: Use react hooks code generation from @open-pioneer/build-common
|
|
417
427
|
- Updated dependencies [9f82090]
|
|
418
|
-
|
|
428
|
+
- @open-pioneer/build-common@0.5.0
|
|
419
429
|
|
|
420
430
|
## 0.8.0
|
|
421
431
|
|
|
@@ -430,7 +440,7 @@
|
|
|
430
440
|
- 38c8ee0: Don't re-emit warnings when a cached metadata entry is returned.
|
|
431
441
|
- Updated dependencies [348afd8]
|
|
432
442
|
- Updated dependencies [aeb702c]
|
|
433
|
-
|
|
443
|
+
- @open-pioneer/build-common@0.4.0
|
|
434
444
|
|
|
435
445
|
## 0.7.0
|
|
436
446
|
|
|
@@ -444,7 +454,7 @@
|
|
|
444
454
|
|
|
445
455
|
- 0692aa2: Revert back to commonjs
|
|
446
456
|
- Updated dependencies [0692aa2]
|
|
447
|
-
|
|
457
|
+
- @open-pioneer/build-common@0.3.1
|
|
448
458
|
|
|
449
459
|
## 0.6.0
|
|
450
460
|
|
|
@@ -458,7 +468,7 @@
|
|
|
458
468
|
- Updated dependencies [393b294]
|
|
459
469
|
- Updated dependencies [454ea2b]
|
|
460
470
|
- Updated dependencies [39855ce]
|
|
461
|
-
|
|
471
|
+
- @open-pioneer/build-common@0.3.0
|
|
462
472
|
|
|
463
473
|
## 0.5.3
|
|
464
474
|
|
|
@@ -468,7 +478,7 @@
|
|
|
468
478
|
- Updated dependencies [ef54f35]
|
|
469
479
|
- Updated dependencies [125fd57]
|
|
470
480
|
- Updated dependencies [37413f4]
|
|
471
|
-
|
|
481
|
+
- @open-pioneer/build-common@0.2.0
|
|
472
482
|
|
|
473
483
|
## 0.5.2
|
|
474
484
|
|
|
@@ -477,7 +487,7 @@
|
|
|
477
487
|
- 434cc23: Migrate all tests to vitest.
|
|
478
488
|
- 41399fa: Use new shared package to validate build.config.mjs
|
|
479
489
|
- Updated dependencies [41399fa]
|
|
480
|
-
|
|
490
|
+
- @open-pioneer/build-common@0.1.0
|
|
481
491
|
|
|
482
492
|
## 0.5.1
|
|
483
493
|
|
package/dist/index.d.ts
CHANGED
|
@@ -64,6 +64,6 @@ interface AdvancedAppOptions {
|
|
|
64
64
|
}
|
|
65
65
|
//#endregion
|
|
66
66
|
//#region src/index.d.ts
|
|
67
|
-
declare function pioneer(options?: PioneerPluginOptions): Plugin[];
|
|
67
|
+
export declare function pioneer(options?: PioneerPluginOptions): Plugin[];
|
|
68
68
|
//#endregion
|
|
69
|
-
export {
|
|
69
|
+
export type { AdvancedAppOptions, PioneerPluginOptions };
|