-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Squashed 'mime-types/' content from commit 0ac5fe1
git-subtree-dir: mime-types git-subtree-split: 0ac5fe1ad9008b4b141e9f32fb4d63a6478669ba
- Loading branch information
0 parents
commit 668ad07
Showing
11 changed files
with
990 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
coverage | ||
node_modules |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
root: true | ||
extends: standard |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
.nyc_output | ||
coverage | ||
node_modules | ||
npm-debug.log | ||
package-lock.json |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,91 @@ | ||
language: node_js | ||
node_js: | ||
- "0.6" | ||
- "0.8" | ||
- "0.10" | ||
- "0.12" | ||
- "1.8" | ||
- "2.5" | ||
- "3.3" | ||
- "4.9" | ||
- "5.12" | ||
- "6.16" | ||
- "7.10" | ||
- "8.15" | ||
- "9.11" | ||
- "10.15" | ||
- "11.9" | ||
sudo: false | ||
dist: trusty | ||
env: | ||
global: | ||
# Suppress Node.js 0.6 compile warnings | ||
- "CXXCOM='$CXX -o $TARGET -c $CXXFLAGS $CCFLAGS -Wno-unused-local-typedefs -Wno-maybe-uninitialized -Wno-narrowing -Wno-strict-overflow $_CCCOMCOM $SOURCES'" | ||
cache: | ||
directories: | ||
- node_modules | ||
before_install: | ||
# Configure npm | ||
- | | ||
# Skip updating shrinkwrap / lock | ||
npm config set shrinkwrap false | ||
# Setup Node.js version-specific dependencies | ||
- | | ||
# mocha for testing | ||
# - use 1.x for Node.js < 0.8 | ||
# - use 2.x for Node.js < 0.10 | ||
# - use 3.x for Node.js < 6 | ||
if [[ "$(cut -d. -f1 <<< "$TRAVIS_NODE_VERSION")" -eq 0 && "$(cut -d. -f2 <<< "$TRAVIS_NODE_VERSION")" -lt 8 ]]; then | ||
npm install --save-dev mocha@1.21.5 | ||
elif [[ "$(cut -d. -f1 <<< "$TRAVIS_NODE_VERSION")" -eq 0 && "$(cut -d. -f2 <<< "$TRAVIS_NODE_VERSION")" -lt 10 ]]; then | ||
npm install --save-dev mocha@2.5.3 | ||
elif [[ "$(cut -d. -f1 <<< "$TRAVIS_NODE_VERSION")" -lt 6 ]]; then | ||
npm install --save-dev mocha@3.5.3 | ||
fi | ||
- | | ||
# nyc for coverage | ||
# - remove for Node.js < 0.10 | ||
# - use 10.x for Node.js < 4 | ||
# - use 11.x for Node.js < 6 | ||
if [[ "$(cut -d. -f1 <<< "$TRAVIS_NODE_VERSION")" -eq 0 && "$(cut -d. -f2 <<< "$TRAVIS_NODE_VERSION")" -lt 10 ]]; then | ||
npm rm --save-dev nyc | ||
elif [[ "$(cut -d. -f1 <<< "$TRAVIS_NODE_VERSION")" -lt 4 ]]; then | ||
npm install --save-dev nyc@10.3.2 | ||
elif [[ "$(cut -d. -f1 <<< "$TRAVIS_NODE_VERSION")" -lt 6 ]]; then | ||
npm install --save-dev nyc@11.9.0 | ||
fi | ||
- | | ||
# eslint for linting | ||
# - remove on Node.js < 6 | ||
if [[ "$(cut -d. -f1 <<< "$TRAVIS_NODE_VERSION")" -lt 6 ]]; then | ||
node -pe 'Object.keys(require("./package").devDependencies).join("\n")' | \ | ||
grep -E '^eslint(-|$)' | \ | ||
xargs npm rm --save-dev | ||
fi | ||
# Update Node.js modules | ||
- | | ||
# Prune & rebuild node_modules | ||
if [[ -d node_modules ]]; then | ||
npm prune | ||
npm rebuild | ||
fi | ||
script: | ||
- | | ||
# Run test script, depending on istanbul install | ||
if [[ -z "$(npm -ps ls istanbul)" ]]; then | ||
npm test | ||
else | ||
npm run-script test-travis | ||
fi | ||
- | | ||
# Run linting, if eslint exists | ||
if [[ -n "$(npm -ps ls eslint)" ]]; then | ||
npm run-script lint | ||
fi | ||
after_script: | ||
- | | ||
# Upload coverage to coveralls if exists | ||
if [[ -d .nyc_output ]]; then | ||
npm install --save-dev coveralls@2 | ||
nyc report --reporter=text-lcov | coveralls | ||
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,294 @@ | ||
2.1.22 / 2019-02-14 | ||
=================== | ||
|
||
* deps: mime-db@~1.38.0 | ||
- Add extension `.nq` to `application/n-quads` | ||
- Add extension `.nt` to `application/n-triples` | ||
- Add new upstream MIME types | ||
- Mark `text/less` as compressible | ||
|
||
2.1.21 / 2018-10-19 | ||
=================== | ||
|
||
* deps: mime-db@~1.37.0 | ||
- Add extensions to HEIC image types | ||
- Add new upstream MIME types | ||
|
||
2.1.20 / 2018-08-26 | ||
=================== | ||
|
||
* deps: mime-db@~1.36.0 | ||
- Add Apple file extensions from IANA | ||
- Add extensions from IANA for `image/*` types | ||
- Add new upstream MIME types | ||
|
||
2.1.19 / 2018-07-17 | ||
=================== | ||
|
||
* deps: mime-db@~1.35.0 | ||
- Add extension `.csl` to `application/vnd.citationstyles.style+xml` | ||
- Add extension `.es` to `application/ecmascript` | ||
- Add extension `.owl` to `application/rdf+xml` | ||
- Add new upstream MIME types | ||
- Add UTF-8 as default charset for `text/turtle` | ||
|
||
2.1.18 / 2018-02-16 | ||
=================== | ||
|
||
* deps: mime-db@~1.33.0 | ||
- 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 new upstream MIME types | ||
- Update font MIME types | ||
- Update `text/hjson` to registered `application/hjson` | ||
|
||
2.1.17 / 2017-09-01 | ||
=================== | ||
|
||
* deps: mime-db@~1.30.0 | ||
- Add `application/vnd.ms-outlook` | ||
- Add `application/x-arj` | ||
- Add extension `.mjs` to `application/javascript` | ||
- Add glTF types and extensions | ||
- Add new upstream MIME types | ||
- Add `text/x-org` | ||
- Add VirtualBox MIME types | ||
- Fix `source` records for `video/*` types that are IANA | ||
- Update `font/opentype` to registered `font/otf` | ||
|
||
2.1.16 / 2017-07-24 | ||
=================== | ||
|
||
* deps: mime-db@~1.29.0 | ||
- Add `application/fido.trusted-apps+json` | ||
- Add extension `.wadl` to `application/vnd.sun.wadl+xml` | ||
- Add extension `.gz` to `application/gzip` | ||
- Add new upstream MIME types | ||
- Update extensions `.md` and `.markdown` to be `text/markdown` | ||
|
||
2.1.15 / 2017-03-23 | ||
=================== | ||
|
||
* deps: mime-db@~1.27.0 | ||
- Add new mime types | ||
- Add `image/apng` | ||
|
||
2.1.14 / 2017-01-14 | ||
=================== | ||
|
||
* deps: mime-db@~1.26.0 | ||
- Add new mime types | ||
|
||
2.1.13 / 2016-11-18 | ||
=================== | ||
|
||
* deps: mime-db@~1.25.0 | ||
- Add new mime types | ||
|
||
2.1.12 / 2016-09-18 | ||
=================== | ||
|
||
* deps: mime-db@~1.24.0 | ||
- Add new mime types | ||
- Add `audio/mp3` | ||
|
||
2.1.11 / 2016-05-01 | ||
=================== | ||
|
||
* deps: mime-db@~1.23.0 | ||
- Add new mime types | ||
|
||
2.1.10 / 2016-02-15 | ||
=================== | ||
|
||
* deps: mime-db@~1.22.0 | ||
- Add new mime types | ||
- Fix extension of `application/dash+xml` | ||
- Update primary extension for `audio/mp4` | ||
|
||
2.1.9 / 2016-01-06 | ||
================== | ||
|
||
* deps: mime-db@~1.21.0 | ||
- Add new mime types | ||
|
||
2.1.8 / 2015-11-30 | ||
================== | ||
|
||
* deps: mime-db@~1.20.0 | ||
- Add new mime types | ||
|
||
2.1.7 / 2015-09-20 | ||
================== | ||
|
||
* deps: mime-db@~1.19.0 | ||
- Add new mime types | ||
|
||
2.1.6 / 2015-09-03 | ||
================== | ||
|
||
* deps: mime-db@~1.18.0 | ||
- Add new mime types | ||
|
||
2.1.5 / 2015-08-20 | ||
================== | ||
|
||
* deps: mime-db@~1.17.0 | ||
- Add new mime types | ||
|
||
2.1.4 / 2015-07-30 | ||
================== | ||
|
||
* deps: mime-db@~1.16.0 | ||
- Add new mime types | ||
|
||
2.1.3 / 2015-07-13 | ||
================== | ||
|
||
* deps: mime-db@~1.15.0 | ||
- Add new mime types | ||
|
||
2.1.2 / 2015-06-25 | ||
================== | ||
|
||
* deps: mime-db@~1.14.0 | ||
- Add new mime types | ||
|
||
2.1.1 / 2015-06-08 | ||
================== | ||
|
||
* perf: fix deopt during mapping | ||
|
||
2.1.0 / 2015-06-07 | ||
================== | ||
|
||
* Fix incorrectly treating extension-less file name as extension | ||
- i.e. `'path/to/json'` will no longer return `application/json` | ||
* Fix `.charset(type)` to accept parameters | ||
* Fix `.charset(type)` to match case-insensitive | ||
* Improve generation of extension to MIME mapping | ||
* Refactor internals for readability and no argument reassignment | ||
* Prefer `application/*` MIME types from the same source | ||
* Prefer any type over `application/octet-stream` | ||
* deps: mime-db@~1.13.0 | ||
- Add nginx as a source | ||
- Add new mime types | ||
|
||
2.0.14 / 2015-06-06 | ||
=================== | ||
|
||
* deps: mime-db@~1.12.0 | ||
- Add new mime types | ||
|
||
2.0.13 / 2015-05-31 | ||
=================== | ||
|
||
* deps: mime-db@~1.11.0 | ||
- Add new mime types | ||
|
||
2.0.12 / 2015-05-19 | ||
=================== | ||
|
||
* deps: mime-db@~1.10.0 | ||
- Add new mime types | ||
|
||
2.0.11 / 2015-05-05 | ||
=================== | ||
|
||
* deps: mime-db@~1.9.1 | ||
- Add new mime types | ||
|
||
2.0.10 / 2015-03-13 | ||
=================== | ||
|
||
* deps: mime-db@~1.8.0 | ||
- Add new mime types | ||
|
||
2.0.9 / 2015-02-09 | ||
================== | ||
|
||
* deps: mime-db@~1.7.0 | ||
- Add new mime types | ||
- Community extensions ownership transferred from `node-mime` | ||
|
||
2.0.8 / 2015-01-29 | ||
================== | ||
|
||
* deps: mime-db@~1.6.0 | ||
- Add new mime types | ||
|
||
2.0.7 / 2014-12-30 | ||
================== | ||
|
||
* deps: mime-db@~1.5.0 | ||
- Add new mime types | ||
- Fix various invalid MIME type entries | ||
|
||
2.0.6 / 2014-12-30 | ||
================== | ||
|
||
* deps: mime-db@~1.4.0 | ||
- Add new mime types | ||
- Fix various invalid MIME type entries | ||
- Remove example template MIME types | ||
|
||
2.0.5 / 2014-12-29 | ||
================== | ||
|
||
* deps: mime-db@~1.3.1 | ||
- Fix missing extensions | ||
|
||
2.0.4 / 2014-12-10 | ||
================== | ||
|
||
* deps: mime-db@~1.3.0 | ||
- Add new mime types | ||
|
||
2.0.3 / 2014-11-09 | ||
================== | ||
|
||
* deps: mime-db@~1.2.0 | ||
- Add new mime types | ||
|
||
2.0.2 / 2014-09-28 | ||
================== | ||
|
||
* deps: mime-db@~1.1.0 | ||
- Add new mime types | ||
- Add additional compressible | ||
- Update charsets | ||
|
||
2.0.1 / 2014-09-07 | ||
================== | ||
|
||
* Support Node.js 0.6 | ||
|
||
2.0.0 / 2014-09-02 | ||
================== | ||
|
||
* Use `mime-db` | ||
* Remove `.define()` | ||
|
||
1.0.2 / 2014-08-04 | ||
================== | ||
|
||
* Set charset=utf-8 for `text/javascript` | ||
|
||
1.0.1 / 2014-06-24 | ||
================== | ||
|
||
* Add `text/jsx` type | ||
|
||
1.0.0 / 2014-05-12 | ||
================== | ||
|
||
* Return `false` for unknown types | ||
* Set charset=utf-8 for `application/json` | ||
|
||
0.1.0 / 2014-05-02 | ||
================== | ||
|
||
* Initial release |
Oops, something went wrong.