@vercube/vite 1.1.7 → 1.2.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 +2 -2
- package/dist/index.d.mts +1 -1
- package/package.json +5 -5
package/README.md
CHANGED
|
@@ -83,9 +83,9 @@ node dist/index.mjs # runs the built server
|
|
|
83
83
|
|
|
84
84
|
### `noExternal`
|
|
85
85
|
|
|
86
|
-
Vercube keeps `@vercube/*` in a single module graph so class-reference DI tokens are not loaded twice. If a dependency imports `@vercube/core` from its published `dist` while your app resolves a different copy (common with pnpm), inject tokens such as `RequestContext` will not match
|
|
86
|
+
Vercube keeps `@vercube/*` in a single module graph so class-reference DI tokens are not loaded twice. If a dependency imports `@vercube/core` from its published `dist` while your app resolves a different copy (common with pnpm), inject tokens such as `RequestContext` will not match - auth middleware writes to one instance, your services read from another.
|
|
87
87
|
|
|
88
|
-
The same patterns apply in **dev** (`resolve.noExternal`). In **production** the server bundle keeps `@vercube/*` and plugin packages as runtime imports
|
|
88
|
+
The same patterns apply in **dev** (`resolve.noExternal`). In **production** the server bundle keeps `@vercube/*` and plugin packages as runtime imports - only app source (`@/…`) is inlined. Use **one** `@vercube/core` version across the app and dependencies (e.g. pnpm `overrides`), otherwise class-reference DI tokens such as `RequestContext` will not match between `@enp/auth` and your services.
|
|
89
89
|
|
|
90
90
|
Add packages that use Vercube DI tokens:
|
|
91
91
|
|
package/dist/index.d.mts
CHANGED
|
@@ -22,7 +22,7 @@ interface VercubePluginConfig {
|
|
|
22
22
|
/**
|
|
23
23
|
* Path (relative to `rootDir`) to a module whose default export is
|
|
24
24
|
* `(app: App) => void | Promise<void>`. Runs after auto-discovered classes are
|
|
25
|
-
* bound but before the container queue is flushed
|
|
25
|
+
* bound but before the container queue is flushed - use it to mount storage,
|
|
26
26
|
* bind tokens, configure the logger, or register plugins that auto-discovery
|
|
27
27
|
* cannot infer.
|
|
28
28
|
*/
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vercube/vite",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.2.0",
|
|
4
4
|
"description": "Vite plugin integrating Vercube with the Vite Environment API",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -34,15 +34,15 @@
|
|
|
34
34
|
"defu": "6.1.7",
|
|
35
35
|
"env-runner": "0.1.16",
|
|
36
36
|
"pathe": "2.0.3",
|
|
37
|
-
"rou3": "0.9.
|
|
38
|
-
"srvx": "0.
|
|
39
|
-
"@vercube/scan": "1.
|
|
37
|
+
"rou3": "0.9.2",
|
|
38
|
+
"srvx": "0.12.5",
|
|
39
|
+
"@vercube/scan": "1.2.0"
|
|
40
40
|
},
|
|
41
41
|
"peerDependencies": {
|
|
42
42
|
"vite": "^8.0.0"
|
|
43
43
|
},
|
|
44
44
|
"devDependencies": {
|
|
45
|
-
"vite": "^8.1
|
|
45
|
+
"vite": "^8.2.1"
|
|
46
46
|
},
|
|
47
47
|
"publishConfig": {
|
|
48
48
|
"access": "public"
|