@brendanbank/atrium-host-bundle-utils 0.23.0 → 0.25.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 +16 -2
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -25,6 +25,20 @@ pnpm add @brendanbank/atrium-host-bundle-utils \
|
|
|
25
25
|
@brendanbank/atrium-host-types
|
|
26
26
|
```
|
|
27
27
|
|
|
28
|
+
If you use the Vite preset (the `./vite` subpath, see below), also add
|
|
29
|
+
the optional peer dep as a devDependency:
|
|
30
|
+
|
|
31
|
+
```bash
|
|
32
|
+
pnpm add -D vite vite-plugin-css-injected-by-js
|
|
33
|
+
```
|
|
34
|
+
|
|
35
|
+
`vite` and `vite-plugin-css-injected-by-js` are declared optional so
|
|
36
|
+
runtime-only consumers (host bundles imported into another build
|
|
37
|
+
system, Vitest harnesses) don't pull them in, but
|
|
38
|
+
`hostBundleConfig({ entry })` resolves the plugin at build time —
|
|
39
|
+
without it, the first `pnpm build` fails with
|
|
40
|
+
`Cannot find package 'vite-plugin-css-injected-by-js'`.
|
|
41
|
+
|
|
28
42
|
The package is published on the public npm registry. No `.npmrc`,
|
|
29
43
|
no auth token, no PAT. If you adopted atrium before v0.15.1 and
|
|
30
44
|
have an `@brendanbank:registry=https://npm.pkg.github.com` line in
|
|
@@ -97,8 +111,8 @@ or hosts that want axios-shaped retry).
|
|
|
97
111
|
|
|
98
112
|
## Versioning
|
|
99
113
|
|
|
100
|
-
The package version tracks atrium's image version. Pin `^0.
|
|
101
|
-
"compatible with atrium 0.
|
|
114
|
+
The package version tracks atrium's image version. Pin `^0.25` for
|
|
115
|
+
"compatible with atrium 0.25.x"; bump together with the atrium image
|
|
102
116
|
to pick up new registry slots and SDK helpers.
|
|
103
117
|
|
|
104
118
|
## See also
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@brendanbank/atrium-host-bundle-utils",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.25.0",
|
|
4
4
|
"description": "Runtime helpers, Vite preset, and React hooks for atrium host bundles. Wraps the dual-tree mount pattern, the host-bundle Vite library config, and the /api/users/me/context hook so a host's main.tsx is ~10 lines of registration calls.",
|
|
5
5
|
"license": "BSD-2-Clause",
|
|
6
6
|
"type": "module",
|
|
@@ -25,7 +25,7 @@
|
|
|
25
25
|
}
|
|
26
26
|
},
|
|
27
27
|
"dependencies": {
|
|
28
|
-
"@brendanbank/atrium-host-types": "0.
|
|
28
|
+
"@brendanbank/atrium-host-types": "0.25.0"
|
|
29
29
|
},
|
|
30
30
|
"peerDependencies": {
|
|
31
31
|
"@tanstack/react-query": "^5.0.0",
|