Update dependency marked to v3 #657

Merged
konrad merged 1 commits from renovate/marked-3.x into main 2021-08-16 10:36:08 +00:00
Member

This PR contains the following updates:

Package Type Update Change
marked (source) dependencies major 2.1.3 -> 3.0.0

Release Notes

markedjs/marked

v3.0.0

Compare Source

Bug Fixes
BREAKING CHANGES
  • Drop support for node 10.
  • Add module field to package.json

  • Tokenizers will create their own tokens with this.lexer.inline(text, tokens). The inline function will queue the token creation until after all block tokens are created.
  • Extensions tokenizer this object will include the lexer as a property. this.inlineTokens becomes this.lexer.inline.
  • Extensions renderer this object will include the parser as a property. this.parseInline becomes this.parser.parseInline.
  • tag and inlineText tokenizer function signatures have changed.

  • nptable tokenizer is removed and merged with table tokenizer.
  • table tokens header property changed to contain an array of objects for each header cell with text and tokens properties.
  • table tokens cells property changed to rows and is an array of rows where each row contains an array of objects for each cell with text and tokens properties.

v2 table token:

{
  "type": "table",
  "align": [null, null],
  "raw": "| a | b |\n|---|---|\n| 1 | 2 |\n",
  "header": ["a", "b"],
  "cells": [["1", "2"]],
  "tokens": {
    "header": [
      [{ "type": "text", "raw": "a", "text": "a" }],
      [{ "type": "text", "raw": "b", "text": "b" }]
    ],
    "cells": [[
      [{ "type": "text", "raw": "1", "text": "1" }],
      [{ "type": "text", "raw": "2", "text": "2" }]
    ]]
  }
}

v3 table token:

{
  "type": "table",
  "align": [null, null],
  "raw": "| a | b |\n|---|---|\n| 1 | 2 |\n",
  "header": [
    {
      "text": "a",
      "tokens": [{ "type": "text", "raw": "a", "text": "a" }]
    },
    {
      "text": "b",
      "tokens": [{ "type": "text", "raw": "b", "text": "b" }]
    }
  ],
  "rows": [
    {
      "text": "1",
      "tokens": [{ "type": "text", "raw": "1", "text": "1" }]
    },
    {
      "text": "2",
      "tokens": [{ "type": "text", "raw": "2", "text": "2" }]
    }
  ]
}

Configuration

📅 Schedule: 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.

🔕 Ignore: Close this PR and you won't be reminded about this update again.


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

This PR has been generated by Renovate Bot.

This PR contains the following updates: | Package | Type | Update | Change | |---|---|---|---| | [marked](https://marked.js.org) ([source](https://github.com/markedjs/marked)) | dependencies | major | [`2.1.3` -> `3.0.0`](https://renovatebot.com/diffs/npm/marked/2.1.3/3.0.0) | --- ### Release Notes <details> <summary>markedjs/marked</summary> ### [`v3.0.0`](https://github.com/markedjs/marked/releases/v3.0.0) [Compare Source](https://github.com/markedjs/marked/compare/v2.1.3...v3.0.0) ##### Bug Fixes - Tokenizers lex their own child tokens ([#&#8203;2124](https://github.com/markedjs/marked/issues/2124)) ([288f1cb](https://github.com/markedjs/marked/commit/288f1cbe2f55881972c0f594ddb9910888986bee)) - Add module field to package.json ([#&#8203;2143](https://github.com/markedjs/marked/issues/2143)) ([edc2e6d](https://github.com/markedjs/marked/commit/edc2e6dc129364b127c8a41dc6a83dd88daffba4)) - Drop node 10 support ([#&#8203;2157](https://github.com/markedjs/marked/issues/2157)) ([433b16f](https://github.com/markedjs/marked/commit/433b16fa3ac8ddcaead519b7f4e284137f7fac03)) - Full Commonmark compliance for Lists ([#&#8203;2112](https://github.com/markedjs/marked/issues/2112)) ([eb33d3b](https://github.com/markedjs/marked/commit/eb33d3b3a9f735ee9bee251d26bf779880dc3114)) - Refactor table tokens ([#&#8203;2166](https://github.com/markedjs/marked/issues/2166)) ([bc400ac](https://github.com/markedjs/marked/commit/bc400ac789c76e915df82b0998d3fd12c89da2e8)) ##### BREAKING CHANGES - Drop support for node 10. - Add module field to package.json *** - Tokenizers will create their own tokens with `this.lexer.inline(text, tokens)`. The `inline` function will queue the token creation until after all block tokens are created. - Extensions tokenizer `this` object will include the `lexer` as a property. `this.inlineTokens` becomes `this.lexer.inline`. - Extensions renderer `this` object will include the `parser` as a property. `this.parseInline` becomes `this.parser.parseInline`. - `tag` and `inlineText` tokenizer function signatures have changed. *** - `nptable` tokenizer is removed and merged with `table` tokenizer. - `table` tokens `header` property changed to contain an array of objects for each header cell with `text` and `tokens` properties. - `table` tokens `cells` property changed to `rows` and is an array of rows where each row contains an array of objects for each cell with `text` and `tokens` properties. v2 `table` token: ```json { "type": "table", "align": [null, null], "raw": "| a | b |\n|---|---|\n| 1 | 2 |\n", "header": ["a", "b"], "cells": [["1", "2"]], "tokens": { "header": [ [{ "type": "text", "raw": "a", "text": "a" }], [{ "type": "text", "raw": "b", "text": "b" }] ], "cells": [[ [{ "type": "text", "raw": "1", "text": "1" }], [{ "type": "text", "raw": "2", "text": "2" }] ]] } } ``` v3 `table` token: ```json { "type": "table", "align": [null, null], "raw": "| a | b |\n|---|---|\n| 1 | 2 |\n", "header": [ { "text": "a", "tokens": [{ "type": "text", "raw": "a", "text": "a" }] }, { "text": "b", "tokens": [{ "type": "text", "raw": "b", "text": "b" }] } ], "rows": [ { "text": "1", "tokens": [{ "type": "text", "raw": "1", "text": "1" }] }, { "text": "2", "tokens": [{ "type": "text", "raw": "2", "text": "2" }] } ] } ``` </details> --- ### Configuration 📅 **Schedule**: 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. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box. --- This PR has been generated by [Renovate Bot](https://github.com/renovatebot/renovate).
renovate added the
dependencies
label 2021-08-16 04:01:44 +00:00
renovate added 1 commit 2021-08-16 04:01:44 +00:00
continuous-integration/drone/pr Build is passing Details
9171d31257
Update dependency marked to v3
konrad merged commit 2e66d17376 into main 2021-08-16 10:36:08 +00:00
This repo is archived. You cannot comment on pull requests.
No description provided.