npm serve-index 1.9.2

8 hours ago

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

Don't miss a new serve-index release

NewReleases is sending notifications on new releases.