File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1515 - uses : actions/checkout@v4
1616 - uses : actions/setup-node@v4
1717 with :
18- node-version : 22.x
19- cache : ' npm'
20- - run : npm ci
18+ node-version : 24.x
19+ - run : npm install
2120 - run : npm test
2221
2322 publish-npm :
2726 - uses : actions/checkout@v4
2827 - uses : actions/setup-node@v4
2928 with :
30- node-version : 22 .x
29+ node-version : 24 .x
3130 registry-url : https://registry.npmjs.org/
32- cache : ' npm'
33- - run : npm ci
31+ - run : npm install
3432 - run : npm publish --provenance --access public
Original file line number Diff line number Diff line change 1+ 5.0.4 / 2025-11-16
2+ ==================
3+
4+ ## What's Changed
5+ * fix: do not crash on empty config files by @KnorpelSenf in https://github.com/cyjake/ssh-config/pull/95
6+ * refactor: improve TypeScript build configuration by @cyjake in https://github.com/cyjake/ssh-config/pull/96
7+ * Ci/trusted npm publish by @cyjake in https://github.com/cyjake/ssh-config/pull/97
8+
9+ ## New Contributors
10+ * @KnorpelSenf made their first contribution in https://github.com/cyjake/ssh-config/pull/95
11+
12+ ** Full Changelog** : https://github.com/cyjake/ssh-config/compare/v5.0.3...v5.0.4
13+
1145.0.3 / 2025-02-05
215==================
316
Original file line number Diff line number Diff line change 11{
22 "name" : " ssh-config" ,
33 "description" : " SSH config parser and stringifier" ,
4- "version" : " 5.0.3 " ,
4+ "version" : " 5.0.4 " ,
55 "author" : " Chen Yangjian (https://www.cyj.me)" ,
66 "repository" : {
77 "type" : " git" ,
2929 "lint:fix" : " eslint --ext ts --fix ." ,
3030 "build" : " tsc" ,
3131 "prepack" : " npm run build" ,
32+ "pretest" : " npm run build" ,
3233 "test" : " mocha" ,
3334 "test:coverage" : " nyc mocha && nyc report --reporter=lcov"
3435 },
Original file line number Diff line number Diff line change @@ -6,7 +6,7 @@ import SSHConfig from '../..'
66
77const { parse, stringify } = SSHConfig
88
9- function readFile ( fname ) {
9+ function readFile ( fname : string ) {
1010 const fpath = path . join ( __dirname , '..' , fname )
1111 return fs . readFileSync ( fpath , 'utf-8' ) . replace ( / \r \n / g, '\n' )
1212}
You can’t perform that action at this time.
0 commit comments