Skip to content

Releases: lukeed/sirv

v2.0.4

20 Dec 16:12
Compare
Choose a tag to compare

Patches


Full Changelog: v2.0.3...v2.0.4

v2.0.3

24 Apr 20:32
Compare
Choose a tag to compare

Patches

  • fix(sirv): avoid false-positive on too big range end by @dmkret in #147
  • fix(sirv): correctly decode path by @benmccann in #149

Full Changelog: v2.0.2...v2.0.3

v2.0.2

17 Jan 21:09
Compare
Choose a tag to compare

Patches

  • (sirv) Bump totalist version: e8c66e2
    This allows for full native ESM support on Node.js

Full Changelog: v2.0.0...v2.0.2

v2.0.0

29 Dec 20:31
Compare
Choose a tag to compare

Breaking

  • (sirv-cli) Change default port from 5000 to 8080 (#124): 93a920b
    With macOS Monterey, Apple now reserves port 5000 for AirPlay. This would cause sirv-cli to start seemingly successfully, but macOS would intercept all traffic to localhost:5000, causing unexpected behavior for users/clients.

Features

  • (sirv): Supports native ESM usage within Node~!
    Now sirv and all its dependencies support ESM natively.

  • (sirv-cli): Support the NO_COLOR standard (#108): 4b8703b
    Thank you @SpyTec~!

Chores

  • (sirv): Bump totalist version (#86): 0cf66d8
    Thank you @aleclarson~!

  • Add http-server benchmark comparison (#4): 17ea37f

    http-server (cache=1)	     5,247 req/sec
    http-server (cache=0)	     5,091 req/sec
    sirv-cli (cache=1)	        12,612 req/sec
    sirv-cli (cache=0)	         8,490 req/sec
    sirv-cli (cache=1, logs=0)  13,609 req/sec
    sirv-cli (cache=0, logs=0)  10,157 req/sec  
    

Full Changelog: v1.0.19...v2.0.0

v1.0.19

01 Dec 08:13
Compare
Choose a tag to compare

Patches

  • Replace mime/lite with mrmime: d93f33f
    Dependency swap for a significant size reduction and makes sirv more ESM-friendly.

Chores


Full Changelog: v1.0.18...v1.0.19

v1.0.18

15 Oct 17:47
Compare
Choose a tag to compare

Patches


Full Changelog: v1.0.17...v1.0.18

v1.0.14

14 Aug 00:37
Compare
Choose a tag to compare

Chores

  • (sirv): Bump @polka/url to take advantage of this fix

v1.0.13

13 Aug 22:36
Compare
Choose a tag to compare

Patches

  • (sirv) Only use req.path if has req._decoded flag exists (#82):

    The req._decoded check was added & should have always been in there, since this was sirv's way of preventing duplicate decodeURIComponent calls. However, this was only true when it received a request from a polka@next app, since Polka was previously writing the decoded value to req.path – this changed with polka@v1.0.0-next.16

    Now that the latest polka@next (and Express) doesn't decode automatically anymore, req.path isn't trustworthy on its own. It needs req._decoded to be there too in order to trust it.

    This combo-check is backwards compatible for polka@next users who don't upgrade and will unblock Express users for the first time, who have always had a "raw" req.path value set.

v1.0.12

24 May 23:11
Compare
Choose a tag to compare

Patches

  • (sirv-cli): Ensure boolean options are parsed as booleans (#97): 8ebca7c
  • (sirv): Bump @polka/url dependency version: 7c5162a

Chores

v1.0.11

30 Jan 18:33
Compare
Choose a tag to compare

Patches