Skip to content

Releases: 11ty/eleventy-dev-server

Eleventy Dev Server v2.0.8

19 Mar 17:11
Compare
Choose a tag to compare
  • Regression in reload client was missing reloads on _includes files #106 #107

Milestone: https://github.com/11ty/eleventy-dev-server/milestone/11?closed=1
Full Changelog: v2.0.7...v2.0.8

Eleventy Dev Server v2.0.7

14 Mar 20:58
Compare
Choose a tag to compare
  • Adds support for Response objects returned from onRequest callbacks, simplifying usage with Fetch and unlocks easy-to-configure proxy server behavior #9
  • Fixes bug with requests to server while it is restarting (improves performance of server close for restart) #103
  • Fixes hot-reload issue with CSS changes outside of <link rel="stylesheet"> usage #88 #63 #99 **
  • Fixes bug with morphdom dependency loading with npm workspaces and Deno #77
  • Adds ready: function(server) callback to configuration options for advanced usage #17 **
  • Adds reloadPort configuration option for separate websocket configuration #105
  • Removes dev-ip dependency #102
eleventyConfig.setServerOptions({
	onRequest: {
		// Proxy all dev server requests to example.com
		"/*": function(req) {
			return fetch(new URL(req.url.pathname, "https://example.com/"));
		}
	}
});

** indicates that this fix required changes to Eleventy core, available in v3.0.1-alpha.5 or newer.

Eleventy Dev Server v2.0.6

15 Jan 14:42
Compare
Choose a tag to compare

Full Changelog: v2.0.5...v2.0.6

Eleventy Dev Server v2.0.5

15 Jan 14:27
Compare
Choose a tag to compare
  • Fixes #98, issue with 404 errors on video requests
  • Shipping with core v3.0.1 (v3.0.1-alpha.4+)
  • Dependency upgrades

Full Changelog: v2.0.4...v2.0.5

Eleventy Dev Server v2.0.4

11 Sep 19:47
Compare
Choose a tag to compare

Minutiae

Eleventy Dev Server v2.0.3

04 Sep 21:43
Compare
Choose a tag to compare
  • Add option for setting default response headers (add your own CORS headers) by @vrugtehagel in #87
  • DOM Diff updates:
    • Re-attach updated custom element nodes to reapply web component connectedCallback logic.
    • Fix for updating Declarative Shadow DOM content #90
    • Full page reload when updating inline <script> content

Minutiae

Eleventy Dev Server v2.0.2

30 Jul 20:01
Compare
Choose a tag to compare

Eleventy Dev Server v2.0.1

04 Jun 17:18
Compare
Choose a tag to compare
  • Adds messageOnStart callback to customize console log message when server starts. #79
  • Adds Node 22 to test suite.
  • Disables disk cache by default (useCache: true option to re-enable). Fixes #60
  • Fixes issue with default domDiff option when using as CLI (enabled by default)
  • Included with Eleventy core v3.0.0-alpha.11.
  • Full Changelog: v2.0.0...v2.0.1
  • Milestone: https://github.com/11ty/eleventy-dev-server/milestone/5?closed=1

Eleventy Dev Server v2.0.0

19 Apr 21:11
Compare
Choose a tag to compare

Changes

Breaking

  • Node minimum bumped from 14 to 18+.

Minor Changes

  • Adds support for on-request handling via the onRequest option passed as third argument to the server constructor (or passed in via setServerOptions in Eleventy. Read more on the Eleventy documentation. Here’s an Eleventy usage example:
eleventyConfig.setServerOptions({
  onRequest: {
    "/foo/:name": function({ url, pattern, patternGroups }) {
      // Can return false (to skip), a string (for body content), or object for more advanced processing, e.g.:
      return {
        status: 200,
        headers: {
          "Content-Type": "text/html",
        },
        body: `Hello.`
      };
    }
  }
});
  • Fix CSS live reload behavior when some stylesheets have no URL by @bcole808 in #76
  • Add support for byte-range requests by @joemaller in #62
  • Add indexFileName option to change default index filename from index.html by @dpikt in #69
  • Bugfix for trailing slash redirects when using pathPrefix option. by @petershafer in #64

New Contributors

Eleventy Dev Server v1.0.4

13 Mar 19:25
Compare
Choose a tag to compare

What's Changed

Eleventy Dev Server documentation