adf2markdown 1.1.1 → 1.2.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.
package/README.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # adf2markdown
2
2
 
3
- ![Tests](https://github.com/fcostarodrigo/adf2md/actions/workflows/test.yml/badge.svg)
3
+ [![Tests](https://img.shields.io/github/actions/workflow/status/fcostarodrigo/adf2md/test.yml?branch=main&label=tests)](https://github.com/fcostarodrigo/adf2md/actions/workflows/test.yml)
4
4
 
5
5
  Convert Atlassian ADF (Jira/Confluence) to clean Markdown — a lightweight JS library designed to make Jira tickets readable and understandable by LLMs.
6
6
 
@@ -0,0 +1 @@
1
+ export { adf2markdown, type Adf } from "./src/adf2markdown";
@@ -0,0 +1,16 @@
1
+ interface Mark {
2
+ type: string;
3
+ attrs?: Record<string, unknown>;
4
+ }
5
+ interface Node {
6
+ type: string;
7
+ text?: string;
8
+ content?: Node[];
9
+ marks?: Mark[];
10
+ attrs?: Record<string, unknown>;
11
+ }
12
+ export interface Adf extends Node {
13
+ version: number;
14
+ }
15
+ export declare function adf2markdown(adf: Adf): string;
16
+ export {};
@@ -0,0 +1 @@
1
+ export {};
package/package.json CHANGED
@@ -1,6 +1,7 @@
1
1
  {
2
2
  "name": "adf2markdown",
3
- "version": "1.1.1",
3
+ "version": "1.2.0",
4
+ "description": "Convert Atlassian ADF (Jira/Confluence) to clean Markdown — a lightweight JS library designed to make Jira tickets readable and understandable by LLMs.",
4
5
  "keywords": [
5
6
  "adf",
6
7
  "atlassian",
@@ -25,7 +26,7 @@
25
26
  "default": "./dist/index.js"
26
27
  },
27
28
  "scripts": {
28
- "build": "bun build index.ts --outdir ./dist --format esm --target node --sourcemap=linked && tsc -p tsconfig.json --declaration --declarationMap --emitDeclarationOnly --outDir dist",
29
+ "build": "bun build index.ts --outdir ./dist --format esm --target node --sourcemap=linked && tsc --declaration --emitDeclarationOnly --outDir dist --noEmit false",
29
30
  "check": "bun audit && bun run format:check && bun run knip && bun run lint && bun run typeCheck && bun test",
30
31
  "test": "bun test",
31
32
  "lint": "oxlint",
@@ -37,12 +38,21 @@
37
38
  "knip": "knip"
38
39
  },
39
40
  "devDependencies": {
40
- "@types/bun": "latest",
41
+ "@types/bun": "^1.3.9",
41
42
  "husky": "^9.1.7",
42
- "knip": "^5.83.1",
43
- "oxfmt": "^0.32.0",
44
- "oxlint": "^1.47.0",
43
+ "knip": "^5.85.0",
44
+ "oxfmt": "^0.35.0",
45
+ "oxlint": "^1.50.0",
45
46
  "semantic-release": "^25.0.3",
46
47
  "typescript": "^5.9.3"
48
+ },
49
+ "overrides": {
50
+ "minimatch": ">=10.2.1",
51
+ "tar": ">=7.5.8"
52
+ },
53
+ "knip": {
54
+ "ignore": [
55
+ "src/**/*.test.ts"
56
+ ]
47
57
  }
48
58
  }