@dougis/markdown-lint-mcp 1.0.4 → 1.0.5
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,24 +1,16 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
-
All notable changes to the
|
|
3
|
+
All notable changes to the markdownlint-mcp project will be documented in this file.
|
|
4
4
|
|
|
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
8
|
## [Unreleased]
|
|
9
9
|
|
|
10
|
-
### Fixed
|
|
11
|
-
- Fixed MCP `lint_markdown` tool error "Unsupported markdownlint API shape" by refactoring
|
|
12
|
-
loader to support ESM subpath imports (`markdownlint/sync`, `markdownlint/promise`)
|
|
13
|
-
with fallback to legacy module-level exports. Resolves GH-16.
|
|
14
|
-
- Resilient markdownlint loading to support both `sync` and promise/callable shapes;
|
|
15
|
-
fixes `*.sync is not a function` runtime errors (GH-7).
|
|
16
|
-
|
|
17
10
|
## [1.0.1] - 2026-01-18
|
|
18
11
|
|
|
19
12
|
### Fixed
|
|
20
|
-
- Correct: Corrected MCP server name to `markdown-lint-mcp` and exported `SERVER_NAME`
|
|
21
|
-
as the single source-of-truth. (see commit 375b899)
|
|
13
|
+
- Correct: Corrected MCP server name to `markdown-lint-mcp` and exported `SERVER_NAME` as the single source-of-truth. (see commit 375b899)
|
|
22
14
|
|
|
23
15
|
### Changed
|
|
24
16
|
- **Node.js Minimum Version**: Increased minimum required version from 16.0.0 to 20.0.0
|
package/dist/utils/logger.js
CHANGED
|
@@ -37,7 +37,7 @@ export function getLogLevel() {
|
|
|
37
37
|
*/
|
|
38
38
|
export function debug(message, meta) {
|
|
39
39
|
if (currentLogLevel <= LogLevel.DEBUG) {
|
|
40
|
-
console.
|
|
40
|
+
console.error(`[DEBUG] ${message}`, meta ? meta : '');
|
|
41
41
|
}
|
|
42
42
|
}
|
|
43
43
|
/**
|
|
@@ -47,7 +47,7 @@ export function debug(message, meta) {
|
|
|
47
47
|
*/
|
|
48
48
|
export function info(message, meta) {
|
|
49
49
|
if (currentLogLevel <= LogLevel.INFO) {
|
|
50
|
-
console.
|
|
50
|
+
console.error(`[INFO] ${message}`, meta ? meta : '');
|
|
51
51
|
}
|
|
52
52
|
}
|
|
53
53
|
/**
|
package/dist/utils/logger.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"logger.js","sourceRoot":"","sources":["../../src/utils/logger.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH;;GAEG;AACH,MAAM,CAAN,IAAY,QAMX;AAND,WAAY,QAAQ;IAClB,yCAAS,CAAA;IACT,uCAAQ,CAAA;IACR,uCAAQ,CAAA;IACR,yCAAS,CAAA;IACT,uCAAQ,CAAA;AACV,CAAC,EANW,QAAQ,KAAR,QAAQ,QAMnB;AAED;;GAEG;AACH,IAAI,eAAe,GAAa,QAAQ,CAAC,IAAI,CAAC;AAE9C;;;GAGG;AACH,MAAM,UAAU,WAAW,CAAC,KAAe;IACzC,eAAe,GAAG,KAAK,CAAC;AAC1B,CAAC;AAED;;;GAGG;AACH,MAAM,UAAU,WAAW;IACzB,OAAO,eAAe,CAAC;AACzB,CAAC;AAED;;;;GAIG;AACH,MAAM,UAAU,KAAK,CAAC,OAAe,EAAE,IAAc;IACnD,IAAI,eAAe,IAAI,QAAQ,CAAC,KAAK,EAAE,CAAC;QACtC,OAAO,CAAC,
|
|
1
|
+
{"version":3,"file":"logger.js","sourceRoot":"","sources":["../../src/utils/logger.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH;;GAEG;AACH,MAAM,CAAN,IAAY,QAMX;AAND,WAAY,QAAQ;IAClB,yCAAS,CAAA;IACT,uCAAQ,CAAA;IACR,uCAAQ,CAAA;IACR,yCAAS,CAAA;IACT,uCAAQ,CAAA;AAC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AC,CAAC,KAAK,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC;IAC1D,CAAC;AACH,CAAC;AAED;;GAEG;AACH,eAAe;IACb,WAAW;IACX,WAAW;IACX,KAAK;IACL,IAAI;IACJ,IAAI;IACJ,KAAK;IACL,QAAQ;CACT,CAAC"}
|
|
@@ -46,7 +46,7 @@ async function tryImportPromiseSubpath(errors) {
|
|
|
46
46
|
}
|
|
47
47
|
/**
|
|
48
48
|
* Check for legacy sync export on the given module candidate.
|
|
49
|
-
* Returns true and logs if found
|
|
49
|
+
* Returns true and logs if found (does not increment fallback counter).
|
|
50
50
|
*/
|
|
51
51
|
function tryLegacySyncExport(candidate, _errors) {
|
|
52
52
|
if (candidate && typeof candidate.sync === 'function') {
|
package/package.json
CHANGED