mdat 1.0.3 → 1.1.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.
@@ -0,0 +1,9 @@
1
+ /**
2
+ * This file is vendored with modification from https://github.com/sindresorhus/is-executable
3
+ * to work around a "[DEP0176] DeprecationWarning: fs.X_OK is deprecated, use fs.constants.X_OK instead"
4
+ * error from Node.
5
+ */
6
+ /**
7
+ * Check if a file is executable (async).
8
+ */
9
+ export declare function isExecutable(filePath: string): Promise<boolean>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mdat",
3
- "version": "1.0.3",
3
+ "version": "1.1.0",
4
4
  "description": "CLI tool and TypeScript library implementing the Markdown Autophagic Template (MDAT) system. MDAT lets you use comments as dynamic content templates in Markdown files, making it easy to generate and update readme boilerplate.",
5
5
  "keywords": [
6
6
  "mdat",
@@ -37,10 +37,10 @@
37
37
  "dist/*"
38
38
  ],
39
39
  "dependencies": {
40
- "@clack/prompts": "^0.10.1",
41
- "@kitschpatrol/tldraw-cli": "^4.7.0",
40
+ "@clack/prompts": "^0.11.0",
41
+ "@kitschpatrol/tldraw-cli": "^5.0.0",
42
42
  "@types/mdast": "^4.0.4",
43
- "@types/node": "^18.19.123",
43
+ "@types/node": "^20.19.17",
44
44
  "@types/unist": "^3.0.3",
45
45
  "@types/which": "^3.0.4",
46
46
  "@types/yargs": "^17.0.33",
@@ -49,49 +49,49 @@
49
49
  "execa": "^9.6.0",
50
50
  "globby": "^14.1.0",
51
51
  "read-pkg": "^9.0.1",
52
- "remark-mdat": "^1.0.5",
53
- "type-fest": "^4.41.0",
52
+ "remark-mdat": "^1.1.1",
53
+ "type-fest": "^5.0.1",
54
54
  "unified-engine": "^11.2.2",
55
55
  "vfile": "^6.0.3",
56
56
  "which": "^5.0.0"
57
57
  },
58
58
  "devDependencies": {
59
- "@kitschpatrol/shared-config": "^5.5.0",
59
+ "@kitschpatrol/shared-config": "^5.7.0",
60
60
  "bumpp": "^10.2.3",
61
61
  "chevrotain": "^11.0.3",
62
- "find-up": "^7.0.0",
63
- "is-executable": "^2.0.1",
62
+ "find-up": "^8.0.0",
64
63
  "mdast-util-toc": "^7.1.0",
65
- "nanoid": "^5.1.5",
64
+ "nanoid": "^5.1.6",
65
+ "package-directory": "^8.1.0",
66
66
  "package-up": "^5.0.0",
67
67
  "path-type": "^6.0.0",
68
68
  "picocolors": "^1.1.1",
69
- "pkg-dir": "^8.0.0",
70
69
  "plur": "^5.1.0",
71
- "pretty-bytes": "^7.0.1",
72
- "pretty-ms": "^9.2.0",
70
+ "pretty-bytes": "^7.1.0",
71
+ "pretty-ms": "^9.3.0",
73
72
  "remark": "^15.0.1",
74
73
  "remark-gfm": "^4.0.1",
75
74
  "to-vfile": "^8.0.0",
76
- "tsup": "^8.5.0",
77
- "typescript": "~5.8.3",
78
- "untildify": "^5.0.0",
75
+ "tsdown": "^0.15.5",
76
+ "typescript": "~5.9.2",
77
+ "unplugin-raw": "^0.6.3",
78
+ "untildify": "^6.0.0",
79
79
  "vitest": "^3.2.4",
80
80
  "yargs": "^17.7.2",
81
81
  "zod": "^3.25.76"
82
82
  },
83
83
  "engines": {
84
- "node": "^18.19.0 || >=20.11.0"
84
+ "node": ">=20.19.0"
85
85
  },
86
86
  "publishConfig": {
87
87
  "access": "public"
88
88
  },
89
89
  "scripts": {
90
- "build": "tsup && tsc -p tsconfig.build.lib.json",
90
+ "build": "tsdown && tsc -p tsconfig.build.lib.json",
91
91
  "clean": "git rm -f pnpm-lock.yaml ; git clean -fdX",
92
92
  "dev": "pnpm run test",
93
- "fix": "kpi fix",
94
- "lint": "kpi lint",
93
+ "fix": "ksc fix",
94
+ "lint": "ksc lint",
95
95
  "release": "bumpp --commit 'Release: %s' && pnpm run build && pnpm publish --otp $(op read 'op://Personal/Npmjs/one-time password?attribute=otp')",
96
96
  "test": "vitest --no-file-parallelism"
97
97
  }
package/readme.md CHANGED
@@ -745,7 +745,7 @@ See the [Examples section](https://github.com/kitschpatrol/remark-mdat#examples)
745
745
 
746
746
  | File | Original | Gzip | Brotli |
747
747
  | ------------ | -------- | ------- | ------ |
748
- | package.json | 2.6 kB | 1.2 kB | 998 B |
748
+ | package.json | 2.6 kB | 1.1 kB | 987 B |
749
749
  | readme.md | 57.5 kB | 11.4 kB | 9.1 kB |
750
750
 
751
751
  <!-- /size-table -->