Dev Server v3.0.0-alpha.12
Pre-release
Pre-release
Immutable
release. Only release title and notes can be modified.
Breaking
- Case sensitive: URLs must match the case of files on disk (irrespective of OS specific behavior). Windows and macOS are case insensitive. This will alert you to deployment issues during development, when deploying to *nix servers (that are case sensitive). #117
- Security:
- Restricts served traffic to
127.0.0.1(localhost) by default (usehost: "0.0.0.0"to expose network access). You will need to loosen this if you want to test your site on a separate device (like your phone or tablet). #128 - Restricts live reload to only accept connections from
localhost. You can add your own IP Address or hostname to theallowedHostsoption. #151
- Restricts served traffic to
- CLI drops
--domdiff=false. Use--no-domdiffinstead (this was a dependency change #149)
Features
- Removes
finalhandlerandminimistdependencies, reducing packages from 22 to 13! #149 - Server now runs on a worker thread so requests remain responsive during hefty builds. Use
serverThread: falseto opt-out. - Adds
/clientexport for the reload client JavaScript. - Live reload will now only reload on pages that changed (requires future Core v3.0.0-alpha.11 release, see 11ty/buildawesome#4384)
- Adds TypeScript types #136
- Adds a
data-buildawesome-preserveattribute for opting out of domDiff updates on a specific DOM tree - Follows pages that have moved to a new URL!
- Support
500.htmlfor a custom server error page. - CLI adds support for positional folder argument (behaves the same as
--inputor--dir) - Middleware can now stream responses (including server-sent events) and can proxy requests with bodies #115
- Internals: adds support for
buildawesome.prefixed event names (alongsideeleventy.)
Bug Fixes
- Fixes file system containment with relative paths #152
- Fixes issues with server crashes when receiving malformed messages (or misconfigured middleware) #150, #151
- Client reloader script respects
pathPrefix#89 - Fixes issue with client reload script “trapping” navigation #147
- Fixes issue with back/forward cache navigations triggering reload.
- Fixes issues with long delays on WebSocket close when shutting down the server.
Milestone: https://github.com/11ty/dev-server/milestone/12?closed=1
Full Changelog: v3.0.0-alpha.11...v3.0.0-alpha.12