Releases: preactjs/preact-cli
v3.0.0-rc.0
Had to re release due to accidentally publishing under the npm latest tag
v3.0.0-next.5
v3.0.0-next.4
Major
- Update to Webpack 4 π(#564)
Thanks @ForsakenHarmony!
Patch
- Update other dependencies: 19a1f54
v3.0.0-next.3
Minor
-
Update
browserlistdefault config value: 9c04ebaSee Reference
// previous ["> 1%", "last 2 versions", "IE >= 9"] // current ["> 0.25%", "IE >= 9"]
Patches
- Fix broken babel requirement: 60bfeb1
- Fix
createcommand so that target directory name is used as the--namefallback: 84432d7
Chores
- Rework tests to use
puppeteerinstead ofchrome-launcher: 5b93303
v3.0.0-next.2
Minor Changes
-
Removed the redundant
https://protocol check before registeringsw.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 thehttpprotocol forlocalhostand127.x.x.xservers (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
v3.0.0-next.1
This is one of many pre-release versions, made available on npm via
preact-cli@nextπ
First next-tagged release that stems from #445. The shortlist of changes in this version (compared to master/v2.2.1) is the following:
Breaking
- Require Node
8.xas a minimum runtime - Remove
servecommand from the CLI
It will be made available as its own package in the near future. - Remove
watchcommand's custom SSL handling
Use webpack-style CLI flags instead:$ preact watch --https --key <foo> --cert <bar> - Rename
--service-workerflag to--sw
Chores / Refactors
- Replace
yargswithsadeπ - Remove Preact CLI hero/logo
- Refactor commands' setup
- Update & fix all tests π
- Tests now complete in 30s (down from 7m)
- TravisCI suite completes in 2m (down from 30m)
- Move
check.jsinto the main CLI binary
Performs the check before loading anyasynccode
There's still lots to be done~! But publishing this is a good start & allows (all of) us to test each step.
v2.2.1
v2.2.0
Features
-
Don't build
sw.jsat all if--no-service-workeris passed (#420, #500): 3f670a4
Thanks @prateekbh! -
Prevent page flickers on initial load w/ slow connections (#489, #364, #281): 40a6f38
Thanks @lukeed!
Patches
-
Re-include
babel-plugin-syntax-dynamic-import(#461): 7942483
Thanks @pluscubed! -
Validate new project names within
package.json(#468, #469): 12648dc, 6460ab1
Thanks @milesthedisch and @lukeed! -
Fix Webpack error message for
c.getModules is not a function(#472): a1d909a
Thanks @developit! -
Fix inconsistency with Win32 paths (#454): a6608c1
Thanks @jgierer12! -
Merge
serveconfig into Firebase hosting config, no overwrite (#374, #429): 741922b
Thanks @ralphsmith80! -
Fix
preact/debugwarning withAsyncroutes (#456, #484): 57e9a77, 0158329
Thanks @jgierer12! -
Ignore
.git*files within Service Worker assets (#494): 0feddca, cab8288, 647c2ea
Thanks @lukeed! -
Fix import path within babel config (#496): 046f39e
Thanks @elisechant! -
Prevent
TypeErrorin Webpack error edge cases (#490): 7006d59
Thanks @DemianD! -
Fix Babel config plugin order (#503): 64ad18d, a7f6580
Thanks @danalloway!
v2.1.1
The release fixes the bundle hash values and replaces babel-stage-1-presets with plugins.
Huge thanks to @lukeed for his work π
New & Shiny ππ
Bugs Fixed
v2.1.0
The release fixes the HMR bug for dev server, exposes CLI's babel config as a preset
New & Shiny π π
Bugs Fixed
- Fix: HMR fix (#423, thanks @ForsakenHarmony)
- Fix: Style import fix (#160/#159, thanks @ethanroday)
- Fix: adds
identprop to the options inpostcss-loader(#425/#410, thanks @tiagoinacio)