avancement planning
This commit is contained in:
+7
@@ -1,3 +1,10 @@
|
||||
3.0.2 / 2025-11-20
|
||||
===================
|
||||
|
||||
* Fix: update JSDoc to reflect that functions return only `false` or `string`, not `boolean|string`.
|
||||
* Fix: refined mime-score logic so `.mp4` resolves correctly
|
||||
* Fix:reflect the current Node.js version supported to ≥ 18 (See 3.0.0 for more details).
|
||||
|
||||
3.0.1 / 2025-03-26
|
||||
===================
|
||||
|
||||
|
||||
+4
-4
@@ -45,7 +45,7 @@ populateMaps(exports.extensions, exports.types)
|
||||
* Get the default charset for a MIME type.
|
||||
*
|
||||
* @param {string} type
|
||||
* @return {boolean|string}
|
||||
* @return {false|string}
|
||||
*/
|
||||
|
||||
function charset (type) {
|
||||
@@ -73,7 +73,7 @@ function charset (type) {
|
||||
* Create a full Content-Type header given a MIME type or extension.
|
||||
*
|
||||
* @param {string} str
|
||||
* @return {boolean|string}
|
||||
* @return {false|string}
|
||||
*/
|
||||
|
||||
function contentType (str) {
|
||||
@@ -101,7 +101,7 @@ function contentType (str) {
|
||||
* Get the default extension for a MIME type.
|
||||
*
|
||||
* @param {string} type
|
||||
* @return {boolean|string}
|
||||
* @return {false|string}
|
||||
*/
|
||||
|
||||
function extension (type) {
|
||||
@@ -126,7 +126,7 @@ function extension (type) {
|
||||
* Lookup the MIME type for a file path/extension.
|
||||
*
|
||||
* @param {string} path
|
||||
* @return {boolean|string}
|
||||
* @return {false|string}
|
||||
*/
|
||||
|
||||
function lookup (path) {
|
||||
|
||||
+5
@@ -25,6 +25,11 @@ var TYPE_SCORES = {
|
||||
// prefer font/woff over application/font-woff
|
||||
font: 2,
|
||||
|
||||
// prefer video/mp4 over audio/mp4 over application/mp4
|
||||
// See https://www.rfc-editor.org/rfc/rfc4337.html#section-2
|
||||
audio: 2,
|
||||
video: 3,
|
||||
|
||||
default: 0
|
||||
}
|
||||
|
||||
|
||||
+10
-6
@@ -1,7 +1,7 @@
|
||||
{
|
||||
"name": "mime-types",
|
||||
"description": "The ultimate javascript content-type utility.",
|
||||
"version": "3.0.1",
|
||||
"version": "3.0.2",
|
||||
"contributors": [
|
||||
"Douglas Christopher Wilson <doug@somethingdoug.com>",
|
||||
"Jeremiah Senkpiel <fishrock123@rocketmail.com> (https://searchbeam.jit.su)",
|
||||
@@ -13,18 +13,22 @@
|
||||
"types"
|
||||
],
|
||||
"repository": "jshttp/mime-types",
|
||||
"funding": {
|
||||
"type": "opencollective",
|
||||
"url": "https://opencollective.com/express"
|
||||
},
|
||||
"dependencies": {
|
||||
"mime-db": "^1.54.0"
|
||||
},
|
||||
"devDependencies": {
|
||||
"eslint": "8.33.0",
|
||||
"eslint-config-standard": "14.1.1",
|
||||
"eslint-plugin-import": "2.27.5",
|
||||
"eslint-plugin-markdown": "3.0.0",
|
||||
"eslint-plugin-import": "2.32.0",
|
||||
"eslint-plugin-markdown": "3.0.1",
|
||||
"eslint-plugin-node": "11.1.0",
|
||||
"eslint-plugin-promise": "6.1.1",
|
||||
"eslint-plugin-promise": "6.6.0",
|
||||
"eslint-plugin-standard": "4.1.0",
|
||||
"mocha": "10.2.0",
|
||||
"mocha": "10.8.2",
|
||||
"nyc": "15.1.0"
|
||||
},
|
||||
"files": [
|
||||
@@ -34,7 +38,7 @@
|
||||
"mimeScore.js"
|
||||
],
|
||||
"engines": {
|
||||
"node": ">= 0.6"
|
||||
"node": ">=18"
|
||||
},
|
||||
"scripts": {
|
||||
"lint": "eslint .",
|
||||
|
||||
Reference in New Issue
Block a user