Skip to content
This repository was archived by the owner on Mar 3, 2023. It is now read-only.

Extract underscore extensions - #973

Merged
kevinsawicki merged 9 commits into
masterfrom
ks-underscore-plus
Oct 15, 2013
Merged

kevinsawicki merged 9 commits into
masterfrom
ks-underscore-plus

Conversation

@kevinsawicki

Copy link
Copy Markdown
Contributor

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 MessageChannel based implementation of _.nextTick with a shim to setImmediate since that original method predates us having node support. _.nextTick should no longer be used

New packages should depend on this library directly when needed.

📣📣📣
The only thing that was weird upgrading was that _.max now 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

@benogle

benogle commented Oct 15, 2013

Copy link
Copy Markdown
Contributor

So {_} = require 'underscore' wont do the trick?

EDIT: I meant:

So {_} = require 'atom' in the packages wont do the trick?

@kevinsawicki

Copy link
Copy Markdown
Contributor Author

@benogle that still works, but going forward it is easier to manage dependency versions if packages directly depend on libraries when available.

@benogle

benogle commented Oct 15, 2013

Copy link
Copy Markdown
Contributor

Noted

On Tue, Oct 15, 2013 at 10:52 AM, Kevin Sawicki [email protected]:

@benogle https://github.com/benogle that still works, but going forward
it is easier to manage dependency versions if packages directly depend on
libraries when available.

—
Reply to this email directly or view it on GitHubhttps://github.com//pull/973#issuecomment-26356861
.

kevinsawicki added a commit that referenced this pull request Oct 15, 2013
@kevinsawicki
kevinsawicki merged commit 697c969 into master Oct 15, 2013
@kevinsawicki
kevinsawicki deleted the ks-underscore-plus branch October 15, 2013 21:48
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants