fix(deps): update remark (major) #667
Open
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR contains the following updates:
13.0.0→15.0.115.0.2→16.0.15.0.0→7.0.1Release Notes
remarkjs/remark (remark)
v15.0.1Compare Source
54ee687Fix typoFull Changelog: remarkjs/remark@15.0.0...15.0.1
v15.0.0Compare Source
Change
98a2560Change to require Node.js 16migrate: update too
a3e6d54Change to useexportsmigrate: don’t use private APIs
943f6acUpdate@types/mdast,mdast-util-{from,to}-markdown,unified, etcmigrate: update too
remark-parse: only really changes
Buffer->Uint8Array, so use encodings supported byTextDecoderif you are passing binary dataremark-stringify:
bulletOrderedOtheris removed, you can removebulletOrderedOtherif you passed it, it’s now the default;fencesis nowtrueby default, if you don’t want indented code, passfences: false;listItemIndentis now'one'by default, you can removelistItemIndent: 'one'if you passed it, or explicitly set it to'tab'if you want itTypes
bd8c922Add typed settingsDocs
7cc0432Addremark-link-rewriteto list of pluginsby @rjanjic in #1212
e72d91aAddremark-mentionsto list of pluginsby @FinnRG in #1193
Full Changelog: remarkjs/remark@14.0.3...15.0.0
v14.0.3Compare Source
Misc
for #1162
f6bd64eRefactortsconfigs for perf and strictnessbb4c814Add improved docs on what this project isby @BeLi4L in #1147
bec44aaUpdatetsconfig.jsonto use node16 module resolutionby @ChristianMurphy in #1106
f07f413Addignore-scriptsto.npmrcby @ChristianMurphy in #1103
134ece2Update Actionsby @ChristianMurphy in #1070
974f893Fix internal types for TS 4.9Plugins
1e488d0Addremark-insto list of pluginsby @talatkuyuk in #1129
e456dc5Addremark-flexible-markersto list of pluginsby @talatkuyuk in #1126
42114fcAddremark-flexible-paragraphsto list of pluginsby @talatkuyuk in #1120
6aa638aAddremark-flexible-containersto list of pluginsby @talatkuyuk in #1112
20e7543Addremark-flexible-code-titlesto list of pluginsby @talatkuyuk in #1108
32d6948Addremark-cloudinary-docusaurusto list of pluginsby @johnnyreilly in #1090
28aa8b9update tests for changes inmdast-util-to-markdown9af1a87Addremark-code-titleto list of pluginsby @kevinzunigacuellar in #1076
0d1eb09Add 7 plugins to list of pluginsby @Xunnamius in #1064
c7e8171Remove deprecatedremark-jargonby @LunaticMuch in #1059
Full Changelog: remarkjs/remark@14.0.2...14.0.3
v14.0.2Compare Source
87c50a5Add improved docsby @wooorm in #900
Full Changelog: remarkjs/remark@14.0.1...14.0.2
v14.0.1Compare Source
9026568Add missing types dependencyv14.0.0Compare Source
b7afd25Use ESMChange:
Learn more about ESM in this guide
42d1b21Update dependenciesunified(10.0.0) (see: https://github.com/unifiedjs/unified/releases/tag/10.0.0)vfile(5.0.0) (see: https://github.com/vfile/vfile/releases/tag/5.0.0)Importantly this renames
tovfile.contentsvfile.valuemdast-util-from-markdown(1.0.0) (see: https://github.com/syntax-tree/mdast-util-from-markdown/releases/tag/1.0.0)mdast-util-to-markdown(1.0.0) (see: https://github.com/syntax-tree/mdast-util-to-markdown/releases/tag/1.0.0)bc55caaAdd JSDoc based typesremarkjs/remark-html (remark-html)
v16.0.1Compare Source
e507e9dFix to add misclassified dependencyFull Changelog: remarkjs/remark-html@16.0.0...16.0.1
v16.0.0Compare Source
Change
c726e74Change to require Node.js 16migrate: update too
80482a5Change to useexportsmigrate: don’t use private APIs
1946cf3Update@types/mdast, utilities, etcmigrate: update too
hast-util-sanitize@5: everything’s safe, GH is safe, but make sure to check if you’re super worriedhast-util-to-html@9:options.entities->options.characterReferencesmdast-util-to-hast@13: handlers are different, if you pass those, see the changelogFull Changelog: remarkjs/remark-html@15.0.2...16.0.0
remarkjs/remark-lint (remark-preset-lint-recommended)
v7.0.1Compare Source
b40fe0fChangemasterin linksv7.0.0Compare Source
6e92eedUpdate dependencies(breaking, potentially, if you’re using TypeScript but didn’t expect it)
remark-message-controlunist-util-visitvfile-locationplurwithpluralizefor better browser supportv6.1.3Compare Source
v6.1.2Compare Source
v6.1.1Compare Source
c5c3832Markno-auto-link-without-protocolas deprecatedv6.0.1v6.0.0Compare Source
Hi! 👋
With 6.0.0, rules are no longer in the
remark-lintpackage. 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 installand.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-lintdirectly, 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) // ...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 is behind base branch, or you tick the rebase/retry checkbox.
👻 Immortal: This PR will be recreated if closed unmerged. Get config help if that's undesired.
This PR was generated by Mend Renovate. View the repository job log.