@coflyn/mori 1.2.1 → 1.2.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.
package/CHANGELOG.md CHANGED
@@ -5,6 +5,11 @@ All notable changes to the Mori CLI (`@coflyn/mori`) will be documented in this
5
5
  The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
6
6
  and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
7
7
 
8
+ ## [1.2.2] - 2026-11-17
9
+
10
+ ### Fixed
11
+ - **Dynamic CLI Version Indicator**: Read CLI version dynamically from `package.json` instead of a hardcoded string, preventing stuck version labels and update notification loops.
12
+
8
13
  ## [1.2.1] - 2026-11-17
9
14
 
10
15
  ### Fixed
package/index.js CHANGED
@@ -3,6 +3,7 @@
3
3
  import fs from "fs";
4
4
  import os from "os";
5
5
  import path from "path";
6
+ import { fileURLToPath } from "url";
6
7
  import { parseArgs } from "node:util";
7
8
  import * as p from "@clack/prompts";
8
9
  import pc from "picocolors";
@@ -53,7 +54,14 @@ import {
53
54
  downloadScraprEngineVersion,
54
55
  } from "./engine.js";
55
56
 
56
- const APP_VERSION = "1.2.0";
57
+ const __dirname = path.dirname(fileURLToPath(import.meta.url));
58
+ let APP_VERSION = "1.2.2";
59
+ try {
60
+ const pkg = JSON.parse(
61
+ fs.readFileSync(path.join(__dirname, "package.json"), "utf8"),
62
+ );
63
+ if (pkg.version) APP_VERSION = pkg.version;
64
+ } catch (_) {}
57
65
 
58
66
  function isNewerVersion(latest, current) {
59
67
  if (!latest || !current) return false;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@coflyn/mori",
3
- "version": "1.2.1",
3
+ "version": "1.2.2",
4
4
  "description": "Universal media downloader CLI. Save anything, from anywhere. No watermarks. No tracking.",
5
5
  "type": "module",
6
6
  "bin": {