ez-streams release

20 views
Skip to first unread message

Evan

unread,
Sep 18, 2015, 7:37:58 PM9/18/15
to streamline.js
Hi All,

Will there be a new version of ez-streams (https://github.com/Sage/ez-streams) released sometime soon? I am in need of the HTTPServerResponse node wrapper, but it is not in 0.1.7.

Thank you!
Evan

Bruno Jouhier

unread,
Sep 19, 2015, 6:41:08 AM9/19/15
to streamline.js
I was planning to release a new version at the same time as streamline 1.0 (major refactoring as a babel plugin).

As we are using intermediate versions in our devs I did not realize that 0.1.7 was so old. 

To simplify the code for 1.0 I've removed support for streamline's fast mode (that I am dropping in streamline 1.0) as well as the special hacks for galaxy. So I'll bump the major version. I hope it is not a problem for you.

Bruno 

Evan Worley

unread,
Sep 19, 2015, 11:41:57 AM9/19/15
to stream...@googlegroups.com
Hi Bruno,

Thank you for the fast response. No problem on bumping the major version, I will be able to test and revalidate quite easily.

Thank you!
Evan
--
You received this message because you are subscribed to a topic in the Google Groups "streamline.js" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/streamlinejs/WVxrN2DcuoE/unsubscribe.
To unsubscribe from this group and all its topics, send an email to streamlinejs...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Bruno Jouhier

unread,
Sep 21, 2015, 3:12:58 PM9/21/15
to streamline.js
Hi Evan,

I just published ez-streams 0.2.0. Release notes are here: https://github.com/Sage/ez-streams/releases/tag/v0.2.0

It will be followed shortly by a 1.0 but I need to finish streamline 1.0 first.

Bruno
To unsubscribe from this group and all its topics, send an email to streamlinejs+unsubscribe@googlegroups.com.

Evan Worley

unread,
Sep 21, 2015, 3:50:23 PM9/21/15
to stream...@googlegroups.com
Thank you very much!

Bruno
To unsubscribe from this group and all its topics, send an email to streamlinejs...@googlegroups.com.

For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to a topic in the Google Groups "streamline.js" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/streamlinejs/WVxrN2DcuoE/unsubscribe.
To unsubscribe from this group and all its topics, send an email to streamlinejs...@googlegroups.com.

Evan

unread,
Sep 21, 2015, 7:12:00 PM9/21/15
to streamline.js
Hi Bruno,

I was just working on integrating ez-streams 0.2.0 but I think there might be some incompatibility with older versions of streamline, or some new dependency. When I dropped it in, in place of 0.1.7 I got an error message about missing streamline-fs "Error: Cannot find module 'streamline-fs'". We're currently using the following streamline modules. How would you suggest I proceed?

    "streamline": "0.10.17",
    "streamline-streams": "0.1.5",

Thank you very much,
Evan
Thank you very much!

Bruno
To unsubscribe from this group and all its topics, send an email to streamlinejs+unsubscribe@googlegroups.com.

For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to a topic in the Google Groups "streamline.js" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/streamlinejs/WVxrN2DcuoE/unsubscribe.
To unsubscribe from this group and all its topics, send an email to streamlinejs+unsubscribe@googlegroups.com.

Bruno Jouhier

unread,
Sep 22, 2015, 2:51:22 AM9/22/15
to streamline.js
I forgot to add the dependency (and I tested in a directory where the dependency was already installed). 
I fixed it and I republished as 0.2.1.

Sorry for this. We are using this code in production (and it works) but we are getting the package from our own repo, not NPM. Then things like this happen. Ping me if you have other problems.

Bruno

Evan Worley

unread,
Sep 22, 2015, 12:38:16 PM9/22/15
to stream...@googlegroups.com
Hi Bruno,

No problem at all, thanks for the quick fix. I've upgraded to 0.2.1 and everything appears to be working well, at least at first glance.

Cheers,
Evan

Bruno
Thank you very much!

Bruno
To unsubscribe from this group and all its topics, send an email to streamlinejs...@googlegroups.com.

For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to a topic in the Google Groups "streamline.js" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/streamlinejs/WVxrN2DcuoE/unsubscribe.
To unsubscribe from this group and all its topics, send an email to streamlinejs...@googlegroups.com.

For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to a topic in the Google Groups "streamline.js" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/streamlinejs/WVxrN2DcuoE/unsubscribe.
To unsubscribe from this group and all its topics, send an email to streamlinejs...@googlegroups.com.

Evan Worley

unread,
Sep 22, 2015, 12:47:21 PM9/22/15
to stream...@googlegroups.com
Sorry, one more question. What is the best way for me to create an HttpServerResponse (https://github.com/Sage/ez-streams/blob/adbeaa5f88dfc037699ce0b364e47b764b4b7018/lib/node-wrappers.md#httpserverresponse)? I see streams is required in a few places, but I don't see HttpServerReponse exported anywhere hanging off of ez. Perhaps it should be exported as ez.devices.http.HttpServerReponse or something?

Thanks for your help,
Evan

Bruno Jouhier

unread,
Sep 22, 2015, 1:29:32 PM9/22/15
to streamline.js
If you start your server with ez.devices.http.server, you don't really need this API. Code look like:

ez.devices.http.server(function(request, response, _), options).listen(_, port);

With these code request and response are already wrapped as ez-streams.

But you if you start your server with the usual node API, you will need this constructor. For now, you can get it from require('ez-streams/lib/node-wrappers').HttpServerRequest/Response but I agree that it would be cleaner to have them in the devices.http module. I'll fix that later.

Bruno
Bruno
Thank you very much!

Bruno
To unsubscribe from this group and all its topics, send an email to streamlinejs+unsubscribe@googlegroups.com.

For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to a topic in the Google Groups "streamline.js" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/streamlinejs/WVxrN2DcuoE/unsubscribe.
To unsubscribe from this group and all its topics, send an email to streamlinejs+unsubscribe@googlegroups.com.

For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to a topic in the Google Groups "streamline.js" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/streamlinejs/WVxrN2DcuoE/unsubscribe.
To unsubscribe from this group and all its topics, send an email to streamlinejs+unsubscribe@googlegroups.com.

Evan Worley

unread,
Sep 22, 2015, 2:14:36 PM9/22/15
to stream...@googlegroups.com
Ah ok, that's great to know. Thanks Bruno. For now I will use the added require (to minimize the potential impact of the change), but will strongly consider starting the server the way you mentioned.

Bruno
Bruno
Thank you very much!

Bruno
To unsubscribe from this group and all its topics, send an email to streamlinejs...@googlegroups.com.

For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to a topic in the Google Groups "streamline.js" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/streamlinejs/WVxrN2DcuoE/unsubscribe.
To unsubscribe from this group and all its topics, send an email to streamlinejs...@googlegroups.com.

For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to a topic in the Google Groups "streamline.js" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/streamlinejs/WVxrN2DcuoE/unsubscribe.
To unsubscribe from this group and all its topics, send an email to streamlinejs...@googlegroups.com.

For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to a topic in the Google Groups "streamline.js" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/streamlinejs/WVxrN2DcuoE/unsubscribe.
To unsubscribe from this group and all its topics, send an email to streamlinejs...@googlegroups.com.

Bruno Jouhier

unread,
Sep 22, 2015, 3:29:22 PM9/22/15
to streamline.js
I wrote the code a bit too quickly. It should have been:

ez.devices.http.server(function(request, response, _) {
  // your handler here.
}, options).listen(_, port);

I've created an issue for the missing API: https://github.com/Sage/ez-streams/issues/36. BTW, if you have other requests, don't hesitate to create issues (I prefer GitHub for tech discussions because of markdown formatting).

Bruno
Bruno
Bruno
Thank you very much!

Bruno
To unsubscribe from this group and all its topics, send an email to streamlinejs+unsubscribe@googlegroups.com.

For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to a topic in the Google Groups "streamline.js" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/streamlinejs/WVxrN2DcuoE/unsubscribe.
To unsubscribe from this group and all its topics, send an email to streamlinejs+unsubscribe@googlegroups.com.

For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to a topic in the Google Groups "streamline.js" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/streamlinejs/WVxrN2DcuoE/unsubscribe.
To unsubscribe from this group and all its topics, send an email to streamlinejs+unsubscribe@googlegroups.com.

For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to a topic in the Google Groups "streamline.js" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/streamlinejs/WVxrN2DcuoE/unsubscribe.
To unsubscribe from this group and all its topics, send an email to streamlinejs+unsubscribe@googlegroups.com.

Evan Worley

unread,
Sep 23, 2015, 12:41:58 AM9/23/15
to stream...@googlegroups.com
Thanks Bruno, I will use github to file issues/requests in the future.

Bruno
Bruno
Bruno
Thank you very much!

Bruno
To unsubscribe from this group and all its topics, send an email to streamlinejs...@googlegroups.com.

For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to a topic in the Google Groups "streamline.js" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/streamlinejs/WVxrN2DcuoE/unsubscribe.
To unsubscribe from this group and all its topics, send an email to streamlinejs...@googlegroups.com.

For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to a topic in the Google Groups "streamline.js" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/streamlinejs/WVxrN2DcuoE/unsubscribe.
To unsubscribe from this group and all its topics, send an email to streamlinejs...@googlegroups.com.

For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to a topic in the Google Groups "streamline.js" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/streamlinejs/WVxrN2DcuoE/unsubscribe.
To unsubscribe from this group and all its topics, send an email to streamlinejs...@googlegroups.com.

For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to a topic in the Google Groups "streamline.js" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/streamlinejs/WVxrN2DcuoE/unsubscribe.
To unsubscribe from this group and all its topics, send an email to streamlinejs...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages