lucid-alpine 0.1.0.4 → 0.1.0.5
raw patch · 3 files changed
+10/−8 lines, 3 filesdep ~lucidPVP: major bump suggested
API removals or changes: PVP suggests a major version bump
Dependency ranges changed: lucid
API changes (from Hackage documentation)
- Lucid.Alpine: xData_ :: Maybe Text -> Attribute
+ Lucid.Alpine: xData_ :: Text -> Attribute
Files
- ChangeLog.md +4/−0
- lucid-alpine.cabal +4/−4
- src/Lucid/Alpine.hs +2/−4
ChangeLog.md view
@@ -15,3 +15,7 @@ ## 0.1.0.4 Remove "data-" prefix from Alpine.js attributes++## 0.1.0.5++Depend on `lucid-2.11.0`
lucid-alpine.cabal view
@@ -1,6 +1,6 @@ cabal-version: 1.12 name: lucid-alpine-version: 0.1.0.4+version: 0.1.0.5 license: BSD3 license-file: LICENSE copyright: (c) 2021 Wavi Labs LLC@@ -29,7 +29,7 @@ default-language: Haskell2010 build-depends: base >=4.7 && <5,- lucid >=2.10.0 && <2.11,+ lucid >=2.11.0 && <2.12, text >=1.2.4.1 && <1.3 executable lucid-alpine-exe@@ -40,7 +40,7 @@ ghc-options: -threaded -rtsopts -with-rtsopts=-N build-depends: base >=4.7 && <5,- lucid >=2.10.0 && <2.11,+ lucid >=2.11.0 && <2.12, lucid-alpine -any, text >=1.2.4.1 && <1.3 @@ -53,6 +53,6 @@ ghc-options: -threaded -rtsopts -with-rtsopts=-N build-depends: base >=4.7 && <5,- lucid >=2.10.0 && <2.11,+ lucid >=2.11.0 && <2.12, lucid-alpine -any, text >=1.2.4.1 && <1.3
src/Lucid/Alpine.hs view
@@ -8,10 +8,8 @@ -- | x-data -- Declare a new Alpine component and its data for a block of HTML-xData_ :: Maybe Text -> Attribute-xData_ = \case- Nothing -> makeAttribute "x-data" mempty- Just object -> makeAttribute "x-data" object+xData_ :: Text -> Attribute+xData_ = makeAttribute "x-data" {- <div x-data="{ open: false }">