This repository was archived by the owner on Mar 3, 2023. It is now read-only.
Repository navigation
Extract underscore extensions - #973
Merged
Merged
Conversation
Contributor
|
So EDIT: I meant: So |
Contributor
Author
|
@benogle that still works, but going forward it is easier to manage dependency versions if packages directly depend on libraries when available. |
Contributor
|
Noted On Tue, Oct 15, 2013 at 10:52 AM, Kevin Sawicki [email protected]:
|
Somewhere between underscore 1.4.4 and 1.5.2 max() was changed to return the first element with the maximum value instead of the last. The specs were relying on that ordering when selecting a specific grammar by path.
kevinsawicki
added a commit
that referenced
this pull request
Oct 15, 2013
Extract underscore extensions
This was referenced Mar 28, 2021
This was referenced Mar 31, 2021
This file contains hidden or 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
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
atom/underscore-plus is the new home for the utilities previously known as
underscore-extensions.coffee. This also upgrades us to the latest underscore release,1.5.2.This also replaces the
MessageChannelbased implementation of_.nextTickwith a shim tosetImmediatesince that original method predates us having node support._.nextTickshould no longer be usedNew packages should depend on this library directly when needed.
📣📣📣
The only thing that was weird upgrading was that
_.maxnow returns a different value if multiple values in the same array produce the same value and that value is the max. Previously it returned the last element with the max value, now it returns the first element. We only had one place this mattered, when selecting a grammar in one spec we were relying on the last grammar in the list having precedence when they both generated the same path score.jashkenas/underscore#1124
🐚🐚🐚
Refs #950