@warlock.js/core 4.6.0 → 4.6.1
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 +6 -0
- package/esm/bootstrap.d.mts.map +1 -1
- package/esm/bootstrap.mjs +3 -1
- package/esm/bootstrap.mjs.map +1 -1
- package/package.json +9 -9
package/CHANGELOG.md
CHANGED
|
@@ -4,6 +4,12 @@ All notable changes to `@warlock.js/core` are documented in this file.
|
|
|
4
4
|
|
|
5
5
|
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/). `@warlock.js/*` packages are released in lockstep — every package shares the same version number, so a version below may list only the changes that affected this package.
|
|
6
6
|
|
|
7
|
+
## 4.6.1
|
|
8
|
+
|
|
9
|
+
### Fixed
|
|
10
|
+
|
|
11
|
+
- a fatal `uncaughtException` at production boot (e.g. a config file that throws) is no longer swallowed into a silent `exit 0` — bootstrap now wires the crash handler to exit non-zero in production so `warlock start` surfaces the failure; the dev server still logs-and-continues for HMR
|
|
12
|
+
|
|
7
13
|
## 4.6.0
|
|
8
14
|
|
|
9
15
|
### Added
|
package/esm/bootstrap.d.mts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"bootstrap.d.mts","names":[],"sources":["../../../../../../@warlock.js/core/src/bootstrap.ts"],"mappings":";
|
|
1
|
+
{"version":3,"file":"bootstrap.d.mts","names":[],"sources":["../../../../../../@warlock.js/core/src/bootstrap.ts"],"mappings":";iBAKsB,SAAA,IAAS,OAAA"}
|
package/esm/bootstrap.mjs
CHANGED
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { Application } from "./application/application.mjs";
|
|
2
|
+
import "./application/index.mjs";
|
|
1
3
|
import { loadEnv } from "@mongez/dotenv";
|
|
2
4
|
import { captureAnyUnhandledRejection } from "@warlock.js/logger";
|
|
3
5
|
import { initializeDayjs } from "@mongez/time-wizard";
|
|
@@ -6,7 +8,7 @@ import { initializeDayjs } from "@mongez/time-wizard";
|
|
|
6
8
|
async function bootstrap() {
|
|
7
9
|
await loadEnv();
|
|
8
10
|
initializeDayjs();
|
|
9
|
-
captureAnyUnhandledRejection();
|
|
11
|
+
captureAnyUnhandledRejection({ exitOnUncaughtException: Application.isProduction });
|
|
10
12
|
}
|
|
11
13
|
|
|
12
14
|
//#endregion
|
package/esm/bootstrap.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"bootstrap.mjs","names":[],"sources":["../../../../../../@warlock.js/core/src/bootstrap.ts"],"sourcesContent":["import { loadEnv } from \"@mongez/dotenv\";\nimport { initializeDayjs } from \"@mongez/time-wizard\";\nimport { captureAnyUnhandledRejection } from \"@warlock.js/logger\";\n\nexport async function bootstrap() {\n await loadEnv();\n\n initializeDayjs();\n captureAnyUnhandledRejection();\n}\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"bootstrap.mjs","names":[],"sources":["../../../../../../@warlock.js/core/src/bootstrap.ts"],"sourcesContent":["import { loadEnv } from \"@mongez/dotenv\";\nimport { initializeDayjs } from \"@mongez/time-wizard\";\nimport { captureAnyUnhandledRejection } from \"@warlock.js/logger\";\nimport { Application } from \"./application\";\n\nexport async function bootstrap() {\n await loadEnv();\n\n initializeDayjs();\n\n // In production a fatal `uncaughtException` must take the process down loudly\n // (Node's own default) so supervisors restart and `warlock start` surfaces\n // the failure instead of exiting 0 in silence. In development the dev server\n // intentionally survives runtime errors so HMR can recover, so we only log.\n captureAnyUnhandledRejection({ exitOnUncaughtException: Application.isProduction });\n}\n"],"mappings":";;;;;;;AAKA,eAAsB,YAAY;CAChC,MAAM,QAAQ;CAEd,gBAAgB;CAMhB,6BAA6B,EAAE,yBAAyB,YAAY,aAAa,CAAC;AACpF"}
|
package/package.json
CHANGED
|
@@ -36,13 +36,13 @@
|
|
|
36
36
|
"@mongez/slug": "^1.0.7",
|
|
37
37
|
"@mongez/supportive-is": "^2.1.3",
|
|
38
38
|
"@mongez/time-wizard": "^1.0.6",
|
|
39
|
-
"@warlock.js/auth": "4.6.
|
|
40
|
-
"@warlock.js/cache": "4.6.
|
|
41
|
-
"@warlock.js/cascade": "4.6.
|
|
42
|
-
"@warlock.js/context": "4.6.
|
|
43
|
-
"@warlock.js/logger": "4.6.
|
|
44
|
-
"@warlock.js/seal": "4.6.
|
|
45
|
-
"@warlock.js/fs": "4.6.
|
|
39
|
+
"@warlock.js/auth": "4.6.1",
|
|
40
|
+
"@warlock.js/cache": "4.6.1",
|
|
41
|
+
"@warlock.js/cascade": "4.6.1",
|
|
42
|
+
"@warlock.js/context": "4.6.1",
|
|
43
|
+
"@warlock.js/logger": "4.6.1",
|
|
44
|
+
"@warlock.js/seal": "4.6.1",
|
|
45
|
+
"@warlock.js/fs": "4.6.1",
|
|
46
46
|
"chokidar": "^5.0.0",
|
|
47
47
|
"dayjs": "^1.11.19",
|
|
48
48
|
"es-module-lexer": "^2.0.0",
|
|
@@ -68,12 +68,12 @@
|
|
|
68
68
|
"react": "^19.2.3",
|
|
69
69
|
"react-dom": "^19.2.3",
|
|
70
70
|
"@react-email/render": "^2.0.5",
|
|
71
|
-
"@warlock.js/herald": "4.6.
|
|
71
|
+
"@warlock.js/herald": "4.6.1"
|
|
72
72
|
},
|
|
73
73
|
"bin": {
|
|
74
74
|
"warlock": "bin/warlock.js"
|
|
75
75
|
},
|
|
76
|
-
"version": "4.6.
|
|
76
|
+
"version": "4.6.1",
|
|
77
77
|
"type": "module",
|
|
78
78
|
"main": "./esm/index.mjs",
|
|
79
79
|
"module": "./esm/index.mjs",
|