SJW 0.1.2.3 → 0.1.2.4
raw patch · 23 files changed
+110/−9 lines, 23 filesdep ~attoparsecdep ~basedep ~optparse-applicativePVP ok
version bump matches the API change (PVP)
Dependency ranges changed: attoparsec, base, optparse-applicative, text, time
API changes (from Hackage documentation)
Files
- CHANGELOG.md +6/−0
- SJW.cabal +15/−9
- test/data/cycle/A.js +5/−0
- test/data/cycle/B.js +5/−0
- test/data/cycle/C.js +5/−0
- test/data/cycle/Main.js +3/−0
- test/data/diamond/A.js +5/−0
- test/data/diamond/B.js +5/−0
- test/data/diamond/C.js +4/−0
- test/data/diamond/Main.js +4/−0
- test/data/loop/A.js +5/−0
- test/data/loop/Main.js +3/−0
- test/data/q/A.js +5/−0
- test/data/q/B.js +5/−0
- test/data/q/C.js +5/−0
- test/data/q/D.js +5/−0
- test/data/q/Main.js +3/−0
- test/data/simple/A.js +3/−0
- test/data/simple/B.js +3/−0
- test/data/simple/Main.js +4/−0
- test/data/triangle/Main.js +4/−0
- test/data/triangle/N.js +5/−0
- test/data/triangle/O.js +3/−0
CHANGELOG.md view
@@ -1,5 +1,11 @@ # Revision history for SJW +## 0.1.2.4 -- 2022-02-13++* Fix test data missing from sdist archive+* Bump dependencies versions+* Add a guix package for development+ ## 0.1.2.3 -- 2021-01-20 * Ensure compilation on Nix as far as 18.09
SJW.cabal view
@@ -1,18 +1,18 @@-cabal-version: >=1.10+cabal-version: 2.4 -- Initial package description 'SJW.cabal' generated by 'cabal init'. For -- further documentation, see http://haskell.org/cabal/users-guide/ name: SJW-version: 0.1.2.3+version: 0.1.2.4 synopsis: The Simple Javascript Wrench description:- SJW is a very simple tool to pack several JS «modules» into a single script.+ SJW is a very simple tool to pack several JS modules into a single script. It doesn't really do proper compilation work (yet) except resolving the modules dependencies and detecting import loops but it provides each module with an independent execution context in the resulting script. homepage: https://git.marvid.fr/Tissevert/SJW -- bug-reports:-license: BSD3+license: BSD-3-Clause license-file: LICENSE author: Tissevert maintainer: tissevert+devel@marvid.fr@@ -20,7 +20,12 @@ category: Web build-type: Simple extra-source-files: CHANGELOG.md+ , test/data/**/*.js +source-repository head+ type: git+ location: http://git.marvid.fr/Tissevert/SJW.git+ library exposed-modules: SJW other-modules: SJW.Compiler@@ -29,15 +34,15 @@ , SJW.Module.File , SJW.Module.Imports , SJW.Source- build-depends: attoparsec >= 0.13.2 && < 0.14- , base >=4.9 && <4.15+ build-depends: attoparsec >= 0.13.2 && < 0.15+ , base >=4.9 && <4.16 , containers >= 0.5.0 && < 0.7 , directory >= 1.2.0 && < 1.4 , filepath >= 1.4.2 && < 1.5 , mtl >= 2.2.2 && < 2.3 , random >= 1.1 && < 1.3- , text >= 1.2.3 && < 1.3- , time >= 1.8.0 && < 1.12+ , text >= 1.2.3 && < 2.1+ , time >= 1.8.0 && < 1.14 , unix >= 2.7.2 && < 2.8 hs-source-dirs: src default-language: Haskell2010@@ -46,10 +51,11 @@ executable sjw main-is: src/Main.hs other-modules: Paths_SJW+ autogen-modules: Paths_SJW -- other-extensions: build-depends: attoparsec , base- , optparse-applicative >= 0.14 && < 0.17+ , optparse-applicative >= 0.14 && < 0.18 , SJW , text default-language: Haskell2010
+ test/data/cycle/A.js view
@@ -0,0 +1,5 @@+import B;++return {+ s: 'a' + B.s+};
+ test/data/cycle/B.js view
@@ -0,0 +1,5 @@+import C;++return {+ s: 'b' + C.s+};
+ test/data/cycle/C.js view
@@ -0,0 +1,5 @@+import A;++return {+ s: 'c' + A.s+}
+ test/data/cycle/Main.js view
@@ -0,0 +1,3 @@+import A;++console.log(A.s);
+ test/data/diamond/A.js view
@@ -0,0 +1,5 @@+import C;++return {+ s: "Hello" + C.punctuation+};
+ test/data/diamond/B.js view
@@ -0,0 +1,5 @@+import C;++return {+ s: "world" + C.exclamation+};
+ test/data/diamond/C.js view
@@ -0,0 +1,4 @@+return {+ punctuation: ", ",+ exclamation: " !"+};
+ test/data/diamond/Main.js view
@@ -0,0 +1,4 @@+import A;+import B;++console.log(A.s + B.s);
+ test/data/loop/A.js view
@@ -0,0 +1,5 @@+import A;++return {+ s: 'a' + A.s+};
+ test/data/loop/Main.js view
@@ -0,0 +1,3 @@+import A;++console.log(A.s);
+ test/data/q/A.js view
@@ -0,0 +1,5 @@+import B;++return {+ s: 'a' + B.s;+};
+ test/data/q/B.js view
@@ -0,0 +1,5 @@+import C;++return {+ s: 'b' + C.s+};
+ test/data/q/C.js view
@@ -0,0 +1,5 @@+import D;++return {+ s: 'c' + D.s+}
+ test/data/q/D.js view
@@ -0,0 +1,5 @@+import B;++return {+ s: 'd' + B.s+}
+ test/data/q/Main.js view
@@ -0,0 +1,3 @@+import A;++console.log(A.s);
+ test/data/simple/A.js view
@@ -0,0 +1,3 @@+return {+ s: "Hello, "+};
+ test/data/simple/B.js view
@@ -0,0 +1,3 @@+return {+ s: "world !"+};
+ test/data/simple/Main.js view
@@ -0,0 +1,4 @@+import A;+import B;++console.log(A.s + B.s);
+ test/data/triangle/Main.js view
@@ -0,0 +1,4 @@+import N;+import O;++console.log(N.s + O.s);
+ test/data/triangle/N.js view
@@ -0,0 +1,5 @@+import O;++return {+ s: O.s+};
+ test/data/triangle/O.js view
@@ -0,0 +1,3 @@+return {+ s: 'o'+};