Comparing version 2.6.0 to 3.0.0
@@ -5,2 +5,18 @@ # Changelog | ||
## [3.0.0](https://github.com/broofa/mime/compare/v2.6.0...v3.0.0) (2021-11-03) | ||
### ⚠ BREAKING CHANGES | ||
* drop support for node < 10.x | ||
### Bug Fixes | ||
* skypack.dev for direct browser import, fixes [#263](https://github.com/broofa/mime/issues/263) ([41db4c0](https://github.com/broofa/mime/commit/41db4c042ccf50ea7baf3d2160ea37dcca37998d)) | ||
### update | ||
* drop support for node < 10.x ([8857363](https://github.com/broofa/mime/commit/8857363ae0446ed0229b17291cf4483cf801f0d0)) | ||
## [2.6.0](https://github.com/broofa/mime/compare/v2.5.2...v2.6.0) (2021-11-02) | ||
@@ -7,0 +23,0 @@ |
@@ -8,3 +8,3 @@ { | ||
"engines": { | ||
"node": ">=4.0.0" | ||
"node": ">=10.0.0" | ||
}, | ||
@@ -52,3 +52,3 @@ "bin": { | ||
}, | ||
"version": "2.6.0" | ||
"version": "3.0.0" | ||
} |
@@ -10,12 +10,2 @@ <!-- | ||
## Version 2 Notes | ||
Version 2 is a breaking change from 1.x as the semver implies. Specifically: | ||
* `lookup()` renamed to `getType()` | ||
* `extension()` renamed to `getExtension()` | ||
* `charset()` and `load()` methods have been removed | ||
If you prefer the legacy version of this module please `npm install mime@^1`. Version 1 docs may be found [here](https://github.com/broofa/mime/tree/v1.4.0). | ||
## Install | ||
@@ -32,17 +22,18 @@ | ||
[webpack](https://webpack.github.io/) or [browserify](http://browserify.org/) to | ||
package your code. However, browser-ready versions are available via wzrd.in. | ||
E.g. For the full version: | ||
package your code. However, browser-ready versions are available via | ||
skypack.dev as follows: | ||
``` | ||
// Full version | ||
<script type="module"> | ||
import mime from "https://cdn.skypack.dev/mime"; | ||
</script> | ||
``` | ||
<script src="https://wzrd.in/standalone/mime@latest"></script> | ||
<script> | ||
mime.getType(...); // etc. | ||
</script> | ||
``` | ||
// "lite" version | ||
<script type="module"> | ||
import mime from "https://cdn.skypack.dev/mime/lite"; | ||
</script> | ||
``` | ||
Or, for the `mime/lite` version: | ||
<script src="https://wzrd.in/standalone/mime%2flite@latest"></script> | ||
<script> | ||
mimelite.getType(...); // (Note `mimelite` here) | ||
</script> | ||
## Quick Start | ||
@@ -63,5 +54,5 @@ | ||
There is also a "lite" version of this module that omits vendor-specific | ||
(`*/vnd.*`) and experimental (`*/x-*`) types. It weighs in at ~2.5KB, compared | ||
to 8KB for the full version. To load the lite version: | ||
The "lite" version of this module omits vendor-specific (`*/vnd.*`) and | ||
experimental (`*/x-*`) types. It weighs in at ~2.5KB, compared to 8KB for the | ||
full version. To load the lite version: | ||
@@ -68,0 +59,0 @@ ```javascript |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
0
60080
178