Skip to content

Commit

Permalink
Merge branch 'main' into aws-lite
Browse files Browse the repository at this point in the history
  • Loading branch information
ryanblock committed Jan 24, 2024
2 parents 1889fa3 + a5ab7be commit 22abe80
Show file tree
Hide file tree
Showing 5 changed files with 41 additions and 4 deletions.
21 changes: 21 additions & 0 deletions _changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,27 @@

---

## [6.0.6] 2024-01-11

### Added

- Added JPEG2000 file format support; fixes #1474


### Fixed

- Fixed AVIF file format support; thanks @jessehattabaugh

---

## [6.0.5] 2024-01-11

### Added

- Added AVIF file format support

---

## [6.0.4] 2023-11-20

### Fixed
Expand Down
5 changes: 5 additions & 0 deletions scripts/common-mime-type-list.js
Original file line number Diff line number Diff line change
Expand Up @@ -67,10 +67,14 @@ module.exports = [
'font/ttf',
'font/woff',
'font/woff2',
'image/avif',
'image/gif',
'image/jp2',
'image/jpeg',
'image/jpg',
'image/jpg2',
'image/jpm',
'image/jpx',
'image/pjpeg',
'image/png',
'image/svg+xml',
Expand Down Expand Up @@ -99,6 +103,7 @@ module.exports = [
'text/x-vcalendar',
'text/x-vcard',
'text/xml',
'video/mj2',
'video/mp4',
'video/webm',
'video/x-ms-asf',
Expand Down
2 changes: 1 addition & 1 deletion src/lib/binary-extensions.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

11 changes: 8 additions & 3 deletions src/lib/binary-types.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,13 +18,17 @@ module.exports = [
'font/woff',
'font/woff2',
// Images
'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',
Expand All @@ -40,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',
Expand Down
6 changes: 6 additions & 0 deletions src/lib/common-mime-types.js
Original file line number Diff line number Diff line change
Expand Up @@ -81,12 +81,16 @@ module.exports = {
ttf: `${d}/ttf`,
woff: `${d}/woff`,
woff2: `${d}/woff2`,
avif: `${c}/avif`,
gif: `${c}/gif`,
jp2: `${c}/jp2`,
jpg2: `${c}/jp2`,
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`,
Expand Down Expand Up @@ -125,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`,
Expand Down

0 comments on commit 22abe80

Please sign in to comment.