Releases: 11ty/eleventy-dev-server
Releases Β· 11ty/eleventy-dev-server
Eleventy Dev Server v2.0.8
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
- Adds support for
Response
objects returned fromonRequest
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
- Adds npm release provenance for more reliable publishing.
Full Changelog: v2.0.5...v2.0.6
Eleventy Dev Server v2.0.5
- 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
- fix: bumps
send
dependency to version 0.19.0 by @bu-michael in #92
Minutiae
- Included with Eleventy core
v3.0.0-beta.2
v3.0.0-alpha.19
. - New Contributors: @bu-michael
- Full Changelog: v2.0.3...v2.0.4
- Milestone: https://github.com/11ty/eleventy-dev-server/milestone/8?closed=1
Eleventy Dev Server v2.0.3
- 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
- Re-attach updated custom element nodes to reapply web component
Minutiae
- Included with Eleventy core
v3.0.0-beta.2
v3.0.0-alpha.19
. - New Contributors: @vrugtehagel
- Full Changelog: v2.0.2...v2.0.3
- Milestone: https://github.com/11ty/eleventy-dev-server/milestone/7?closed=1
Eleventy Dev Server v2.0.2
- Makes shutdown process asynchronous and graceful by @VividVisions in #85
- Included with Eleventy core
v3.0.0-alpha.18
. - Full Changelog: v2.0.1...v2.0.2
- Milestone: https://github.com/11ty/eleventy-dev-server/milestone/6?closed=1
Eleventy Dev Server v2.0.1
- 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
- Full Changelog: v1.0.4...v2.0.0
- Milestone: https://github.com/11ty/eleventy-dev-server/milestone/4?closed=1
- Eleventy Dev Server documentation
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 viasetServerOptions
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 fromindex.html
by @dpikt in #69 - Bugfix for trailing slash redirects when using pathPrefix option. by @petershafer in #64
New Contributors
- @bcole808 made their first contribution in #76
- @joemaller made their first contribution in #62
- @dpikt made their first contribution in #69
- @petershafer made their first contribution in #64
Eleventy Dev Server v1.0.4
What's Changed
- Allows setting content type header via middleware by @sguter90 in #47
- Add sec-fetch-mode check for XHR/Fetch content by @thomaswilburn in #52
- Fix for JS errors on custom 404 pages (via Dev Server CSP) #55
- Fix for extra 404 page content on serverless routes on projects using a custom 404 page #58
- Full Changelog: v1.0.3...v1.0.4
- Milestone: https://github.com/11ty/eleventy-dev-server/milestone/3?closed=1