diff --git a/CHANGELOG.md b/CHANGELOG.md index 6743839..e95d764 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -8,6 +8,10 @@ and this project adheres to the ## Unreleased +## 0.6.0.0 + +Depend on `validation-micro` rather than `validation-selective`. + ## 0.5.0.0 Add 'getE', 'postE', 'tryReq' to pattern match against HTTP exceptions diff --git a/README.md b/README.md index 66ed645..f463364 100644 --- a/README.md +++ b/README.md @@ -13,11 +13,18 @@ This library provides both the client interface and authorization infrastructure ## Status -This library is still in development, so expect missing funcionality. +This library is still in development, so expect missing functionality. If there's anything you would like to see added, feel free to [open an issue](https://github.com/unfoldml/ms-graph-api/issues/new). +In general, since the MS Graph API is quite large, features will be added to this library on a need basis. + +## Evolution of the library + Some breaking changes might also be introduced as the library matures. +We adhere to a simplified version of the [Package Versioning Policy](https://pvp.haskell.org/): breaking changes are signaled by increasing the major version number (e.g. 0.x -> 1.x ). + + ## Copyright (c) 2023-, Marco Zocca, UnfoldML AB diff --git a/ms-graph-api.cabal b/ms-graph-api.cabal index 9e8f98c..da54222 100644 --- a/ms-graph-api.cabal +++ b/ms-graph-api.cabal @@ -1,5 +1,5 @@ name: ms-graph-api -version: 0.5.0.0 +version: 0.6.0.0 synopsis: Microsoft Graph API description: Bindings to the Microsoft Graph API homepage: https://github.com/unfoldml/ms-graph-api @@ -45,7 +45,7 @@ library , transformers >= 0.5 , unliftio , uri-bytestring - , validation-selective + , validation-micro , wai , warp ghc-options: -Wall diff --git a/src/Network/OAuth2/JWT.hs b/src/Network/OAuth2/JWT.hs index 5397c3c..00e602d 100644 --- a/src/Network/OAuth2/JWT.hs +++ b/src/Network/OAuth2/JWT.hs @@ -26,8 +26,8 @@ import Data.Scientific (coefficient) import qualified Data.Text as T (Text, unpack) -- time import Data.Time (UTCTime(..), NominalDiffTime, getCurrentTime, fromGregorian, addUTCTime, diffUTCTime) --- validation-selective -import Validation (Validation(..), failure, validationToEither, maybeToSuccess) +-- validation-micro +import Validation.Micro (Validation(..), failure, validationToEither, maybeToSuccess) -- | 'sub' field diff --git a/src/Network/OAuth2/Session.hs b/src/Network/OAuth2/Session.hs index d551e03..4b80f6e 100644 --- a/src/Network/OAuth2/Session.hs +++ b/src/Network/OAuth2/Session.hs @@ -65,7 +65,7 @@ import UnliftIO.STM (STM, TVar, atomically, newTVarIO, readTVar, writeTVar, modi -- uri-bytestring import URI.ByteString (URI) -- validation-selective -import Validation (Validation, failure, validationToEither) +import Validation.Micro (Validation, failure, validationToEither) import Network.OAuth2.Provider.AzureAD (OAuthCfg, azureADApp, AzureAD) import Network.OAuth2.JWT (jwtClaims, UserSub(..), userSub, ApiAudience, apiAudience, decValidSub, decValidExp, decValidNbf, JWTException(..)) diff --git a/stack.yaml b/stack.yaml index e2f0639..737c277 100644 --- a/stack.yaml +++ b/stack.yaml @@ -36,7 +36,7 @@ packages: # forks / in-progress versions pinned to a git hash. For extra: # extra-deps: -- validation-selective-0.2.0.0 +- validation-micro-1.0.0.0 - selective-0.6 # allow-newer: true