• A
    Remove implicit coercion deprecation of durations · a91ea1d5
    Andrew White 提交于
    In #28204 we deprecated implicit conversion of durations to a
    numeric which represented the number of seconds in the duration
    because of unwanted side effects with calculations on durations
    and dates. This unfortunately had the side effect of forcing a
    explicit cast when configuring third-party libraries like
    expiration in Redis, e.g:
    
        redis.expire("foo", 5.minutes)
    
    To work around this we've removed the deprecation and added a
    private class that wraps the numeric and can perform calculation
    involving durations and ensure that they remain a duration
    irrespective of the order of operations.
    a91ea1d5
可在Tags中查看这些版本中当前仓库的状态.
CHANGELOG.md 18.6 KB