@visulima/ansi 4.0.0-alpha.14 → 4.0.0-alpha.16

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
@@ -1,3 +1,45 @@
1
+ ## @visulima/ansi [4.0.0-alpha.16](https://github.com/visulima/visulima/compare/@visulima/ansi@4.0.0-alpha.15...@visulima/ansi@4.0.0-alpha.16) (2026-06-04)
2
+
3
+ ### Bug Fixes
4
+
5
+ * **ansi:** 3 bug fixes ([5b6977c](https://github.com/visulima/visulima/commit/5b6977caa2479f094ec4e04125127e06275c3aae))
6
+ * **lint:** clear pre-existing eslint rot across packages ([#674](https://github.com/visulima/visulima/issues/674)) ([5354253](https://github.com/visulima/visulima/commit/5354253b163bd50bcefaf8a3fddf831bdb5df32b))
7
+
8
+ ### Miscellaneous Chores
9
+
10
+ * apply eslint + prettier autofixes across packages ([c1bb784](https://github.com/visulima/visulima/commit/c1bb7848a0d93d0dfe2960c77e3cda22239c79a0))
11
+
12
+ ### Tests
13
+
14
+ * **ansi:** cover cursor moves, iterm2 file data, xterm/title guards, device-attribute reports and barrel ([13cd284](https://github.com/visulima/visulima/commit/13cd2848b0927d8150b5c8e8a2c24526ff3bdc57))
15
+
16
+
17
+ ### Dependencies
18
+
19
+ * **@visulima/colorize:** upgraded to 2.0.0-alpha.13
20
+ * **@visulima/path:** upgraded to 3.0.0-alpha.12
21
+
22
+ ## @visulima/ansi [4.0.0-alpha.15](https://github.com/visulima/visulima/compare/@visulima/ansi@4.0.0-alpha.14...@visulima/ansi@4.0.0-alpha.15) (2026-05-27)
23
+
24
+ ### Bug Fixes
25
+
26
+ * **storage-client:** percent-encode user fields in defaultFingerprint ([7c78a0f](https://github.com/visulima/visulima/commit/7c78a0f9512e2a673b941d80839e9f1e86b7b5d0))
27
+
28
+ ### Miscellaneous Chores
29
+
30
+ * **ci-stability:** green CI across vis, native, lint, tests, attw ([#651](https://github.com/visulima/visulima/issues/651)) ([d4eb684](https://github.com/visulima/visulima/commit/d4eb684b5f75c818c9251048c605a0ed54a268e3))
31
+ * sorted package.json ([b47c545](https://github.com/visulima/visulima/commit/b47c545591600fdab17d5cd3a3fbc68b61e199da))
32
+
33
+ ### Tests
34
+
35
+ * **repo:** add dist runtime + types integration tests ([32ee300](https://github.com/visulima/visulima/commit/32ee300b7184117a0ddf9f9d390f75f8932d5ed9))
36
+
37
+
38
+ ### Dependencies
39
+
40
+ * **@visulima/colorize:** upgraded to 2.0.0-alpha.12
41
+ * **@visulima/path:** upgraded to 3.0.0-alpha.11
42
+
1
43
  ## @visulima/ansi [4.0.0-alpha.14](https://github.com/visulima/visulima/compare/@visulima/ansi@4.0.0-alpha.13...@visulima/ansi@4.0.0-alpha.14) (2026-05-20)
2
44
 
3
45
  ### Bug Fixes
@@ -1,27 +1,2 @@
1
- /**
2
- * Creates a clickable hyperlink in the terminal.
3
- *
4
- * This function constructs an ANSI escape sequence that, when printed to a compatible terminal,
5
- * renders as a clickable link. The link's visible text and its target URL are specified
6
- * by the `text` and `url` parameters, respectively.
7
- *
8
- * For information on terminal support for hyperlinks, see this
9
- * [Gist by Egmont Kob](https://gist.github.com/egmontkob/eb114294efbcd5adb1944c9f3cb5feda).
10
- * To programmatically check for hyperlink support in the current environment,
11
- * consider using a library like [`supports-hyperlinks`](https://github.com/jamestalmage/supports-hyperlinks).
12
- * @param text The visible text of the link.
13
- * @param url The URL the link should point to.
14
- * @returns A string representing the ANSI escape sequence for the hyperlink.
15
- * @example
16
- * ```typescript
17
- * import { hyperlink } from "@visulima/ansi/hyperlink"; // Adjust import path as needed
18
- *
19
- * const aLink = hyperlink("Visulima", "https://www.visulima.com");
20
- * console.log(`Visit ${aLink} for more information.`);
21
- * // In a supported terminal, this will output:
22
- * // Visit Visulima for more information. (where "Visulima" is a clickable link)
23
- * ```
24
- * @see {@link https://gist.github.com/egmontkob/eb114294efbcd5adb1944c9f3cb5feda} for supported terminals.
25
- */
26
1
  declare const hyperlink: (text: string, url: string) => string;
27
2
  export { hyperlink as default };
package/dist/hyperlink.js CHANGED
@@ -1 +1 @@
1
- var i=Object.defineProperty;var n=(e,a)=>i(e,"name",{value:a,configurable:!0});import{O as o,S as r,B as t}from"./packem_shared/constants-D12jy2Zh.js";var s=Object.defineProperty,f=n((e,a)=>s(e,"name",{value:a,configurable:!0}),"n");const u=f((e,a)=>[o,"8",r,r,a,t,e,o,"8",r,r,t].join(""),"hyperlink");export{u as default};
1
+ var i=Object.defineProperty;var n=(e,r)=>i(e,"name",{value:r,configurable:!0});import{O as t,S as a,B as o}from"./packem_shared/constants-D12jy2Zh.js";var s=Object.defineProperty,u=n((e,r)=>s(e,"name",{value:r,configurable:!0}),"n");const c=/[]/g,v=u((e,r)=>{const l=r.replace(c,""),p=e.replace(c,"");return[t,"8",a,a,l,o,p,t,"8",a,a,o].join("")},"hyperlink");export{v as default};
package/dist/strip.js CHANGED
@@ -1 +1 @@
1
- var n=Object.defineProperty;var u=(e,r)=>n(e,"name",{value:r,configurable:!0});var t=Object.defineProperty,c=u((e,r)=>t(e,"name",{value:r,configurable:!0}),"e");function a({onlyFirst:e=!1}={}){const r="(?:\\u001B\\][\\s\\S]*?(?:\\u0007|\\u001B\\u005C|\\u009C))|[\\u001B\\u009B][[\\]()#;?]*(?:\\d{1,4}(?:[;:]\\d{0,4})*)?[\\dA-PR-TZcf-nq-uy=><~]";return new RegExp(r,e?void 0:"g")}u(a,"t");c(a,"ansiRegex");var o=Object.defineProperty,i=u((e,r)=>o(e,"name",{value:r,configurable:!0}),"r");const s=a(),l=/\u001B\]0;.*\u0007/,d=i(e=>e.replace(l,"").replace(s,""),"strip");export{d as default};
1
+ var n=Object.defineProperty;var u=(e,r)=>n(e,"name",{value:r,configurable:!0});var t=Object.defineProperty,c=u((e,r)=>t(e,"name",{value:r,configurable:!0}),"e");function a({onlyFirst:e=!1}={}){const r="(?:\\u001B\\][\\s\\S]*?(?:\\u0007|\\u001B\\u005C|\\u009C))|[\\u001B\\u009B][[\\]()#;?]*(?:\\d{1,4}(?:[;:]\\d{0,4})*)?[\\dA-PR-TZcf-nq-uy=><~]";return new RegExp(r,e?void 0:"g")}u(a,"t");c(a,"ansiRegex");var o=Object.defineProperty,s=u((e,r)=>o(e,"name",{value:r,configurable:!0}),"r");const i=a(),l=/\]0;[\s\S]*?/g,d=s(e=>e.replace(l,"").replace(i,""),"strip");export{d as default};
package/dist/termcap.js CHANGED
@@ -1 +1 @@
1
- var c=Object.defineProperty;var i=(e,t)=>c(e,"name",{value:t,configurable:!0});import{D as T,a as u,S as f}from"./packem_shared/constants-D12jy2Zh.js";var l=Object.defineProperty,s=i((e,t)=>l(e,"name",{value:t,configurable:!0}),"o");const p=s(e=>{let t="";for(let r=0;r<e.length;r+=1){const o=e.codePointAt(r);if(o===void 0)continue;const n=o.toString(16).toUpperCase();t+=n.length===1?`0${n}`:n}return t},"stringToHex"),a=s((...e)=>{if(e.length===0)return"";const t=e.map(r=>p(r));return`${T}+q${t.join(f)}${u}`},"XTGETTCAP"),P=a,S=a;export{a as XTGETTCAP,P as requestTermcap,S as requestTerminfo};
1
+ var s=Object.defineProperty;var n=(e,r)=>s(e,"name",{value:r,configurable:!0});import{D as T,a as c,S as p}from"./packem_shared/constants-D12jy2Zh.js";var i=Object.defineProperty,o=n((e,r)=>i(e,"name",{value:r,configurable:!0}),"n");const u=o(e=>{let r="";for(const t of new TextEncoder().encode(e))r+=t.toString(16).toUpperCase().padStart(2,"0");return r},"stringToHex"),a=o((...e)=>{if(e.length===0)return"";const r=e.map(t=>u(t));return`${T}+q${r.join(p)}${c}`},"XTGETTCAP"),S=a,d=a;export{a as XTGETTCAP,S as requestTermcap,d as requestTerminfo};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@visulima/ansi",
3
- "version": "4.0.0-alpha.14",
3
+ "version": "4.0.0-alpha.16",
4
4
  "description": "ANSI escape codes for some terminal swag.",
5
5
  "keywords": [
6
6
  "alternative-screen",
@@ -40,9 +40,7 @@
40
40
  "xterm"
41
41
  ],
42
42
  "homepage": "https://visulima.com/packages/ansi",
43
- "bugs": {
44
- "url": "https://github.com/visulima/visulima/issues"
45
- },
43
+ "bugs": "https://github.com/visulima/visulima/issues",
46
44
  "repository": {
47
45
  "type": "git",
48
46
  "url": "git+https://github.com/visulima/visulima.git",