Skip to content

Releases: donejs/done-ssr

3.0.1

10 Dec 14:07
Compare
Choose a tag to compare

This fixes two bugs:

  • Firefox should be downgraded to waiting SSR.
  • Clients with PUSH disabled should get <preload> links instead.

3.0.0

15 Nov 13:12
Compare
Choose a tag to compare

This is a major release of done-ssr bringing together compatibility with CanJS 5.0, StealJS 2.0, incremental rendering by default, and native http2 support.

Features

Incremental rendering

The biggest new feature of this release is support for incremental rendering. Incremental rendering is a new way for DoneJS apps to boot faster for the user. This is done by sending out an initial HTML request as quickly as possible while still rendering on the server. As the server renders instructions are sent back to the client which updates itself.

The result can be a dramatic difference in poor network conditions or when making slow API/database requests.

HTTP/2

done-ssr now supports the native http2 module from node. If you are using this API you can provide done-ssr the headers object like so:

const ssr = require('done-ssr');
const http2 = require('http2');
const fs = require('fs');

const render = ssr();

const server = http2.createSecureServer({
  key: fs.readFileSync('localhost-privkey.pem'),
  cert: fs.readFileSync('localhost-cert.pem')
});
server.on('error', (err) => console.error(err));

server.on('stream', (stream, headers) => {
  stream.respond({
    'content-type': 'text/html',
    ':status': 200
  });

  render(headers).pipe(stream);
});

server.listen(8443);

CanJS 5 and StealJS 2

With the release of DoneJS 3.0, done-ssr now supports CanJS 5 and StealJS 2 apps.

2.1.5

22 Aug 13:32
Compare
Choose a tag to compare

This is a patch release, fixing a memory leak caused by using can-dom-data-state when retains a MutationObserver instance. This fix was to use Symbols instead. This release re-enables running memory leak tests in CI, which should help with finding these leaks quicker.

2.1.4

16 Aug 20:47
Compare
Choose a tag to compare

This is a patch release, which fixes a memory leak caused by cleanup not running within the requests' zone.

2.1.3

16 Apr 14:14
Compare
Choose a tag to compare

This is a patch release providing broader support for the Response object.

Issues

v2.1.2

10 Apr 00:25
Compare
Choose a tag to compare
  • Prevent done-autorender from removing the debug modal #507
  • Prevent adding styles to the head when there is no head element #508

2.1.1

29 Mar 15:43
Compare
Choose a tag to compare

This is a patch release, allowing init options to be passed to fetch().

2.1.0

06 Mar 20:49
Compare
Choose a tag to compare

This is a minor release, introducing better error handling during live-reload. When in development and live-reload is enabled, we'll now return error messages when there is a live-reload error until it is fixed. Once fixed done-ssr will resume rendering.

Pull Requests

2.0.0

22 Feb 14:41
Compare
Choose a tag to compare

This is the 2.0 release, going with DoneJS 2.0.

2.0.0-pre.2

08 Feb 18:04
Compare
Choose a tag to compare

This is a prerelease of done-ssr 2.0. This prerelease is focused on bug improvement to incremental rendering. The place-my-order example app now works with incremental rendering!