codsen 0.4.0 → 0.5.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/CHANGELOG.md +11 -2
- package/LICENSE +1 -1
- package/README.md +1 -1
- package/cli.js +8 -5
- package/package.json +18 -23
- package/.eslintcache +0 -1
package/CHANGELOG.md
CHANGED
|
@@ -3,11 +3,20 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
-
## 0.
|
|
6
|
+
## 0.5.0 (2026-08-19)
|
|
7
|
+
|
|
8
|
+
### Bug Fixes
|
|
9
|
+
|
|
10
|
+
- retire direct publish aliases ([f98e31e](https://github.com/codsen/codsen/commit/f98e31eb89bc185471225664e610b55f34fbf648))
|
|
7
11
|
|
|
8
12
|
### Features
|
|
9
13
|
|
|
10
|
-
-
|
|
14
|
+
- refresh the tooling and generate with the latest dependencies ([781f802](https://github.com/codsen/codsen/commit/781f802911066a82a4533b0e5a3fcbd742d0dd83))
|
|
15
|
+
|
|
16
|
+
### Reverts
|
|
17
|
+
|
|
18
|
+
- Revert "Merge pull request #128 from codsen/release/npm-32198404552-1" ([5baeeaa](https://github.com/codsen/codsen/commit/5baeeaaa677b86f1eaa6396cadf3aea32b06416e)), closes [#128](https://github.com/codsen/codsen/issues/128)
|
|
19
|
+
- Revert "Merge pull request #127 from codsen/release/npm-32194020886-1" ([5f1e94d](https://github.com/codsen/codsen/commit/5f1e94deef910ce735266b16aeee08a76de7a862)), closes [#127](https://github.com/codsen/codsen/issues/127)
|
|
11
20
|
|
|
12
21
|
## 0.3.0 (2024-01-05)
|
|
13
22
|
|
package/LICENSE
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
MIT License
|
|
2
2
|
|
|
3
|
-
Copyright © 2010-
|
|
3
|
+
Copyright © 2010-2026 Roy Revelt and other contributors
|
|
4
4
|
|
|
5
5
|
Permission is hereby granted, free of charge, to any person obtaining
|
|
6
6
|
a copy of this software and associated documentation files (the
|
package/README.md
CHANGED
|
@@ -45,6 +45,6 @@ To report bugs or request features or assistance, [raise an issue](https://githu
|
|
|
45
45
|
|
|
46
46
|
MIT License
|
|
47
47
|
|
|
48
|
-
Copyright © 2010-
|
|
48
|
+
Copyright © 2010-2026 Roy Revelt and other contributors
|
|
49
49
|
|
|
50
50
|
<p align="center"><img src="https://codsen.com/images/png-codsen-ok.png" width="98" alt="ok" align="center"> <img src="https://codsen.com/images/png-codsen-1.png" width="148" alt="codsen" align="center"> <img src="https://codsen.com/images/png-codsen-star-small.png" width="32" alt="star" align="center"></p>
|
package/cli.js
CHANGED
|
@@ -1,25 +1,25 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
|
|
3
|
-
import
|
|
3
|
+
import { createRequire } from "node:module";
|
|
4
|
+
import { codsenCLI } from "codsen-utils";
|
|
4
5
|
import updateNotifier from "update-notifier";
|
|
5
|
-
import { createRequire } from "module";
|
|
6
6
|
|
|
7
7
|
const { log } = console;
|
|
8
8
|
|
|
9
9
|
const require1 = createRequire(import.meta.url);
|
|
10
10
|
const pkg = require1("./package.json");
|
|
11
11
|
|
|
12
|
-
const cli =
|
|
12
|
+
const cli = codsenCLI(
|
|
13
13
|
`
|
|
14
14
|
Usage
|
|
15
15
|
$ codsen
|
|
16
16
|
|
|
17
17
|
Options
|
|
18
18
|
-h, --help Shows this help
|
|
19
|
-
-v, --version Shows the version of your ${name}
|
|
19
|
+
-v, --version Shows the version of your ${pkg.name}
|
|
20
20
|
`,
|
|
21
21
|
{
|
|
22
|
-
|
|
22
|
+
pkg,
|
|
23
23
|
flags: {},
|
|
24
24
|
},
|
|
25
25
|
);
|
|
@@ -28,6 +28,9 @@ updateNotifier({ pkg }).notify();
|
|
|
28
28
|
// FUNCTIONS
|
|
29
29
|
// -----------------------------------------------------------------------------
|
|
30
30
|
|
|
31
|
+
// Step #0. take care of the short -v and -h flags, which codsenCLI leaves
|
|
32
|
+
// to us (it answers the long --version and --help on its own).
|
|
33
|
+
|
|
31
34
|
if (cli.flags.v) {
|
|
32
35
|
log(pkg.version);
|
|
33
36
|
process.exit(0);
|
package/package.json
CHANGED
|
@@ -1,11 +1,8 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "codsen",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.5.0",
|
|
4
4
|
"description": "Codsen CLI",
|
|
5
|
-
"keywords": [
|
|
6
|
-
"codsen",
|
|
7
|
-
"cli"
|
|
8
|
-
],
|
|
5
|
+
"keywords": ["codsen", "cli"],
|
|
9
6
|
"homepage": "https://codsen.com/os/codsen",
|
|
10
7
|
"repository": {
|
|
11
8
|
"type": "git",
|
|
@@ -24,43 +21,41 @@
|
|
|
24
21
|
},
|
|
25
22
|
"scripts": {
|
|
26
23
|
"build": "exit 0",
|
|
27
|
-
"
|
|
28
|
-
"cjs-on": "exit 0",
|
|
24
|
+
"coverage": "c8 uvu test",
|
|
29
25
|
"dev": "exit 0",
|
|
30
26
|
"devtest": "npm run test",
|
|
31
27
|
"dts": "exit 0",
|
|
32
28
|
"examples": "exit 0",
|
|
33
29
|
"lect": "node '../../ops/lect/lect.js'",
|
|
34
|
-
"
|
|
35
|
-
"lint": "
|
|
30
|
+
"lect:check": "node '../../ops/lect/lect.js' --check",
|
|
31
|
+
"lint": "biome lint --error-on-warnings .",
|
|
32
|
+
"lint:fix": "biome lint --write --error-on-warnings .",
|
|
36
33
|
"perf": "exit 0",
|
|
37
34
|
"prep": "echo 'ready'",
|
|
38
|
-
"prettier": "
|
|
39
|
-
"prettier:format": "
|
|
40
|
-
"pretest": "
|
|
35
|
+
"prettier": "biome format",
|
|
36
|
+
"prettier:format": "biome format --write .",
|
|
37
|
+
"pretest": "npm run lect:check",
|
|
41
38
|
"test": "c8 npm run unit && npm run lint",
|
|
42
39
|
"unit": "uvu test"
|
|
43
40
|
},
|
|
44
|
-
"engines": {
|
|
45
|
-
"node": ">=18"
|
|
46
|
-
},
|
|
47
41
|
"c8": {
|
|
48
|
-
"
|
|
49
|
-
"
|
|
50
|
-
|
|
51
|
-
|
|
42
|
+
"all": true,
|
|
43
|
+
"check-coverage": true,
|
|
44
|
+
"exclude": ["**/test/**/*.*"],
|
|
45
|
+
"lines": 100
|
|
52
46
|
},
|
|
53
47
|
"lect": {
|
|
54
48
|
"licence": {
|
|
55
|
-
"extras": [
|
|
56
|
-
""
|
|
57
|
-
]
|
|
49
|
+
"extras": [""]
|
|
58
50
|
}
|
|
59
51
|
},
|
|
60
52
|
"dependencies": {
|
|
61
|
-
"
|
|
53
|
+
"codsen-utils": "^1.8.0",
|
|
62
54
|
"update-notifier": "^7.3.1"
|
|
63
55
|
},
|
|
56
|
+
"engines": {
|
|
57
|
+
"node": ">=18.20.8"
|
|
58
|
+
},
|
|
64
59
|
"publishConfig": {
|
|
65
60
|
"registry": "https://registry.npmjs.org/"
|
|
66
61
|
}
|
package/.eslintcache
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
[{"/home/runner/work/codsen/codsen/packages/codsen/cli.js":"1","/home/runner/work/codsen/codsen/packages/codsen/test/test.js":"2"},{"size":737,"mtime":1760566739079,"results":"3","hashOfConfig":"4"},{"size":218,"mtime":1760566739079,"results":"5","hashOfConfig":"6"},{"filePath":"7","messages":"8","suppressedMessages":"9","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},"vtm9kz",{"filePath":"10","messages":"11","suppressedMessages":"12","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},"nrihsz","/home/runner/work/codsen/codsen/packages/codsen/cli.js",[],[],"/home/runner/work/codsen/codsen/packages/codsen/test/test.js",[],["13","14","15","16","17","18"],{"ruleId":"19","severity":2,"message":"20","line":3,"column":10,"nodeType":null,"messageId":"21","endLine":3,"endColumn":15,"suppressions":"22"},{"ruleId":"19","severity":2,"message":"23","line":3,"column":17,"nodeType":null,"messageId":"21","endLine":3,"endColumn":19,"suppressions":"24"},{"ruleId":"19","severity":2,"message":"25","line":3,"column":25,"nodeType":null,"messageId":"21","endLine":3,"endColumn":31,"suppressions":"26"},{"ruleId":"19","severity":2,"message":"27","line":3,"column":33,"nodeType":null,"messageId":"21","endLine":3,"endColumn":37,"suppressions":"28"},{"ruleId":"19","severity":2,"message":"29","line":3,"column":39,"nodeType":null,"messageId":"21","endLine":3,"endColumn":42,"suppressions":"30"},{"ruleId":"19","severity":2,"message":"31","line":3,"column":44,"nodeType":null,"messageId":"21","endLine":3,"endColumn":49,"suppressions":"32"},"@typescript-eslint/no-unused-vars","'equal' is defined but never used.","unusedVar",["33"],"'is' is defined but never used.",["34"],"'throws' is defined but never used.",["35"],"'type' is defined but never used.",["36"],"'not' is defined but never used.",["37"],"'match' is defined but never used.",["38"],{"kind":"39","justification":"40"},{"kind":"39","justification":"40"},{"kind":"39","justification":"40"},{"kind":"39","justification":"40"},{"kind":"39","justification":"40"},{"kind":"39","justification":"40"},"directive",""]
|