From a430ac33b636f989fd68e58d70650fb8d3445c31 Mon Sep 17 00:00:00 2001 From: kj Date: Thu, 11 Jan 2024 13:09:37 -0800 Subject: [PATCH 1/8] Adds avif mime type --- src/lib/common-mime-types.js | 1 + 1 file changed, 1 insertion(+) diff --git a/src/lib/common-mime-types.js b/src/lib/common-mime-types.js index 6f89cac..891b31b 100644 --- a/src/lib/common-mime-types.js +++ b/src/lib/common-mime-types.js @@ -81,6 +81,7 @@ module.exports = { ttf: `${d}/ttf`, woff: `${d}/woff`, woff2: `${d}/woff2`, + avif: `${c}/avif`, gif: `${c}/gif`, jp2: `${c}/jp2`, jpg2: `${c}/jp2`, From bb48c99e58ac2155ea5dd0e551346be63f135d6a Mon Sep 17 00:00:00 2001 From: kj Date: Thu, 11 Jan 2024 13:17:08 -0800 Subject: [PATCH 2/8] Updates changelog --- _changelog.md | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/_changelog.md b/_changelog.md index 93c14d5..f43bd7a 100644 --- a/_changelog.md +++ b/_changelog.md @@ -2,6 +2,14 @@ --- +## [6.0.5] 2024-01-11 + +### Added + +- Added avif to mime types; + +--- + ## [6.0.4] 2023-11-20 ### Fixed From b5f49811ec4698fcec6474419f9a1ba4aa4433ec Mon Sep 17 00:00:00 2001 From: Ryan Block Date: Thu, 11 Jan 2024 15:17:22 -0800 Subject: [PATCH 3/8] Update mime type list for vendoring script --- _changelog.md | 2 +- scripts/common-mime-type-list.js | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/_changelog.md b/_changelog.md index f43bd7a..3ee0dde 100644 --- a/_changelog.md +++ b/_changelog.md @@ -6,7 +6,7 @@ ### Added -- Added avif to mime types; +- Added `image/avif` to mime types --- diff --git a/scripts/common-mime-type-list.js b/scripts/common-mime-type-list.js index bd1dadf..076dda3 100644 --- a/scripts/common-mime-type-list.js +++ b/scripts/common-mime-type-list.js @@ -67,6 +67,7 @@ module.exports = [ 'font/ttf', 'font/woff', 'font/woff2', + 'image/avif', 'image/gif', 'image/jp2', 'image/jpeg', From 9756fe727e2381ce679428994b113dfb900e3b49 Mon Sep 17 00:00:00 2001 From: Ryan Block Date: Thu, 11 Jan 2024 15:17:34 -0800 Subject: [PATCH 4/8] 6.0.5 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 06e30bc..00fb5c1 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@architect/asap", - "version": "6.0.4", + "version": "6.0.5", "description": "Architect Static Asset Proxy (ASAP) - a helpful library for Lambda-based static asset delivery", "main": "src/asap.js", "scripts": { From 0671a9a92dbfdf70a331c8c7ed7af386396da504 Mon Sep 17 00:00:00 2001 From: kj Date: Fri, 12 Jan 2024 14:23:26 -0800 Subject: [PATCH 5/8] Adds avif to binary types --- src/lib/binary-types.js | 1 + 1 file changed, 1 insertion(+) diff --git a/src/lib/binary-types.js b/src/lib/binary-types.js index 0b66eb6..60f6271 100644 --- a/src/lib/binary-types.js +++ b/src/lib/binary-types.js @@ -18,6 +18,7 @@ module.exports = [ 'font/woff', 'font/woff2', // Images + 'image/avif', 'image/bmp', 'image/gif', 'image/heic', From 65bbc121a99b19832e6f80f0dee134607ccc99fb Mon Sep 17 00:00:00 2001 From: kj Date: Fri, 12 Jan 2024 14:30:03 -0800 Subject: [PATCH 6/8] Updates changelog --- _changelog.md | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/_changelog.md b/_changelog.md index 3ee0dde..519c1d4 100644 --- a/_changelog.md +++ b/_changelog.md @@ -2,6 +2,14 @@ --- +## [6.0.6] 2024-01-11 + +### Added + +- Added `image/avif` to binary types + +--- + ## [6.0.5] 2024-01-11 ### Added From 321f8febf9d4686c869ad25e1784f61b1fa68d7d Mon Sep 17 00:00:00 2001 From: Ryan Block Date: Wed, 17 Jan 2024 13:45:50 -0800 Subject: [PATCH 7/8] Add JPEG2000 file format support; fixes #1474 Fix AVIF file format support; thanks @jessehattabaugh --- _changelog.md | 9 +++++++-- scripts/common-mime-type-list.js | 4 ++++ src/lib/binary-extensions.js | 2 +- src/lib/binary-types.js | 10 +++++++--- src/lib/common-mime-types.js | 5 +++++ 5 files changed, 24 insertions(+), 6 deletions(-) diff --git a/_changelog.md b/_changelog.md index 519c1d4..e371e9b 100644 --- a/_changelog.md +++ b/_changelog.md @@ -6,7 +6,12 @@ ### Added -- Added `image/avif` to binary types +- Added JPEG2000 file format support; fixes #1474 + + +### Fixed + +- Fixed AVIF file format support; thanks @jessehattabaugh --- @@ -14,7 +19,7 @@ ### Added -- Added `image/avif` to mime types +- Added AVIF file format support --- diff --git a/scripts/common-mime-type-list.js b/scripts/common-mime-type-list.js index 076dda3..beb9131 100644 --- a/scripts/common-mime-type-list.js +++ b/scripts/common-mime-type-list.js @@ -72,6 +72,9 @@ module.exports = [ 'image/jp2', 'image/jpeg', 'image/jpg', + 'image/jpg2', + 'image/jpm', + 'image/jpx', 'image/pjpeg', 'image/png', 'image/svg+xml', @@ -100,6 +103,7 @@ module.exports = [ 'text/x-vcalendar', 'text/x-vcard', 'text/xml', + 'video/mj2', 'video/mp4', 'video/webm', 'video/x-ms-asf', diff --git a/src/lib/binary-extensions.js b/src/lib/binary-extensions.js index 4415e42..72269cf 100644 --- a/src/lib/binary-extensions.js +++ b/src/lib/binary-extensions.js @@ -1,2 +1,2 @@ // This file is auto-generated via npm run vendor -module.exports = [ '3g2', '3gp', '3gpp', '7z', 'aif', 'aifc', 'aiff', 'au', 'avi', 'azw', 'bin', 'bmp', 'boz', 'bpk', 'buffer', 'bz', 'bz2', 'deb', 'deploy', 'dist', 'distz', 'dll', 'dmg', 'dms', 'doc', 'docx', 'dot', 'dump', 'ear', 'elc', 'epub', 'exe', 'gif', 'h264', 'heic', 'heics', 'heif', 'heifs', 'ico', 'img', 'iso', 'jar', 'jpe', 'jpeg', 'jpg', 'lrf', 'm1v', 'm2a', 'm2v', 'm3a', 'mar', 'mov', 'mp2', 'mp2a', 'mp3', 'mp4', 'mp4v', 'mpe', 'mpeg', 'mpg', 'mpg4', 'mpga', 'mpkg', 'msi', 'msm', 'msp', 'oga', 'ogg', 'ogv', 'opus', 'otf', 'pdf', 'pkg', 'png', 'pot', 'pps', 'ppt', 'pptx', 'qt', 'rar', 'rtf', 'snd', 'so', 'spx', 'tar', 'tif', 'tiff', 'ts', 'war', 'wav', 'webm', 'webp', 'woff', 'woff2', 'xla', 'xlc', 'xlm', 'xls', 'xlsx', 'xlt', 'xlw', 'zip' ] +module.exports = [ '3g2', '3gp', '3gpp', '7z', 'aif', 'aifc', 'aiff', 'au', 'avi', 'avif', 'azw', 'bin', 'bmp', 'boz', 'bpk', 'buffer', 'bz', 'bz2', 'deb', 'deploy', 'dist', 'distz', 'dll', 'dmg', 'dms', 'doc', 'docx', 'dot', 'dump', 'ear', 'elc', 'epub', 'exe', 'gif', 'h264', 'heic', 'heics', 'heif', 'heifs', 'ico', 'img', 'iso', 'jar', 'jp2', 'jpe', 'jpeg', 'jpg', 'jpg2', 'lrf', 'm1v', 'm2a', 'm2v', 'm3a', 'mar', 'mj2', 'mjp2', 'mov', 'mp2', 'mp2a', 'mp3', 'mp4', 'mp4v', 'mpe', 'mpeg', 'mpg', 'mpg4', 'mpga', 'mpkg', 'msi', 'msm', 'msp', 'oga', 'ogg', 'ogv', 'opus', 'otf', 'pdf', 'pkg', 'png', 'pot', 'pps', 'ppt', 'pptx', 'qt', 'rar', 'rtf', 'snd', 'so', 'spx', 'tar', 'tif', 'tiff', 'ts', 'war', 'wav', 'webm', 'webp', 'woff', 'woff2', 'xla', 'xlc', 'xlm', 'xls', 'xlsx', 'xlt', 'xlw', 'zip' ] diff --git a/src/lib/binary-types.js b/src/lib/binary-types.js index 60f6271..9ef5110 100644 --- a/src/lib/binary-types.js +++ b/src/lib/binary-types.js @@ -21,11 +21,14 @@ module.exports = [ 'image/avif', 'image/bmp', 'image/gif', - 'image/heic', 'image/heic-sequence', - 'image/heif', + 'image/heic', 'image/heif-sequence', + 'image/heif', + 'image/jp2', 'image/jpeg', + 'image/jpg', + 'image/jpg2', 'image/png', 'image/tiff', 'image/vnd.microsoft.icon', @@ -41,13 +44,14 @@ module.exports = [ 'audio/x-midi', 'audio/x-wav', // Video + 'video/3gpp-tt', 'video/3gpp', 'video/3gpp2', - 'video/3gpp-tt', 'video/h264', 'video/h265', 'video/h266', 'video/jpeg2000', + 'video/mj2', 'video/mp2t', 'video/mp4', 'video/mpeg', diff --git a/src/lib/common-mime-types.js b/src/lib/common-mime-types.js index 891b31b..bffce5e 100644 --- a/src/lib/common-mime-types.js +++ b/src/lib/common-mime-types.js @@ -88,6 +88,9 @@ module.exports = { jpeg: `${c}/jpeg`, jpg: `${c}/jpeg`, jpe: `${c}/jpeg`, + jpm: `${c}/jpm`, + jpx: `${c}/jpx`, + jpf: `${c}/jpx`, png: `${c}/png`, svg: `${c}/svg+xml`, svgz: `${c}/svg+xml`, @@ -126,6 +129,8 @@ module.exports = { dic: `${f}/x-c`, vcs: `${f}/x-vcalendar`, vcf: `${f}/x-vcard`, + mj2: `${g}/mj2`, + mjp2: `${g}/mj2`, mp4: `${g}/mp4`, mp4v: `${g}/mp4`, mpg4: `${g}/mp4`, From a5ab7bed860a4eb97ca484ce89b35954c1f25bcc Mon Sep 17 00:00:00 2001 From: Ryan Block Date: Wed, 17 Jan 2024 13:48:41 -0800 Subject: [PATCH 8/8] 6.0.6 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 00fb5c1..eaa7a3b 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@architect/asap", - "version": "6.0.5", + "version": "6.0.6", "description": "Architect Static Asset Proxy (ASAP) - a helpful library for Lambda-based static asset delivery", "main": "src/asap.js", "scripts": {