Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

application/javascript should be replaced with text/javascript #110

Open
robdunbar opened this issue Jul 4, 2023 · 5 comments
Open

application/javascript should be replaced with text/javascript #110

robdunbar opened this issue Jul 4, 2023 · 5 comments

Comments

@robdunbar
Copy link

I note that the application/javascript was deprecated two years ago now, and should be replaced by text/javascript.

For more info, see,

Happy to create a PR if this change would be accepted.

@robdunbar
Copy link
Author

Oops, looks like this belongs in the mime-db repo first and then update this repo to pull the mime-db with fix.
Please close/delete this.

Apologies

@Krinkle
Copy link

Krinkle commented Jul 12, 2023

Remember to release the dependency update here as semver-major as this will break compatibility unless consumers carefully update their code. For example, when Node.js is used as a web server using this package, the mime type is exposed to middleware and outside clients and may be relied upon in all sorts of ways.

Example: https://github.com/bitovi/testee/blob/v0.10.2/lib/host/coverage.js#L20-L32

@broofa
Copy link
Member

broofa commented Dec 9, 2023

Remember to release the dependency update here as semver-major as this will break compatibility unless consumers carefully update their code

@Krinkle mime-db content updates go out as minor-version releases.
CleanShot 2023-12-09 at 07 09 54@2x

(source)

@Krinkle
Copy link

Krinkle commented Dec 9, 2023

@broofa Exactly. That's why this higher level package pins the version of that lower level library, to ensure it won't accidentally update, as that constitutes a breaking and semver-major at this level.

@dougwilson
Copy link
Contributor

Yes, this pins so there are two decision points. The semver is tricky bc typically in both packages, the data is has not been considered in the semver, as the way in which data changes in fluid with standards and browsers and there can be a lot of changes. Usually only the javascript api of the module has been considered in whay type of semver bump it would be.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants