Skip to content

Dev Server v3.0.0-alpha.12

Pre-release
Pre-release

Choose a tag to compare

@zachleat zachleat released this 30 Sep 17:42
Immutable release. Only release title and notes can be modified.
5dc5d7a

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 (use host: "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 the allowedHosts option. #151
  • CLI drops --domdiff=false. Use --no-domdiff instead (this was a dependency change #149)

Features

  • Removes finalhandler and minimist dependencies, reducing packages from 22 to 13! #149
  • Server now runs on a worker thread so requests remain responsive during hefty builds. Use serverThread: false to opt-out.
  • Adds /client export 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-preserve attribute for opting out of domDiff updates on a specific DOM tree
  • Follows pages that have moved to a new URL!
  • Support 500.html for a custom server error page.
  • CLI adds support for positional folder argument (behaves the same as --input or --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 (alongside eleventy.)

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