Skip to content

Revert "refactor(node): Move Buffer definition to buffer.d.ts (#4…#45956

Merged
sandersn merged 2 commits intomasterfrom
revert-move-buffer-to-buffer.d.ts
Jul 8, 2020
Merged

Revert "refactor(node): Move Buffer definition to buffer.d.ts (#4…#45956
sandersn merged 2 commits intomasterfrom
revert-move-buffer-to-buffer.d.ts

Conversation

@sandersn
Copy link
Copy Markdown
Contributor

@sandersn sandersn commented Jul 8, 2020

…5845)"

This reverts commit a58ce42.

The original PR breaks pouchdb-core and its dependents, but the CI tests mistakenly did not include those packages in the test set.

@typescript-bot typescript-bot added Where is GH Actions? GH Actions didn't give a response to this PR Critical package Untested Change This PR does not touch tests labels Jul 8, 2020
@typescript-bot
Copy link
Copy Markdown
Contributor

typescript-bot commented Jul 8, 2020

@sandersn Thank you for submitting this PR!

This is a live comment which I will keep updated.

This PR doesn't modify any tests, so it's hard to know what's being fixed, and your changes might regress in the future. Have you considered adding tests to cover the change you're making? Including tests allows this PR to be merged by yourself and the owners of this module. This can potentially save days of time for you.

Code Reviews

Because this is a widely-used package, a DT maintainer will need to review it before it can be merged.

Status

  • ✅ No merge conflicts
  • ✅ Continuous integration tests have passed
  • ❌ Only a DT maintainer can merge changes without tests

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": 45956,
  "author": "sandersn",
  "owners": [
    "Microsoft",
    "DefinitelyTyped",
    "jkomyno",
    "a-tarasyuk",
    "alvis",
    "r3nya",
    "btoueg",
    "brunoscheufler",
    "smac89",
    "touffy",
    "DeividasBakanas",
    "eyqs",
    "Flarna",
    "Hannes-Magnusson-CK",
    "KSXGitHub",
    "hoo29",
    "kjin",
    "ajafff",
    "islishude",
    "mwiktorczyk",
    "mohsen1",
    "n-e",
    "octo-sniffle",
    "galkin",
    "parambirs",
    "eps1lon",
    "SimonSchick",
    "ThomasdenH",
    "WilcoBakker",
    "wwwy3y3",
    "samuela",
    "kuehlein",
    "j-oliveras",
    "bhongy",
    "chyzwar",
    "trivikr",
    "nguymin4",
    "yoursunny",
    "qwelias",
    "ExE-Boss",
    "Ryan-Willpower",
    "peterblazejewicz",
    "addaleax",
    "JasonHK"
  ],
  "dangerLevel": "ScopedAndUntested",
  "headCommitAbbrOid": "d2bc71e",
  "headCommitOid": "d2bc71e2af136143f68b52e44fbd6367b790a511",
  "mergeIsRequested": false,
  "stalenessInDays": 0,
  "lastCommitDate": "2020-07-08T17:14:17.000Z",
  "lastCommentDate": "2020-07-08T17:41:38.000Z",
  "maintainerBlessed": false,
  "reviewLink": "https://github.com/DefinitelyTyped/DefinitelyTyped/pull/45956/files",
  "hasMergeConflict": false,
  "authorIsOwner": false,
  "isFirstContribution": false,
  "popularityLevel": "Critical",
  "anyPackageIsNew": false,
  "packages": [
    "node"
  ],
  "files": [
    {
      "filePath": "types/node/buffer.d.ts",
      "kind": "definition",
      "package": "node"
    },
    {
      "filePath": "types/node/globals.d.ts",
      "kind": "definition",
      "package": "node"
    },
    {
      "filePath": "types/node/ts3.2/base.d.ts",
      "kind": "definition",
      "package": "node"
    },
    {
      "filePath": "types/node/ts3.2/buffer.d.ts",
      "kind": "definition",
      "package": "node"
    },
    {
      "filePath": "types/node/ts3.2/globals.d.ts",
      "kind": "definition",
      "package": "node"
    }
  ],
  "hasDismissedReview": false,
  "ciResult": "pass",
  "reviewersWithStaleReviews": [],
  "approvalFlags": 0,
  "isChangesRequested": false
}

