@guanghechen/task 2.0.1 → 2.1.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 (2) hide show
  1. package/CHANGELOG.md +51 -0
  2. package/package.json +3 -3
package/CHANGELOG.md CHANGED
@@ -1,8 +1,59 @@
1
1
  # Change Log
2
2
 
3
+ ## 2.1.0
4
+
5
+ ### Minor Changes
6
+
7
+ - ### @guanghechen/reporter
8
+ - feat: add `setLevel` method for dynamic log level change
9
+ - refactor: split source into modular files (`level.ts`, `chalk.ts`, `types.ts`, `reporter.ts`)
10
+ - refactor: move `IReporter` types from `@guanghechen/types` to `@guanghechen/reporter`
11
+ - export: add level utilities (`LogLevelEnum`, `ILogLevel`, `LOG_LEVELS`, `LOG_LEVEL_VALUES`,
12
+ `isLogLevel`, `getLogLevelValue`, `resolveLogLevel`)
13
+ - export: add chalk utilities (`ANSI`, `formatTag`)
14
+
15
+ ### @guanghechen/types
16
+ - refactor: remove `IReporter` and `IReporterLevel` exports (moved to `@guanghechen/reporter`)
17
+
18
+ ### @guanghechen/commander
19
+ - feat: add predefined options `logLevelOption` and `silentOption` with `apply` callback support
20
+ - refactor: use `ILogLevel` from `@guanghechen/reporter` instead of `IReporterLevel`
21
+
22
+ ### Dependent packages
23
+ - chore: bump version for packages depending on `@guanghechen/types`, `@guanghechen/reporter`, or
24
+ `@guanghechen/commander`
25
+
26
+ ### Patch Changes
27
+
28
+ - Updated dependencies:
29
+ - @guanghechen/types@2.2.0
30
+ - @guanghechen/observable@7.1.0
31
+
3
32
  All notable changes to this project will be documented in this file. See
4
33
  [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
34
 
35
+ ## 2.0.1 (2025-02-07)
36
+
37
+ ### Improvements
38
+
39
+ - Clean up build configs and standardize package exports
40
+ - Enhance type safety and resource cleanup
41
+
42
+ ### Documentation
43
+
44
+ - Update README.md
45
+
46
+ ### Miscellaneous
47
+
48
+ - Add LICENSE file
49
+ - Migrate from lerna to changesets
50
+
51
+ ## 2.0.0 (2025-01-15)
52
+
53
+ ### Improvements
54
+
55
+ - Switch to recommended ESLint stack
56
+
6
57
  ## 1.0.0-beta.7 (2024-09-19)
7
58
 
8
59
  **Note:** Version bump only for package @guanghechen/task
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@guanghechen/task",
3
- "version": "2.0.1",
3
+ "version": "2.1.0",
4
4
  "description": "Atomic and resumable tasks",
5
5
  "author": {
6
6
  "name": "guanghechen",
@@ -35,8 +35,8 @@
35
35
  "README.md"
36
36
  ],
37
37
  "dependencies": {
38
- "@guanghechen/observable": "^7.0.1",
39
- "@guanghechen/types": "^2.0.1"
38
+ "@guanghechen/observable": "^7.1.0",
39
+ "@guanghechen/types": "^2.2.0"
40
40
  },
41
41
  "scripts": {
42
42
  "build": "rollup -c ../../rollup.config.mjs",