@md2do/cli 0.3.0 → 0.4.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.
Files changed (34) hide show
  1. package/CHANGELOG.md +43 -0
  2. package/coverage/coverage-final.json +2 -2
  3. package/coverage/index.html +7 -7
  4. package/coverage/lcov-report/index.html +7 -7
  5. package/coverage/lcov-report/src/cli.ts.html +1 -1
  6. package/coverage/lcov-report/src/commands/index.html +5 -5
  7. package/coverage/lcov-report/src/commands/index.ts.html +1 -1
  8. package/coverage/lcov-report/src/commands/list.ts.html +103 -22
  9. package/coverage/lcov-report/src/commands/stats.ts.html +1 -1
  10. package/coverage/lcov-report/src/commands/todoist.ts.html +1 -1
  11. package/coverage/lcov-report/src/formatters/index.html +1 -1
  12. package/coverage/lcov-report/src/formatters/json.ts.html +1 -1
  13. package/coverage/lcov-report/src/formatters/pretty.ts.html +1 -1
  14. package/coverage/lcov-report/src/index.html +5 -5
  15. package/coverage/lcov-report/src/index.ts.html +1 -1
  16. package/coverage/lcov-report/src/scanner.ts.html +87 -6
  17. package/coverage/lcov.info +56 -2
  18. package/coverage/src/cli.ts.html +1 -1
  19. package/coverage/src/commands/index.html +5 -5
  20. package/coverage/src/commands/index.ts.html +1 -1
  21. package/coverage/src/commands/list.ts.html +103 -22
  22. package/coverage/src/commands/stats.ts.html +1 -1
  23. package/coverage/src/commands/todoist.ts.html +1 -1
  24. package/coverage/src/formatters/index.html +1 -1
  25. package/coverage/src/formatters/json.ts.html +1 -1
  26. package/coverage/src/formatters/pretty.ts.html +1 -1
  27. package/coverage/src/index.html +5 -5
  28. package/coverage/src/index.ts.html +1 -1
  29. package/coverage/src/scanner.ts.html +87 -6
  30. package/dist/cli.js +22 -6
  31. package/dist/index.js +22 -6
  32. package/package.json +5 -5
  33. package/src/commands/list.ts +16 -5
  34. package/src/scanner.ts +23 -1
package/CHANGELOG.md CHANGED
@@ -1,5 +1,48 @@
1
1
  # @md2do/cli
2
2
 
3
+ ## 0.4.0
4
+
5
+ ### Minor Changes
6
+
7
+ - 8e0f80a: Add time support to due dates with workday configuration
8
+
9
+ **New Features:**
10
+ - Support optional time component in due dates: `[due: 2026-02-06 17:00]`
11
+ - Parse both 24-hour format times (H:MM and HH:MM)
12
+ - Added `parseTime()` utility for time validation
13
+ - New workday config schema with `startTime`, `endTime`, and `defaultDueTime`
14
+ - When no time specified in due date, applies default from config (defaults to 17:00 end of workday)
15
+ - Prevents "due 8 hours ago" issues for dates without explicit times
16
+
17
+ **Configuration:**
18
+
19
+ ```json
20
+ {
21
+ "workday": {
22
+ "startTime": "08:00",
23
+ "endTime": "17:00",
24
+ "defaultDueTime": "end"
25
+ }
26
+ }
27
+ ```
28
+
29
+ ### Patch Changes
30
+
31
+ - Updated dependencies [8e0f80a]
32
+ - @md2do/config@0.4.0
33
+ - @md2do/core@0.4.0
34
+ - @md2do/todoist@0.4.0
35
+
36
+ ## 0.3.1
37
+
38
+ ### Patch Changes
39
+
40
+ - [#26](https://github.com/TeamNickHart/md2do/pull/26) [`bffa9f7`](https://github.com/TeamNickHart/md2do/commit/bffa9f79d6b27c5ea7f677b7e9c2158051ca5a43) Thanks [@nickhart](https://github.com/nickhart)! - fix: pin chalk to exact version 4.1.2 to prevent ESM compatibility issues
41
+
42
+ Pinning chalk to exactly 4.1.2 (without caret) ensures that package managers don't accidentally install chalk v5 (which is ESM-only) when users install the CLI globally. This fixes "ERR_REQUIRE_ESM" errors that occurred when chalk v5 was resolved instead of v4.
43
+
44
+ Fixes: ERR_REQUIRE_ESM when installing @md2do/cli globally
45
+
3
46
  ## 0.3.0
4
47
 
5
48
  ### Minor Changes