Skip to content

Conversation

dependabot[bot]
Copy link
Contributor

@dependabot dependabot bot commented on behalf of github Aug 25, 2021

Bumps mimer from 1.1.0 to 2.0.2.

Release notes

Sourced from mimer's releases.

v2.0.0

Deprecation and updates

  • Development and build support are only Node 12+.
  • Module itself works on previous Node versions but support will no longer be thing.
  • Uses mime-db data but keep module zero dependency.
  • Remove browserify UMD dist files, module browser support will only work on well-known bundlers like esbuild, webpack, rollup, etc.
  • Remove bower file, it wasn’t being used for some time already.
  • Module is 50% lighter, see more in install size

API updates and changes

1) mimer function has more case scenarios support

const mimer = require('mimer');
mimer('.pdf'); // -> "application/pdf"
mimer('pdf'); // -> "application/pdf"
mimer('../readme.pdf'); // -> "application/pdf"

2) .get and .set are no longer custom functions and is now a Map isolated in mimer/map instead. Example:

Before

const Mimer = require(‘mimer’);
const mimer = new Mimer();
mimer.set('.monster', 'movie/thriller');
mimer.get('zombie.monster');

After

const mimer = require(‘mimer/map’);
mimer.set('.monster', 'movie/thriller');
mimer.get('zombie.monster');

3) introduce mimer/safe in order to avoid any change on mimetypes

const mimer = require('mimer/safe');
const mimerMap = require('mimer/map');
mimerMap.set('graphql', 'application/graphql');
// nothing will change
mimer('content.graphql'); // -> "application/octet-stream"

Commits

Dependabot compatibility score

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot merge will merge this PR after your CI passes on it
  • @dependabot squash and merge will squash and merge this PR after your CI passes on it
  • @dependabot cancel merge will cancel a previously requested merge and block automerging
  • @dependabot reopen will reopen this PR if it is closed
  • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
  • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)

Bumps [mimer](https://github.com/heldr/mimer) from 1.1.0 to 2.0.2.
- [Release notes](https://github.com/heldr/mimer/releases)
- [Commits](https://github.com/heldr/mimer/commits)

---
updated-dependencies:
- dependency-name: mimer
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot dependabot bot added the dependencies Pull requests that update a dependency file label Aug 25, 2021
@dependabot dependabot bot requested a review from erunion August 25, 2021 23:20
@erunion erunion merged commit d3da902 into main Aug 26, 2021
@erunion erunion deleted the dependabot/npm_and_yarn/mimer-2.0.2 branch August 26, 2021 17:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Pull requests that update a dependency file

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant