Skip to content

4.1.0

Compare
Choose a tag to compare
@leebenson leebenson released this 28 Jan 09:08
· 26 commits to master since this release
  • adds exit signal 0 to SIGINT interrupts, to avoid incorrectly interpretting CTRL/CMD+C as a failure

  • adds new RUNNER variable in NPM scripts for determining which Webpack runner to load

  • refactors index.ts to use runners; implements sanity checks to ensure RUNNER is set, and an associated .ts file exists

  • adds "Static bundling for client-only SPAs" section to readme

  • adds "NPM commands" section to readme

  • updates readme to reflect new project layout and NPM command options

  • removes console log statement in the State.increment() method when using the supplied example component

  • adds devServer() function to src/runner/app.ts, for adding Koa handlers when spawning a dev server in regular or static mode

  • updates src/runner/static.ts to add a new dev option

  • fixes formatting error for scripts in src/views/static.html

  • removes BrotliCompression type definitions in favour of a require() statement, to avoid newer Typescript syntax issues

  • adds Prettier formatting to several misc. type files

  • adds history API fallback middleware to static dev server, for client-side SPA routing

  • refactors React DOM hooks to use render() when <div id="root"> is empty, for static bundling

  • adds NPM packages:
    "@types/webpack-dev-server": "^3.1.1"
    "koa2-history-api-fallback": "0.0.5"

  • bumps NPM packages:
    "@types/koa-router": "^7.0.39"
    "@types/react": "^16.7.21"
    "@types/webpack": "^4.4.24"
    "brotli-webpack-plugin": "^1.1.0"
    "ts-node": "^8.0.2"