File tree Expand file tree Collapse file tree 5 files changed +580
-2247
lines changed
Expand file tree Collapse file tree 5 files changed +580
-2247
lines changed Original file line number Diff line number Diff line change @@ -18,15 +18,15 @@ jobs:
1818 runs-on : ${{ matrix.os }}
1919 steps :
2020 - name : Checkout
21- uses : actions/checkout@v4.2.2
21+ uses : actions/checkout@v6.0.1
2222 - name : Setup Node
23- uses : actions/setup-node@v4.3 .0
23+ uses : actions/setup-node@v6.2 .0
2424 with :
2525 node-version : ${{ matrix.version }}
2626 - name : Install Dependencies
2727 run : npm ci
2828 - name : Save error log
29- uses : actions/upload-artifact@v4.6.2
29+ uses : actions/upload-artifact@v6.0.0
3030 if : ${{ failure() }}
3131 with :
3232 name : npm-debug-log-${{ hashFiles('package-lock.json') }}
4040 - name : Test
4141 run : npm test
4242 - name : Report Coverage
43- uses : codecov/codecov-action@v5.5.1
43+ uses : codecov/codecov-action@v5.5.2
4444 with :
4545 token : ${{ secrets.CODECOV_TOKEN }}
4646 - name : Pack
Original file line number Diff line number Diff line change @@ -14,15 +14,15 @@ jobs:
1414 runs-on : ubuntu-latest
1515 steps :
1616 - name : Checkout
17- uses : actions/checkout@v4.2.2
17+ uses : actions/checkout@v6.0.1
1818 - name : Setup Node
19- uses : actions/setup-node@v4.3 .0
19+ uses : actions/setup-node@v6.2 .0
2020 with :
2121 node-version : ' 24.11.1'
2222 - name : Install Dependencies
2323 run : npm ci
2424 - name : Save error log
25- uses : actions/upload-artifact@v4.6.2
25+ uses : actions/upload-artifact@v6.0.0
2626 if : ${{ failure() }}
2727 with :
2828 name : npm-debug-log-${{ hashFiles('package-lock.json') }}
3434 - name : Pack
3535 run : npm pack
3636 - name : Push to NPM registry
37- uses : JS-DevTools/npm-publish@v4.1.1
37+ uses : JS-DevTools/npm-publish@v4.1.5
3838 with :
3939 access : public
4040 tag : ${{ contains(github.ref, '-') && 'next' || 'latest' }}
Original file line number Diff line number Diff line change 44[ ![ codecov] ( https://codecov.io/gh/knightedcodemonkey/module/graph/badge.svg?token=AjayQQxghy )] ( https://codecov.io/gh/knightedcodemonkey/module )
55[ ![ NPM version] ( https://img.shields.io/npm/v/@knighted/module.svg )] ( https://www.npmjs.com/package/@knighted/module )
66
7- Node.js utility for transforming a JavaScript or TypeScript file from an ES module to CommonJS , or vice versa.
7+ Node.js utility for transforming a JavaScript or TypeScript file from CommonJS to an ES module, or vice versa.
88
9- - ES module ➡️ CommonJS
109- CommonJS ➡️ ES module
10+ - ES module ➡️ CommonJS
1111
1212Highlights
1313
14- - ESM ➡️ CJS and CJS ➡️ ESM with one function call.
14+ - CJS ➡️ ESM and ESM ➡️ CJS with one function call.
1515- Defaults to safe CommonJS output: strict live bindings, import.meta shims, and specifier preservation.
1616- Configurable lowering modes: full syntax transforms or globals-only.
1717- Specifier tools: add extensions, add directory indexes, or map with a custom callback.
@@ -25,7 +25,7 @@ By default `@knighted/module` transforms the one-to-one [differences between ES
2525
2626## Requirements
2727
28- - Node 22 or 24 (tested on 22 .21.1 and 24.11.1)
28+ - Node 22.21.1+ or 24+
2929
3030## Install
3131
You can’t perform that action at this time.
0 commit comments