Skip to content

Releases: cyclejs/http

Support progress events

21 Feb 18:38
Compare
Choose a tag to compare

Request objects can now specify a progress: true/false option which will make the corresponding response$ emit a progress event (which has `ev.type === 'progress', in case you need to check).

Resolves issue #46.

Update superagent to v1.7.2

Fix eager option, add request reference to response

25 Jan 16:54
Compare
Choose a tag to compare

The eager option was broken in v7, see this issue. Your application using Cycle HTTP v7 may perhaps depend on that broken behavior, that's why this version is a major increment.

We also added a backwards-compatible feature: every response object emitted by response$ Observables has a pointer to the request object that originated it. Example:

response$.subscribe(response => {
  console.log(response.request.method); // 'GET'
});

This is the same object that is attached to the response$ Observable:

console.log(response$.request.method); // 'GET'

v7.0.0 Cycle Nested

21 Dec 19:41
Compare
Choose a tag to compare

Cycle Nested

Cycle Nested is a new version of Cycle.js with a focus on hard-core reusability: any Cycle.js app can be easily reused in a larger Cycle.js app.

New documentation site at cycle.js.org.

Cycle Nested consists of:

NEW HTTP Driver features in Cycle Nested:

  • Components are simply Cycle.js apps (main() renamed to e.g. Button()) that can be reused in larger apps.
  • The HTTP Source, response$$, has two new functions attached to it: isolateSource() and isolateSink. Read more about isolation.

Allow DELETE as request method

11 Nov 18:18
Compare
Choose a tag to compare

Update peer dependency Cycle Core to v5.0

19 Oct 19:24
Compare
Choose a tag to compare

RxJS updated to v4.0

14 Oct 20:02
Compare
Choose a tag to compare

autoSubscribe option becomes eager, false by default

14 Sep 17:33
Compare
Choose a tag to compare

Renames autoSubscribe option to eager. Adds per-request eager option. Default is false in both cases. Default used to be true.

Before After
makeHTTPDriver() makeHTTPDriver({eager: true})
makeHTTPDriver({autoSubscribe:true}) makeHTTPDriver({eager: true})
makeHTTPDriver({autoSubscribe:false}) makeHTTPDriver({eager: false}) or makeHTTPDriver()

In v4.0.0, each request may set its own eager option that overrides the global factory-set option.

var request$ = Rx.Observable.just({
  url: uri + '/pet',
  method: 'POST',
  send: {name: 'Woof', species: 'Dog'},
  eager: true // <-----
});

Add autoSubscribe option to driver factory

24 Aug 11:02
Compare
Choose a tag to compare

You can affect whether the request Observable will be automatically subscribed when calling httpDriver(request$) by giving the autoSubscribe option to the factory: makeHTTPDriver({autoSubscribe: true}). Default value for autoSubscribe is true, so to force lazy behavior, call httpDriver = makeHTTPDriver({autoSubscribe: false}).

Implements to #14.

Update RxJS to v3

17 Aug 20:12
Compare
Choose a tag to compare

Implies a breaking change to Cycle HTTP Driver because RxJS v3 (inside Cycle Core) is a breaking change. Most noteworthy breaking change is the signature change of scan operator. Read more here.