V16: Adds server context to store information about paths (#18967)

* fix: straightens out unnecessary imports of components and re-exports them appropriately

* fix: imports repository from file directly

* feat: introduces a "server" package and moves UmbAppContext logic to UmbServerContext

* feat: updates all cases of `UmbAppContext` -> `UmbServerContext`

* build: adjusts MAX_CIRCULAR_DEPENDENCIES from 6 to 3

* Update src/Umbraco.Web.UI.Client/devops/circular/index.js

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>

* feat: removes unused interface

* build: adds server bundle to vite

* build: vite should build index barrel

* build: readjust to 5 to account for previous failed build

---------

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
This commit is contained in:
Jacob Overgaard
2025-04-08 13:20:03 +02:00
committed by GitHub
parent 6aa471479e
commit 64e8f34f0f
26 changed files with 81 additions and 84 deletions

View File

@@ -52,7 +52,8 @@ if (circular.length) {
*/
// TODO: Remove this check and set an exit with argument 1 when we have fixed all circular dependencies.
const MAX_CIRCULAR_DEPENDENCIES = 6;
// The current threshold for circular dependencies is set to 5. Adjust this number as needed.
const MAX_CIRCULAR_DEPENDENCIES = 5;
if (circular.length > MAX_CIRCULAR_DEPENDENCIES) {
process.exit(1);
} else if (circular.length < MAX_CIRCULAR_DEPENDENCIES) {