@guiho/mirror 3.0.0-alpha.9 โ†’ 3.0.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 (3) hide show
  1. package/CHANGELOG.md +42 -12
  2. package/jsr.json +1 -1
  3. package/package.json +2 -1
package/CHANGELOG.md CHANGED
@@ -1,16 +1,46 @@
1
- # Changelog
1
+ # ๐Ÿชž GUIHO Mirror Changelog
2
2
 
3
- ## 3.0.0-alpha.2 (2026-05-17)
3
+ All notable changes to this project will be documented in this file.
4
4
 
5
- Initial open source release.
5
+ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
6
+ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
6
7
 
7
- ### Features
8
+ ## [3.0.0] - 2026-05-17
8
9
 
9
- - TOML-based configuration with `mirror.config.toml`
10
- - Semantic versioning with `semver` support
11
- - Adapters for `package.json`, `jsr.json`, and Git tags
12
- - CLI with `mirror init`, `mirror config`, and `mirror version` commands
13
- - Dry-run mode, dirty worktree protection, and interactive confirmation
14
- - Text and JSON output formats
15
- - Git commit, tag, and push automation
16
- - Prerelease identifier support
10
+ This release marks a major milestone as we prepare for the **initial open-source release** of GUIHO Mirror. We have completely overhauled the error handling experience, modernized the CI/CD publishing pipeline, and hardened the CLI commands for public usage.
11
+
12
+ ### โœจ Features
13
+
14
+ - **TOML-Based Configuration**: Full support for `mirror.config.toml` for predictable, versionable configurations.
15
+ - **Semantic Versioning Engine**: Powerful integration with `semver` for accurate version calculations across major, minor, patch, and prerelease identifiers.
16
+ - **Multi-Adapter Support**: Seamlessly reads and writes version updates to `package.json`, `jsr.json`, and Git tags in a single synchronized operation.
17
+ - **Comprehensive CLI**:
18
+ - `mirror init` to scaffold new configurations.
19
+ - `mirror config` to inspect and validate schemas.
20
+ - `mirror version` to manage the lifecycle (current, next, plan, apply).
21
+ - **Dry-Run & Plan Mode**: Output a transparent execution plan of what will happen before any mutations occur.
22
+ - **Git Automation**: Automated creation of version bumps, commits, tags, and pushes directly from the CLI.
23
+ - **Verbose Error Logging**: Added a new `--verbose` flag across the CLI. By default, errors are now clean, succinct, and user-friendly, with full stack traces hidden behind the verbose flag for better developer experience.
24
+ - **Dynamic NPM Dist-Tags**: The publishing pipeline now dynamically parses prerelease identifiers (e.g., `alpha`, `beta`) and maps them to npm distribution tags automatically.
25
+
26
+ ### ๐Ÿ› Bug Fixes & Improvements
27
+
28
+ - **Graceful Error Handling**: Completely reworked the error propagation from `citty`. Errors such as invalid targets (e.g. typos like `prerlease`) now fail gracefully with clear messages instead of dumping the raw Bun runtime stack trace.
29
+ - **Dirty Worktree Protection**: The apply command now strictly blocks operations on dirty git worktrees unless explicitly bypassed, preventing accidental commits.
30
+ - **Interactive Prompts**: Added safe interactive confirmations for applying versions, with a `--yes` flag to bypass for CI environments.
31
+ - **NPM Authentication Conflict**: Resolved an issue in the GitHub Actions workflow where `npm publish` would fail due to `always-auth` configurations.
32
+
33
+ ### ๐Ÿงน Refactoring & Chores
34
+
35
+ - **CI/CD Modernization**: Migrated away from legacy shell scripts (`build-test-publish.sh`) and Google Cloud Build (`cloudbuild.yaml`) in favor of a robust GitHub Actions workflow (`publish.yml`).
36
+ - **NPM Registry Integration**: Added `actions/setup-node` to the workflow to securely handle NPM registry publishing alongside the primary Bun ecosystem.
37
+ - **Cleaned Up Documentation**: Consolidated the `README.md` to the repository root for better visibility on GitHub, ensuring it is automatically copied to the distribution bundle upon publishing.
38
+
39
+ ---
40
+
41
+ ## [3.0.0-alpha.2] - 2026-05-17
42
+
43
+ ### Added
44
+ - Initial structure for the v3 open-source release.
45
+ - Baseline configuration schema and typescript types.
46
+ - Initial support for JSON and Text output formats (`--format=json|text`).
package/jsr.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@guiho/mirror",
3
- "version": "3.0.0-alpha.9",
3
+ "version": "3.0.0",
4
4
  "exports": "./source/guiho-mirror.ts",
5
5
  "publish": {
6
6
  "include": [
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@guiho/mirror",
3
3
  "description": "Open source project versioning for Bun, npm, JSR, and Git.",
4
- "version": "3.0.0-alpha.9",
4
+ "version": "3.0.0",
5
5
  "type": "module",
6
6
  "main": "./library/guiho-mirror.js",
7
7
  "types": "./library/guiho-mirror.d.ts",
@@ -72,6 +72,7 @@
72
72
  "semver": "^7.8.0"
73
73
  },
74
74
  "devDependencies": {
75
+ "@guiho/mirror": "^3.0.0-alpha.9",
75
76
  "@types/bun": "1.3.3",
76
77
  "@types/semver": "^7.7.1",
77
78
  "typescript": "5.8.2"