Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[node] Fix BufferEncoding base64url option #52347

Merged

Conversation

Timsonrobl
Copy link
Contributor

@Timsonrobl Timsonrobl commented Apr 13, 2021

Please fill in this template.

Select one of these and delete the others:

If changing an existing definition:

  • Provide a URL to documentation or source code which provides context for the suggested changes: <>
  • If this PR brings the type definitions up to date with a new version of the JS library, update the version number in the header.

Fixing new base64url Buffer encoding option introduced in nodejs/node#36952 missing from type definition.

@typescript-bot typescript-bot added Critical package Untested Change This PR does not touch tests labels Apr 13, 2021
@typescript-bot typescript-bot added this to Waiting for Code Reviews in New Pull Request Status Board Apr 13, 2021
@typescript-bot
Copy link
Contributor

typescript-bot commented Apr 13, 2021

@Timsonrobl Thank you for submitting this PR! I see this is your first time submitting to DefinitelyTyped 👋 — I'm the local bot who will help you through the process of getting things through.

This is a live comment which I will keep updated.

1 package in this PR

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 approve changes without tests

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": 52347,
  "author": "Timsonrobl",
  "headCommitOid": "00494e8238a1dea6260b4f2b776b72ccd5663586",
  "lastPushDate": "2021-04-13T19:54:52.000Z",
  "lastActivityDate": "2021-04-15T13:34:21.000Z",
  "maintainerBlessed": false,
  "mergeOfferDate": "2021-04-15T02:56:21.000Z",
  "mergeRequestDate": "2021-04-15T13:34:21.000Z",
  "mergeRequestUser": "Timsonrobl",
  "hasMergeConflict": false,
  "isFirstContribution": true,
  "popularityLevel": "Critical",
  "pkgInfo": [
    {
      "name": "node",
      "kind": "edit",
      "files": [
        {
          "path": "types/node/globals.d.ts",
          "kind": "definition"
        }
      ],
      "owners": [
        "Microsoft",
        "DefinitelyTyped",
        "jkomyno",
        "alvis",
        "r3nya",
        "btoueg",
        "brunoscheufler",
        "smac89",
        "touffy",
        "DeividasBakanas",
        "eyqs",
        "Hannes-Magnusson-CK",
        "KSXGitHub",
        "hoo29",
        "kjin",
        "ajafff",
        "islishude",
        "mwiktorczyk",
        "mohsen1",
        "n-e",
        "galkin",
        "parambirs",
        "eps1lon",
        "SimonSchick",
        "ThomasdenH",
        "WilcoBakker",
        "wwwy3y3",
        "samuela",
        "kuehlein",
        "bhongy",
        "chyzwar",
        "trivikr",
        "nguymin4",
        "yoursunny",
        "qwelias",
        "ExE-Boss",
        "Ryan-Willpower",
        "peterblazejewicz",
        "addaleax",
        "JasonHK",
        "victorperin",
        "ZYSzys"
      ],
      "addedOwners": [],
      "deletedOwners": [],
      "popularityLevel": "Critical"
    }
  ],
  "reviews": [
    {
      "type": "approved",
      "reviewer": "rbuckton",
      "date": "2021-04-15T02:55:44.000Z",
      "isMaintainer": true
    }
  ],
  "ciResult": "pass"
}

@typescript-bot typescript-bot moved this from Waiting for Code Reviews to Needs Maintainer Review in New Pull Request Status Board Apr 13, 2021
@typescript-bot
Copy link
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 #52347 diff
Batch compilation
Memory usage (MiB) 134.1 126.3 -5.8%
Type count 23321 23321 0%
Assignability cache size 7796 7796 0%
Language service
Samples taken 46 46 0%
Identifiers in tests 46 46 0%
getCompletionsAtPosition
    Mean duration (ms) 871.9 872.0 0.0%
    Mean CV 10.5% 9.3%
    Worst duration (ms) 1021.7 1069.8 +4.7%
    Worst identifier a a
getQuickInfoAtPosition
    Mean duration (ms) 849.7 844.4 -0.6%
    Mean CV 9.5% 9.1%
    Worst duration (ms) 1038.9 972.2 -6.4%
    Worst identifier a a

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 Apr 13, 2021
@peterblazejewicz
Copy link
Member

@Timsonrobl why this should be added to v13? Isn't this v15 only (current/upcoming):
https://nodejs.org/api/buffer.html#buffer_buffers_and_character_encodings

@typescript-bot typescript-bot moved this from Needs Maintainer Review to Waiting for Code Reviews in New Pull Request Status Board Apr 13, 2021
@Timsonrobl
Copy link
Contributor Author

@Timsonrobl why this should be added to v13? Isn't this v15 only (current/upcoming):
https://nodejs.org/api/buffer.html#buffer_buffers_and_character_encodings

Definitely error on my part! Seems to be fixed now.

@peterblazejewicz
Copy link
Member

@Timsonrobl IMO v15 is not yet a thing on DT:
#48981

@typescript-bot typescript-bot moved this from Waiting for Code Reviews to Needs Maintainer Review in New Pull Request Status Board Apr 13, 2021
@SimonSchick
Copy link
Contributor

It may be wise to skip v15 (since we never got the typings in unfortunately), and focus on v16 instead.

@peterblazejewicz
Copy link
Member

It may be wise to skip v15 (since we never got the typings in unfortunately), and focus on v16 instead.

So you mean, branch v14 as soon as v16 comes out (this month)?

@Timsonrobl
Copy link
Contributor Author

It may be wise to skip v15 (since we never got the typings in unfortunately), and focus on v16 instead.

But if there would be conflict between v15 and v16 definitions what about people sticking with v15 as LTS release?

@SimonSchick
Copy link
Contributor

Alright, I will create a barebone PR for JUST v15.0.0 which we can iterate from, should be out later today.

@typescript-bot typescript-bot added Maintainer Approved Self Merge This PR can now be self-merged by the PR author or an owner labels Apr 15, 2021
@typescript-bot typescript-bot moved this from Needs Maintainer Review to Waiting for Author to Merge in New Pull Request Status Board Apr 15, 2021
@Timsonrobl
Copy link
Contributor Author

Ready to merge

@typescript-bot typescript-bot moved this from Waiting for Author to Merge to Recently Merged in New Pull Request Status Board Apr 15, 2021
@typescript-bot typescript-bot merged commit b9bd53f into DefinitelyTyped:master Apr 15, 2021
@typescript-bot
Copy link
Contributor

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

@typescript-bot typescript-bot removed this from Recently Merged in New Pull Request Status Board Apr 15, 2021
@SimonSchick
Copy link
Contributor

SimonSchick commented May 4, 2021

@rbuckton @Timsonrobl this shouldn't have been merged as this encoding is not available in v14, I will remove it from the v14 typings with my upcoming PR that includes 15.7 changes this appears to have already been removed, likely when I moved types to v14 folder.

While this is not a huge issue please in the future be mindful of versioning.

@Timsonrobl
Copy link
Contributor Author

@SimonSchick Sorry, but the versioning was really confusing as same definitions were de-facto used in both v14 and v15 and since I got a go-ahead from team member I thought it was considered a lesser evil. And v14 were branched out without this change soon after, so no serious harm done, I guess.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Critical package Maintainer Approved Perf: Same typescript-bot determined that this PR will not significantly impact compilation performance. Self Merge This PR can now be self-merged by the PR author or an owner Untested Change This PR does not touch tests
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants