@raclettejs/core 0.1.34 → 0.1.35
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 +7 -1
- package/package.json +2 -2
- package/services/frontend/provision/entrypoint.sh +2 -2
- package/services/frontend/src/core/helpers/devMode.ts +1 -3
- package/services/frontend/src/core/lib/logger.ts +2 -3
- package/services/frontend/src/core/store/index.ts +2 -4
- package/services/frontend/src/orchestrator/ProductOrchestrator.vue +1 -1
- package/services/frontend/src/orchestrator/composables/useWidgetLifecycle.ts +2 -4
- package/templates/docker-compose.yml +1 -4
package/CHANGELOG.md
CHANGED
|
@@ -7,8 +7,14 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
7
7
|
|
|
8
8
|
## [Unreleased]
|
|
9
9
|
|
|
10
|
-
## [0.1.
|
|
10
|
+
## [0.1.35] - 2026-05-14 <a href="https://gitlab.com/raclettejs/core-dev/-/compare/v0.1.34...v0.1.35" target="_blank" rel="noopener"><b>Overview of all changes</b></a>
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
### Patch Changes
|
|
11
14
|
|
|
15
|
+
- fix: prevent unwanted DEBUG_MODE
|
|
16
|
+
|
|
17
|
+
## [0.1.34] - 2026-05-13 <a href="https://gitlab.com/raclettejs/core-dev/-/compare/v0.1.32...v0.1.34" target="_blank" rel="noopener"><b>Overview of all changes</b></a>
|
|
12
18
|
|
|
13
19
|
### Added
|
|
14
20
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@raclettejs/core",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.35",
|
|
4
4
|
"description": "racletteJS core package",
|
|
5
5
|
"repository": "https://gitlab.com/raclettejs/core",
|
|
6
6
|
"author": "Pacifico Digital Explorations GmbH <info@raclettejs.com>",
|
|
@@ -82,7 +82,7 @@
|
|
|
82
82
|
"@emnapi/core": "1.9.2",
|
|
83
83
|
"@emnapi/runtime": "1.9.2",
|
|
84
84
|
"@eslint/js": "9.35.0",
|
|
85
|
-
"@raclettejs/types": "^0.1.
|
|
85
|
+
"@raclettejs/types": "^0.1.35",
|
|
86
86
|
"@types/fs-extra": "11.0.4",
|
|
87
87
|
"@types/js-yaml": "4.0.9",
|
|
88
88
|
"@types/node": "25.5.0",
|
|
@@ -25,9 +25,9 @@ fi
|
|
|
25
25
|
|
|
26
26
|
# Set debug mode based on NODE_ENV
|
|
27
27
|
if [ "$NODE_ENV" = "production" ]; then
|
|
28
|
-
DEBUG_MODE
|
|
28
|
+
DEBUG_MODE=$RACLETTE_DEBUG_MODE ?? "false"
|
|
29
29
|
else
|
|
30
|
-
DEBUG_MODE
|
|
30
|
+
DEBUG_MODE=$RACLETTE_DEBUG_MODE ?? "true"
|
|
31
31
|
fi
|
|
32
32
|
|
|
33
33
|
echo "-----------------------------"
|
|
@@ -4,11 +4,9 @@ import getEnvVariable from "@racletteCore/lib/getEnvVariable"
|
|
|
4
4
|
* Check if the application is running in development mode
|
|
5
5
|
* Development mode is enabled when:
|
|
6
6
|
* - RACLETTE_DEBUG_MODE is explicitly set to "true"
|
|
7
|
-
* - RACLETTE_DEBUG_MODE is not set at all (default dev behavior)
|
|
8
7
|
*/
|
|
9
8
|
export const isDevelopmentMode = (): boolean => {
|
|
10
9
|
return (
|
|
11
|
-
getEnvVariable("RACLETTE_DEBUG_MODE") === "true"
|
|
12
|
-
!getEnvVariable("RACLETTE_DEBUG_MODE")
|
|
10
|
+
getEnvVariable("RACLETTE_DEBUG_MODE") === "true"
|
|
13
11
|
)
|
|
14
12
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { isDevelopmentMode } from "@racletteCore/helpers/devMode"
|
|
2
2
|
|
|
3
3
|
/**
|
|
4
4
|
* Custom logger function
|
|
@@ -142,8 +142,7 @@ class Logger {
|
|
|
142
142
|
* Check if debug mode is enabled
|
|
143
143
|
*/
|
|
144
144
|
private isDebugEnabled(): boolean {
|
|
145
|
-
|
|
146
|
-
return debugMode === "true" || !debugMode
|
|
145
|
+
return isDevelopmentMode()
|
|
147
146
|
}
|
|
148
147
|
|
|
149
148
|
/**
|
|
@@ -18,7 +18,7 @@ import {
|
|
|
18
18
|
getValueFromLookup,
|
|
19
19
|
deepFreeze,
|
|
20
20
|
} from "../lib/dataHelper"
|
|
21
|
-
import
|
|
21
|
+
import { isDevelopmentMode } from "@racletteCore/helpers/devMode"
|
|
22
22
|
import { applicationState } from "./state"
|
|
23
23
|
/* import feature reducers */
|
|
24
24
|
import metaReducers from "./reducers/metaReducer"
|
|
@@ -46,9 +46,7 @@ import log from "@racletteCore/lib/logger"
|
|
|
46
46
|
import type { RacletteStore, StoreHelperGetState } from "@racletteCore"
|
|
47
47
|
|
|
48
48
|
/* Apply different extensions depending on the environment */
|
|
49
|
-
const extensions =
|
|
50
|
-
getEnvVariable("RACLETTE_DEBUG_MODE") === "true" ||
|
|
51
|
-
!getEnvVariable("RACLETTE_DEBUG_MODE")
|
|
49
|
+
const extensions = isDevelopmentMode()
|
|
52
50
|
? [
|
|
53
51
|
new LoggerExtension(),
|
|
54
52
|
new ReduxDevtoolsExtension({
|
|
@@ -259,7 +259,7 @@ const setTheme = (theme: "dark" | "light") => {
|
|
|
259
259
|
onMounted(async () => {
|
|
260
260
|
setTheme(theme.value)
|
|
261
261
|
vuetifyLocale.current.value = locale.value
|
|
262
|
-
isDevelopment.value =
|
|
262
|
+
isDevelopment.value = isDevelopmentMode()
|
|
263
263
|
logoExists.value = await checkImageExists(logoSrc.value)
|
|
264
264
|
// check if we have a message from checkToken to display as a snackbar
|
|
265
265
|
loginUserNotifications()
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ref, type Ref } from "vue"
|
|
2
|
-
import
|
|
2
|
+
import { isDevelopmentMode } from "@racletteCore/helpers/devMode"
|
|
3
3
|
import log from "@racletteCore/lib/logger"
|
|
4
4
|
|
|
5
5
|
export type OnAllWidgetsReady = (callback: () => void) => void
|
|
@@ -24,9 +24,7 @@ export function createWidgetLifecycleManager(
|
|
|
24
24
|
const readyCallbacks = new Set<() => void>()
|
|
25
25
|
const observers = new Map<string, MutationObserver>()
|
|
26
26
|
|
|
27
|
-
const DEV_MODE =
|
|
28
|
-
getEnvVariable("RACLETTE_DEBUG_MODE") === "true" ||
|
|
29
|
-
!getEnvVariable("RACLETTE_DEBUG_MODE")
|
|
27
|
+
const DEV_MODE = isDevelopmentMode()
|
|
30
28
|
|
|
31
29
|
const checkAllReady = () => {
|
|
32
30
|
if (renderedWidgets.value.size === totalWidgets && !allWidgetsReady.value) {
|
|
@@ -56,7 +56,7 @@ services:
|
|
|
56
56
|
MONGO_HOST=${RACLETTE_MONGODB_HOST:-mongodb://mongodb:${RACLETTE_MONGODB_PORT:-27017}/${RACLETTE_MONGODB_DATABASE:-raclette}}
|
|
57
57
|
- >-
|
|
58
58
|
CACHE_URL=${RACLETTE_CACHE_URL:-redis://cache:${RACLETTE_CACHE_PORT:-6379}}
|
|
59
|
-
- RACLETTE_DEBUG_MODE
|
|
59
|
+
- RACLETTE_DEBUG_MODE=${RACLETTE_DEBUG_MODE:-true}
|
|
60
60
|
- RACLETTE_APP_PATH=/home/shookie/core-dev/@raclettejs/playground
|
|
61
61
|
volumes:
|
|
62
62
|
- yarn-cache:/usr/local/share/.cache/yarn
|
|
@@ -111,9 +111,6 @@ services:
|
|
|
111
111
|
- RACLETTE_DEBUG_MODE=${RACLETTE_DEBUG_MODE:-true}
|
|
112
112
|
- >-
|
|
113
113
|
RACLETTE_SERVER_BASE_URL=${RACLETTE_SERVER_BASE_URL:-http://localhost:${RACLETTE_SERVER_PORT:-8082}}
|
|
114
|
-
- >-
|
|
115
|
-
RACLETTE_SOCKET_URL=${RACLETTE_SOCKET_URL:-http://localhost:${RACLETTE_SERVER_PORT:-8082}}
|
|
116
|
-
- RACLETTE_DEBUG_MODE=true
|
|
117
114
|
- RACLETTE_APP_PATH=/home/shookie/core-dev/@raclettejs/playground
|
|
118
115
|
volumes:
|
|
119
116
|
- yarn-cache:/usr/local/share/.cache/yarn
|