Skip to content

Conversation

@JoshuaKGoldberg
Copy link
Collaborator

@JoshuaKGoldberg JoshuaKGoldberg commented Sep 26, 2023

👉 Partial implementation of #65993. If you're seeing this and are surprised it's happening, please read the discussion and give feedback! ❤️

We're splitting up the changes to make it a bit easier to apply & review them en masse - and, if we need later on, revert / bisect for issues. These changes generated with roughly:

This PR is split out from #66534. Implements the dprint formatting changes on mp4frag since it was failing in CI. Specifically:

1> Error: Errors in typescript@4.5 for external dependencies:
Error: 1> ../node/buffer.d.ts(46,1): error TS6200: Definitions of the following identifiers conflict with those in another file: INSPECT_MAX_BYTES, kMaxLength, kStringMaxLength, constants, TranscodeEncoding, SlowBuffer, Buffer, Blob, File, atob, btoa, BufferEncoding, WithImplicitCoercion

That seems to have come from:

import 'node/buffer';

No other types package still includes import node/. I think the line can be removed.

@JoshuaKGoldberg JoshuaKGoldberg changed the title Formatted mp4frag with dprint Formatted mp4frag with dprint and removed node/buffer import Sep 26, 2023
@JoshuaKGoldberg JoshuaKGoldberg marked this pull request as ready for review September 26, 2023 14:38
@typescript-bot
Copy link
Contributor

@JoshuaKGoldberg 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?

1 package in this PR (and infra files)

Code Reviews

This PR 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 (.dprint.jsonc)

Once every item on this list is checked, I'll ask you for permission to merge and publish the changes.


Diagnostic Information: What the bot saw about this PR
{
  "type": "info",
  "now": "-",
  "pr_number": 66834,
  "author": "JoshuaKGoldberg",
  "headCommitOid": "c75fa12503e91d7933555e07a4dcea5f2e7eecd5",
  "mergeBaseOid": "afc9b20cd09fbc0aed0a52379796a723d5575c64",
  "lastPushDate": "2023-09-26T14:24:58.000Z",
  "lastActivityDate": "2023-09-26T14:38:58.000Z",
  "hasMergeConflict": false,
  "isFirstContribution": false,
  "tooManyFiles": false,
  "hugeChange": false,
  "popularityLevel": "Well-liked by everyone",
  "pkgInfo": [
    {
      "name": null,
      "kind": "edit",
      "files": [
        {
          "path": ".dprint.jsonc",
          "kind": "infrastructure"
        }
      ],
      "owners": [],
      "addedOwners": [],
      "deletedOwners": [],
      "popularityLevel": "Critical"
    },
    {
      "name": "mp4frag",
      "kind": "edit",
      "files": [
        {
          "path": "types/mp4frag/index.d.ts",
          "kind": "definition"
        },
        {
          "path": "types/mp4frag/mp4frag-tests.ts",
          "kind": "test"
        }
      ],
      "owners": [
        "kensand"
      ],
      "addedOwners": [],
      "deletedOwners": [],
      "popularityLevel": "Well-liked by everyone"
    }
  ],
  "reviews": [],
  "ciResult": "pass"
}

@typescript-bot
Copy link
Contributor

🔔 @kensand — 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.

@johnnyreilly johnnyreilly merged commit 688320d into DefinitelyTyped:master Sep 26, 2023
@JoshuaKGoldberg JoshuaKGoldberg deleted the dprint-fmt-m-troublemakers branch September 26, 2023 20:23
Copy link
Contributor

@kensand kensand left a comment

Choose a reason for hiding this comment

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

LGTM

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants