Skip to content

v3.0.0-next.2

Pre-release
Pre-release

Choose a tag to compare

@lukeed lukeed released this 10 Apr 05:43

Minor Changes

  • Removed the redundant https:// protocol check before registering sw.js: (33b6672)
    This is redundant because this is what ServiceWorker does, as defined by its spec.

    Removing this allows easy testing of your sw.js (aka, offline) capabilities because SW also allows the http protocol for localhost and 127.x.x.x servers (source).

    # Test your Service Worker~
    
    # Install any server, eg "zeit/serve"
    $ npm install --save-dev serve
    # Build your app for production, including sw.js
    $ preact build
    # Use "zeit/serve" in SPA-mode on "build" dir
    $ serve build --single

Chores

  • Converted project into monorepo (using lerna) in preparation for sub-packages
  • Rearranged / shuffled dependencies for TravisCI + monorepo compat