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
browserlist
default config value: 9c04ebaSee Reference
// previous ["> 1%", "last 2 versions", "IE >= 9"] // current ["> 0.25%", "IE >= 9"]
Patches
- Fix broken babel requirement: 60bfeb1
- Fix
create
command so that target directory name is used as the--name
fallback: 84432d7
Chores
- Rework tests to use
puppeteer
instead 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 thehttp
protocol forlocalhost
and127.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
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.x
as a minimum runtime - Remove
serve
command from the CLI
It will be made available as its own package in the near future. - Remove
watch
command's custom SSL handling
Use webpack-style CLI flags instead:$ preact watch --https --key <foo> --cert <bar>
- Rename
--service-worker
flag to--sw
Chores / Refactors
- Replace
yargs
withsade
π - 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.js
into the main CLI binary
Performs the check before loading anyasync
code
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.js
at all if--no-service-worker
is 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
serve
config into Firebase hosting config, no overwrite (#374, #429): 741922b
Thanks @ralphsmith80! -
Fix
preact/debug
warning withAsync
routes (#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
TypeError
in 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
ident
prop to the options inpostcss-loader
(#425/#410, thanks @tiagoinacio)