All notable changes to this project will be documented in this file.
The format is based on Keep a Changelog, and this project adheres to Semantic Versioning.
- No code changes, but via dependency updates (in
sirv
) all files served bymini-sync
will now receive ano-cache
Cache Control header.
-
mini-sync
will now try to recover if the provided port is taken (defaults to3000
) and increment until it successfully finds an open one. -
The
mini-sync
server now serves a copy of the client side script at__mini_sync__/client.js
. This may be useful if a user wants to include the client side script without having to depend onunpkg.com
.
-
The exported
create
function now returns areload
function (for setting up reload calls) astart
function (activates the static server and returns a Promise with the expectedlocal
andnetwork
URLs) and aclose
function. This makes it possible to prepare the server and pass around thereload
function without the server being active until you're ready, and to spin it down manually. Previously it was possible formini-sync
to "beat" the rest of your code to being ready, causing cryptic race condition errors. -
An implementation detail, but
mini-sync
's SSE URL is now__mini_sync__
instead of__dev_sync__
- an accidential leftover from a previous iteration of the library. -
The client code now logs
[MINI SYNC]
instead of[DEV SYNC]
so the source of the client-side logging is clearer. -
A custom logger is now being passed to LiveReload so it won't be so chatty in the console. Instead,
mini-sync
has its own minimal logging of what thereload
function sent to the client.
- You were technically suppose to be able to not provide any options to
create
but previously it would throw an error. Now passing no options is valid as originally intended.
- Initial release!