-
Notifications
You must be signed in to change notification settings - Fork 191
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
The third "merge" argument in `.param( key, val, merge )` has been on the chopping block for two months and is now being removed prior to the 1.0 release. WPRequest instances are intended to be transient: It is much easier to understand building a single array of values, and then call `.param( 'key', valuesArr )` once at the end, than it is to mentally keep track of calling `.param( 'key', value, true )` multiple times. It is also one of the only mysterious boolean arguments in the entire library, and we normally aim to avoid those. It is also only used in one place (the `.parent` mixin), and is the only place the `lodash.uniq` NPM dependency is used within node-wpapi. Removing the argument allows us to simplify code in several places and permits the removal of that dependency library, slightly decreasing the size of the built browser UMD bundles.
- Loading branch information
1 parent
5581ac0
commit 3d0778b
Showing
5 changed files
with
16 additions
and
48 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters