Skip to content

Latest commit

 

History

History
154 lines (95 loc) · 6.47 KB

CHANGELOG.md

File metadata and controls

154 lines (95 loc) · 6.47 KB

3.2.6

  • This version of Ultraviolet fixes an issue with the Content-Type header not being rewritten properly.
  • This version of Ultraviolet injects HTML at the top of the head/body to avoid race conditions.

3.2.5

  • This version of Ultraviolet adds HTML injection through the config.
  • This version of Ultraviolet upgrades bare-mux. This update allows transferrables to be sent while setting the transport.

3.2.4

  • This version of Ultraviolet fixes an issue with headers not being rewritten properly.

3.2.3

  • This version of Ultraviolet improves performance and reduced bundle size by removing css-tree, esotope-hammerhead, and mime-db.
  • This version of Ultraviolet upgrades bare-mux. This fixes issues with support in safari.

3.2.2

  • This version of Ultraviolet fixes a bug where scripts were not being rewritten properly.

3.2.1

  • This version of Ultraviolet fixes a bug where network requests were not being correctly processed in worker contexts.

3.2.0

  • This version of Ultraviolet upgrades bare-mux. This moves all of the bare client logic to a shared worker.

3.1.5

  • This version of Ultraviolet upgrades bare-mux. This allows the websocket to be properly closed by windows.

3.1.4

  • This version of Ultraviolet fixes an NPM versioning error.

3.1.3

  • This version of Ultraviolet upgrades bare-mux. This solves an issue with the types and exports being incorrect.

3.1.2

  • This version of Ultraviolet cleans up some service worker code to make it faster, and also simplifies the service worker by adding uv.route() which allows the service worker to easily detect if the worker should route this request.
importScripts('uv.bundle.js');
importScripts('uv.config.js');
importScripts(__uv$config.sw || 'uv.sw.js');

const uv = new UVServiceWorker();

self.addEventListener('fetch', event => {
    event.respondWith(
        (async ()=>{
            if (uv.route(event)) {
                return await uv.fetch(event);
            }
            return await fetch(event.request);
        })()
    );
});

v3.1.1

  • This version of Ultraviolet upgrades bare-mux. This solves an issue with the bare clients not being found.

v3.1.0

  • This version of Ultraviolet upgrades bare-mux. This solves an issue with websockets not reporting the ready state correctly, causing incompatibilities on websites.

v3.0.2

  • This version of Ultraviolet fixes an NPM versioning error.

v3.0.1

  • This version of Ultraviolet upgrades bare-mux. This solves an issue with websockets not being opened properly.
  • This version of Ultraviolet allows error messages to be iframed on cross origin isolated pages.

v3.0.0

v2.0.0

  • This version of Ultraviolet has support for Bare server v3
  • Support for older Bare servers was dropped.

v1.0.10

  • This version of Ultraviolet fixes an NPM versioning error.

v1.0.8

  • This version of Ultraviolet improves error messages.

v1.0.7

  • This version of Ultraviolet correctly sets the cache option when making a request.

v1.0.6

  • This version of Ultraviolet upgrades @tomphttp/bare-client. As a result, refreshing can fix errors with the Bare metadata being fetched.

v1.0.5

  • This version of Ultraviolet fixes a minor bug with blob: URLs.

v1.0.4

  • This version of Ultraviolet introduces support for passing a list of Bare servers in the uv.config.js file. This allows users to specify multiple servers that the service worker can choose from, improving reliability and failover.
  • Minor bug fixes (caught with ESLint) and improvements.
  • The @tomphttp/bare-client package has been implemented, allowing users to use Ultraviolet with Bare server V2 and older versions of the Bare server.
  • In previous versions, the uv.client.js script was bundled with uv.bundle.js. In this version, uv.client.js is separate and needs to be included separately in any workflows that use it.

v1.0.3

  • In previous versions, the uvPath export was the default export from the Ultraviolet module. In this version, uvPath is no longer the default export and needs to be imported explicitly.
  • Here is an example of how to import the library:
import { uvPath } from '@titaniumnetwork-dev/ultraviolet';

v1.0.2

  • This version of Ultraviolet is built using CommonJS, which means it can be used with CommonJS-based module systems such as Node.js.
  • This version also includes a stock sw.js script that users can use as a starting point for their service worker.

v1.0.1

  • In the sw.js script, users must now import uv.bundle.js and uv.config.js in that order. This is because uv.config.js relies on uv.bundle.js, and the paths to these files cannot be hard-coded in the sw.js script.
  • Minor bug fixes and improvements.
  • Users must still use the uv.config.js file to specify the paths to all the Ultraviolet scripts, including uv.bundle.js and uv.config.js.
  • Here an example of the changes you might make to your sw.js script in this Ultraviolet version:
+ importScripts('./uv/uv.bundle.js');
+ importScripts('./uv/uv.config.js');
importScripts('./uv/uv.sw.js');

const sw = new UVServiceWorker();

self.addEventListener('fetch', (event) => event.respondWith(sw.fetch(event)));

v1.0.0

  • This is the first official release of the Ultraviolet library.
  • The uv.bundle.js script is built using Webpack, allowing users to easily bundle their own scripts and dependencies with Ultraviolet.
  • This project is still under active development, and future releases will include new features and improvements.