hjsmin 0.1.5.2 → 0.1.5.3
raw patch · 4 files changed
+15/−2 lines, 4 filesdep ~optparse-applicativePVP ok
version bump matches the API change (PVP)
Dependency ranges changed: optparse-applicative
API changes (from Hackage documentation)
Files
- Readme.md +2/−0
- Text/Jasmine/Pretty.hs +1/−1
- hjsmin.cabal +1/−1
- runtests.hs +11/−0
Readme.md view
@@ -30,6 +30,8 @@ Changes ------- +0.1.5.3 - fix handling of hex literals+ 0.1.5.1 - fix if/else/if minify issue 0.1.5.0 - fix tests to work with language-javascript >= 0.5.14
Text/Jasmine/Pretty.hs view
@@ -55,7 +55,7 @@ rn (JSLiteral "new") = (text "new ") rn (JSLiteral l) = (text l) -rn (JSHexInteger i) = (text $ show i) -- TODO: need to tweak this+rn (JSHexInteger i) = (text i) rn (JSStringLiteral s l) = empty <> (char s) <> (text l) <> (char s) rn (JSRegEx s) = (text s)
hjsmin.cabal view
@@ -1,5 +1,5 @@ name: hjsmin-version: 0.1.5.2+version: 0.1.5.3 license: BSD3 license-file: LICENSE author: Alan Zimmerman <alan.zimm@gmail.com>
runtests.hs view
@@ -47,6 +47,7 @@ , testCase "Issue8" caseIssue8 , testCase "Issue9" caseIssue9 , testCase "Issue14" caseIssue14+ , testCase "Issue24" caseIssue24 ] testSuiteMin :: Test@@ -77,6 +78,7 @@ , testCase "MinIssue8" caseMinIssue8 , testCase "MinIssue9" caseMinIssue9 , testCase "MinIssue14" caseMinIssue14+ , testCase "MinIssue24" caseMinIssue24 ] @@ -342,6 +344,15 @@ caseMinIssue14 = testMinify "var settings={start:new Date(2012,01,27)}" srcIssue14++srcIssue24 = "0xe0+'0x30'"++caseIssue24 =+ "Right (JSSourceElementsTop [JSExpression [JSExpressionBinary \"+\" [JSHexInteger \"0xe0\"] [JSStringLiteral '\\'' \"0x30\"]],JSLiteral \"\"])"+ @=? showStrippedMaybe (parseProgram srcIssue24)++caseMinIssue24 =+ testMinify srcIssue24 srcIssue24 -- ---------------------------------------------------------------------