cfn-flip 0.1.0.2 → 0.1.0.3
raw patch · 6 files changed
+38/−23 lines, 6 filesdep ~Globdep ~aesondep ~bytestringPVP: major bump suggested
API removals or changes: PVP suggests a major version bump
Dependency ranges changed: Glob, aeson, bytestring, conduit, doctest, filepath, hspec, libyaml, text, unliftio, unliftio-core, yaml
API changes (from Hackage documentation)
- CfnFlip.Prelude: class Foldable (t :: Type -> Type)
+ CfnFlip.Prelude: class Foldable (t :: TYPE LiftedRep -> Type)
- CfnFlip.Prelude: infixl 6 +
+ CfnFlip.Prelude: infixl 6 -
- CfnFlip.Prelude: seq :: forall (r :: RuntimeRep) a (b :: TYPE r). a -> b -> b
+ CfnFlip.Prelude: seq :: forall {r :: RuntimeRep} a (b :: TYPE r). a -> b -> b
- CfnFlip.Yaml: decode :: (MonadIO m, FromJSON a) => ConduitM Event Event Parse () -> ByteString -> m a
+ CfnFlip.Yaml: decode :: (MonadIO m, FromJSON a) => ConduitT Event Event Parse () -> ByteString -> m a
Files
- CHANGELOG.md +4/−2
- cfn-flip.cabal +19/−17
- src/CfnFlip/IntrinsicFunction.hs +1/−2
- src/CfnFlip/Yaml.hs +2/−2
- test/examples/condition.json +8/−0
- test/examples/condition.yaml +4/−0
CHANGELOG.md view
@@ -1,6 +1,8 @@-## [_Unreleased_](https://github.com/freckle/cfn-flip/compare/v0.1.0.2...main)+## [_Unreleased_](https://github.com/freckle/cfn-flip/compare/v0.1.0.3...main) -None+## [v0.1.0.3](https://github.com/freckle/cfn-flip/compare/v0.1.0.2...v0.1.0.3)++- Fix mis-handling of `Condition` property ## [v0.1.0.1](https://github.com/freckle/cfn-flip/compare/v0.1.0.1...v0.1.0.2)
cfn-flip.cabal view
@@ -1,6 +1,6 @@ cabal-version: 1.18 name: cfn-flip-version: 0.1.0.2+version: 0.1.0.3 license: MIT license-file: LICENSE copyright: 2021 Renaissance Learning Inc@@ -16,6 +16,7 @@ build-type: Simple extra-source-files: test/examples/clean.json+ test/examples/condition.json test/examples/get-att.json test/examples/import_value.json test/examples/test.json@@ -32,6 +33,7 @@ test/examples/test_yaml_long_line.json test/examples/test_yaml_state_machine.json test/examples/clean.yaml+ test/examples/condition.yaml test/examples/get-att.yaml test/examples/import_value.yaml test/examples/test.yaml@@ -81,15 +83,15 @@ -Wno-missing-import-lists -Wno-unsafe build-depends:- aeson >=1.4.6.0,+ aeson, base >=4.11 && <10,- bytestring >=0.10.8.2,- conduit >=1.3.1.2,- libyaml >=0.1.2,- text >=1.2.3.1,- unliftio >=0.2.12,- unliftio-core >=0.1.2.0,- yaml >=0.11.2.0+ bytestring,+ conduit,+ libyaml,+ text,+ unliftio,+ unliftio-core,+ yaml if impl(ghc >=9.2) ghc-options: -Wno-missing-kind-signatures@@ -119,10 +121,10 @@ -Wno-missing-import-lists -Wno-unsafe build-depends:- aeson >=1.4.6.0,+ aeson, base >=4.11 && <10,- doctest >=0.16.2,- yaml >=0.11.2.0+ doctest,+ yaml if impl(ghc >=9.2) ghc-options: -Wno-missing-kind-signatures@@ -156,12 +158,12 @@ -Wno-missing-import-lists -Wno-unsafe build-depends:- Glob >=0.10.0,+ Glob, base >=4.11 && <10,- cfn-flip -any,- filepath >=1.4.2.1,- hspec >=2.8.1,- libyaml >=0.1.2+ cfn-flip,+ filepath,+ hspec,+ libyaml if impl(ghc >=9.2) ghc-options: -Wno-missing-kind-signatures
src/CfnFlip/IntrinsicFunction.hs view
@@ -38,7 +38,6 @@ [ "And" , "Base64" , "Cidr"- , "Condition" , "Equals" , "FindInMap" , "GetAtt"@@ -56,7 +55,7 @@ ] where toFn x- | x `elem` ["Ref", "Condition"] = ("!" <> unpack x, encodeUtf8 x)+ | x == "Ref" = ("!" <> unpack x, encodeUtf8 x) | otherwise = ("!" <> unpack x, "Fn::" <> encodeUtf8 x) swappedIntrinsics :: [(ByteString, String)]
src/CfnFlip/Yaml.hs view
@@ -8,7 +8,7 @@ import CfnFlip.Prelude -import CfnFlip.Aeson (ToJSON(..))+import CfnFlip.Aeson (ToJSON) import CfnFlip.Conduit import CfnFlip.IntrinsicFunction import CfnFlip.Libyaml@@ -27,7 +27,7 @@ -> m ByteString encode c a = runConduitRes- $ sourceList (Yaml.objToStream stringStyle $ toJSON a)+ $ sourceList (Yaml.objToStream stringStyle a) .| c .| fixQuoting .| Libyaml.encodeWith formatOptions
+ test/examples/condition.json view
@@ -0,0 +1,8 @@+{+ "Resources": {+ "ApiStage": {+ "Condition": "HasHttpApi",+ "Type": "AWS::ApiGateway::Stage"+ }+ }+}
+ test/examples/condition.yaml view
@@ -0,0 +1,4 @@+Resources:+ ApiStage:+ Condition: HasHttpApi+ Type: AWS::ApiGateway::Stage