Skip to content

Drop ArrayMap for Map. - #3718

Merged
TheLarkInn merged 1 commit into
webpack:masterfrom
wtgtybhertgeghgtwtg:ArrayMap-to-Map
Jan 4, 2017
Merged

TheLarkInn merged 1 commit into
webpack:masterfrom
wtgtybhertgeghgtwtg:ArrayMap-to-Map

Conversation

@wtgtybhertgeghgtwtg

Copy link
Copy Markdown
Contributor

What kind of change does this PR introduce?
Drops the ArrayMap class for native Map.

Did you add tests for your changes?
No.

If relevant, link to documentation update:

Summary
Drops the ArrayMap class for the native Map. Proposed to solve #3083.

Does this PR introduce a breaking change?
The clone method of dependencyFactories and dependencyTemplates no longer exists. It is not used by any of the plugins in this repo, but it may be used by plugins outside of this repo.

Change

const newMap = dependencyTemplates.clone();

to

const newMap = new Map(dependencyTemplates);

Other information

Comment thread lib/ArrayMap.js
return this;
}

remove(key) {

@Jessidhia Jessidhia Jan 4, 2017

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Need to check if anything was calling .remove. The native Map prototype method is .delete.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Nothing in this repo seems to use remove or clone.

@TheLarkInn

Copy link
Copy Markdown
Member

AppVeyor is currently down per https://twitter.com/appveyor/status/816518305770971137. Going to merge this.

@TheLarkInn
TheLarkInn merged commit 1187953 into webpack:master Jan 4, 2017
@TheLarkInn

Copy link
Copy Markdown
Member

Thank you very much!

@wtgtybhertgeghgtwtg
wtgtybhertgeghgtwtg deleted the ArrayMap-to-Map branch January 4, 2017 07:06
timse pushed a commit to timse/webpack that referenced this pull request Jan 4, 2017
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