You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
-**Safe directory creation utilities**: Added `safeMkdir()` and `safeMkdirSync()` functions to the `fs` module that gracefully handle concurrent directory creation
- Re-throws all other errors for proper error handling
15
+
- Uses TypeScript `unknown` type for proper type narrowing in error handling
16
+
- Exported from `@socketsecurity/lib/fs`
17
+
18
+
### Changed
19
+
20
+
-**DLX modules now use lazy-loaded file system access**: Refactored `dlx.ts`, `dlx-package.ts`, and `dlx-binary.ts` to use `getFs()` pattern for better bundler compatibility
21
+
- Prevents Webpack bundling errors with Node.js built-in modules
22
+
- Lazy initialization of `fs` module only when needed
23
+
- Maintains consistent pattern across entire DLX subsystem
24
+
-**Consistent bare imports for Node.js built-ins**: Replaced all `'node:'` prefixed imports with bare imports (e.g., `'node:fs'` → `'fs'`) across 17 source files
25
+
- Better compatibility with legacy bundlers and build tools
26
+
- Maintains functionality while improving tooling support
27
+
-**All directory creation now uses safe utilities**: Updated all `fs.promises.mkdir()` and `fs.mkdirSync()` calls to use `safeMkdir()` and `safeMkdirSync()` throughout DLX modules
0 commit comments