Releases: expressjs/serve-index
1.9.2
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/plainandapplication/jsonresponses 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
- @rjoonas made their first contribution in #85
- @inigomarquinez made their first contribution in #110
- @carpasse made their first contribution in #112
- @UlisesGascon made their first contribution in #119
- @dependabot[bot] made their first contribution in #124
- @sheplu made their first contribution in #143
Full Changelog: v1.9.1...v1.9.2
1.9.1
- deps: accepts@~1.3.4
- deps: mime-types@~2.1.16
- deps: [email protected]
- deps: http-errors@~1.6.2
- deps: [email protected]
- 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
- Set
X-Content-Type-Options: nosniffheader - deps: [email protected]
- deps: [email protected]
- Allow colors in workers
- Deprecated
DEBUG_FDenvironment variable set to3or 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
- Make
messageproperty enumerable forHttpErrors - deps: [email protected]
- deps: [email protected]
- deps: statuses@'>= 1.3.1 < 2'
- Make
- deps: mime-types@~2.1.15
- Add new mime types
- Add
audio/mp3
1.8.0
- Make inline file search case-insensitive
- deps: accepts@~1.3.3
- deps: mime-types@~2.1.11
- deps: [email protected]
- perf: improve header parsing speed
- deps: http-errors@~1.5.0
- Use
setprototypeofmodule to replace__proto__setting - deps: [email protected]
- deps: statuses@'>= 1.3.0 < 2'
- perf: enable strict mode
- Use
- 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
- 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
- deps: accepts@~1.2.12
- deps: mime-types@~2.1.4
- deps: mime-types@~2.1.4
- Add new mime types
1.7.1
- deps: accepts@~1.2.10
- deps: mime-types@~2.1.2
- deps: mime-types@~2.1.2
- Add new mime types
1.7.0
- Accept
functionvalue fortemplateoption - Send non-chunked response for
OPTIONS - Stat parent directory when necessary
- Use
Date.prototype.toLocaleDateStringto 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
- deps: accepts@~1.2.7
- deps: mime-types@~2.0.11
- deps: [email protected]
- deps: debug@~2.2.0
- deps: [email protected]
- deps: mime-types@~2.0.11
- Add new mime types
1.6.3
- Properly escape file names in HTML
- deps: accepts@~1.2.5
- deps: mime-types@~2.0.10
- deps: debug@~2.1.3
- Fix high intensity foreground color for bold
- deps: [email protected]
- deps: [email protected]
- deps: mime-types@~2.0.10
- Add new mime types