Skip to content

Conversation

@sternenseemann
Copy link
Contributor

@sternenseemann sternenseemann commented Jan 16, 2026

Resolves #1897 in the simplest way. Unfortunately it is not possible to check for the fourth version component using CPP.

Before submitting your PR, check that you've:

After submitting your PR:

  • Update the Changelog.md file with a link to your PR
  • Check that CI passes (or if it fails, for reasons unrelated to your change, like CI timeouts)

@parsonsmatt
Copy link
Contributor

Do you mind adding a patch version bump, changelog note? That helps us get it released

@snoyberg @psibi @meteficha I don't have upload rights on Hackage for yesod-static - y'all want to take this and/or add me as maintainer?

@psibi
Copy link
Member

psibi commented Jan 17, 2026

@parsonsmatt I have added you to hackage.

@sternenseemann
Copy link
Contributor Author

I can do that. I think it would be prudent to upload yesod-static 1.6.1.1 and 1.6.1.2 independently beforehand since this change is of course going to restrict install plans just for the sake of the test suite.

I was wondering if it would be better to just check for one of the two content types in the test suite.

@sternenseemann sternenseemann force-pushed the yesod-static-mime-types-0.1.2.1 branch from 706842e to 619b876 Compare January 18, 2026 11:34
@sternenseemann
Copy link
Contributor Author

Do you mind adding a patch version bump, changelog note? That helps us get it released

Done.

mime-types 0.1.2.1 changed the MIME type of JavaScript files to
text/javascript. In most situation, it is unproblematic to also
allow the old MIME type (application/javascript), so we don't
need to arbitrarily restrict the lower bound on mime-types (this
can still be done by users if necessary).

Resolves yesodweb#1897.
@sternenseemann sternenseemann force-pushed the yesod-static-mime-types-0.1.2.1 branch from 619b876 to f391ee1 Compare January 18, 2026 11:35
@parsonsmatt
Copy link
Contributor

Thanks for the note on the release - I've combined the two prior versions into a released 1.6.1.1, which would make this 1.6.1.2.

Copy link
Contributor

@parsonsmatt parsonsmatt left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

will release today

Comment on lines +126 to +129
lookup "Content-Type" (simpleHeaders resp) `elem`
[ Just "text/javascript" -- mime-types >= 0.1.2.1
, Just "application/javascript" -- mime-types <= 0.1.2.0
]
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

very nice!

@parsonsmatt
Copy link
Contributor

idc about windows ci being broken tbqh

@parsonsmatt parsonsmatt merged commit 5466dc3 into yesodweb:master Jan 20, 2026
12 of 13 checks passed
@sternenseemann sternenseemann deleted the yesod-static-mime-types-0.1.2.1 branch January 21, 2026 10:12
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

Successfully merging this pull request may close these issues.

yesod-static testcase failed in Stackage LTS

3 participants