codsen 0.4.3 → 0.5.1

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 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.4.0 (2025-10-15)
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
- - if value to be added is a number, keep it as is, don't stringify ([ce3e1a5](https://github.com/codsen/codsen/commit/ce3e1a525998ca3c0abf0142affef95b14cd1990))
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-2025 Roy Revelt and other contributors
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-2025 Roy Revelt and other contributors
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 meow from "meow";
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 = meow(
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
- importMeta: import.meta,
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.4.3",
3
+ "version": "0.5.1",
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
- "cjs-off": "exit 0",
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
- "letspublish": "npm publish --provenance || :",
35
- "lint": "eslint . --fix --concurrency=auto --cache",
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": "prettier",
39
- "prettier:format": "npm run prettier -- --write '**/*.{js,md}' --no-error-on-unmatched-pattern --log-level 'silent'",
40
- "pretest": "exit 0",
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
- "check-coverage": false,
49
- "exclude": [
50
- "**/test/**/*.*"
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
- "meow": "^14.0.0",
53
+ "codsen-utils": "^1.9.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
  }