comze 0.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.
package/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 qoqn
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.md ADDED
@@ -0,0 +1,107 @@
1
+ # comze
2
+
3
+ A [taze](https://github.com/antfu/taze)-like CLI for updating `composer.json` dependencies.
4
+
5
+ ## Features
6
+
7
+ - 🔍 Check for outdated dependencies in `composer.json`
8
+ - 📊 Colored output: Major (red), Minor (cyan), Patch (green)
9
+ - ⏱️ Version age display (e.g., "2 d", "3 mo")
10
+ - 🎯 Respects `minimum-stability` and `prefer-stable`
11
+ - 🚫 Major updates hidden by default
12
+ - ✍️ Interactive selection mode
13
+
14
+ ## Installation
15
+
16
+ ```bash
17
+ # Global install
18
+ npm install -g comze
19
+
20
+ # Or use directly with npx/bunx/pnpx
21
+ npx comze
22
+ bunx comze
23
+ pnpx comze
24
+ ```
25
+
26
+ ## Usage
27
+
28
+ ```bash
29
+ # Check for updates
30
+ comze
31
+
32
+ # Include major updates
33
+ comze --major
34
+
35
+ # Write changes to composer.json
36
+ comze -w
37
+
38
+ # Write + run composer update
39
+ comze -i
40
+
41
+ # Interactive mode
42
+ comze -I
43
+
44
+ # Dry run
45
+ comze --dry-run
46
+
47
+ # Exclude packages
48
+ comze --exclude vendor/package
49
+ ```
50
+
51
+ ## Options
52
+
53
+ | Flag | Description |
54
+ |------|-------------|
55
+ | `-w, --write` | Write changes to `composer.json` |
56
+ | `-i, --install` | Write changes and run `composer update` |
57
+ | `-I, --interactive` | Select updates manually |
58
+ | `--major` | Include major updates (default: false) |
59
+ | `--minor` | Include minor updates (default: true) |
60
+ | `--patch` | Include patch updates (default: true) |
61
+ | `--exclude <pkgs>` | Exclude packages (comma-separated) |
62
+ | `--dry-run` | Preview changes without writing |
63
+
64
+ ## Composer Stability
65
+
66
+ comze reads `minimum-stability` and `prefer-stable` from your `composer.json`:
67
+
68
+ ```json
69
+ {
70
+ "minimum-stability": "dev",
71
+ "prefer-stable": true
72
+ }
73
+ ```
74
+
75
+ ## Version Constraints
76
+
77
+ All Composer version constraints are supported:
78
+
79
+ | Type | Example |
80
+ |------|---------|
81
+ | Exact | `1.0.2` |
82
+ | Caret | `^1.2.3` |
83
+ | Tilde | `~1.2` |
84
+ | Wildcard | `1.0.*` |
85
+ | Range | `>=1.0 <2.0` |
86
+ | Hyphenated | `1.0 - 2.0` |
87
+ | Dev | `dev-main`, `1.x-dev` |
88
+
89
+ ## Development
90
+
91
+ ```bash
92
+ # Install dependencies
93
+ bun install
94
+
95
+ # Run in development
96
+ bun run dev
97
+
98
+ # Run tests
99
+ bun test
100
+
101
+ # Build for publishing
102
+ bun run build
103
+ ```
104
+
105
+ ## License
106
+
107
+ MIT
package/bin/comze.mjs ADDED
@@ -0,0 +1,2 @@
1
+ #!/usr/bin/env node
2
+ import '../dist/cli.mjs';