Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: broofa/mime
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: v3.0.0
Choose a base ref
...
head repository: broofa/mime
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: v4.0.0
Choose a head ref

Commits on Nov 3, 2021

  1. Copy the full SHA
    8857363 View commit details
  2. Copy the full SHA
    41db4c0 View commit details
  3. chore(release): 3.0.0

    broofa committed Nov 3, 2021
    Copy the full SHA
    0e268c9 View commit details

Commits on Mar 18, 2022

  1. chore: replace deprecated String.prototype.substr() (#269)

    .substr() is deprecated so we replace it with .slice() which works similarily but isn't deprecated
    Signed-off-by: Tobias Speicher <rootcommander@gmail.com>
    CommanderRoot authored Mar 18, 2022
    Copy the full SHA
    8071401 View commit details

Commits on Apr 11, 2022

  1. Copy the full SHA
    b984421 View commit details

Commits on Apr 19, 2022

  1. feat: add reverse lookup option (--reverse, -r) feature to CLI

    * Find extension from mime type using cli
    
    Add an option to lookup extension based on mime from cli
    
    * Update cli.js
    
    fix reuse of mime variable
    
    * Update test.js
    
    * test for reverse lookup
    
    * Use last argument for --reverse lookup in cli.js
    
    * chore: remove '--r' case
    
    Co-authored-by: leevers <leevers@gmail.com>
    broofa and leevers authored Apr 19, 2022
    Copy the full SHA
    e0da103 View commit details

Commits on Jun 13, 2022

  1. Copy the full SHA
    74a8ede View commit details
  2. ci: update CI matrix (#276)

    iChenLei authored Jun 13, 2022
    Copy the full SHA
    cc18bd7 View commit details

Commits on Oct 29, 2022

  1. chore: add FUNDING.yml

    broofa committed Oct 29, 2022
    Copy the full SHA
    cf690f8 View commit details
  2. chore: add funding info

    broofa committed Oct 29, 2022
    Copy the full SHA
    bc84279 View commit details

Commits on Dec 14, 2022

  1. Copy the full SHA
    ef6ebd0 View commit details
  2. chore: npm audit fix

    broofa committed Dec 14, 2022
    Copy the full SHA
    ebe5f17 View commit details
  3. chore(deps): bump minimatch from 3.0.4 to 3.1.2 (#280)

    Bumps [minimatch](https://github.com/isaacs/minimatch) from 3.0.4 to 3.1.2.
    - [Release notes](https://github.com/isaacs/minimatch/releases)
    - [Changelog](https://github.com/isaacs/minimatch/blob/main/changelog.md)
    - [Commits](isaacs/minimatch@v3.0.4...v3.1.2)
    
    ---
    updated-dependencies:
    - dependency-name: minimatch
      dependency-type: indirect
    ...
    
    Signed-off-by: dependabot[bot] <support@github.com>
    
    Signed-off-by: dependabot[bot] <support@github.com>
    Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
    Co-authored-by: Robert Kieffer <robert@broofa.com>
    dependabot[bot] and broofa authored Dec 14, 2022
    Copy the full SHA
    85ba9c9 View commit details

Commits on Sep 7, 2023

  1. ci: update node versions

    broofa committed Sep 7, 2023
    Copy the full SHA
    ab23782 View commit details
  2. Copy the full SHA
    5de3d9c View commit details
  3. Copy the full SHA
    340d2b0 View commit details

Commits on Sep 13, 2023

  1. chore:switching to TS

    broofa committed Sep 13, 2023
    Copy the full SHA
    158a14d View commit details
  2. chore: rm dist

    broofa committed Sep 13, 2023
    Copy the full SHA
    0f13b22 View commit details
  3. Copy the full SHA
    cf20ba0 View commit details
  4. chore: rm PR template

    broofa committed Sep 13, 2023
    Copy the full SHA
    e22f869 View commit details
  5. chore: add package-lock.json

    broofa committed Sep 13, 2023
    Copy the full SHA
    c243309 View commit details
  6. chore: fix test incantation

    broofa committed Sep 13, 2023
    Copy the full SHA
    7d37527 View commit details
  7. Copy the full SHA
    f22b6f0 View commit details
  8. chore: update publish script

    broofa committed Sep 13, 2023
    Copy the full SHA
    212f6f0 View commit details
  9. Copy the full SHA
    591eb30 View commit details
  10. Copy the full SHA
    ef38fd5 View commit details
  11. chore: debug test

    broofa committed Sep 13, 2023
    Copy the full SHA
    65de1fc View commit details
  12. Copy the full SHA
    a4cce8a View commit details
  13. Copy the full SHA
    0a89c60 View commit details
  14. chore: fix package#exports

    broofa committed Sep 13, 2023
    Copy the full SHA
    3286d6d View commit details
  15. chore: docs and api changes

    broofa committed Sep 13, 2023
    Copy the full SHA
    2e8578a View commit details
  16. 4.0.0-beta.1

    broofa committed Sep 13, 2023
    Copy the full SHA
    1c237bc View commit details
  17. chore(release): 4.0.0-beta.0

    broofa committed Sep 13, 2023
    Copy the full SHA
    07c9133 View commit details
  18. V4 (#287)

    broofa authored Sep 13, 2023
    Copy the full SHA
    b5eaa95 View commit details
  19. docs: update README

    broofa committed Sep 13, 2023
    Copy the full SHA
    37db7be View commit details
  20. Merge branch 'main' into v4

    broofa committed Sep 13, 2023
    Copy the full SHA
    9ee3f7b View commit details
  21. chore: typo

    broofa authored Sep 13, 2023
    Copy the full SHA
    e8a9bca View commit details

Commits on Sep 14, 2023

  1. doc: add getAllExtensions doc

    broofa committed Sep 14, 2023
    Copy the full SHA
    b3f35d1 View commit details
  2. Copy the full SHA
    f3c8d42 View commit details
  3. patch: fixup Mime import paths

    broofa committed Sep 14, 2023
    Copy the full SHA
    88a4add View commit details
  4. Copy the full SHA
    e553979 View commit details
  5. doc: fix changelog

    broofa committed Sep 14, 2023
    Copy the full SHA
    cf9d623 View commit details
  6. chore: cleanup tsconfig

    broofa committed Sep 14, 2023
    Copy the full SHA
    ff1411b View commit details
  7. chore: cleanup package.json

    broofa committed Sep 14, 2023
    Copy the full SHA
    8ec6869 View commit details
  8. chore: cleanup index_lite

    broofa committed Sep 14, 2023
    Copy the full SHA
    42f6716 View commit details
  9. chore: cleanup docs

    broofa committed Sep 14, 2023
    Copy the full SHA
    a189122 View commit details
  10. chore: update release script

    broofa committed Sep 14, 2023
    Copy the full SHA
    696042d View commit details
  11. Copy the full SHA
    795ffa2 View commit details
  12. docs: tweak

    broofa committed Sep 14, 2023
    Copy the full SHA
    b85226e View commit details
  13. chore(release): 4.0.0-beta.1

    broofa committed Sep 14, 2023
    Copy the full SHA
    9357ee9 View commit details
Showing with 4,083 additions and 3,211 deletions.
  1. +18 −0 .eslintrc.cjs
  2. +0 −53 .eslintrc.json
  3. +1 −0 .github/FUNDING.yml
  4. +1 −1 .github/ISSUE_TEMPLATE.md
  5. +0 −6 .github/PULL_REQUEST_TEMPLATE.md
  6. +10 −12 .github/workflows/ci.yml
  7. +1 −1 .gitignore
  8. +1 −0 .nvmrc
  9. +6 −0 .prettierrc
  10. +6 −0 .vscode/settings.json
  11. +77 −62 CHANGELOG.md
  12. +2 −2 CONTRIBUTING.md
  13. +6 −6 LICENSE
  14. +0 −97 Mime.js
  15. +66 −113 README.md
  16. +6 −0 bin/cli.js
  17. +0 −46 cli.js
  18. +142 −0 docs/README_js.md
  19. +0 −4 index.js
  20. +0 −4 lite.js
  21. +0 −7 mime.code-workspace
  22. +2,931 −2,178 package-lock.json
  23. +49 −27 package.json
  24. +150 −0 scripts/build.ts
  25. +137 −0 src/Mime.ts
  26. +0 −184 src/README_js.md
  27. +0 −28 src/benchmark.js
  28. +0 −73 src/build.js
  29. +7 −0 src/index.ts
  30. +6 −0 src/index_lite.ts
  31. +85 −0 src/mime_cli.ts
  32. +0 −305 src/test.js
  33. +219 −0 test/mime.test.js
  34. +21 −0 test/test_util.js
  35. +116 −0 test/vendor.test.js
  36. +13 −0 tsconfig.json
  37. +0 −1 types/other.js
  38. +3 −0 types/other.ts
  39. +0 −1 types/standard.js
  40. +3 −0 types/standard.ts
18 changes: 18 additions & 0 deletions .eslintrc.cjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
module.exports = {
root: true,
env: {
node: true,
},

parser: '@typescript-eslint/parser',
plugins: ['@typescript-eslint'],
extends: ['eslint:recommended', 'plugin:@typescript-eslint/recommended'],
ignorePatterns: ['dist/**/*'],

rules: {
'@typescript-eslint/ban-ts-comment': 'off',
'@typescript-eslint/explicit-module-boundary-types': 'off',
'@typescript-eslint/no-empty-function': 'off',
'no-empty': 'off',
},
};
53 changes: 0 additions & 53 deletions .eslintrc.json

This file was deleted.

1 change: 1 addition & 0 deletions .github/FUNDING.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
github: [broofa]
2 changes: 1 addition & 1 deletion .github/ISSUE_TEMPLATE.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
### If you have an issue with a specific extension or type

Locate the definition for your extension/type in the [db.json file](https://github.com/jshttp/mime-db/blob/master/db.json) in the `mime-db` project. Does it look right?
Locate the definition for your extension/type in the [db.json file](https://github.com/jshttp/mime-db/blob/master/db.json) in the `mime-db` project. Does it look right?

- [ ] No. [File a `mime-db` issue](https://github.com/jshttp/mime-db/issues/new).
- [ ] Yes: Go ahead and submit your issue/PR here and I'll look into it.
6 changes: 0 additions & 6 deletions .github/PULL_REQUEST_TEMPLATE.md

This file was deleted.

22 changes: 10 additions & 12 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,23 +1,21 @@
name: Mime CI

on:
[push]
on: [push]

jobs:
build:

runs-on: ubuntu-latest

strategy:
matrix:
node-version: [8.x, 10.x, 12.x, 14.x]
node-version: [18.x, 20.x]

steps:
- uses: actions/checkout@v2
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}
- run: npm ci
- run: npm run build --if-present
- run: npm test
- uses: actions/checkout@v4
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
- run: npm ci
- run: npm run build --if-present
- run: npm test
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
*.sw*
.DS_Store
node_modules
package-lock.json
dist
1 change: 1 addition & 0 deletions .nvmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
18
6 changes: 6 additions & 0 deletions .prettierrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"bracketSpacing": true,
"printWidth": 80,
"semi": true,
"singleQuote": true
}
6 changes: 6 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"editor.formatOnSave": true,
"editor.codeActionsOnSave": {
"source.organizeImports": true
}
}
Loading