mdat 2.3.1 → 2.3.3

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/dist/bin/cli.js CHANGED
@@ -42,7 +42,7 @@ function deepMergeDefined(...objects) {
42
42
  //#endregion
43
43
  //#region package.json
44
44
  var name = "mdat";
45
- var version = "2.3.1";
45
+ var version = "2.3.3";
46
46
 
47
47
  //#endregion
48
48
  //#region src/lib/log.ts
@@ -186,7 +186,7 @@ const readmeMetadataTemplate = defineTemplate((context) => {
186
186
  issuesUrl: codemeta.issueTracker,
187
187
  license: helpers.toBasicLicense(helpers.firstOf(helpers.ensureArray(codemeta.license))),
188
188
  licenseFilePath: licenseFileData?.source,
189
- licenseUrl: licenseFileData?.data.spdxUrl,
189
+ licenseUrl: licenseFileData?.data.match?.spdxUrl,
190
190
  name: codemeta.name,
191
191
  operatingSystem: codemeta.operatingSystem,
192
192
  peerDependencies,
@@ -1,6 +1,5 @@
1
1
  import { Rule, Rule as Rule$1 } from "remark-mdat";
2
2
  import { ILogBasic, ILogLayer } from "lognow";
3
- import * as _$metascope from "metascope";
4
3
  import { MetadataContext } from "metascope";
5
4
  import { VFile } from "vfile";
6
5
 
@@ -152,7 +151,7 @@ declare function checkString(markdown: string, config?: ConfigToLoad, options?:
152
151
  * @throws {Error} If no package.json is found
153
152
  */
154
153
  declare function getContextMetadata(): Promise<MetadataContext>;
155
- declare const readmeMetadataTemplate: _$metascope.Template<{
154
+ declare const readmeMetadataTemplate: import("metascope").Template<{
156
155
  author: string | undefined;
157
156
  authorUrl: string | undefined;
158
157
  bin: string[] | undefined;
package/dist/lib/index.js CHANGED
@@ -182,7 +182,7 @@ const readmeMetadataTemplate = defineTemplate((context) => {
182
182
  issuesUrl: codemeta.issueTracker,
183
183
  license: helpers.toBasicLicense(helpers.firstOf(helpers.ensureArray(codemeta.license))),
184
184
  licenseFilePath: licenseFileData?.source,
185
- licenseUrl: licenseFileData?.data.spdxUrl,
185
+ licenseUrl: licenseFileData?.data.match?.spdxUrl,
186
186
  name: codemeta.name,
187
187
  operatingSystem: codemeta.operatingSystem,
188
188
  peerDependencies,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mdat",
3
- "version": "2.3.1",
3
+ "version": "2.3.3",
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",
@@ -43,14 +43,14 @@
43
43
  "dist/*"
44
44
  ],
45
45
  "dependencies": {
46
- "@clack/prompts": "^1.2.0",
46
+ "@clack/prompts": "^1.4.0",
47
47
  "cosmiconfig": "^9.0.1",
48
48
  "cosmiconfig-typescript-loader": "^6.3.0",
49
49
  "deepmerge-ts": "^7.1.5",
50
50
  "globby": "^16.2.0",
51
- "lognow": "^0.6.1",
51
+ "lognow": "^0.6.2",
52
52
  "mdast-util-toc": "^7.1.0",
53
- "metascope": "^0.7.0",
53
+ "metascope": "^0.7.5",
54
54
  "path-type": "^6.0.0",
55
55
  "picocolors": "^1.1.1",
56
56
  "plur": "^6.0.0",
@@ -58,36 +58,36 @@
58
58
  "pretty-ms": "^9.3.0",
59
59
  "remark": "^15.0.1",
60
60
  "remark-gfm": "^4.0.1",
61
- "remark-mdat": "^2.2.1",
61
+ "remark-mdat": "^2.2.3",
62
62
  "to-vfile": "^8.0.0",
63
63
  "type-fest": "^5.6.0",
64
64
  "unified-engine": "^11.2.2",
65
65
  "untildify": "^6.0.0",
66
66
  "vfile": "^6.0.3",
67
67
  "yargs": "^18.0.0",
68
- "zod": "^4.3.6"
68
+ "zod": "^4.4.3"
69
69
  },
70
70
  "devDependencies": {
71
71
  "@arethetypeswrong/core": "^0.18.2",
72
- "@kitschpatrol/shared-config": "^7.5.2",
72
+ "@kitschpatrol/shared-config": "^7.6.0",
73
73
  "@types/mdast": "^4.0.4",
74
74
  "@types/node": "~22.17.2",
75
75
  "@types/unist": "^3.0.3",
76
76
  "@types/yargs": "^17.0.35",
77
77
  "@vitest/coverage-v8": "4.1.2",
78
- "bumpp": "^11.0.1",
78
+ "bumpp": "^11.1.0",
79
79
  "execa": "^9.6.1",
80
80
  "mdat-plugin-cli-help": "^3.0.0",
81
81
  "mdat-plugin-example": "^2.0.0",
82
82
  "mdat-plugin-tldraw": "^2.0.2",
83
- "nanoid": "^5.1.9",
83
+ "nanoid": "^5.1.11",
84
84
  "prettier": "^3.8.3",
85
- "publint": "^0.3.18",
85
+ "publint": "^0.3.21",
86
86
  "shx": "^0.4.0",
87
- "tsdown": "^0.21.10",
87
+ "tsdown": "^0.22.0",
88
88
  "typescript": "~6.0.3",
89
89
  "unplugin-raw": "^0.7.0",
90
- "vitest": "^4.1.5"
90
+ "vitest": "^4.1.6"
91
91
  },
92
92
  "peerDependencies": {
93
93
  "prettier": "^3.0.0"
@@ -114,7 +114,7 @@
114
114
  "coverage": "vitest --coverage --run",
115
115
  "fix": "ksc fix",
116
116
  "lint": "ksc lint",
117
- "release": "bumpp --commit 'Release: %s' && pnpm build && NPM_AUTH_TOKEN=$(op read 'op://Personal/npm/token') && pnpm publish",
117
+ "release": "bumpp --commit 'Release: %s' && pnpm build && NPM_AUTH_TOKEN=$(op read 'op://Personal/npm/token') pnpm publish",
118
118
  "test": "vitest run"
119
119
  }
120
120
  }
package/readme.md CHANGED
@@ -7,7 +7,7 @@
7
7
  <!-- badges -->
8
8
 
9
9
  [![NPM Package mdat](https://img.shields.io/npm/v/mdat.svg)](https://npmjs.com/package/mdat)
10
- [![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)
10
+ [![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/license/mit/)
11
11
  [![CI](https://github.com/kitschpatrol/mdat/actions/workflows/ci.yml/badge.svg)](https://github.com/kitschpatrol/mdat/actions/workflows/ci.yml)
12
12
 
13
13
  <!-- /badges -->