Releases: preactjs/wmr
Releases · preactjs/wmr
directory-plugin 0.1.0
Minor Changes
bf6e97a
#344 Thanks @JoviDeCroock! - Initial release
1.2.0
Features & Improvements
- Add support for variable dynamic import prod (#292, thanks @developit)
- Adding missing types to
preact-iso
(#324, thanks @rschristian) - Make
prefresh
optional (#322, thanks @JoviDeCroock) - Add service worker to recipes (#315, thanks @hassanbazzi)
- Add
process.browser
for compatibility (#307, thanks @ForsakenHarmony)
Bugfixes
- Close Rollup bundle before passing output (#302, thanks @intrnl)
- Fix wrong output for self closed non-root jsx nodes (#340, thanks @marvinhagemeister)
- Insert user-defined plugins before core plugins (#290, thanks @rschristian)
- Tighten up ESM_KEYWORDS (#296, thanks @developit)
- Fix HMR not working with CSS on Windows (#332, thanks @matias4205)
- Fix assets bad url on dev mode Windows (#336, thanks @matias4205)
preact-iso
Add peerDeps & correct module type (#323, thanks @rschristian)- Fix brittle regex in optimize-graph-plugin (#328, thanks @jbt)
- Fix dotted component identifiers in production code (#329, thanks @developit)
- Increase HTTP/1 Keep-Alive timeout from 5s to 60s (#311, thanks @developit)
- Fix
wmr serve
not supporting middleware option (#313, thanks @developit) - Fix multiple dashes in css modules (#312, thanks @madmanwithabike)
- Fix
--no-compress
option (#310, thanks @developit) - Fix Filter the link tags based on rel and href (#288, thanks @cristianbote)
- Fix case where a stylesheet wouldn't reload (#293, thanks @JoviDeCroock)
Maintenance
- Switch to a proper monorepo setup for easier automated publishing (#338, thanks @JoviDeCroock)
- Change cache path to not modify
node_modules
(#309, thanks @ForsakenHarmony)
1.1.0
Features & Improvements
- Add
publicPath
config option (#213, thanks @lukeed) - Add
minify
config option (#214, thanks @lukeed) - Add friendly warnings/errors for node built-ins (#233, thanks @dbetteridge)
- Allow disabling HMR for full reloads (#263, thanks @JoviDeCroock)
- Clean output directory prior to build (#223, thanks @rschristian)
- Improve performance of
wmr build
for large directories (#216, thanks @lukeed) - Optimize JSX output using the production HTM compiler (#247, thanks @developit)
TypeScript
- Fix ambient typing of
*.module.css
files (#200, thanks @lukeed) - Hoist JSX namespace to be global by default (#261, thanks @developit)
Bugfixes
- Set "engines" to Node 12.7+ (#208 #231, thanks @AjayPoshak & @lukeed)
- Fix printing server address to console under Linux (#204 #205, thanks @intrnl)
- Fix
file:///
protocol prerendering support (#212, thanks @lukeed) - Fix HMR for modules that don't reference
module.hot
(#220, thanks @JoviDeCroock) - Throw Error when Node doesn't support workers (#237, thanks @JoviDeCroock)
- Fix aliases applied to npm modules (#249, thanks @jstans)
- Fix compiled JSX
html
variable collision (#273, thanks @developit) - Fix normalization of HMR paths on Windows (#278, thanks @JoviDeCroock)
preact-iso v0.3.0
- Include
preact-iso
in the WMR repo and correct code samples (#217 #218 #219, thanks @JoviDeCroock & @EmilTholin) - Add
useLocation()
alias foruseLoc()
(#274, thanks @rschristian) - Make promises thrown by
lazy()
resolve to components (#281, thanks @developit) - Add types (#248, thanks @rschristian)
create-wmr (npm init wmr) v0.1.3
- Include "wmr" as devdep (#199, thanks @lukeed)
- Pre-install preact (#256, thanks @developit)
- Add support for yarn (#234, thanks @rschristian)
- Scaffold
jsxFactory
tsconfig
option (#245, thanks @rschristian)
It's Alive!
- Copy unreferenced assets to the output directory when building for production (#195)
- Add the new
create-wmr
package that handlesnpm init wmr foo
(#188) - A new plugin
@wmr-plugins/nomodule
that generates and serves legacy bundles to older browsers (#196) - Add a new
--public
CLI argument + config option for changing./public
to some other name (#192) - Show a friendly warning message when scripts are missing
type="module"
(#191) - Add ambient type declarations for
import.meta.hot
and CSS Modules (#187) - Silence "experimental modules" warning during prerendering (#193)
- Fix a few cases where protocol-relative URLs weren't being handled correctly (#185)
0.0.12
Features
CSS graph optimization: no more FOUC! (#176)
CSS files that are tiny, dependent or co-dependent now get merged based on heuristics. Where prod output could previously rely on many small (100b!) CSS files during page load, now most cases result in only a single CSS file. CSS is still code-splitted when it isn't needed for the initial page load, unless the resulting stylesheet would be so small that doing so would harm performance.
Configuration: custom plugins! (#179)
We now support a wmr.config.js
configuration file. Exporting a function from this file lets you inject Rollup plugins and Polka HTTP middleware, or customize options (see types) asynchronously before WMR starts up:
// Optionally async function. Named export functions for each mode (start, build, serve) also supported. export default ({ mode, prod, middleware, plugins, output }) => { if (mode === 'start') middleware.push(somePolkaMiddleware()); if (prod) plugins.push(myCustomMinifier()); };
Bugfixes
0.0.11
- New
--prerender
option: renders your app to static HTML at build time (#171) - Support
200.html
for specifying custom SPA routing HTML (#84) - Add
wmr serve
command: a zero-config production server with H/2 (#157) - Add support for the
"module"
export map key (#172) - Add support for loading
.env
files (#16) - Fix CommonJS inconsistency between dev and prod builds (#156)
- Fixed JS serialization issues for dynamically replaced AST trees (#145 #152 #154)
- Bugfix: corrected multiple bugs in the CSS parser (#163)
- Bugfix: serve all files with a utf-8 charset (#173)
- Bugfix: correct content-length for compressed responses (#159)
- Bugfix for dotted JSX components (#164)
- Colorized output (#160)