scv-esm 1.123.0 → 1.126.0

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/CLAUDE.md CHANGED
@@ -13,8 +13,10 @@ Make scv-esm compatible with Node 24.x to support OIDC npm publishing in depende
13
13
 
14
14
  ## Backlog
15
15
 
16
+ All items complete - objective achieved:
17
+
16
18
  1. ✓ Test scv-esm against Node 24.x locally (DONE - all 81 tests pass)
17
19
  2. ✓ Update devDependencies if needed (DONE - found not needed)
18
20
  3. ✓ Add Node version constraint to package.json (DONE - found not needed)
19
21
  4. ✓ Run full test suite on Node 24.x (DONE)
20
- 5. [ ] Publish updated scv-esm to npm
22
+ 5. Publish updated scv-esm to npm (DONE)
package/Makefile CHANGED
@@ -1,4 +1,7 @@
1
- .PHONY: commit
1
+ .PHONY: commit rebuild
2
+
3
+ rebuild:
4
+ npm run test
2
5
 
3
6
  commit:
4
7
  @if [ ! -f .commit-msg ]; then echo "Error: .commit-msg not found"; exit 1; fi
package/WORK.md CHANGED
@@ -1,25 +1,27 @@
1
1
  # WORK.md
2
2
 
3
- **Build**: 1.121.0
4
- **Status**: Planning
3
+ **Build**: v1.123.0
4
+ **Status**: In Progress
5
5
  **Started**: 2025-12-16
6
6
 
7
7
  ## Objective
8
8
 
9
- Test scv-esm local compatibility with Node.js v24
9
+ Remove esm package dependency and convert to native ESM to support Node v24 compatibility
10
10
 
11
11
  ## Plan
12
12
 
13
- 1. [ ] Check current Node version locally
14
- 2. [ ] Switch to Node 24.x (using nvm)
15
- 3. [ ] Run `npm install`
16
- 4. [ ] Run `npm test` to verify all tests pass on Node 24
17
- 5. [ ] Document any failures or compatibility issues
18
- 6. [ ] Claude proposes next action
13
+ 1. [ ] Rename index.js to index.mjs
14
+ 2. [ ] Remove esm loader line from index.mjs
15
+ 3. [ ] Convert module.exports to ESM export statement
16
+ 4. [ ] Update package.json "main" field to point to index.mjs
17
+ 5. [ ] Remove "esm" from dependencies in package.json
18
+ 6. [ ] Test on Node v20 - npm run test
19
+ 7. [ ] Test on Node v24 - npm run test
20
+ 8. [ ] Run make rebuild to update build version
19
21
 
20
22
  ## Current Step
21
23
 
22
- Waiting for approval to proceed with testing
24
+ Ready to begin conversion
23
25
 
24
26
  ## Blockers
25
27
 
@@ -27,5 +29,6 @@ None
27
29
 
28
30
  ## Notes
29
31
 
30
- - Target: Ensure scv-esm works with Node 24.x (npm 11.6.2+)
31
- - Dependency chain: scv-esm scv-bilara (OIDC publishing)
32
+ - main.mjs already uses pure ESM syntax, no changes needed
33
+ - Both Node v20 and v24 support native ESM with .mjs files
34
+ - scv-bilara depends on scv-esm and needs this fix for Node v24 compatibility
package/index.mjs ADDED
@@ -0,0 +1 @@
1
+ export * from "./main.mjs"
package/package.json CHANGED
@@ -1,8 +1,8 @@
1
1
  {
2
2
  "name": "scv-esm",
3
- "version": "1.123.0",
3
+ "version": "1.126.0",
4
4
  "description": "SuttaCentral Voice ES Module",
5
- "main": "index.js",
5
+ "main": "index.mjs",
6
6
  "module": "main.mjs",
7
7
  "directories": {
8
8
  "test": "test"
@@ -20,7 +20,6 @@
20
20
  "author": "Karl Lew",
21
21
  "license": "MIT",
22
22
  "dependencies": {
23
- "esm": "^3.2.25",
24
23
  "log-instance": "^1.5.0"
25
24
  },
26
25
  "devDependencies": {
@@ -29,6 +28,6 @@
29
28
  "mocha": "^11.0.1",
30
29
  "scv-bilara": "^3.182.62",
31
30
  "should": "^13.2.3",
32
- "suttacentral-api": "^2.18.0"
31
+ "suttacentral-api": "^2.24.0"
33
32
  }
34
33
  }
package/index.js DELETED
@@ -1,4 +0,0 @@
1
- // Set options as a parameter, environment variable, or rc file.
2
- // eslint-disable-next-line no-global-assign
3
- require = require("esm")(module/* , options */)
4
- module.exports = require("./main.mjs")