chore(deps): update dependency timex to v4 #49
Loading…
Reference in a new issue
No description provided.
Delete branch "renovate/timex-4.x"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
This PR contains the following updates:
~> 3.7.11→~> 4.0.0Release Notes
bitwalker/timex (timex)
v4.0.0Added/Changed
Require Elixir 1.16 and Erlang/OTP 26 or later.
Require tzdata 1.2.2 or later and use its verified built-in HTTP client by
default, removing Timex's mandatory Hackney dependency chain. Deployments need
an OS CA certificate bundle; remove explicit Hackney client configuration to
use the default. Applications depending on Hackney separately must update and
audit that dependency themselves.
Support both Gettext 0.26 and Gettext 1.x.
Remove deprecated protocol default arguments for Elixir 1.20 compatibility.
Timex.compare/2,Timex.diff/2andTimex.to_datetime/1retain their defaults;direct calls to the protocols must supply the granularity or timezone explicitly.
Improve duration parsing performance.
Add the
cycledoption toTimex.between?/4for time ranges crossing midnight.Add Croatian translations.
Use current Elixir charlist and stepped-range syntax.
Verify GitHub Actions dependencies with a generated action lockfile and add
actionlint, ShellCheck and zizmor checks, with pinned tools and least-privilege
workflow permissions.
Define ISO date arithmetic/conversion support as years 0 through 9999, with
explicit unsupported-calendar/year errors and consistent boundary checks on
supported runtimes. Convert other calendars explicitly before calling Timex
(#765, #449).
Relative Date targets now compare calendar days against the reference's UTC
date; datetime targets retain elapsed-time semantics (#775).
Validate setters after applying all replacements, clamping the day against the
final year/month. Preserve raw
validate: falseupdates and tuple shapes.Zoned setters refresh metadata against the final wall time and expose gaps
and overlaps explicitly (#411).
Accept TZif version 4 containers and preserve their raw leap records,
including truncation and expiration data.
Explicit POSIX timezone conversions now use the same gap-boundary and overlap
results as IANA zones.
PosixTimezone.is_dst?/2returns true only for a uniquedaylight interpretation; ambiguous or nonexistent wall times return false.
Parsed POSIX transition bounds now store signed seconds from midnight rather
than
Timevalues, supporting hour 24 and signed transition hours through 167.Existing custom
PosixTimezonestructs withTimebounds remain supported.Allow equal interval endpoints when both bounds are closed, representing a
singleton that enumerates exactly once (#787).
Naive datetime conversion through
Timex.to_datetime/2andTimex.Timezone.convert/2now returnsAmbiguousDateTimewithtype: :gapand the adjacent valid boundaries for nonexistent IANA wall times, consistently
for zone names and
TimezoneInfoinputs (#789, #691). Callers matching{:error, {:could_not_resolve_timezone, ...}}for gaps must handle this resultexplicitly. Overlaps retain
type: :ambiguous; neither result selects a timeautomatically. Date-only
%Date{}midnight handling is unchanged.Fixed
Resolve UTC timezone periods without converting unused transition limits
beyond year 9999 on older supported runtimes (#737).
Normalize weekday aliases for Erlang date tuple week calculations and preserve
structured formatting errors in bang APIs.
Document elapsed relative-time truncation and deterministic reference-clock
boundaries without changing datetime rounding policy (#752).
Restore fractional and leading-zero
Etc/GMTaliases with POSIX signs whilepreserving canonical IANA names; reject malformed synthetic aliases (#394).
Return conversion errors from relative formatting before arithmetic, including
unsupported time-only inputs and invalid date fields (#774).
Parse full and abbreviated translated month names case-insensitively, preserving
English fallback and each directive's full-name or abbreviation contract (#768).
Document default strftime padding and how explicit flags override it (#750).
Clarify that week-of-month numbering starts on Monday and includes the partial
week containing the first day of the month (#791).
Decode signed TZif transition epochs, UTC offsets and leap corrections
correctly, while retaining unsigned header counts.
Parse TZif footers through the shared POSIX grammar, handling hour24 and
version-appropriate extended transitions without raising. Validate complete
newline framing and footer content, and correct fixed-zone/DST defaults.
Preserve ordinary legacy rule fields; newly supported carried bounds use
signed seconds from midnight.
Parse complete POSIX rule names emitted by timezone-name formatting, retaining
following literal delimiters in default and strftime formats.
Honor UTC versus wall-time lookup for POSIX rules and preserve aware instants
through calendar and Timex conversions, including GMT-prefixed specifications.
Preserve explicit POSIX transition rules in canonical timezone names, including
parser round trips and transitions that carry into an adjacent day or year.
Evaluate POSIX recurring transition dates correctly across Julian variants,
weekday occurrences, southern seasons and year boundaries. Store daylight
offsets as adjustments and resolve wall-clock gaps and overlaps explicitly.
Reject malformed POSIX timezone abbreviations, missing offsets, incomplete
numeric components and trailing standalone input; preserve valid quoted and
fractional-offset names during normalization (#790).
Compare interval bounds independently of enumeration steps and preserve the
correct open or closed cut boundaries during subtraction (#788).
Format negative fractional timezone offsets with one sign and unsigned
components in
TimezoneInfoand datetime offset directives (#724).Preserve explicitly supplied zero fractional-second precision when parsing
{ss}and ASN.1 generalized time formats (#716).Return whole epoch counts for
Timex.Duration.now/1in minutes, hours, daysand weeks instead of raising on an integer passed to duration conversion.
Honor custom parsers passed to
Timex.Duration.parse!/2(#795).Calculate Monday and Sunday week numbers from their first occurrence in the
year, including week zero before that day (#742).
Reject trailing input in singleton ISO/RFC3339 parsing and return parse errors
for offsets truncated immediately after their sign.
Preserve translated month values when parsing full or abbreviated month names.
Parse plus-bearing timezone names while respecting following fields and
literal separators in default, strftime and compound formats.
Preserve canonical
Etc/GMTnames and their POSIX offset signs across timezonelookup, conversion and setting (#685).
Resolve local timezone information using UTC for aware instants and honor the
explicit clock basis in local timezone lookups (#755).
Handle IANA
24:00transitions on OTP 29 with updated tzdata.Keep test timezone data offline and check live IANA updates separately.
Preserve datetime precision in elapsed shifts while retaining newly introduced
fractional seconds; restore Julian-day conversion of Erlang tuples exposed by
compiler diagnostics.
Updated
Timex.now/1typespec to remove theAmbiguousDateTimeCorrected pluralization rules for bg/cs/he/id/ro/ru
Fixed documentation formatting of
Timex.TimezoneInfo.create/6Resolve compiler and deprecation diagnostics on supported Elixir releases.
Configuration
📅 Schedule: (UTC)
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR has been generated by Mend Renovate CLI.
⚠️ Artifact update problem
Renovate failed to update an artifact related to this branch. You probably do not want to merge this PR as-is.
♻ Renovate will retry this branch, including artifacts, only when one of the following happens:
The artifact failure details are included below:
File name: mix.lock
fc2f5782a839159cc2f9View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.