Skip to content

chore(deps): update remark (major)#83

Open
renovate[bot] wants to merge 1 commit intomasterfrom
renovate/major-remark
Open

chore(deps): update remark (major)#83
renovate[bot] wants to merge 1 commit intomasterfrom
renovate/major-remark

Conversation

@renovate
Copy link
Contributor

@renovate renovate bot commented Dec 3, 2023

This PR contains the following updates:

Package Change Age Confidence
remark-cli (source) ^11.0.0^12.0.0 age confidence
remark-preset-lint-consistent (source) ^5.0.0^6.0.0 age confidence
remark-preset-lint-recommended (source) ^6.0.0^7.0.0 age confidence
remark-validate-links ^12.0.0^13.0.0 age confidence

Release Notes

remarkjs/remark (remark-cli)

v12.0.1

Compare Source

v12.0.0

Compare Source

(see 15.0.0)

remarkjs/remark-lint (remark-preset-lint-consistent)

v6.0.1

Compare Source

v6.0.0

Compare Source

Hi! 👋

With 6.0.0, rules are no longer in the remark-lint package. In fact, remark lint doesn’t do much, other than controlling messages.

Rules are now each in their own package. You don’t have to npm install and .use() each package though, you can install and use presets instead. If you find yourself installing many rules to update, maybe create a preset too?

By giving more power to presets over the remark-lint package itself, I think rules, especially external rules, will prosper!

First off, if “presets” changed, the below diff shows how you can update:

 "dependencies": {
   "remark-cli": "^0.0.0",
   "remark-lint": "^0.0.0",
   "remark-preset-lint-consistent": "^0.0.0",
   // ...
 },
 "remarkConfig": {
-  "presets": ["lint-consistent"]
+  "plugins": ["preset-lint-consistent"]
 }

Second, if you used remark-lint directly, you need to change your config as follows.

 "dependencies": {
   "remark-cli": "^0.0.0",
   "remark-lint": "^0.0.0",
+  "remark-lint-unordered-list-marker-style": "^0.0.0",
+  "remark-lint-list-item-bullet-indent": "^0.0.0",
+  "remark-lint-no-multiple-toplevel-headings": "^0.0.0",
+  "remark-lint-maximum-line-length": "^0.0.0",
+  "remark-lint-maximum-heading-length": "^0.0.0",
+  "remark-lint-no-tabs": "^0.0.0",
   // ...
 },
 "remarkConfig": {
-  "plugins": {
-    "remark-lint": {
-    "unordered-list-marker-style": "consistent",
-    "list-item-bullet-indent": true,
-    "no-multiple-toplevel-headings": true,
-    "maximum-line-length": 9000,
-    "maximum-heading-length": 300,
-    "no-tabs": true,
-    //  ...
-  }
+  "plugins": [
+    "remark-lint",
+    ["remark-lint-unordered-list-marker-style", "consistent"],
+    "remark-lint-list-item-bullet-indent",
+    "remark-lint-no-multiple-toplevel-headings",
+    ["remark-lint-maximum-line-length", 9000],
+    ["remark-lint-maximum-heading-length", 300],
+    "remark-lint-no-tabs",
+    //  ...
+  ]

Finally, if you use remark on the API, change your code as follows:

var remark = require('remark');
var lint = require('remark-lint');
+var unorderedListMarkerStyle = require('remark-lint-unordered-list-marker-style');
+var listItemBulletIndent = require('remark-lint-list-item-bullet-indent');
+var noMultipleToplevelHeadings = require('remark-lint-no-multiple-toplevel-headings');

remark()
-  .use(lint, {
-    unorderedListMarkerStyle: 'consistent',
-    listItemBulletIndent: true,
-    noMultipleToplevelHeadings: true
-    maximumLineLength: false
-  })
+  .use(lint)
+  .use(unorderedListMarkerStyle, 'consistent')
+  .use(listItemBulletIndent)
+  .use(noMultipleToplevelHeadings)
  // ...
remarkjs/remark-validate-links (remark-validate-links)

v13.1.0

Compare Source

Add

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

v13.0.2

Compare Source

Fix
  • 4791865 Fix support for absolute paths on GitHub
Types

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

v13.0.1

Compare Source

  • 2b4cc25 Fix misclassified type dependency

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

v13.0.0

Compare Source

Change
  • 39c7e22 Change to require Node.js 16
    migrate: update too
  • 7c75796 Change to use exports
    migrate: don’t use private APIs
  • c81c6ab Update @types/mdast, utilities, etc
    migrate: update too
  • 323908a 7ac7d02 Change to improve messages
    migrate: expect better messages

Full Changelog: remarkjs/remark-validate-links@12.1.1...13.0.0


Configuration

📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

👻 Immortal: This PR will be recreated if closed unmerged. Get config help if that's undesired.


  • If you want to rebase/retry this PR, check this box

This PR was generated by Mend Renovate. View the repository job log.

@renovate renovate bot force-pushed the renovate/major-remark branch from e525881 to ba48b12 Compare April 9, 2024 19:04
@renovate renovate bot force-pushed the renovate/major-remark branch from ba48b12 to 1064e3f Compare July 2, 2024 13:35
@renovate renovate bot force-pushed the renovate/major-remark branch from 1064e3f to b69ef50 Compare July 30, 2024 13:24
@renovate renovate bot force-pushed the renovate/major-remark branch from b69ef50 to 76aa4e0 Compare August 10, 2025 13:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants