create-o2s-app 4.1.3 → 4.1.4
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 +10 -0
- package/README.md +17 -0
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,15 @@
|
|
|
1
1
|
# create-o2s-app
|
|
2
2
|
|
|
3
|
+
## 4.1.4
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- 31df3a8: fix(deps): move @o2s/framework to peerDependencies in all published packages
|
|
8
|
+
|
|
9
|
+
`@o2s/framework` was listed in `dependencies` of blocks, integrations, modules, and utils packages. When installed from npm with mismatched versions across the dependency tree, npm would create nested copies of `@o2s/framework` with different class references. This caused NestJS to fail resolving DI tokens (e.g. `SearchService`) because injected class instances came from a different `@o2s/framework` copy than the one registered in the application module.
|
|
10
|
+
|
|
11
|
+
Moved `@o2s/framework` to `peerDependencies` across all affected packages so that the consuming application always provides a single shared copy. Also moved `@o2s/integrations.mocked` to `peerDependencies` in `@o2s/integrations.mocked-dxp`.
|
|
12
|
+
|
|
3
13
|
## 4.1.3
|
|
4
14
|
|
|
5
15
|
### Patch Changes
|
package/README.md
CHANGED
|
@@ -84,6 +84,23 @@ The `.env.local` file is generated automatically with all required environment v
|
|
|
84
84
|
|
|
85
85
|
> **Note:** The scaffolded project does not have a git repository initialized. Run `git init` in the project directory to start tracking changes.
|
|
86
86
|
|
|
87
|
+
## Maintainers: `create-o2s-app/base` branch
|
|
88
|
+
|
|
89
|
+
The CLI clones the **`create-o2s-app/base`** branch (see `src/constants.ts`). After publishing `@o2s/*` packages to npm, merge `main` into `create-o2s-app/base` and pin dependency versions in the starter apps.
|
|
90
|
+
|
|
91
|
+
**`@o2s/framework` and `@o2s/integrations.mocked` are peer dependencies** of blocks, integrations, and `@o2s/configs.integrations`. They must **not** be duplicated as nested installs under `packages/configs/integrations` — the consuming apps (`apps/api-harmonization`, `apps/frontend`) already declare them as direct dependencies.
|
|
92
|
+
|
|
93
|
+
When updating **`packages/configs/integrations`** on `create-o2s-app/base`, only install packages that remain **runtime dependencies** of that package (not peer-only). For example:
|
|
94
|
+
|
|
95
|
+
```shell
|
|
96
|
+
cd packages/configs/integrations
|
|
97
|
+
npm i @o2s/integrations.mocked-dxp@latest
|
|
98
|
+
```
|
|
99
|
+
|
|
100
|
+
Do **not** run `npm i @o2s/framework@latest` or `npm i @o2s/integrations.mocked@latest` here for the purpose of “pinning” — those are **peer** dependencies; versions are pinned via **`apps/api-harmonization`** and **`apps/frontend`** (and Komendy 1–2 in your release checklist).
|
|
101
|
+
|
|
102
|
+
**`@o2s/configs.integrations`** is a private workspace package — keep it as `"*"` in app `package.json` files so the workspace always resolves to the local copy.
|
|
103
|
+
|
|
87
104
|
## Related
|
|
88
105
|
|
|
89
106
|
- [O2S Documentation](https://openselfservice.com/docs)
|