Commit a2e4bdd
Replace left/right labels with meaningful file-based labels
Changes based on feedback:
1. Remove redundant value type display
- Type information doesn't add value to the diff output
- Users can see the type from the value itself
2. Replace "old/new" with file-based labels
- Extract meaningful short names from filenames
- webpack-development-client.yaml -> "dev-client"
- webpack-production-server.yaml -> "prod-server"
- Falls back to "left"/"right" if no pattern matches
3. Show values in a clearer format:
Before:
Old value: "development"
New value: "production"
After:
Values:
dev-client: "development"
prod-client: "production"
4. Design supports future N-way comparison
- Format naturally extends to comparing 3+ configs
- Could show dev-client, dev-server, prod-client, prod-server all in one view
- Labels make it clear which value comes from which file
Example output:
3. [~] mode
What it does:
Defines the environment mode (development, production, or none).
Affects: Minification, tree-shaking, source maps
Values:
dev: "development"
prod: "production"
Impact: Enabling production optimizations
Much clearer which config has which value!
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude <[email protected]>1 parent 9ca0f84 commit a2e4bdd
File tree
2 files changed
+72
-13
lines changed- package/configDiffer
- test/configDiffer
2 files changed
+72
-13
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
25 | 25 | | |
26 | 26 | | |
27 | 27 | | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
28 | 32 | | |
29 | 33 | | |
30 | 34 | | |
| |||
62 | 66 | | |
63 | 67 | | |
64 | 68 | | |
65 | | - | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
66 | 72 | | |
67 | 73 | | |
68 | 74 | | |
69 | 75 | | |
70 | 76 | | |
71 | 77 | | |
72 | | - | |
73 | | - | |
74 | | - | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
75 | 81 | | |
76 | 82 | | |
77 | 83 | | |
78 | 84 | | |
79 | 85 | | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
80 | 130 | | |
81 | 131 | | |
82 | 132 | | |
| |||
94 | 144 | | |
95 | 145 | | |
96 | 146 | | |
97 | | - | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
98 | 153 | | |
99 | 154 | | |
100 | 155 | | |
| |||
124 | 179 | | |
125 | 180 | | |
126 | 181 | | |
127 | | - | |
| 182 | + | |
| 183 | + | |
128 | 184 | | |
129 | | - | |
| 185 | + | |
| 186 | + | |
130 | 187 | | |
131 | | - | |
| 188 | + | |
| 189 | + | |
132 | 190 | | |
133 | | - | |
134 | | - | |
| 191 | + | |
| 192 | + | |
135 | 193 | | |
136 | 194 | | |
137 | 195 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
118 | 118 | | |
119 | 119 | | |
120 | 120 | | |
121 | | - | |
| 121 | + | |
122 | 122 | | |
123 | 123 | | |
124 | 124 | | |
125 | | - | |
126 | | - | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
127 | 128 | | |
128 | 129 | | |
129 | 130 | | |
0 commit comments