@crimsonsunset/jsg-logger 1.7.6 → 1.7.8
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 +23 -0
- package/devtools/dist/__vite-browser-external-2Ng8QIWW-2Ng8QIWW-2Ng8QIWW.js +5 -0
- package/devtools/dist/__vite-browser-external-2Ng8QIWW-2Ng8QIWW-2Ng8QIWW.js.map +1 -0
- package/devtools/dist/{panel-entry-BZ56bT66.js → panel-entry-BZ56bT66-BMyD75mc.js} +4 -4
- package/devtools/dist/panel-entry-BZ56bT66-BMyD75mc.js.map +1 -0
- package/devtools/dist/panel-entry-Da9n85v7.js +13631 -0
- package/devtools/dist/panel-entry-Da9n85v7.js.map +1 -0
- package/devtools/dist/{panel-entry-DzGsV7s--DzGsV7s-.js → panel-entry-DzGsV7s--DzGsV7s--DzGsV7s-.js} +1 -1
- package/devtools/dist/panel-entry-DzGsV7s--DzGsV7s--DzGsV7s-.js.map +1 -0
- package/devtools/dist/panel-entry.js +3003 -2906
- package/devtools/dist/panel-entry.js.map +1 -1
- package/formatters/browser-formatter.js +0 -13
- package/index.d.ts +1 -0
- package/index.js +5 -2
- package/package.json +1 -1
- package/devtools/dist/panel-entry-BZ56bT66.js.map +0 -1
- package/devtools/dist/panel-entry-DzGsV7s--DzGsV7s-.js.map +0 -1
package/CHANGELOG.md
CHANGED
|
@@ -5,6 +5,29 @@ All notable changes to the JSG Logger project will be documented in this file.
|
|
|
5
5
|
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
|
|
6
6
|
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
|
7
7
|
|
|
8
|
+
## [1.7.7] - 2025-11-07 🔧 **DevTools Import Path Fix**
|
|
9
|
+
|
|
10
|
+
### Fixed
|
|
11
|
+
- **DevTools Panel Import Resolution** - Fixed DevTools panel failing to load in Vite-based projects
|
|
12
|
+
- Changed from relative path imports (`./devtools/dist/panel-entry.js`) to package export path (`@crimsonsunset/jsg-logger/devtools`)
|
|
13
|
+
- Resolves Vite module resolution and caching issues with relative paths from `node_modules`
|
|
14
|
+
- Works consistently across Vite dev server, production builds, and other bundlers
|
|
15
|
+
- No longer requires excluding logger from Vite's dependency optimization
|
|
16
|
+
- Fixes 404 errors and "Could not resolve import" errors when calling `enableDevPanel()`
|
|
17
|
+
|
|
18
|
+
### Changed
|
|
19
|
+
- **DevTools Import Strategy** - Updated to use package export paths for better bundler compatibility
|
|
20
|
+
- Pre-load import (line 30): Now uses `@crimsonsunset/jsg-logger/devtools` instead of relative path
|
|
21
|
+
- Dynamic import (line 534): Now uses `@crimsonsunset/jsg-logger/devtools` instead of relative path
|
|
22
|
+
- Package export path resolves through `package.json` exports field for explicit, unambiguous resolution
|
|
23
|
+
- Eliminates Vite caching issues that occurred with relative path resolution
|
|
24
|
+
|
|
25
|
+
### Technical Details
|
|
26
|
+
- **Files Modified**: `index.js` (lines 30, 534)
|
|
27
|
+
- **Root Cause**: Relative paths from within `node_modules` can cause Vite's dependency optimizer to cache incorrect resolutions or fail to resolve paths correctly
|
|
28
|
+
- **Solution**: Package export paths are explicitly defined in `package.json` and resolved consistently by all modern bundlers
|
|
29
|
+
- **Impact**: DevTools panel now loads reliably in all Vite-based projects without special configuration
|
|
30
|
+
|
|
8
31
|
## [1.7.6] - 2025-11-06 🎛️ **DevTools Singleton Fix & Logging Improvements**
|
|
9
32
|
|
|
10
33
|
### Added
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"__vite-browser-external-2Ng8QIWW-2Ng8QIWW-2Ng8QIWW.js","sources":["__vite-browser-external-2Ng8QIWW-2Ng8QIWW.js"],"sourcesContent":["const __viteBrowserExternal = {};\nexport {\n __viteBrowserExternal as default\n};\n//# sourceMappingURL=__vite-browser-external-2Ng8QIWW-2Ng8QIWW.js.map\n"],"names":[],"mappings":"AAAK,MAAC,wBAAwB,CAAA;"}
|
|
@@ -12068,7 +12068,7 @@ class ConfigManager {
|
|
|
12068
12068
|
return module.default || module;
|
|
12069
12069
|
} catch (error) {
|
|
12070
12070
|
try {
|
|
12071
|
-
const fs = await import("./__vite-browser-external-2Ng8QIWW-2Ng8QIWW.js");
|
|
12071
|
+
const fs = await import("./__vite-browser-external-2Ng8QIWW-2Ng8QIWW-2Ng8QIWW.js");
|
|
12072
12072
|
const fileContent = await fs.readFile(path, "utf-8");
|
|
12073
12073
|
return JSON.parse(fileContent);
|
|
12074
12074
|
} catch (fsError) {
|
|
@@ -12867,7 +12867,7 @@ let devtoolsModule = null;
|
|
|
12867
12867
|
let devtoolsModulePromise = null;
|
|
12868
12868
|
if (defaultDevtoolsEnabled) {
|
|
12869
12869
|
metaLog("[JSG-LOGGER] DevTools module pre-loading started (default config enabled)");
|
|
12870
|
-
devtoolsModulePromise = import("./panel-entry-DzGsV7s--DzGsV7s-.js").then((module) => {
|
|
12870
|
+
devtoolsModulePromise = import("./panel-entry-DzGsV7s--DzGsV7s--DzGsV7s-.js").then((module) => {
|
|
12871
12871
|
devtoolsModule = module;
|
|
12872
12872
|
metaLog("[JSG-LOGGER] DevTools module pre-loaded successfully");
|
|
12873
12873
|
return module;
|
|
@@ -13240,7 +13240,7 @@ const _JSGLogger = class _JSGLogger2 {
|
|
|
13240
13240
|
devtoolsModule = await devtoolsModulePromise;
|
|
13241
13241
|
} else {
|
|
13242
13242
|
devtoolsLogger2.info("Loading DevTools module dynamically (runtime config override)...");
|
|
13243
|
-
devtoolsModule = await import("./panel-entry-DzGsV7s--DzGsV7s-.js");
|
|
13243
|
+
devtoolsModule = await import("./panel-entry-DzGsV7s--DzGsV7s--DzGsV7s-.js");
|
|
13244
13244
|
}
|
|
13245
13245
|
} else {
|
|
13246
13246
|
devtoolsLogger2.info("Using pre-loaded DevTools module");
|
|
@@ -13599,4 +13599,4 @@ export {
|
|
|
13599
13599
|
initializePanel,
|
|
13600
13600
|
togglePanel
|
|
13601
13601
|
};
|
|
13602
|
-
//# sourceMappingURL=panel-entry-BZ56bT66.js.map
|
|
13602
|
+
//# sourceMappingURL=panel-entry-BZ56bT66-BMyD75mc.js.map
|