Skip to content

Releases: jsdom/whatwg-mimetype

4.0.0

11 Nov 07:44
Compare
Choose a tag to compare

Node.js v18 is now the minimum supported version.

3.0.0

18 Sep 19:29
Compare
Choose a tag to compare

Node.js v12 is now the minimum supported version.

Changed the semantics of the isJavaScript() method to allow parameters by default, like the other testing functions and matching the spec definition of JavaScript MIME type. Now you can prohibit parameters by using isJavaScript({ prohibitParameters: true }).

2.3.0

20 Nov 23:59
Compare
Choose a tag to compare

Spec update: use HTTP whitespace instead of ASCII whitespace while parsing, per whatwg/mimesniff@126286a. In practice this means U+000C FF characters are no longer treated specially in parsing.

2.2.0

14 Sep 18:40
Compare
Choose a tag to compare

Spec update: allowed empty string parameter values, per whatwg/mimesniff@190c18a.

2.1.0

04 Feb 20:16
Compare
Choose a tag to compare

Added static MIMEType.parse() factory, to better serve cases where you are parsing unrestricted input strings.

Added an isJavaScript({ allowParameters }) method for checking if a MIME type is a JavaScript MIME type. (@bmeck)

2.0.1

10 Dec 16:59
Compare
Choose a tag to compare

Corrected the README examples to use the correct new package name, instead of the old one. (@mesaugat)

2.0.0

10 Dec 06:30
Compare
Choose a tag to compare

Renamed the package from "content-type-parser" to "whatwg-mimetype", as MIME type is the more general concept, and this is now implementing part of the WHATWG MIME Sniffing Standard.

Replaced the parser and serializer with the newly-specified one from whatwg/mimesniff@cc81ec4.

Overhauled the API to more or less match what is proposed in whatwg/mimesniff#43. Notably, the invariants of the MIME type model are now maintained more aggressively, and the parameters exist on a separate Map-like data structure. Also removed the isText() method, as it's much less interesting than the other two.

1.0.2

23 Oct 00:00
Compare
Choose a tag to compare

Relicensed as MIT.

1.0.1

15 Oct 22:18
Compare
Choose a tag to compare

Removed accidentally-included lib/test.js file.

1.0.0

15 Oct 21:29
Compare
Choose a tag to compare

Extracted from jsdom, with the only change being adding lowercasing of type, subtype, and parameter names.