Skip to content

Releases: expressjs/serve-index

1.9.2

22 Jan 14:52
6f86a18

Choose a tag to compare

What's Changed

🐞 Bug fixes

  • Icons for MIME types containing "+" were not displayed correctly - by @dougwilson in 4e7785c

    fixed where file icons with MIME types containing the "+" character (such as image/svg+xml) were not displayed correctly. The bug occurred during the conversion of the MIME type to a CSS class name, since the "+" symbol is not valid in class names.

  • Improved error handling for malformed URIs by @rjoonas in #85

    The HTTP response status code has been fixed for cases where the server receives a URI that cannot be properly decoded. It now returns a 400 (Bad Request) error instead of a 500 (Internal Server Error), more accurately reflecting that the issue is with the client’s request rather than the server itself.

🚀 Improvements

  • Sorting in text/plain and application/json responses by @dougwilson in 002a251

  • Show font icon for more font types - by @dougwilson in 9d29665

    Support has been expanded to display the font icon in directory listings. Now all font file formats will automatically show the corresponding icon, instead of only a few specific formats as before.

PRs

  • Serve HTTP 400 instead of throwing on badly encoded request URI by @rjoonas in #85
  • chore: add support for OSSF scorecard reporting by @inigomarquinez in #110
  • ci: replace travis with github action by @inigomarquinez in #109
  • chore: upgrade scorecard workflow pinned action versions by @carpasse in #112
  • ci: apply OSSF Scorecard security best practices by @UlisesGascon in #119
  • ci: upgrade Node versions by @UlisesGascon in #128
  • build(deps): bump github/codeql-action from 3.27.9 to 3.28.19 by @dependabot[bot] in #124
  • build(deps): bump coverallsapp/github-action from 1.2.5 to 2.3.6 by @dependabot[bot] in #121
  • build(deps): bump actions/upload-artifact from 4.5.0 to 4.6.2 by @dependabot[bot] in #122
  • build(deps): bump ossf/scorecard-action from 2.4.0 to 2.4.2 by @dependabot[bot] in #123
  • chore: add funding to package.json by @bjohansebas in #131
  • build(deps): bump step-security/harden-runner from 2.12.0 to 2.13.0 by @dependabot[bot] in #132
  • build(deps): bump github/codeql-action from 3.28.19 to 3.29.5 by @dependabot[bot] in #133
  • doc(package): remove history.md and add readme.md to published files by @sheplu in #143
  • fix: downgrade supertest to version 6.3.4 for restore ci by @bjohansebas in #145
  • build(deps): update accepts and mime-types dependencies to latest versions by @bjohansebas in #147
  • build(deps): bump actions/checkout from 4.2.2 to 6.0.1 by @dependabot[bot] in #135
  • build(deps): bump ossf/scorecard-action from 2.4.2 to 2.4.3 by @dependabot[bot] in #137
  • build(deps): bump actions/upload-artifact from 4.6.2 to 6.0.0 by @dependabot[bot] in #140
  • build(deps): bump step-security/harden-runner from 2.13.0 to 2.14.0 by @dependabot[bot] in #139

New Contributors

Full Changelog: v1.9.1...v1.9.2

1.9.1

29 Sep 04:24

Choose a tag to compare

  • deps: accepts@~1.3.4
    • deps: mime-types@~2.1.16
  • deps: [email protected]
  • deps: http-errors@~1.6.2
  • deps: mime-types@~2.1.17
    • Add new mime types
    • deps: mime-db@~1.30.0
  • deps: parseurl@~1.3.2
    • perf: reduce overhead for full URLs
    • perf: unroll the "fast-path" RegExp

1.9.0

25 May 19:46

Choose a tag to compare

  • Set X-Content-Type-Options: nosniff header
  • deps: [email protected]
  • deps: [email protected]
    • Allow colors in workers
    • Deprecated DEBUG_FD environment variable set to 3 or higher
    • Fix DEBUG_MAX_ARRAY_LENGTH
    • Fix error when running under React Native
    • Use same color for same namespace
    • deps: [email protected]
  • deps: http-errors@~1.6.1
  • deps: mime-types@~2.1.15
    • Add new mime types
    • Add audio/mp3

1.8.0

27 Mar 04:26

Choose a tag to compare

  • Make inline file search case-insensitive
  • deps: accepts@~1.3.3
  • deps: http-errors@~1.5.0
    • Use setprototypeof module to replace __proto__ setting
    • deps: [email protected]
    • deps: statuses@'>= 1.3.0 < 2'
    • perf: enable strict mode
  • deps: mime-types@~2.1.11
    • Add new mime types
    • Update primary extension for audio/mp4
    • deps: mime-db@~1.23.0

1.7.3

24 Jan 23:28

Choose a tag to compare

  • deps: accepts@~1.2.13
    • deps: mime-types@~2.1.6
  • deps: [email protected]
    • Fix invalid dependency for browserify
  • deps: escape-html@~1.0.3
    • perf: enable strict mode
    • perf: optimize string replacement
    • perf: use faster string coercion
  • deps: mime-types@~2.1.9
    • Add new mime types
  • deps: parseurl@~1.3.1
    • perf: enable strict mode

1.7.2

31 Jul 04:08

Choose a tag to compare

  • deps: accepts@~1.2.12
    • deps: mime-types@~2.1.4
  • deps: mime-types@~2.1.4
    • Add new mime types

1.7.1

06 Jul 03:33

Choose a tag to compare

  • deps: accepts@~1.2.10
    • deps: mime-types@~2.1.2
  • deps: mime-types@~2.1.2
    • Add new mime types

1.7.0

06 Jul 03:32

Choose a tag to compare

  • Accept function value for template option
  • Send non-chunked response for OPTIONS
  • Stat parent directory when necessary
  • Use Date.prototype.toLocaleDateString to format date
  • deps: accepts@~1.2.9
    • deps: mime-types@~2.1.1
    • deps: [email protected]
    • perf: avoid argument reassignment & argument slice
    • perf: avoid negotiator recursive construction
    • perf: enable strict mode
    • perf: remove unnecessary bitwise operator
  • deps: [email protected]
  • deps: mime-types@~2.1.1
    • Add new mime types
  • perf: enable strict mode
  • perf: remove argument reassignment

1.6.4

13 May 01:29

Choose a tag to compare

1.6.3

14 Mar 05:23

Choose a tag to compare

  • Properly escape file names in HTML
  • deps: accepts@~1.2.5
    • deps: mime-types@~2.0.10
  • deps: debug@~2.1.3
  • deps: [email protected]
  • deps: mime-types@~2.0.10
    • Add new mime types