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

lookup: deprecate and rename "master" field to "head" #848

Merged
merged 2 commits into from
Mar 15, 2021

Conversation

targos
Copy link
Member

@targos targos commented Mar 4, 2021

Patch the lookup object in memory for backwards-compatibility.

Patch the lookup object in memory for backwards-compatibility.
@targos
Copy link
Member Author

targos commented Mar 5, 2021

/cc @nodejs/citgm

Deprecation message looks like this (The relative path is only for our internal lookup table. Otherwise it would be absolute):

> node .\bin\citgm-all.js
(node:22476) DeprecationWarning: The "master" key in lookup entries is deprecated. Use "head" instead. Found in "./lookup.json" for module "cheerio"

@targos targos changed the title lookup: rename "master" field to "head" lookup: deprecate and rename "master" field to "head" Mar 5, 2021
@targos targos linked an issue Mar 7, 2021 that may be closed by this pull request
@targos
Copy link
Member Author

targos commented Mar 15, 2021

Ping @nodejs/citgm

Copy link
Contributor

@MylesBorins MylesBorins left a comment

Choose a reason for hiding this comment

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

RSLGTM

@MylesBorins
Copy link
Contributor

@targos should we mark this as Semver-Major just to be safe? Numbers are cheap :P

@targos
Copy link
Member Author

targos commented Mar 15, 2021

I guess it doesn't matter much because we are probably the only users, but this should be backwards-compatible and actually fixes CITGM for some of the modules in our lookup that have master: true and already switched to using main as their default branch.

@MylesBorins
Copy link
Contributor

@targos OK then let's mark Semver-Minor 👍

@targos targos merged commit 1be7201 into nodejs:main Mar 15, 2021
@targos targos deleted the lookup-head branch March 15, 2021 18:33
MylesBorins pushed a commit that referenced this pull request Mar 18, 2021
Patch the lookup object in memory for backwards-compatibility.
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.

Replace "master" attribute in lookup
2 participants