Skip to content

remove marked#66762

Merged
typescript-bot merged 8 commits intoDefinitelyTyped:masterfrom
UziTech:remove-marked
Oct 3, 2023
Merged

remove marked#66762
typescript-bot merged 8 commits intoDefinitelyTyped:masterfrom
UziTech:remove-marked

Conversation

@UziTech
Copy link
Copy Markdown
Contributor

@UziTech UziTech commented Sep 20, 2023

Please fill in this template.

Select one of these and delete the others:

If removing a declaration:

  • If a package was never on Definitely Typed, you don't need to do anything. (If you wrote a package and provided types, you don't need to register it with us.)
  • Delete the package's directory.
  • Add it to notNeededPackages.json.

@typescript-bot
Copy link
Copy Markdown
Contributor

typescript-bot commented Sep 20, 2023

@UziTech Thank you for submitting this PR!

This is a live comment which I will keep updated.

This PR touches some part of DefinitelyTyped infrastructure, so a DT maintainer will need to review it. This is rare — did you mean to do this?

2 packages in this PR (and infra files)

Code Reviews

Because this PR edits multiple packages, it can be merged once it's reviewed by a DT maintainer.

You can test the changes of this PR in the Playground.

Status

  • ✅ No merge conflicts
  • ✅ Continuous integration tests have passed
  • ✅ A DT maintainer needs to approve changes which affect DT infrastructure (notNeededPackages.json)

All of the items on the list are green. To merge, you need to post a comment including the string "Ready to merge" to bring in your changes.


Diagnostic Information: What the bot saw about this PR
{
  "type": "info",
  "now": "-",
  "pr_number": 66762,
  "author": "UziTech",
  "headCommitOid": "1b6d1909f7aeaa3a2db4c768778ae981b5a0f4f9",
  "mergeBaseOid": "d6df71f271f38735049115008ff6b5de169c9450",
  "lastPushDate": "2023-09-20T05:53:15.000Z",
  "lastActivityDate": "2023-10-03T23:25:35.000Z",
  "mergeOfferDate": "2023-10-03T22:16:51.000Z",
  "mergeRequestDate": "2023-10-03T23:25:35.000Z",
  "mergeRequestUser": "UziTech",
  "hasMergeConflict": false,
  "isFirstContribution": false,
  "tooManyFiles": false,
  "hugeChange": false,
  "popularityLevel": "Popular",
  "pkgInfo": [
    {
      "name": null,
      "kind": "edit",
      "files": [
        {
          "path": "notNeededPackages.json",
          "kind": "infrastructure"
        }
      ],
      "owners": [],
      "addedOwners": [],
      "deletedOwners": [],
      "popularityLevel": "Critical"
    },
    {
      "name": "marked-terminal",
      "kind": "edit",
      "files": [
        {
          "path": "types/marked-terminal/marked-terminal-tests.ts",
          "kind": "test"
        },
        {
          "path": "types/marked-terminal/package.json",
          "kind": "package-meta-ok"
        },
        {
          "path": "types/marked-terminal/tsconfig.json",
          "kind": "package-meta-ok"
        }
      ],
      "owners": [
        "bkendall"
      ],
      "addedOwners": [],
      "deletedOwners": [],
      "popularityLevel": "Well-liked by everyone"
    },
    {
      "name": "marked",
      "kind": "delete",
      "files": [
        {
          "path": "types/marked/OTHER_FILES.txt",
          "kind": "package-meta-ok"
        },
        {
          "path": "types/marked/index.d.mts",
          "kind": "package-meta",
          "suspect": "edited"
        },
        {
          "path": "types/marked/index.d.ts",
          "kind": "definition"
        },
        {
          "path": "types/marked/marked-tests.ts",
          "kind": "test"
        },
        {
          "path": "types/marked/package.json",
          "kind": "package-meta-ok"
        },
        {
          "path": "types/marked/tsconfig.json",
          "kind": "package-meta-ok"
        },
        {
          "path": "types/marked/tslint.json",
          "kind": "package-meta-ok"
        },
        {
          "path": "types/marked/v3/.eslintrc.json",
          "kind": "package-meta",
          "suspect": "edited"
        },
        {
          "path": "types/marked/v3/index.d.ts",
          "kind": "definition"
        },
        {
          "path": "types/marked/v3/marked-tests.ts",
          "kind": "test"
        },
        {
          "path": "types/marked/v3/tsconfig.json",
          "kind": "package-meta-ok"
        },
        {
          "path": "types/marked/v3/tslint.json",
          "kind": "package-meta-ok"
        },
        {
          "path": "types/marked/v4/OTHER_FILES.txt",
          "kind": "package-meta-ok"
        },
        {
          "path": "types/marked/v4/index.d.mts",
          "kind": "package-meta",
          "suspect": "edited"
        },
        {
          "path": "types/marked/v4/index.d.ts",
          "kind": "definition"
        },
        {
          "path": "types/marked/v4/marked-tests.ts",
          "kind": "test"
        },
        {
          "path": "types/marked/v4/tsconfig.json",
          "kind": "package-meta-ok"
        },
        {
          "path": "types/marked/v4/tslint.json",
          "kind": "package-meta-ok"
        }
      ],
      "owners": [
        "worr",
        "BendingBender",
        "CrossR",
        "mwickett",
        "htkzhtm",
        "ezracelli",
        "scandinave",
        "sarunint",
        "UziTech",
        "Toliak",
        "jfcere",
        "MykSto"
      ],
      "addedOwners": [],
      "deletedOwners": [],
      "popularityLevel": "Popular"
    }
  ],
  "reviews": [
    {
      "type": "approved",
      "reviewer": "rbuckton",
      "date": "2023-10-03T22:16:02.000Z",
      "isMaintainer": true
    },
    {
      "type": "approved",
      "reviewer": "worr",
      "date": "2023-10-01T10:07:11.000Z",
      "isMaintainer": false
    },
    {
      "type": "approved",
      "reviewer": "Toliak",
      "date": "2023-10-01T09:34:49.000Z",
      "isMaintainer": false
    },
    {
      "type": "approved",
      "reviewer": "sarunint",
      "date": "2023-09-28T19:36:09.000Z",
      "isMaintainer": false
    },
    {
      "type": "stale",
      "reviewer": "sheetalkamat",
      "date": "2023-09-21T18:20:40.000Z",
      "abbrOid": "85959f1"
    }
  ],
  "mainBotCommentID": 1727015269,
  "ciResult": "pass"
}

@typescript-bot typescript-bot added Popular package This PR affects a popular package (as counted by NPM download counts). Edits Infrastructure Edits multiple packages Check Config Changes a module config files labels Sep 20, 2023
@typescript-bot
Copy link
Copy Markdown
Contributor

🔔 @bkendall @worr @BendingBender @CrossR @mwickett @htkzhtm @ezracelli @scandinave @sarunint @Toliak @jfcere @MykSto — please review this PR in the next few days. Be sure to explicitly select Approve or Request Changes in the GitHub UI so I know what's going on.

@typescript-bot typescript-bot added the The CI failed When GH Actions fails label Sep 20, 2023
@typescript-bot
Copy link
Copy Markdown
Contributor

@UziTech The CI build failed! Please review the logs for more information.

Once you've pushed the fixes, the build will automatically re-run. Thanks!

Note: builds which are failing do not end up on the list of PRs for the DT maintainers to review.

@typescript-bot typescript-bot added the Owner Approved A listed owner of this package signed off on the pull request. label Sep 20, 2023
@typescript-bot typescript-bot added The CI failed When GH Actions fails and removed The CI failed When GH Actions fails labels Sep 21, 2023
@typescript-bot
Copy link
Copy Markdown
Contributor

@UziTech The CI build failed! Please review the logs for more information.

Once you've pushed the fixes, the build will automatically re-run. Thanks!

Note: builds which are failing do not end up on the list of PRs for the DT maintainers to review.

@typescript-bot typescript-bot added The CI failed When GH Actions fails and removed Owner Approved A listed owner of this package signed off on the pull request. The CI failed When GH Actions fails labels Sep 21, 2023
@typescript-bot
Copy link
Copy Markdown
Contributor

@UziTech The CI build failed! Please review the logs for more information.

Once you've pushed the fixes, the build will automatically re-run. Thanks!

Note: builds which are failing do not end up on the list of PRs for the DT maintainers to review.

@typescript-bot typescript-bot added The CI failed When GH Actions fails and removed The CI failed When GH Actions fails labels Sep 21, 2023
@typescript-bot
Copy link
Copy Markdown
Contributor

@UziTech The CI build failed! Please review the logs for more information.

Once you've pushed the fixes, the build will automatically re-run. Thanks!

Note: builds which are failing do not end up on the list of PRs for the DT maintainers to review.

@typescript-bot typescript-bot removed the The CI failed When GH Actions fails label Sep 21, 2023
@typescript-bot
Copy link
Copy Markdown
Contributor

@worr, @Toliak Thank you for reviewing this PR! The author has pushed new commits since your last review. Could you take another look and submit a fresh review?

1 similar comment
@typescript-bot
Copy link
Copy Markdown
Contributor

@worr, @Toliak Thank you for reviewing this PR! The author has pushed new commits since your last review. Could you take another look and submit a fresh review?

@@ -1,4 +1,4 @@
import * as marked from 'marked';
import { marked } from 'marked';
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
import { marked } from 'marked';
import * as marked from 'marked';

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The default export was removed in marked@v4.0.0

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This will fail with the error:

Type 'typeof import("/home/runner/work/DefinitelyTyped/DefinitelyTyped/types/marked-terminal/node_modules/marked/lib/marked")' has no call signatures.

"paths": {
"marked": [ "marked/v3" ]
},
"target": "es6",
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
"target": "es6",

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is needed since marked uses private methods

error TS18028: Private identifiers are only available when targeting ECMAScript 2015 and higher.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is ok according to the docs:

You may edit the tsconfig.json to add new test files, to add "target": "es6"

@typescript-bot typescript-bot added the Revision needed This PR needs code changes before it can be merged. label Sep 21, 2023
@typescript-bot
Copy link
Copy Markdown
Contributor

@UziTech One or more reviewers has requested changes. Please address their comments. I'll be back once they sign off or you've pushed new commits. Thank you!

@typescript-bot typescript-bot added the Has Merge Conflict This PR can't be merged because it has a merge conflict. The author needs to update it. label Sep 27, 2023
@typescript-bot
Copy link
Copy Markdown
Contributor

@UziTech Unfortunately, this pull request currently has a merge conflict 😥. Please update your PR branch to be up-to-date with respect to master. Have a nice day!

@typescript-bot typescript-bot removed Revision needed This PR needs code changes before it can be merged. Has Merge Conflict This PR can't be merged because it has a merge conflict. The author needs to update it. labels Sep 28, 2023
@typescript-bot
Copy link
Copy Markdown
Contributor

@sheetalkamat, @worr, @Toliak Thank you for reviewing this PR! The author has pushed new commits since your last review. Could you take another look and submit a fresh review?

Copy link
Copy Markdown
Contributor

@sarunint sarunint left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, and congratulations for getting type definitions into the package itself!

@typescript-bot typescript-bot added the Owner Approved A listed owner of this package signed off on the pull request. label Sep 28, 2023
@UziTech
Copy link
Copy Markdown
Contributor Author

UziTech commented Sep 29, 2023

@sheetalkamat can you please approve or respond to my comments? Thanks!

@typescript-bot
Copy link
Copy Markdown
Contributor

typescript-bot commented Oct 1, 2023

Re-ping @bkendall, @BendingBender, @CrossR, @mwickett, @htkzhtm, @ezracelli, @scandinave, @jfcere, @MykSto:

This PR has been out for over a week, yet I haven't seen any reviews.

Could someone please give it some attention? Thanks!

@typescript-bot typescript-bot added the Unreviewed No one showed up to review this PR, so it'll be reviewed by a DT maintainer. label Oct 1, 2023
Copy link
Copy Markdown
Contributor

@Toliak Toliak left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Congratulations for bringing type definitions into the marked itself 🎉

@typescript-bot
Copy link
Copy Markdown
Contributor

@sheetalkamat, @worr Thank you for reviewing this PR! The author has pushed new commits since your last review. Could you take another look and submit a fresh review?

Copy link
Copy Markdown
Contributor

@worr worr left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Glad to see this wrapped up 😊

@typescript-bot
Copy link
Copy Markdown
Contributor

@sheetalkamat Thank you for reviewing this PR! The author has pushed new commits since your last review. Could you take another look and submit a fresh review?

@typescript-bot typescript-bot added Maintainer Approved Self Merge This PR can now be self-merged by the PR author or an owner and removed Unreviewed No one showed up to review this PR, so it'll be reviewed by a DT maintainer. labels Oct 3, 2023
@typescript-bot
Copy link
Copy Markdown
Contributor

@UziTech: Everything looks good here. I am ready to merge this PR (at 1b6d190) on your behalf whenever you think it's ready.

If you'd like that to happen, please post a comment saying:

Ready to merge

and I'll merge this PR almost instantly. Thanks for helping out! ❤️

@UziTech
Copy link
Copy Markdown
Contributor Author

UziTech commented Oct 3, 2023

Ready to merge

@typescript-bot typescript-bot merged commit e758842 into DefinitelyTyped:master Oct 3, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Check Config Changes a module config files Edits Infrastructure Edits multiple packages Maintainer Approved Owner Approved A listed owner of this package signed off on the pull request. Popular package This PR affects a popular package (as counted by NPM download counts). Self Merge This PR can now be self-merged by the PR author or an owner

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants