@guanghechen/version 1.0.0 → 1.0.2

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 (4) hide show
  1. package/CHANGELOG.md +31 -0
  2. package/LICENSE +21 -0
  3. package/README.md +14 -10
  4. package/package.json +13 -14
package/CHANGELOG.md ADDED
@@ -0,0 +1,31 @@
1
+ # Change Log
2
+
3
+ ## 1.0.2
4
+
5
+ ### Patch Changes
6
+
7
+ - chore: vitest config auto-load aliases and coverage thresholds; style/doc formatting updates
8
+
9
+ All notable changes to this project will be documented in this file. See
10
+ [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
11
+
12
+ ## 1.0.1 (2025-02-07)
13
+
14
+ ### Improvements
15
+
16
+ - Clean up build configs and standardize package exports
17
+
18
+ ### Documentation
19
+
20
+ - Update README.md
21
+
22
+ ### Miscellaneous
23
+
24
+ - Add LICENSE file
25
+ - Migrate from lerna to changesets
26
+
27
+ ## 1.0.0 (2025-01-15)
28
+
29
+ ### Improvements
30
+
31
+ - Upgrade to stable release
package/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2023-present guanghechen (https://github.com/guanghechen)
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 CHANGED
@@ -153,16 +153,20 @@ interface ISatisfiesOptions {
153
153
 
154
154
  ### Functions
155
155
 
156
- | Function | Description |
157
- | ----------------------------------------------------- | ---------------------------------------------- |
158
- | `parseVersion(version: string)` | Parse a full semver string to `ISemVer` |
159
- | `parsePartialVersion(version: string)` | Parse a partial version to `IPartialSemVer` |
160
- | `compareVersions(v1: string, v2: string)` | Compare two version strings (-1, 0, 1) |
161
- | `compareSemVer(v1: ISemVer, v2: ISemVer)` | Compare two parsed versions (-1, 0, 1) |
162
- | `satisfies(version: string, range: string, options?)` | Check if version satisfies the range |
163
- | `formatVersion(v: ISemVer)` | Format a parsed version back to string |
164
- | `isFullVersion(v: IPartialSemVer)` | Check if partial version is a full version |
165
- | `toFullVersion(v: IPartialSemVer)` | Convert partial version to full (fill with 0s) |
156
+ | Function | Description |
157
+ | ------------------------------ | ----------------------------------------- |
158
+ | `parseVersion(version)` | Parse a full semver string to `ISemVer` |
159
+ | `parsePartialVersion(version)` | Parse a partial version |
160
+ | `compareVersions(v1, v2)` | Compare two version strings (-1, 0, 1) |
161
+ | `compareSemVer(v1, v2)` | Compare two parsed versions (-1, 0, 1) |
162
+ | `satisfies(version, range)` | Check if version satisfies the range |
163
+ | `formatVersion(v)` | Format a parsed version back to string |
164
+ | `isFullVersion(v)` | Check if partial version is full |
165
+ | `toFullVersion(v)` | Convert partial to full (fill with 0s) |
166
+
167
+ ## Reference
168
+
169
+ - [homepage][homepage]
166
170
 
167
171
  [homepage]:
168
172
  https://github.com/guanghechen/sora/tree/@guanghechen/version@1.0.0/packages/version#readme
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@guanghechen/version",
3
- "version": "1.0.0",
3
+ "version": "1.0.2",
4
4
  "description": "Lightweight semver version comparison utilities.",
5
5
  "author": {
6
6
  "name": "guanghechen",
@@ -8,10 +8,10 @@
8
8
  },
9
9
  "repository": {
10
10
  "type": "git",
11
- "url": "https://github.com/guanghechen/sora/tree/@guanghechen/version@0.0.1",
11
+ "url": "https://github.com/guanghechen/sora/tree/@guanghechen/version@1.0.0",
12
12
  "directory": "packages/version"
13
13
  },
14
- "homepage": "https://github.com/guanghechen/sora/tree/@guanghechen/version@0.0.1/packages/version#readme",
14
+ "homepage": "https://github.com/guanghechen/sora/tree/@guanghechen/version@1.0.0/packages/version#readme",
15
15
  "keywords": [
16
16
  "semver",
17
17
  "version",
@@ -20,10 +20,10 @@
20
20
  "type": "module",
21
21
  "exports": {
22
22
  ".": {
23
+ "types": "./lib/types/index.d.ts",
23
24
  "source": "./src/index.ts",
24
25
  "import": "./lib/esm/index.mjs",
25
- "require": "./lib/cjs/index.cjs",
26
- "types": "./lib/types/index.d.ts"
26
+ "require": "./lib/cjs/index.cjs"
27
27
  }
28
28
  },
29
29
  "source": "./src/index.ts",
@@ -31,13 +31,6 @@
31
31
  "module": "./lib/esm/index.mjs",
32
32
  "types": "./lib/types/index.d.ts",
33
33
  "license": "MIT",
34
- "scripts": {
35
- "build": "rollup -c ../../rollup.config.mjs",
36
- "clean": "rimraf lib",
37
- "test": "vitest run --config ../../vitest.config.ts",
38
- "test:coverage": "vitest run --config ../../vitest.config.ts --coverage",
39
- "test:update": "vitest run --config ../../vitest.config.ts -u"
40
- },
41
34
  "files": [
42
35
  "lib/",
43
36
  "!lib/**/*.map",
@@ -46,5 +39,11 @@
46
39
  "LICENSE",
47
40
  "README.md"
48
41
  ],
49
- "gitHead": "12990a720b31d50d217e2e17a6191256dc94eda6"
50
- }
42
+ "scripts": {
43
+ "build": "rollup -c ../../rollup.config.mjs",
44
+ "clean": "rimraf lib",
45
+ "test": "vitest run --config ../../vitest.config.ts",
46
+ "test:coverage": "vitest run --config ../../vitest.config.ts --coverage",
47
+ "test:update": "vitest run --config ../../vitest.config.ts -u"
48
+ }
49
+ }