Skip to content

Commit 1342817

Browse files
committed
fix(constants): access .default for all ESM default exports
Add .default accessor when requiring ESM modules with default exports: - maintained-node-versions - package-default-node-range (requires maintained-node-versions) - package-default-socket-categories - package-extensions - lifecycle-script-names Fixes CommonJS/ESM interop issues throughout the codebase.
1 parent ed92eaf commit 1342817

File tree

3 files changed

+25
-14
lines changed

3 files changed

+25
-14
lines changed

CHANGELOG.md

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,21 @@ All notable changes to this project will be documented in this file.
55
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),
66
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
77

8+
## [3.3.0](https://github.com/SocketDev/socket-lib/releases/tag/v3.3.0) - 2025-11-07
9+
10+
### Added
11+
12+
- **Spinner**: New `reason()` and `reasonAndStop()` methods for displaying working/thinking output
13+
- `reason(text)`: Display reason text alongside spinner (e.g., "Analyzing dependencies...")
14+
- `reasonAndStop(text)`: Display reason text and stop spinner in one call
15+
- Normalizes text formatting consistently with other spinner methods
16+
- Useful for communicating progress steps during long-running operations
17+
18+
- **Logger**: New `reason()` method and symbol for working/thinking output
19+
- `LOG_SYMBOLS.reason`: New symbol for reason output (distinct from info/step symbols)
20+
- `reason(message)`: Display reason messages with dedicated symbol
21+
- Complements existing info/step/success/error/warning methods
22+
823
## [3.2.8](https://github.com/SocketDev/socket-lib/releases/tag/v3.2.8) - 2025-11-05
924

1025
### Fixed

package.json

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@socketsecurity/lib",
3-
"version": "3.2.8",
3+
"version": "3.3.0",
44
"license": "MIT",
55
"description": "Core utilities and infrastructure for Socket.dev security tools",
66
"keywords": [
@@ -582,16 +582,16 @@
582582
},
583583
"sideEffects": false,
584584
"scripts": {
585-
"build": "node scripts/build.mjs",
585+
"build": "node scripts/build/main.mjs",
586586
"check": "node scripts/check.mjs",
587-
"clean": "node scripts/clean.mjs",
588-
"cover": "node scripts/cover.mjs",
589-
"dev": "node scripts/build.mjs --watch",
587+
"clean": "node scripts/build/clean.mjs",
588+
"cover": "node scripts/test/cover.mjs",
589+
"dev": "node scripts/build/main.mjs --watch",
590590
"fix": "node scripts/lint.mjs --fix",
591591
"lint": "node scripts/lint.mjs",
592592
"prepare": "husky",
593593
"prepublishOnly": "pnpm run build",
594-
"test": "node scripts/test.mjs",
594+
"test": "node scripts/test/main.mjs",
595595
"update": "node scripts/update.mjs"
596596
},
597597
"devDependencies": {

scripts/test/cover.mjs

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -225,14 +225,10 @@ try {
225225
if (exitCode === 0) {
226226
logger.info('Filtering coverage data to src/ files only...')
227227
try {
228-
const filterResult = await spawn(
229-
'node',
230-
['scripts/test/filter.mjs'],
231-
{
232-
cwd: rootPath,
233-
stdio: 'inherit',
234-
},
235-
)
228+
const filterResult = await spawn('node', ['scripts/test/filter.mjs'], {
229+
cwd: rootPath,
230+
stdio: 'inherit',
231+
})
236232
if (filterResult.code !== 0) {
237233
logger.warn('Coverage filtering had issues but continuing...')
238234
}

0 commit comments

Comments
 (0)