@guanghechen/version 1.0.1 → 1.0.3

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 ADDED
@@ -0,0 +1,37 @@
1
+ # Change Log
2
+
3
+ ## 1.0.3
4
+
5
+ ### Patch Changes
6
+
7
+ - Treat wildcard upper bounds of hyphen ranges as unbounded.
8
+
9
+ ## 1.0.2
10
+
11
+ ### Patch Changes
12
+
13
+ - chore: vitest config auto-load aliases and coverage thresholds; style/doc formatting updates
14
+
15
+ All notable changes to this project will be documented in this file. See
16
+ [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
17
+
18
+ ## 1.0.1 (2025-02-07)
19
+
20
+ ### Improvements
21
+
22
+ - Clean up build configs and standardize package exports
23
+
24
+ ### Documentation
25
+
26
+ - Update README.md
27
+
28
+ ### Miscellaneous
29
+
30
+ - Add LICENSE file
31
+ - Migrate from lerna to changesets
32
+
33
+ ## 1.0.0 (2025-01-15)
34
+
35
+ ### Improvements
36
+
37
+ - Upgrade to stable release
package/lib/cjs/index.cjs CHANGED
@@ -141,7 +141,8 @@ function parseHyphenRange(range) {
141
141
  const prereleaseVersions = [];
142
142
  if (start.prerelease.length > 0)
143
143
  prereleaseVersions.push(startFull);
144
- if (isFullVersion(end)) {
144
+ if (end.isWildcard) ;
145
+ else if (isFullVersion(end)) {
145
146
  comparators.push(createComparator(end, 'lte'));
146
147
  if (end.prerelease.length > 0)
147
148
  prereleaseVersions.push(end);
package/lib/esm/index.mjs CHANGED
@@ -139,7 +139,8 @@ function parseHyphenRange(range) {
139
139
  const prereleaseVersions = [];
140
140
  if (start.prerelease.length > 0)
141
141
  prereleaseVersions.push(startFull);
142
- if (isFullVersion(end)) {
142
+ if (end.isWildcard) ;
143
+ else if (isFullVersion(end)) {
143
144
  comparators.push(createComparator(end, 'lte'));
144
145
  if (end.prerelease.length > 0)
145
146
  prereleaseVersions.push(end);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@guanghechen/version",
3
- "version": "1.0.1",
3
+ "version": "1.0.3",
4
4
  "description": "Lightweight semver version comparison utilities.",
5
5
  "author": {
6
6
  "name": "guanghechen",