- Allow newer dependencies (101)
- Mitigate InfluxDB compatibility problems (#94)
- Support GHC 9.4 and 9.6 (#95 and #97)
- Revitalize CI (#96)
- Update dependencies
- Add support for aeson 2.0 (#89)
- Relax upper version bound for attoparsec
- Support GHC 9.0.1 (#85)
- Show error on the "impossible" path in writeByteString (#82)
- Relax upper version bounds for lens, time, doctest, and bytestring
- Switch from Travis CI to GitHub Actions (#84)
- Fix
Ignore
andEmpty
to replace theQueryResults
instance forVoid
. The instance has been deprecated. - Remove the deprecated
parseResults
method inQueryResults
. - Add the
coerceDecoder
method inQueryResults
. - Drop support for GHC 8.2 and older because of the use of
EmptyDataDeriving
. - Update doctest comments with
TypeApplications
.
This release reworked the QueryResuls
type class. There are some breaking changes:
parseResults
has been deprecated.QueryResults
has nowparseMeasurement
method.Decoder
has been monomorphized so that it can be used with lens. The originalDecoder
type has been renamed toSomeDecoder
.QueryParams
has nowdecoder
field.parseResults
andparseResultsWith
had been usinglenientDecoder
and it caused some unintuitive behavior (#64, #66). Now they usestrictDecoder
instead.parseErrorObject
now doesn't fail. It returns the error message of a response.parseQueryField
which has been deprecated is now deleted.QueryResults
instance forShowSeries
was broken. This is fixed.- The constructor of
Decoder
,parseResultsWith
, andparseResultsWithDecoder
have been hidden from the top-level module. They're still available fromDatabase.InfluxDB.JSON
.
See #68 for how to migrate your code from v1.7.x to v1.8.x.
- Relax upper version bound for doctest
- Relax upper version bound for http-client
- Relax upper version bound for aeson
- Fix a GHC warning
- Relax upper version bound for base to support GHC 8.10.1
- Relax upper version bound for lens
- Fix documentation bugs
- Extend doctests
- Test with GHC 8.8.2
- Relax upper version bound for lens
- Escape backslashes when encoding
Line
s (#75)
- Support GHC 8.8.1-alpha1
- The types of
getField
andgetTag
have changed
- The types of
- Relax upper version bounds for clock and network
- Drop unused dependency on QuickCheck
- Relax upper version bound for network
- Relax upper version bound for http-client
- Add secureServer smart constructor for Server
- Test with InfluxDB 1.7.1 and newer GHCs including 8.6.2
- Enhace Haddock comments
- Relax upper version bound for network
- Relax upper version bound for QuickCheck
- Relax upper version bound for base to support GHC 8.6 (#69)
- Relax upper version bound for lens
- Relax upper version bound for doctest
- Relax upper version bound for containers
- Relax upper version bound for aeson
- Relax upper version bound for network
- Relax upper version bound for foldl
This release includes a few significant breaking changes.
- Deprecate the confusing parseQueryField and re-export parseJSON instead
- Rewrite the QueryResults instances for tuples
- Add Timestamp instance for TimeSpec (#59)
- Extend haddock comments
- Export parseResultsWithDecoder, Decoder, lenientDecoder and strictDecoder from Database.InfluxDB
- Extend haddock comments
- Add basic auth support for query (#58)
- Change UnexpectedResponse constructor to include the request and throw it in place of UserError in query/write/manage
- Relax upper version bound for doctest
- Extend Haddock comments in Database.InfluxDB.Line
The first item is a breaking change.
- Implement proper escaping/quoting for queries (#54)
- Relax upper version bound for aeson
- Test against InfluxDB 1.5
- Relax upper version bounds for doctest and QuickCheck
- Relax upper version bound for base (#51)
- Implement proper escaping and quoting for special characters (#51, #52)
- Introduce the Measurement type and accompanying functions
- Fix a bug in the HTTP writer where the precision parameter is ignored when constructing requests
- Some minor doctest fixes
- Relax upper version bounds for http-types, lens and time
- Relax upper version bounds for http-types and tasty-hunit
- Relax upper version bound for http-types
- A couple of documentation fixes
- Add
Ord
instance forServer
- Export
formatDatabase
andformatKey
fromDatabase.InfluxDB
for convenience
There are a lot of breaking changes in this release. The API has been cleaned up and a lot of Haddock comments are added extensively.
- The
FieldVal
has been renamed toField
which takesNullability
as a type parameter. localServer
has been renamed todefaultServer
- Some constructors in
InfluxException
have been renamedBadRequest
toClientError
IllformedJSON
toUnexpectedResponse
- Added a smart constructor
credentials
forCredentials
- Dropped
parseTimestamp
and addedparseUTCTime
ping
handles timeout proerply and throwsInfluxException
on failurePingResult
has been renamed toPong
and is now an abstract data type.PingParams
has been turned into an abstract data type.waitForLeader
has been renamed totimeout
.parsekey
has been removed.getField
andparseQueryField
can be used instead.- Drop support for
http-client < 0.5
- Relax upper version bound for foldl
- Relax version bounds for base and aeson
- Tighten lower version bound for base #43
- Add
Database.InfluxDB.Format.{string,byteString8}
- Relax unnecessary Traversable constraints to Foldable
- Handle empty "values" in parseSeriesBody
The library was completely rewritten and support for older InfluxDB has been dropped.
- Support for InfluxDB 1.2
- Fix a typo in a Haddock comment (#28)
- Drop support for retry < 0.7
- Add stack.yml
- Add support for GHC 8.0.1 (#29)
- Relax upper bound for aeson
- Relax upper bound for attoparsec
- Allow retry >= 0.6 && < 0.7
- Add
writeSeriesData
- Relax upper version bound for exceptions
- Drop support for old retry package
- retry < 0.6 had an unexpected behavior wrt exception masking state (Soostone/retry#12)
- Support for GHC 7.10.1
- The
Value
parsers (accidentally) could throw exceptions. It's fixed now. - Add
fromSeriesData_
which discards parsing errors and returns only successful data - Remove
listInterfaces
- Retry on connection failure and response timeout in addition to IOException
- Note that this may break existing code silently
- Relax upper bound for http-client
- Set upper bounds for some packages
- Add more lenses
- Support for influxdb v0.8 (#15)
- Add shard spaces API
- Add
configureDatabase
- Add Typeable and Generic instances where missing
- Remove unused
ScheduledDelete
type
- Support for retry-0.5 (#16)
newServerPoolWithRetrySettings
has been renamed tonewServerPoolWithRetryPolicy
serverRetrySettings
field inServerPool
has been renamed toserverRetryPolicy
- Support for network-uri (#17)
- Export
InfluxException
fromDatabase.InfluxDB
- Add
InfluxException
type and use it when decoding JSON or SeriesData (#12) - New API
ping
listInterfaces
isInSync
- BUGFIX: Fix
when expecting a Float, encountered Int instead
error (#14)
- Export
newServerPoolWithRetrySettings
fromDatabase.InfluxDB
- Make retry settings configurable (#5)
- Remove
databaseReplicationFactor
field fromDatabase
type
- Allow exceptions-0.6 (@JohnLato)
- Support for InfluxDB v0.7
- Renamed
username
field for/cluster_admins
touser
- No support for the old field name
- Renamed
- Support for retry-0.4
- Add deleteSeries
- Add authenticateClusterAdmin and authenticateDatabaseUser
- Bug fix: Treat as integer if base10Exponent is positive
- Add
stripPrefixSnake
- Drop unnecessary dependency on
scientific
when using oldaeson
.
- Add more
FromValue
instances - Add
(.:?)
and(.!=)
- Add
deriveSeriesData
and some variants - Add left folds for
Stream
type
- Support for older aeson
- Textual paramters in some functions for convenience
- A lot of bug fixes
- Initial release