@typescript-bot
Copy link
Copy Markdown
Contributor

@typescript-bot typescript-bot added The CI failed When GH Actions fails and removed Where is GH Actions? GH Actions didn't give a response to this PR labels Jul 8, 2020
@typescript-bot
Copy link
Copy Markdown
Contributor

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

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

@typescript-bot
Copy link
Copy Markdown
Contributor

👋 Hi there! I’ve run some quick measurements against master and your PR. These metrics should help the humans reviewing this PR gauge whether it might negatively affect compile times or editor responsiveness for users who install these typings.

Let’s review the numbers, shall we?

Comparison details 📊
master #45956 diff
Batch compilation
Memory usage (MiB) 100.9 100.7 -0.2%
Type count 16850 16850 0%
Assignability cache size 4952 4952 0%
Language service
Samples taken 46 46 0%
Identifiers in tests 46 46 0%
getCompletionsAtPosition
    Mean duration (ms) 569.3 559.1 -1.8%
    Mean CV 11.8% 12.3%
    Worst duration (ms) 704.3 669.8 -4.9%
    Worst identifier assert a
getQuickInfoAtPosition
    Mean duration (ms) 549.6 545.7 -0.7%
    Mean CV 10.7% 10.0% -6.9%
    Worst duration (ms) 646.2 677.2 +4.8%
    Worst identifier a assert

It looks like nothing changed too much. I won’t post performance data again unless it gets worse.

@typescript-bot typescript-bot added the Perf: Same typescript-bot determined that this PR will not significantly impact compilation performance. label Jul 8, 2020
@ExE-Boss
Copy link
Copy Markdown
Contributor

ExE-Boss commented Jul 8, 2020

There should be no difference between the two I would think.

@typescript-bot typescript-bot removed the The CI failed When GH Actions fails label Jul 8, 2020
@sandersn
Copy link
Copy Markdown
Contributor Author

sandersn commented Jul 8, 2020

There are some rules around exporting single identifiers that I don't understand. @weswigham suggested a workaround, but found that it didn't work because of a compiler bug. I posted more details on the original PR.

@sandersn sandersn merged commit 816d933 into master Jul 8, 2020
@sandersn sandersn deleted the revert-move-buffer-to-buffer.d.ts branch July 8, 2020 17:42
@ExE-Boss
Copy link
Copy Markdown
Contributor

ExE-Boss commented Jul 8, 2020

You could’ve just reverted the removal of const BuffType: typeof Buffer;, which would’ve fixed it without breaking anything.

@typescript-bot
Copy link
Copy Markdown
Contributor

I just published @types/node@14.0.20 to npm.

ngbrown pushed a commit to ngbrown-forks/DefinitelyTyped that referenced this pull request Jul 11, 2020
…finitelyTyped#4… (DefinitelyTyped#45956)

* Revert "refactor(node): Move `Buffer` definition to `buffer.d.ts` (DefinitelyTyped#45845)"

This reverts commit a58ce42.

* put back reference to globals.d.ts in ts3.2
danielrearden pushed a commit to danielrearden/DefinitelyTyped that referenced this pull request Sep 22, 2020
…finitelyTyped#4… (DefinitelyTyped#45956)

* Revert "refactor(node): Move `Buffer` definition to `buffer.d.ts` (DefinitelyTyped#45845)"

This reverts commit a58ce42.

* put back reference to globals.d.ts in ts3.2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Critical package Perf: Same typescript-bot determined that this PR will not significantly impact compilation performance. Untested Change This PR does not touch tests

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants