- Drop node <18
- Use
content-type@^1.0.5
andmedia-typer@^1.0.0
for type validation- No behavior changes, upgrades
media-typer
- No behavior changes, upgrades
- deps: mime-types@^3.0.0
- Add
application/toml
with extension.toml
- Add
application/ubjson
with extension.ubj
- Add
application/x-keepass2
with extension.kdbx
- Add deprecated iWorks mime types and extensions
- Add extension
.amr
toaudio/amr
- Add extension
.cjs
toapplication/node
- Add extension
.dbf
toapplication/vnd.dbf
- Add extension
.m4s
tovideo/iso.segment
- Add extension
.mvt
toapplication/vnd.mapbox-vector-tile
- Add extension
.mxmf
toaudio/mobile-xmf
- Add extension
.opus
toaudio/ogg
- Add extension
.rar
toapplication/vnd.rar
- Add extension
.td
toapplication/urc-targetdesc+xml
- Add extension
.trig
toapplication/trig
- Add extensions from IANA for
application/*+xml
types - Add
image/avif
with extension.avif
- Add
image/ktx2
with extension.ktx2
- Add
image/vnd.ms-dds
with extension.dds
- Add new upstream MIME types
- Fix extension of
application/vnd.apple.keynote
to be.key
- Remove ambigious extensions from IANA for
application/*+xml
types - Update primary extension to
.es
forapplication/ecmascript
- Add
- Fix regression passing request object to
typeis.is
- deps: mime-types@~2.1.24
- Add Apple file extensions from IANA
- Add extension
.csl
toapplication/vnd.citationstyles.style+xml
- Add extension
.es
toapplication/ecmascript
- Add extension
.nq
toapplication/n-quads
- Add extension
.nt
toapplication/n-triples
- Add extension
.owl
toapplication/rdf+xml
- Add extensions
.siv
and.sieve
toapplication/sieve
- Add extensions from IANA for
image/*
types - Add extensions from IANA for
model/*
types - Add extensions to HEIC image types
- Add new mime types
- Add
text/mdx
with extension.mdx
- perf: prevent internal
throw
on invalid type
- deps: mime-types@~2.1.18
- Add
application/raml+yaml
with extension.raml
- Add
application/wasm
with extension.wasm
- Add
text/shex
with extension.shex
- Add extensions for JPEG-2000 images
- Add extensions from IANA for
message/*
types - Add extension
.mjs
toapplication/javascript
- Add extension
.wadl
toapplication/vnd.sun.wadl+xml
- Add extension
.gz
toapplication/gzip
- Add glTF types and extensions
- Add new mime types
- Update extensions
.md
and.markdown
to betext/markdown
- Update font MIME types
- Update
text/hjson
to registeredapplication/hjson
- Add
- deps: mime-types@~2.1.15
- Add new mime types
- deps: mime-types@~2.1.13
- Add new mime types
- deps: mime-types@~2.1.11
- Add new mime types
- deps: mime-types@~2.1.10
- Add new mime types
- Fix extension of
application/dash+xml
- Update primary extension for
audio/mp4
- deps: mime-types@~2.1.9
- Add new mime types
- deps: mime-types@~2.1.8
- Add new mime types
- deps: mime-types@~2.1.7
- Add new mime types
- deps: mime-types@~2.1.6
- Add new mime types
- Fix type error when given invalid type to match against
- deps: mime-types@~2.1.5
- Add new mime types
- deps: mime-types@~2.1.4
- Add new mime types
- deps: mime-types@~2.1.3
- Add new mime types
- deps: mime-types@~2.1.2
- Add new mime types
- perf: enable strict mode
- perf: remove argument reassignment
- deps: mime-types@~2.1.1
- Add new mime types
- perf: reduce try block size
- perf: remove bitwise operations
- deps: mime-types@~2.0.11
- Add new mime types
- deps: mime-types@~2.0.10
- Add new mime types
- fix false-positives in
hasBody
Transfer-Encoding
check - support wildcard for both type and subtype (
*/*
)
- fix argument reassignment
- deps: mime-types@~2.0.9
- Add new mime types
- deps: mime-types@~2.0.8
- Add new mime types
- deps: mime-types@~2.0.7
- Add new mime types
- Fix missing extensions
- Fix various invalid MIME type entries
- Remove example template MIME types
- deps: mime-db@~1.5.0
- deps: mime-types@~2.0.4
- Add new mime types
- deps: mime-db@~1.3.0
- deps: mime-types@~2.0.3
- Add new mime types
- deps: mime-db@~1.2.0
- deps: mime-types@~2.0.2
- Add new mime types
- deps: mime-db@~1.1.0
- Support Node.js 0.6
- deps: media-typer@0.3.0
- deps: mime-types@~2.0.1
- Support Node.js 0.6
- fix
hasbody
to be true forcontent-length: 0
- update mime-types
- use
~
range on mime-types
- fix global variable leak
-
improve type parsing
- invalid media type never matches
- media type not case-sensitive
- extra LWS does not affect results
- fix behavior on unknown type argument
- switch dependency from
mime
tomime-types@1.0.0
-
support suffix matching:
+json
matchesapplication/vnd+json
*/vnd+json
matchesapplication/vnd+json
application/*+json
matchesapplication/vnd+json
-
add non-array values support
-
expose internal utilities:
.is()
.hasBody()
.normalize()
.match()
- add
multipart
as a shorthand