Skip to content

Redesign the PackageJsonLookup API - #564

Merged
Pete Gonzalez (octogonz) merged 7 commits into
masterfrom
pgonzal/package-json-lookup
Mar 16, 2018
Merged

Pete Gonzalez (octogonz) merged 7 commits into
masterfrom
pgonzal/package-json-lookup

Conversation

@octogonz

Copy link
Copy Markdown
Collaborator

This is a breaking change for PackageJsonLookup, which clarifies the API names, and expands the cache to store individual package.json fields beyond just the package name.

Rush's IPackageJson interface is promoted to be part of node-core-library.

+ 'The required field "version" was not found');
}

if (this._loadExtraFields) {

@iclanton Ian Clanton-Thuon (iclanton) Mar 16, 2018 •

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

_loadExtraFields [](start = 15, length = 16)

What about an optional parameter that lets you list out properties that you want? #WontFix

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

It's a good idea, but I'd like to wait until someone really needs it before designing it.


In reply to: 175201618 [](ancestors = 175201618)

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

:shipit:

@octogonz

Copy link
Copy Markdown
Collaborator Author

Skipped Travis build because Travis is experiencing an outage

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants