Releases: reactql/kit
Releases · reactql/kit
1.5.3
1.5.2
1.5.1
1.5.0
1.5.0 - 2017-06-01
Environment
- Adds
kit/lib/env.js, for determining local environment settings - Adds
getHost(),getPort()andgetURL()tokit/lib/env.jsto detect where the local server is/will be spawned on - Updates Webpack and
kit/entry/server_*.jsconfigs to use dynamic environment host/port/URL - Adds development/production env vars to webpack builds, to provide context to Webpack
NPM
- Replaces
concurrentlywithnpm-run-all, to avoid errors in NPM v5.0.0 when terminating with Ctrl/Cmd + C - Removes packages:
"concurrently": "^3.4.0" - Adds packages:
"npm-run-all": "^4.0.2"
1.4.1
1.4.1 - 2017-05-30
Server
- Adds 301/302 redirect handling (issues
Location:header to new URL) - Adds 404 Not Found handling; by default, just sets a 404 status code
App
- Adds sample
<Redirect>handler, from /old/path to /new/path - Adds fall-through 404 handler, when no routes are matched
1.4.0
1.4.0 - 2017-05-30
General
- Fixes edge case where
<script defer>tags inkit/views/ssr.jscould cause manifest/vendor/browser files to load in the wrong order - Adds Brotli compression - builds
.brversions of static assets in production - Adds
staticMiddleware()tokit/entry/server.jsfor serving static file assets - Replaces
koa-staticmiddleware with a direct call to parentkoa-send - Bumps to PostCSS v6 by removing inline Webpack config
NPM
-
Removes packages:
"koa-static": "^3.0.0" -
Adds packages:
"brotli-webpack-plugin": "^0.3.0"
"koa-send": "^4.1.0" -
Bumps packages:
"babel-preset-env": "^1.5.1"
"css-loader": "^0.28.4"
"eslint-plugin-compat": "^1.0.3"
"eslint-plugin-import": "^2.3.0"
"eslint-plugin-jsx-a11y": "^5.0.3"
"node-sass": "^4.5.3"
"style-loader": "^0.18.1"
"webpack": "^2.6.1"
"webpack-bundle-analyzer": "^2.8.2"
"koa-router": "^7.2.0"
"react-helmet": "^5.1.3"
1.3.2
1.3.1
1.3.0
1.3.0 - 2017-05-27
Linting
- Fixes #24 - ESLint works with latest Atom ESLinter, bypasses the need for Webpack and
babel-register, and speeds up linting. - Removes
kit/webpack/eslint.js- which is now moot
Server
- Closes #4 - Introduces server development bundling. Now running
npm startbundles both a hot-reloading browser bundle, and a spawns server-side rendering that reloads upon code changes. - Adds
distDevroute to paths, for server development bundled assets - Adds
kit/webpack/server_dev.jsWebpack config for building and launching a development server - Adds separate
kit/webpack/server_prod.jsWebpack config for building production server bundle - Refactors
kit/entry/server.jsfor working in both dev/production - Adds console messages to show server start-up info, including network IP and ports
- Fixes
__dirnamein the built server bundle, so thatdist/server.jscan be run from anywhere (mentioned in / fixes leebenson/reactql#36)
Helpers
- Adds
kit/lib/console.jsandlogServerStarted()function, for dumping neat console messages to the screen when starting servers - Adds
kit/lib/routing.js, with<Status>(internal),<NotFound>and<Redirect>components for handling status codes, 404s and redirects, universally.
Webpack / bundling
- Adds ability to use multiple webpack-configs in a given config file, by exporting as an array
- Tidies up
kit/webpack/basewith common stats; fixes path typo - Adds
kit/webpack/dev.js, which is extended by server_dev and browser_dev and adds the correct env vars and source-maps. - Closes #22 - Adds static bundling. Now you can run
npm run build-staticto create a production browser bundle along with anindex.htmlfile, for uploading to a static web host - Adds
npm run build-static-run, for static bundling and running the static site locally on port 5000 - Adds
npm run static, for running an already built static bundle - Refactors
kit/webpack/browser_prod.jsto add console messages; fixes minor chunk hash typo - Adds
css.getDevLoaders()andcss.getExtractCSSLoaders()helper functions tokit/webpack/common.js, for CSS configs that work across multiple configs - Adds
statstokit/webpack/common.js, for a common output format that shows built assets, errors and warnings, with minimal clutter
NPM
- Adds packages:
"concurrently": "^3.4.0"
"serve": "^5.1.5"
"boxen": "^1.1.0",
"chalk": "^1.1.3",
"ip": "^1.1.5" - Removes redundant packages:
"babel-register": "^6.24.1"
"node-noop": "^1.0.0"
"promise-monofill": "^1.0.1" - Re-orders packages so that they correctly appear within
devDependenciesordependencies - Refactors
npm run...commands as follows:
"browser": Runs hot-reloaded Webpack dev server for the browser on port 8080
"build": Builds production bundles for server and browser
"build-run": Builds production bundles, and runs a live web server
"build-static": Builds a production browser bundle andindex.html, for hosting statically
"build-static-run": Builds static bundle, and runs it locally on port 5000
"clean": Removesdistfolder and contents
"lint": Runs ESLint on project source code
"server": Runs a previously build production web server
"server-dev": Runs a development web server on port 8081 (restarts automatically on code changes)
"start": Starts both a development web server and a hot-reloadable browser Webpack dev server (ports 8081/8080 respectively)
"static": Starts a static web server on port 5000 for a previously built static bundle
"test": Currently does nothing. TBD.
App
- Adds 404 route handling (currently a blank response - but 404 codes can be implemented at the server level to be handled by middleware, or respond appropriately; redirects TBD.)
1.2.0
1.2.0 - 2017-05-22
- Adds
npm run build-browser-onlyoption, which createsindex.htmlalongside regular JS and CSS browser bundling. Useful for static hosts or via a BYO web server. - Adds provisional
postcss.config.js, for upcoming PostCSS v6.0 (note: not implemented yet; CSSNext currently awaiting MoOx/postcss-cssnext#374) - Fixes PostCSS source maps in development
- Adds
HOSTenvironment var for overridinglocalhostdefault - Adds
Running on http://localhost:4000/default message when server starts (or whatever the correctHOSTandPORTare) - Bumps NPM packages:
"cross-env": "^5.0.0",
"css-loader": "^0.28.1",
"eslint-config-airbnb": "^15.0.0",
"eslint-plugin-jsx-a11y": "^5.0.1",
"eslint-plugin-react": "^7.0.1",
"image-webpack-loader": "^3.3.1",
"node-noop": "^1.0.0",
"postcss-cssnext": "2.11.0",
"postcss-loader": "^2.0.5",
"postcss-nested": "^2.0.2",
"promise-monofill": "^1.0.1",
"sass-loader": "^6.0.5",
"style-loader": "^0.18.0",
"webpack": "^2.5.1",
"webpack-bundle-analyzer": "^2.8.1",
"webpack-dev-server": "^2.4.5",
"webpack-node-externals": "^1.6.0" - Bumps
yarn.lock - Merges #25 - .editorconfig ESLint fix eol-last