Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

build(deps): bump remark-validate-links from 13.0.1 to 13.0.2 #244

Merged

Conversation

dependabot[bot]
Copy link
Contributor

@dependabot dependabot bot commented on behalf of github Nov 1, 2024

Bumps remark-validate-links from 13.0.1 to 13.0.2.

Release notes

Sourced from remark-validate-links's releases.

13.0.2

Fix

  • 4791865 Fix support for absolute paths on GitHub

Types

  • ac9a800 Refactor to use @imports

Full Changelog: remarkjs/remark-validate-links@13.0.1...13.0.2

Commits

Dependabot compatibility score

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot merge will merge this PR after your CI passes on it
  • @dependabot squash and merge will squash and merge this PR after your CI passes on it
  • @dependabot cancel merge will cancel a previously requested merge and block automerging
  • @dependabot reopen will reopen this PR if it is closed
  • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
  • @dependabot show <dependency name> ignore conditions will show all of the ignore conditions of the specified dependency
  • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)

Bumps [remark-validate-links](https://github.com/remarkjs/remark-validate-links) from 13.0.1 to 13.0.2.
- [Release notes](https://github.com/remarkjs/remark-validate-links/releases)
- [Commits](remarkjs/remark-validate-links@13.0.1...13.0.2)

---
updated-dependencies:
- dependency-name: remark-validate-links
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot dependabot bot added dependencies Pull requests that update a dependency file javascript Pull requests that update Javascript code labels Nov 1, 2024
@github-actions github-actions bot enabled auto-merge (squash) November 1, 2024 13:11
Copy link

github-actions bot commented Nov 1, 2024

Diff between remark-validate-links 13.0.1 and 13.0.2
diff --git a/license b/license
index v13.0.1..v13.0.2 100644
--- a/license
+++ b/license
@@ -1,5 +1,5 @@
 (The MIT License)
 
-Copyright (c) 2015 Titus Wormer <tituswormer@gmail.com>
+Copyright (c) Titus Wormer <tituswormer@gmail.com>
 
 Permission is hereby granted, free of charge, to any person obtaining
diff --git a/lib/check-files.node.js b/lib/check-files.node.js
index v13.0.1..v13.0.2 100644
--- a/lib/check-files.node.js
+++ b/lib/check-files.node.js
@@ -1,4 +1,4 @@
 /**
- * @typedef {import('./index.js').Landmarks} Landmarks
+ * @import {Landmarks} from './index.js'
  */
 
diff --git a/lib/find-repo.node.js b/lib/find-repo.node.js
index v13.0.1..v13.0.2 100644
--- a/lib/find-repo.node.js
+++ b/lib/find-repo.node.js
@@ -1,5 +1,5 @@
 /**
- * @typedef {import('vfile').VFile} VFile
- * @typedef {import('../index.js').Options} Options
+ * @import {Options} from 'remark-validate-links'
+ * @import {VFile} from 'vfile'
  */
 
diff --git a/lib/index.js b/lib/index.js
index v13.0.1..v13.0.2 100644
--- a/lib/index.js
+++ b/lib/index.js
@@ -1,10 +1,7 @@
-/// <reference types="mdast-util-to-hast" />
-
 /**
- * @typedef {import('hosted-git-info').Hosts} Hosts
- * @typedef {import('mdast').Nodes} Nodes
- * @typedef {import('mdast').Resource} Resource
- * @typedef {import('mdast').Root} Root
- * @typedef {import('unified-engine').FileSet} FileSet
+ * @import {Hosts} from 'hosted-git-info'
+ * @import {} from 'mdast-util-to-hast'
+ * @import {Nodes, Resource, Root} from 'mdast'
+ * @import {FileSet} from 'unified-engine'
  */
 
@@ -110,4 +107,6 @@
  * @property {string | null | undefined} [hostname]
  *   Domain of URLs (example: `'github.com'`, `'bitbucket.org'`).
+ * @property {boolean | null | undefined} [resolveAbsolutePathsInRepo]
+ *   Whether absolute paths (`/x/y/z.md`) resolve relative to a repo.
  * @property {boolean | null | undefined} [lines]
  *   Whether lines in files can be linked.
@@ -231,4 +230,8 @@
           }
 
+          if (info.type === 'github') {
+            config.resolveAbsolutePathsInRepo = true
+          }
+
           if (info.type in topAnchors) {
             config.topAnchor = topAnchors[info.type]
@@ -420,7 +423,7 @@
           }
 
-          // To do: test for no readme in directory.
+          // To do: test for no readme in folder.
 
-          // Else, there’s no readme that we can parse, so add the directory.
+          // Else, there’s no readme that we can parse, so add the folder.
           if (file) {
             filePath = path.join(filePath, file)
@@ -636,5 +639,5 @@
 // eslint-disable-next-line complexity
 function urlToPath(value, state, type) {
-  // Absolute paths: `/wooorm/test/blob/main/directory/example.md`.
+  // Absolute paths: `/folder/example.md`.
   if (value.charAt(0) === slash) {
     if (!state.urlConfig.hostname) {
@@ -642,6 +645,11 @@
     }
 
+    const pathname =
+      state.urlConfig.resolveAbsolutePathsInRepo && state.urlConfig.prefix
+        ? state.urlConfig.prefix + 'main' + value
+        : value
+
     // Create a URL.
-    value = https + slashes + state.urlConfig.hostname + value
+    value = https + slashes + state.urlConfig.hostname + pathname
   }
 
@@ -653,5 +661,5 @@
   } catch {}
 
-  // URLs: `https://github.com/wooorm/test/blob/main/directory/example.md`.
+  // URLs: `https://github.com/wooorm/test/blob/main/folder/example.md`.
   if (url && state.root) {
     // Exit if we don’t have hosted Git info or this is not a URL to the repo.
@@ -670,5 +678,5 @@
 
     // Things get interesting here: branches: `foo/bar/baz` could be `baz` on
-    // the `foo/bar` branch, or, `baz` in the `bar` directory on the `foo`
+    // the `foo/bar` branch, or, `baz` in the `bar` folder on the `foo`
     // branch.
     // Currently, we’re ignoring this and just not supporting branches.
diff --git a/package.json b/package.json
index v13.0.1..v13.0.2 100644
--- a/package.json
+++ b/package.json
@@ -1,55 +1,14 @@
 {
-  "name": "remark-validate-links",
-  "version": "13.0.1",
-  "description": "remark plugin to validate links to headings and files",
-  "license": "MIT",
-  "keywords": [
-    "file",
-    "heading",
-    "link",
-    "markdown",
-    "mdast",
-    "plugin",
-    "reference",
-    "remark",
-    "remark-plugin",
-    "unified",
-    "validate"
-  ],
-  "repository": "remarkjs/remark-validate-links",
+  "author": "Titus Wormer <tituswormer@gmail.com> (https://wooorm.com)",
   "bugs": "https://github.com/remarkjs/remark-validate-links/issues",
-  "funding": {
-    "type": "opencollective",
-    "url": "https://opencollective.com/unified"
-  },
-  "author": "Titus Wormer <tituswormer@gmail.com> (https://wooorm.com)",
   "contributors": [
-    "Titus Wormer <tituswormer@gmail.com> (https://wooorm.com)",
+    "Andrew Petro <andrew.w.petro@gmail.com>",
+    "Anton Rybochkin <anton.rybochkin@axibase.com>",
     "Diogo Nunes <dialex.nunes@gmail.com>",
     "Jonathan Haines <jonno.haines@gmail.com>",
     "Merlijn Vos <merlijn@soverin.net>",
-    "Andrew Petro <andrew.w.petro@gmail.com>",
-    "wangshijun <wangshijun2010@gmail.com>",
-    "Anton Rybochkin <anton.rybochkin@axibase.com>"
+    "Titus Wormer <tituswormer@gmail.com> (https://wooorm.com)",
+    "wangshijun <wangshijun2010@gmail.com>"
   ],
-  "sideEffects": false,
-  "type": "module",
-  "exports": "./index.js",
-  "imports": {
-    "#check-files": {
-      "node": "./lib/check-files.node.js",
-      "default": "./lib/check-files.default.js"
-    },
-    "#find-repo": {
-      "node": "./lib/find-repo.node.js",
-      "default": "./lib/find-repo.default.js"
-    }
-  },
-  "files": [
-    "lib/",
-    "index.d.ts.map",
-    "index.d.ts",
-    "index.js"
-  ],
   "dependencies": {
     "@types/hosted-git-info": "^3.0.0",
@@ -65,11 +24,12 @@
     "vfile": "^6.0.0"
   },
+  "description": "remark plugin to validate links to headings and files",
   "devDependencies": {
-    "@types/node": "^20.0.0",
-    "c8": "^9.0.0",
+    "@types/node": "^22.0.0",
+    "c8": "^10.0.0",
     "prettier": "^3.0.0",
     "remark": "^15.0.0",
     "remark-cli": "^12.0.0",
-    "remark-preset-wooorm": "^9.0.0",
+    "remark-preset-wooorm": "^10.0.0",
     "strip-ansi": "^7.0.0",
     "to-vfile": "^8.0.0",
@@ -77,15 +37,42 @@
     "typescript": "^5.0.0",
     "vfile-sort": "^4.0.0",
-    "xo": "^0.58.0"
+    "xo": "^0.59.0"
   },
-  "scripts": {
-    "build": "tsc --build --clean && tsc --build && type-coverage",
-    "#": "remark . --frail --output --quiet",
-    "format": "prettier . --log-level warn --write && xo --fix",
-    "prepack": "npm run build && npm run format",
-    "test": "npm run build && npm run format && npm run test-coverage",
-    "test-api": "node --conditions development test/index.js",
-    "test-coverage": "c8 --100 --reporter lcov npm run test-api"
+  "exports": "./index.js",
+  "files": [
+    "lib/",
+    "index.d.ts.map",
+    "index.d.ts",
+    "index.js"
+  ],
+  "funding": {
+    "type": "opencollective",
+    "url": "https://opencollective.com/unified"
   },
+  "imports": {
+    "#check-files": {
+      "node": "./lib/check-files.node.js",
+      "default": "./lib/check-files.default.js"
+    },
+    "#find-repo": {
+      "node": "./lib/find-repo.node.js",
+      "default": "./lib/find-repo.default.js"
+    }
+  },
+  "keywords": [
+    "file",
+    "heading",
+    "link",
+    "markdown",
+    "mdast",
+    "plugin",
+    "reference",
+    "remark-plugin",
+    "remark",
+    "unified",
+    "validate"
+  ],
+  "license": "MIT",
+  "name": "remark-validate-links",
   "prettier": {
     "bracketSpacing": false,
@@ -101,10 +88,19 @@
     ]
   },
+  "repository": "remarkjs/remark-validate-links",
+  "scripts": {
+    "build": "tsc --build --clean && tsc --build && type-coverage",
+    "format": "remark --frail --output --quiet -- . && prettier --log-level warn --write -- . && xo --fix",
+    "test-api": "node --conditions development test/index.js",
+    "test-coverage": "c8 --100 --reporter lcov npm run test-api",
+    "test": "npm run build && npm run format && npm run test-coverage"
+  },
+  "sideEffects": false,
   "typeCoverage": {
     "atLeast": 100,
-    "detail": true,
-    "ignoreCatch": true,
     "strict": true
   },
+  "type": "module",
+  "version": "13.0.2",
   "xo": {
     "overrides": [
diff --git a/lib/check-files.node.d.ts.map b/lib/check-files.node.d.ts.map
index v13.0.1..v13.0.2 100644
--- a/lib/check-files.node.d.ts.map
+++ b/lib/check-files.node.d.ts.map
@@ -1,1 +1,1 @@
-{"version":3,"file":"check-files.node.d.ts","sourceRoot":"","sources":["check-files.node.js"],"names":[],"mappings":"AAMA;;;;;;;GAOG;AACH,kFALW,cAAc,MAAM,CAAC,GAEnB,QAAQ,SAAS,CAAC,CAqC9B;wBA/CY,OAAO,YAAY,EAAE,SAAS"}
\ No newline at end of file
+{"version":3,"file":"check-files.node.d.ts","sourceRoot":"","sources":["check-files.node.js"],"names":[],"mappings":"AAMA;;;;;;;GAOG;AACH,sCAPW,SAAS,cAET,aAAa,CAAC,MAAM,CAAC,GAEnB,OAAO,CAAC,SAAS,CAAC,CAqC9B;+BA/C2B,YAAY"}
\ No newline at end of file
diff --git a/lib/find-repo.node.d.ts.map b/lib/find-repo.node.d.ts.map
index v13.0.1..v13.0.2 100644
--- a/lib/find-repo.node.d.ts.map
+++ b/lib/find-repo.node.d.ts.map
@@ -1,1 +1,1 @@
-{"version":3,"file":"find-repo.node.d.ts","sourceRoot":"","sources":["find-repo.node.js"],"names":[],"mappings":"AAWA;;;;;;;GAOG;AACH,+BAPW,KAAK,WAEL,SAAS,OAAO,CAAC,GAEf,QAAQ,CAAC,IAAI,EAAE,MAAM,GAAG,KAAK,GAAG,SAAS,EAAE,IAAI,EAAE,MAAM,CAAC,GAAG,SAAS,CAAC,CA4CjF;oBA3DY,OAAO,OAAO,EAAE,KAAK;sBACrB,OAAO,aAAa,EAAE,OAAO"}
\ No newline at end of file
+{"version":3,"file":"find-repo.node.d.ts","sourceRoot":"","sources":["find-repo.node.js"],"names":[],"mappings":"AAWA;;;;;;;GAOG;AACH,+BAPW,KAAK,WAEL,QAAQ,CAAC,OAAO,CAAC,GAEf,OAAO,CAAC,CAAC,IAAI,EAAE,MAAM,GAAG,KAAK,GAAG,SAAS,EAAE,IAAI,EAAE,MAAM,CAAC,GAAG,SAAS,CAAC,CA4CjF;2BA1DuB,OAAO;6BADL,uBAAuB"}
\ No newline at end of file
diff --git a/lib/index.d.ts.map b/lib/index.d.ts.map
index v13.0.1..v13.0.2 100644
--- a/lib/index.d.ts.map
+++ b/lib/index.d.ts.map
@@ -1,1 +1,1 @@
-{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["index.js"],"names":[],"mappings":"AAqKA;;;;;;;;;;;;;;;GAeG;AACH,sDAPW,SAAS,OAAO,CAAC,GAAG,IAAI,GAAG,SAAS,YAEpC,OAAO,GAAG,IAAI,GAAG,SAAS,UAgBxB,IAAI,QAEJ,KAAK,KAEH,QAAQ,IAAI,CAAC,CAmP3B;oBApbY,OAAO,iBAAiB,EAAE,KAAK;oBAC/B,OAAO,OAAO,EAAE,KAAK;uBACrB,OAAO,OAAO,EAAE,QAAQ;mBACxB,OAAO,OAAO,EAAE,IAAI;sBACpB,OAAO,gBAAgB,EAAE,OAAO;;;;wBAIhC,IAAI,MAAM,EAAE,IAAI,MAAM,EAAE,OAAO,CAAC,CAAC;;;;;;;;;;;;;iBAKhC,MAAM,GAAG,KAAK,GAAG,IAAI,GAAG,SAAS;;;;;;WAOjC,MAAM,GAAG,IAAI,GAAG,SAAS;;;;;;gBAIzB,SAAS,SAAS,CAAC,GAAG,IAAI,GAAG,SAAS;;8BAMzC,MAAM,cACN,cAAc,MAAM,CAAC,YACrB,SAAS,cAAc,CAAC,GAAG,IAAI,GAAG,SAAS,KACzC,MAAM,GAAG,SAAS;;;;;;;;gBAIjB,MAAM,GAAE,IAAI,GAAG,SAAS;;;;;wBAGzB,QAAQ,KAAK,EAAE,QAAQ,CAAC;;;;;;;;cAKvB,MAAM;;;;UAEN,MAAM,GAAG,SAAS;;;;;;;;;UAKlB,KAAK;;;;eAEL,SAAS,SAAS,CAAC;;;;WAEnB,cAAc,SAAS,SAAS,CAAC,CAAC;;;;;;;;;UAKlC,MAAM;;;;UAEN,MAAM;;;;UAEN,MAAM,GAAG,IAAI,GAAG,SAAS;;;;eAEzB,SAAS,SAAS,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;oBAqCnB,MAAM,GAAG,IAAI,GAAG,SAAS;;;;eAEzB,MAAM,GAAG,IAAI,GAAG,SAAS;;;;YAEzB,OAAO,GAAG,IAAI,GAAG,SAAS;;;;;;aAE1B,MAAM,GAAG,IAAI,GAAG,SAAS;;;;gBAIzB,MAAM,GAAG,IAAI,GAAG,SAAS;;sBAYnB,OAAO"}
\ No newline at end of file
+{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["index.js"],"names":[],"mappings":"AAoKA;;;;;;;;;;;;;;;GAeG;AACH,sDAPW,QAAQ,CAAC,OAAO,CAAC,GAAG,IAAI,GAAG,SAAS,YAEpC,OAAO,GAAG,IAAI,GAAG,SAAS,UAgBxB,IAAI,QAEJ,KAAK,KAEH,OAAO,CAAC,IAAI,CAAC,CAuP3B;;;;wBAlbY,GAAG,CAAC,MAAM,EAAE,GAAG,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;;;;;;;;;;;;;iBAKhC,MAAM,GAAG,KAAK,GAAG,IAAI,GAAG,SAAS;;;;;;WAOjC,MAAM,GAAG,IAAI,GAAG,SAAS;;;;;;gBAIzB,QAAQ,CAAC,SAAS,CAAC,GAAG,IAAI,GAAG,SAAS;;8BAMzC,MAAM,cACN,aAAa,CAAC,MAAM,CAAC,YACrB,QAAQ,CAAC,cAAc,CAAC,GAAG,IAAI,GAAG,SAAS,KACzC,MAAM,GAAG,SAAS;;;;;;;;gBAIjB,MAAM,GAAE,IAAI,GAAG,SAAS;;;;;wBAGzB,OAAO,CAAC,KAAK,EAAE,QAAQ,CAAC;;;;;;;;cAKvB,MAAM;;;;UAEN,MAAM,GAAG,SAAS;;;;;;;;;UAKlB,KAAK;;;;eAEL,QAAQ,CAAC,SAAS,CAAC;;;;WAEnB,aAAa,CAAC,QAAQ,CAAC,SAAS,CAAC,CAAC;;;;;;;;;UAKlC,MAAM;;;;UAEN,MAAM;;;;UAEN,MAAM,GAAG,IAAI,GAAG,SAAS;;;;eAEzB,QAAQ,CAAC,SAAS,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;oBAqCnB,MAAM,GAAG,IAAI,GAAG,SAAS;;;;eAEzB,MAAM,GAAG,IAAI,GAAG,SAAS;;;;iCAEzB,OAAO,GAAG,IAAI,GAAG,SAAS;;;;YAE1B,OAAO,GAAG,IAAI,GAAG,SAAS;;;;;;aAE1B,MAAM,GAAG,IAAI,GAAG,SAAS;;;;gBAIzB,MAAM,GAAG,IAAI,GAAG,SAAS;;6BAhHb,gBAAgB;0BADF,OAAO;sBA6H3B,OAAO;2BA7Ha,OAAO;8BAAP,OAAO"}
\ No newline at end of file
diff --git a/readme.md b/readme.md
index v13.0.1..v13.0.2 100644
--- a/readme.md
+++ b/readme.md
@@ -22,22 +22,22 @@
 ## Contents
 
-*   [What is this?](#what-is-this)
-*   [When should I use this?](#when-should-i-use-this)
-*   [Install](#install)
-*   [Use](#use)
-*   [API](#api)
-    *   [`unified().use(remarkValidateLinks[, options])`](#unifieduseremarkvalidatelinks-options)
-    *   [`Options`](#options)
-    *   [`UrlConfig`](#urlconfig)
-*   [Examples](#examples)
-    *   [Example: CLI](#example-cli)
-    *   [Example: CLI in npm scripts](#example-cli-in-npm-scripts)
-*   [Integration](#integration)
-*   [Types](#types)
-*   [Compatibility](#compatibility)
-*   [Security](#security)
-*   [Related](#related)
-*   [Contribute](#contribute)
-*   [License](#license)
+* [What is this?](#what-is-this)
+* [When should I use this?](#when-should-i-use-this)
+* [Install](#install)
+* [Use](#use)
+* [API](#api)
+  * [`unified().use(remarkValidateLinks[, options])`](#unifieduseremarkvalidatelinks-options)
+  * [`Options`](#options)
+  * [`UrlConfig`](#urlconfig)
+* [Examples](#examples)
+  * [Example: CLI](#example-cli)
+  * [Example: CLI in npm scripts](#example-cli-in-npm-scripts)
+* [Integration](#integration)
+* [Types](#types)
+* [Compatibility](#compatibility)
+* [Security](#security)
+* [Related](#related)
+* [Contribute](#contribute)
+* [License](#license)
 
 ## What is this?
@@ -110,6 +110,6 @@
 
 ```js
+import remarkValidateLinks from 'remark-validate-links'
 import {remark} from 'remark'
-import remarkValidateLinks from 'remark-validate-links'
 import {read} from 'to-vfile'
 import {reporter} from 'vfile-reporter'
@@ -154,6 +154,6 @@
 ###### Parameters
 
-*   `options` ([`Options`][api-options], optional)
-    — configuration
+* `options` ([`Options`][api-options], optional)
+  — configuration
 
 ###### Returns
@@ -167,19 +167,19 @@
 ###### Fields
 
-*   `repository` (`string` or `false`, default: detected from Git remote)
-    — URL to hosted Git;
-    if you’re not in a Git repository, you must pass `false`;
-    if the repository resolves to something npm understands as a Git host such
-    as GitHub, GitLab, or Bitbucket, full URLs to that host (say,
-    `https://github.com/remarkjs/remark-validate-links/readme.md#install`) are
-    checked
-*   `root` (`string`, default: local Git folder)
-    — path to Git root folder;
-    if both `root` and `repository` are nullish, the Git root is detected;
-    if `root` is not given but `repository` is, `file.cwd` is used
-*   `urlConfig` ([`UrlConfig`][api-url-config], default: detected from repo)
-    — config on how hosted Git works;
-    `github.com`, `gitlab.com`, or `bitbucket.org` work automatically;
-    otherwise, pass `urlConfig` manually
+* `repository` (`string` or `false`, default: detected from Git remote)
+  — URL to hosted Git;
+  if you’re not in a Git repository, you must pass `false`;
+  if the repository resolves to something npm understands as a Git host such
+  as GitHub, GitLab, or Bitbucket, full URLs to that host (say,
+  `https://github.com/remarkjs/remark-validate-links/readme.md#install`) are
+  checked
+* `root` (`string`, default: local Git folder)
+  — path to Git root folder;
+  if both `root` and `repository` are nullish, the Git root is detected;
+  if `root` is not given but `repository` is, `file.cwd` is used
+* `urlConfig` ([`UrlConfig`][api-url-config], default: detected from repo)
+  — config on how hosted Git works;
+  `github.com`, `gitlab.com`, or `bitbucket.org` work automatically;
+  otherwise, pass `urlConfig` manually
 
 ### `UrlConfig`
@@ -189,17 +189,17 @@
 ###### Fields
 
-*   `headingPrefix` (`string`, optional, example: `'#'`, `'#markdown-header-'`)
-    — prefix of headings
-*   `hostname` (`string`, optional, example: `'github.com'`,
-    `'bitbucket.org'`)
-    — domain of URLs
-*   `lines` (`boolean`, default: `false`)
-    — whether lines in files can be linked
-*   `path` (`string`, optional, example:
-    `'/remarkjs/remark-validate-links/blob/'`,
-    `'/remarkjs/remark-validate-links/src/'`)
-    — path prefix before files
-*   `topAnchor` (`string`, optional, example: `#readme`)
-    — hash to top of readme
+* `headingPrefix` (`string`, optional, example: `'#'`, `'#markdown-header-'`)
+  — prefix of headings
+* `hostname` (`string`, optional, example: `'github.com'`,
+  `'bitbucket.org'`)
+  — domain of URLs
+* `lines` (`boolean`, default: `false`)
+  — whether lines in files can be linked
+* `path` (`string`, optional, example:
+  `'/remarkjs/remark-validate-links/blob/'`,
+  `'/remarkjs/remark-validate-links/src/'`)
+  — path prefix before files
+* `topAnchor` (`string`, optional, example: `#readme`)
+  — hash to top of readme
 
 ###### Notes
@@ -321,12 +321,12 @@
 on nodes:
 
-*   `node.data.hProperties.name` — Used by
-    [`mdast-util-to-hast`][mdast-util-to-hast]
-    to create a `name` attribute, which anchors can link to
-*   `node.data.hProperties.id` — Used by
-    [`mdast-util-to-hast`][mdast-util-to-hast]
-    to create an `id` attribute, which anchors can link to
-*   `node.data.id` — Used potentially in the future by other tools to signal
-    unique identifiers on nodes
+* `node.data.hProperties.name` — Used by
+  [`mdast-util-to-hast`][mdast-util-to-hast]
+  to create a `name` attribute, which anchors can link to
+* `node.data.hProperties.id` — Used by
+  [`mdast-util-to-hast`][mdast-util-to-hast]
+  to create an `id` attribute, which anchors can link to
+* `node.data.id` — Used potentially in the future by other tools to signal
+  unique identifiers on nodes
 
 ## Types
@@ -360,8 +360,8 @@
 ## Related
 
-*   [`remark-lint`][remark-lint]
-    — markdown code style linter
-*   [`remark-lint-no-dead-urls`][remark-lint-no-dead-urls]
-    — check that external links are alive
+* [`remark-lint`][remark-lint]
+  — markdown code style linter
+* [`remark-lint-no-dead-urls`][remark-lint-no-dead-urls]
+  — check that external links are alive
 
 ## Contribute
diff --git a/lib/check-files.node.d.ts b/lib/check-files.node.d.ts
index v13.0.1..v13.0.2 100644
--- a/lib/check-files.node.d.ts
+++ b/lib/check-files.node.d.ts
@@ -7,5 +7,5 @@
  *   Nothing.
  */
-export function checkFiles(landmarks: import("./index.js").Landmarks, references: ReadonlyArray<string>): Promise<undefined>;
-export type Landmarks = import('./index.js').Landmarks;
+export function checkFiles(landmarks: Landmarks, references: ReadonlyArray<string>): Promise<undefined>;
+import type { Landmarks } from './index.js';
 //# sourceMappingURL=check-files.node.d.ts.map
\ No newline at end of file
diff --git a/lib/find-repo.node.d.ts b/lib/find-repo.node.d.ts
index v13.0.1..v13.0.2 100644
--- a/lib/find-repo.node.d.ts
+++ b/lib/find-repo.node.d.ts
@@ -8,5 +8,5 @@
  */
 export function findRepo(file: VFile, options: Readonly<Options>): Promise<[repo: string | false | undefined, root: string] | undefined>;
-export type VFile = import('vfile').VFile;
-export type Options = import('../index.js').Options;
+import type { VFile } from 'vfile';
+import type { Options } from 'remark-validate-links';
 //# sourceMappingURL=find-repo.node.d.ts.map
\ No newline at end of file
diff --git a/index.d.ts b/index.d.ts
index v13.0.1..v13.0.2 100644
--- a/index.d.ts
+++ b/index.d.ts
@@ -1,4 +1,4 @@
 export { default } from "./lib/index.js";
-export type Options = import('./lib/index.js').Options;
-export type UrlConfig = import('./lib/index.js').UrlConfig;
+export type Options = import("./lib/index.js").Options;
+export type UrlConfig = import("./lib/index.js").UrlConfig;
 //# sourceMappingURL=index.d.ts.map
\ No newline at end of file
diff --git a/lib/index.d.ts b/lib/index.d.ts
index v13.0.1..v13.0.2 100644
--- a/lib/index.d.ts
+++ b/lib/index.d.ts
@@ -16,9 +16,4 @@
  */
 export default function remarkValidateLinks(options?: Readonly<Options> | null | undefined, fileSet?: FileSet | null | undefined): (tree: Root, file: VFile) => Promise<void>;
-export type Hosts = import('hosted-git-info').Hosts;
-export type Nodes = import('mdast').Nodes;
-export type Resource = import('mdast').Resource;
-export type Root = import('mdast').Root;
-export type FileSet = import('unified-engine').FileSet;
 /**
  * Landmarks.
@@ -160,4 +155,8 @@
     hostname?: string | null | undefined;
     /**
+     * Whether absolute paths (`/x/y/z.md`) resolve relative to a repo.
+     */
+    resolveAbsolutePathsInRepo?: boolean | null | undefined;
+    /**
      * Whether lines in files can be linked.
      */
@@ -174,4 +173,8 @@
     topAnchor?: string | null | undefined;
 };
+import type { FileSet } from 'unified-engine';
+import type { Root } from 'mdast';
 import { VFile } from 'vfile';
+import type { Nodes } from 'mdast';
+import type { Resource } from 'mdast';
 //# sourceMappingURL=index.d.ts.map
\ No newline at end of file
Size Files
48.0 KB → 48.0 KB (+28 B 🟡) 24 → 24 (±0 🟢)
Command details
npm diff --diff=remark-validate-links@13.0.1 --diff=remark-validate-links@13.0.2 --diff-unified=2

See also the npm diff document.

Reported by ybiquitous/npm-diff-action@v1.6.0 (Node.js 22.11.0 and npm 10.9.0)

@github-actions github-actions bot merged commit 41e467c into main Nov 1, 2024
8 checks passed
@github-actions github-actions bot deleted the dependabot/npm_and_yarn/remark-validate-links-13.0.2 branch November 1, 2024 13:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dependencies Pull requests that update a dependency file javascript Pull requests that update Javascript code
Projects
None yet
Development

Successfully merging this pull request may close these issues.

0 participants