-
Notifications
You must be signed in to change notification settings - Fork 147
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
New Release #267
Comments
+1 on new release. One more improvement
|
Ah I'd missed that one. Incidentally, if we're finally bringing in |
I tried to make a release but eslint is not happy when calling lib/index.js ✖ 4 problems (4 errors, 0 warnings) do you have the same issue on your side ? it is probably due to recent commits. |
Slice has optional arguments. Not sure what to do about that... @jeromew, that's strange. I don't see it. Fresh clone and everything. On Thu, Apr 9, 2015 at 3:22 PM, jeromew notifications@github.com wrote:
|
It's possible to configure Travis to release to npm when a tagged commit passes. Do we want to consider this so we don't have to wait for @caolan or @jeromew to release? |
Wouldn't this expose their NPM credentials to the public? Unless On Fri, Apr 10, 2015 at 1:52 PM, Matt Brennan notifications@github.com
|
Regarding var arr = [1, 2, 3, 4, 5];
var first = _.slice(1);
var second = _.slice(1, 4);
first(3, _(arr)).toArray(_.log);
//=> [2, 3]
second(_(arr)).toArray(_.log);
//=> [2, 3, 4] I prefer fixed arity functions though so a solution would be to just remove the default values in Stream.prototype.drop = function (n) {
if (n <= 0) {
return this;
}
return this.slice(n, Infinity);
};
exposeMethod('drop'); |
The problem with optional arguments has always been if people try to do var drop5 = _.slice(5);
drop5(_([1, 2, 3, 4, 5])).toArray(_.log);
// => an error. Not having optional args means people can't accidentally mess up like this. But, I'm also OK with relaxing our stance on optional args if we put a warning in big red letters in the docs that says the top-level |
I think I would rather keep things consistent and just have the blanket rule that transforms don't take optional arguments, they complicate the API and once that genie is out of the bottle it's hard put it back in. |
I don't feel strongly either way, but |
Sorry, meant to reply to this. |
We could go the On the other hand, |
I'd vote for keeping fixed arity, I understand this would likely trip people up in the case of slice though. Any more suggestions on alternative names for slice? Perhaps 'substream(start, end)', similar to substr()? |
@vqvu ok ; after removing node_modules altogether + a fresh I still don't understand it because it looks like the
issue really exists in the code line 2896 (there is an am i misunderstanding this 'no-shadow' directive ? |
@svozza you said
I think we should use the CHANGELOG file instead. It hasn't been used since 2.0.0 but should probably be used from now on. regarding other options for |
Yeah, I just mentioned the Releases section because I saw it on the Bluebird page but changelog is as good a place as any. If we change the file name to changelog.md we can get the markup to work in it as well. |
We'll want to fix #205 before we release or the page that gets generated will be broken again. @jeromew Perhaps the I like |
Thought about it some more, and I now think it's just fine to have After all, if I was OK with The PR is fine to merge, I think, after applying @svozza's proposed fix. |
@jeromew Yes. |
I'd say everything for this release is merged now, we should depoly to NPM as soon as possible. |
Sorry everyone about the delay. |
There's been a lot of new features that have been added since the last release, it might be best to pull the trigger on this sooner rather than later. Here's a list of all the changes, I think we should copy and paste it into the release notes in the Releases section.
New additions
drop
: Ignores the firstn
values of a stream and then emits the rest. support drop(), issue #11 #75 Tidy up support for drop() PR #244done
: Calls the supplied function once the stream has ended. Implements done, modifies each to return a stream #161sort
: Collects all values together then emits each value individually but in sorted order. Added Sort as of Issue #50 #169 Adds sort stream transformation incl. tests #245streamifyAll
: Takes an object or a constructor function and returns that object or constructor with streamified versions of its function properties. _.streamifyAll #226Iterator
Support: ECMA2015 (aka ES6) style iterators can now be passed to the Highland constructor function. add iterator functionality and tests #235slice
: Creates a new stream with the values from the source in the range of specified in thestart
andend
parameters. Add slice function #250batchWithTimeOrCount
: Takes one Stream and batches incoming data within a maximum time frame into arrays of a maximum length. Add_.batchWithTimeOrCount
#284Improvements
each
now returns an empty stream rather than nothing. Implements done, modifies each to return a stream #161.through
propagates Node stream errors. Ensure _.through Propogates Node Stream Errors #240this
context of wrapped function when usingwrapCallback
. Keep context in wrapCallback (and use wrapCallback in streamifyAll) #248tranduce
to use latest version of transformer protocol. Update to latest transformer protocol & use init (Resolves #260). #261The text was updated successfully, but these errors were encountered: