markdownlint-cli 0.45.0 → 0.46.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
@@ -142,7 +142,7 @@ To run `markdownlint-cli` as part of a [pre-commit][pre-commit] workflow, add so
142
142
 
143
143
  ```yaml
144
144
  - repo: https://github.com/igorshubovych/markdownlint-cli
145
- rev: v0.45.0
145
+ rev: v0.46.0
146
146
  hooks:
147
147
  - id: markdownlint
148
148
  ```
package/markdownlint.js CHANGED
@@ -6,7 +6,7 @@ import Module from 'node:module';
6
6
  import os from 'node:os';
7
7
  import process from 'node:process';
8
8
  import {program} from 'commander';
9
- import {glob} from 'glob';
9
+ import {globSync} from 'tinyglobby';
10
10
  import {applyFixes} from 'markdownlint';
11
11
  import {lint, readConfig} from 'markdownlint/sync';
12
12
  import rc from 'run-con';
@@ -16,7 +16,7 @@ import jsonpointer from 'jsonpointer';
16
16
  const require = Module.createRequire(import.meta.url);
17
17
  const options = program.opts();
18
18
  // The following two values are copied from package.json (and validated by tests)
19
- const version = '0.45.0';
19
+ const version = '0.46.0';
20
20
  const description = 'MarkdownLint Command Line Interface';
21
21
 
22
22
  function markdownItFactory() {
@@ -93,7 +93,9 @@ function readConfiguration(userConfigFile) {
93
93
  function prepareFileList(files, fileExtensions, previousResults) {
94
94
  const globOptions = {
95
95
  dot: Boolean(options.dot),
96
- nodir: true
96
+ onlyFiles: true,
97
+ expandDirectories: false,
98
+ caseSensitiveMatch: !(os.platform() === 'win32' || os.platform() === 'darwin')
97
99
  };
98
100
  let extensionGlobPart = '*.';
99
101
  if (!fileExtensions) {
@@ -115,7 +117,7 @@ function prepareFileList(files, fileExtensions, previousResults) {
115
117
  return previousResults.filter(fileInfo => matcher.match(fileInfo.absolute)).map(fileInfo => fileInfo.original);
116
118
  }
117
119
 
118
- return glob.sync(posixPath(path.join(file, '**', extensionGlobPart)), globOptions);
120
+ return globSync(posixPath(path.join(file, '**', extensionGlobPart)), globOptions);
119
121
  }
120
122
  } catch {
121
123
  // Not a directory, not a file, may be a glob
@@ -124,7 +126,7 @@ function prepareFileList(files, fileExtensions, previousResults) {
124
126
  return previousResults.filter(fileInfo => matcher.match(fileInfo.absolute)).map(fileInfo => fileInfo.original);
125
127
  }
126
128
 
127
- return glob.sync(file, globOptions);
129
+ return globSync(file, globOptions);
128
130
  }
129
131
 
130
132
  // File
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "markdownlint-cli",
3
- "version": "0.45.0",
3
+ "version": "0.46.0",
4
4
  "description": "MarkdownLint Command Line Interface",
5
5
  "type": "module",
6
6
  "main": "markdownlint.js",
@@ -38,23 +38,24 @@
38
38
  },
39
39
  "homepage": "https://github.com/igorshubovych/markdownlint-cli#readme",
40
40
  "dependencies": {
41
- "commander": "~13.1.0",
42
- "glob": "~11.0.2",
43
- "ignore": "~7.0.4",
44
- "js-yaml": "~4.1.0",
41
+ "commander": "~14.0.2",
42
+ "deep-extend": "~0.6.0",
43
+ "ignore": "~7.0.5",
44
+ "js-yaml": "~4.1.1",
45
45
  "jsonc-parser": "~3.3.1",
46
46
  "jsonpointer": "~5.0.1",
47
- "markdownlint": "~0.38.0",
47
+ "markdownlint": "~0.39.0",
48
48
  "markdown-it": "~14.1.0",
49
- "minimatch": "~10.0.1",
49
+ "minimatch": "~10.1.1",
50
50
  "run-con": "~1.3.2",
51
- "smol-toml": "~1.3.4"
51
+ "smol-toml": "~1.5.2",
52
+ "tinyglobby": "~0.2.15"
52
53
  },
53
54
  "devDependencies": {
54
- "ava": "^6.2.0",
55
+ "ava": "^6.4.1",
55
56
  "markdownlint-cli-local-test-rule": "./test/custom-rules/markdownlint-cli-local-test-rule",
56
- "nano-spawn": "^1.0.1",
57
- "xo": "^0.60.0"
57
+ "nano-spawn": "^2.0.0",
58
+ "xo": "^1.2.3"
58
59
  },
59
60
  "xo": {
60
61
  "prettier": true,