chore(deps): update dependency timex to v4 #49

Open
rosa wants to merge 1 commit from renovate/timex-4.x into main
Owner

This PR contains the following updates:

Package Type Update Change
timex (source) prod major ~> 3.7.11 → ~> 4.0.0

Release Notes

bitwalker/timex (timex)

v4.0.0

Added/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/2 and Timex.to_datetime/1 retain their defaults;
    direct calls to the protocols must supply the granularity or timezone explicitly.

  • Improve duration parsing performance.

  • Add the cycled option to Timex.between?/4 for 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: false updates 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?/2 returns true only for a unique
    daylight interpretation; ambiguous or nonexistent wall times return false.

  • Parsed POSIX transition bounds now store signed seconds from midnight rather
    than Time values, supporting hour 24 and signed transition hours through 167.
    Existing custom PosixTimezone structs with Time bounds 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/2 and
    Timex.Timezone.convert/2 now returns AmbiguousDateTime with type: :gap
    and the adjacent valid boundaries for nonexistent IANA wall times, consistently
    for zone names and TimezoneInfo inputs (#​789, #​691). Callers matching
    {:error, {:could_not_resolve_timezone, ...}} for gaps must handle this result
    explicitly. Overlaps retain type: :ambiguous; neither result selects a time
    automatically. 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/GMT aliases with POSIX signs while
    preserving 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 TimezoneInfo and 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/1 in minutes, hours, days
    and 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/GMT names and their POSIX offset signs across timezone
    lookup, 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:00 transitions 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/1 typespec to remove the AmbiguousDateTime

  • Corrected pluralization rules for bg/cs/he/id/ro/ru

  • Fixed documentation formatting of Timex.TimezoneInfo.create/6

  • Resolve compiler and deprecation diagnostics on supported Elixir releases.



Configuration

📅 Schedule: (UTC)

  • Branch creation
    • At any time (no schedule defined)
  • Automerge
    • At any time (no schedule defined)

🚦 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.


  • If you want to rebase/retry this PR, check this box

This PR has been generated by Mend Renovate CLI.

This PR contains the following updates: | Package | Type | Update | Change | |---|---|---|---| | [timex](https://hex.pm/packages/timex) ([source](https://github.com/bitwalker/timex)) | prod | major | `~> 3.7.11` → `~> 4.0.0` | --- ### Release Notes <details> <summary>bitwalker/timex (timex)</summary> ### [`v4.0.0`](https://github.com/bitwalker/timex/blob/HEAD/CHANGELOG.md#400--Unreleased) ##### Added/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/2` and `Timex.to_datetime/1` retain their defaults; direct calls to the protocols must supply the granularity or timezone explicitly. - Improve duration parsing performance. - Add the `cycled` option to `Timex.between?/4` for 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 ([#&#8203;765](https://github.com/bitwalker/timex/issues/765), [#&#8203;449](https://github.com/bitwalker/timex/issues/449)). - Relative Date targets now compare calendar days against the reference's UTC date; datetime targets retain elapsed-time semantics ([#&#8203;775](https://github.com/bitwalker/timex/issues/775)). - Validate setters after applying all replacements, clamping the day against the final year/month. Preserve raw `validate: false` updates and tuple shapes. Zoned setters refresh metadata against the final wall time and expose gaps and overlaps explicitly ([#&#8203;411](https://github.com/bitwalker/timex/issues/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?/2` returns true only for a unique daylight interpretation; ambiguous or nonexistent wall times return false. - Parsed POSIX transition bounds now store signed seconds from midnight rather than `Time` values, supporting hour 24 and signed transition hours through 167. Existing custom `PosixTimezone` structs with `Time` bounds remain supported. - Allow equal interval endpoints when both bounds are closed, representing a singleton that enumerates exactly once ([#&#8203;787](https://github.com/bitwalker/timex/issues/787)). - Naive datetime conversion through `Timex.to_datetime/2` and `Timex.Timezone.convert/2` now returns `AmbiguousDateTime` with `type: :gap` and the adjacent valid boundaries for nonexistent IANA wall times, consistently for zone names and `TimezoneInfo` inputs ([#&#8203;789](https://github.com/bitwalker/timex/issues/789), [#&#8203;691](https://github.com/bitwalker/timex/issues/691)). Callers matching `{:error, {:could_not_resolve_timezone, ...}}` for gaps must handle this result explicitly. Overlaps retain `type: :ambiguous`; neither result selects a time automatically. Date-only `%Date{}` midnight handling is unchanged. ##### Fixed - Resolve UTC timezone periods without converting unused transition limits beyond year 9999 on older supported runtimes ([#&#8203;737](https://github.com/bitwalker/timex/issues/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 ([#&#8203;752](https://github.com/bitwalker/timex/issues/752)). - Restore fractional and leading-zero `Etc/GMT` aliases with POSIX signs while preserving canonical IANA names; reject malformed synthetic aliases ([#&#8203;394](https://github.com/bitwalker/timex/issues/394)). - Return conversion errors from relative formatting before arithmetic, including unsupported time-only inputs and invalid date fields ([#&#8203;774](https://github.com/bitwalker/timex/issues/774)). - Parse full and abbreviated translated month names case-insensitively, preserving English fallback and each directive's full-name or abbreviation contract ([#&#8203;768](https://github.com/bitwalker/timex/issues/768)). - Document default strftime padding and how explicit flags override it ([#&#8203;750](https://github.com/bitwalker/timex/issues/750)). - Clarify that week-of-month numbering starts on Monday and includes the partial week containing the first day of the month ([#&#8203;791](https://github.com/bitwalker/timex/issues/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 ([#&#8203;790](https://github.com/bitwalker/timex/issues/790)). - Compare interval bounds independently of enumeration steps and preserve the correct open or closed cut boundaries during subtraction ([#&#8203;788](https://github.com/bitwalker/timex/issues/788)). - Format negative fractional timezone offsets with one sign and unsigned components in `TimezoneInfo` and datetime offset directives ([#&#8203;724](https://github.com/bitwalker/timex/issues/724)). - Preserve explicitly supplied zero fractional-second precision when parsing `{ss}` and ASN.1 generalized time formats ([#&#8203;716](https://github.com/bitwalker/timex/issues/716)). - Return whole epoch counts for `Timex.Duration.now/1` in minutes, hours, days and weeks instead of raising on an integer passed to duration conversion. - Honor custom parsers passed to `Timex.Duration.parse!/2` ([#&#8203;795](https://github.com/bitwalker/timex/issues/795)). - Calculate Monday and Sunday week numbers from their first occurrence in the year, including week zero before that day ([#&#8203;742](https://github.com/bitwalker/timex/issues/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/GMT` names and their POSIX offset signs across timezone lookup, conversion and setting ([#&#8203;685](https://github.com/bitwalker/timex/issues/685)). - Resolve local timezone information using UTC for aware instants and honor the explicit clock basis in local timezone lookups ([#&#8203;755](https://github.com/bitwalker/timex/issues/755)). - Handle IANA `24:00` transitions 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/1` typespec to remove the `AmbiguousDateTime` - Corrected pluralization rules for bg/cs/he/id/ro/ru - Fixed documentation formatting of `Timex.TimezoneInfo.create/6` - Resolve compiler and deprecation diagnostics on supported Elixir releases. *** </details> --- ### Configuration 📅 **Schedule**: (UTC) - Branch creation - At any time (no schedule defined) - Automerge - At any time (no schedule defined) 🚦 **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. --- - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box --- This PR has been generated by [Mend Renovate CLI](https://github.com/renovatebot/renovate). <!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiI0NC4yMTAuMCIsInVwZGF0ZWRJblZlciI6IjQ0LjIxMC4wIiwidGFyZ2V0QnJhbmNoIjoibWFpbiIsImxhYmVscyI6WyJyZW5vdmF0ZSJdfQ==-->
chore(deps): update dependency timex to v4
Some checks failed
renovate/artifacts Artifact file update failure
ci/woodpecker/pr/test Pipeline was successful
ci/woodpecker/push/test Pipeline was successful
fc2f5782a8
Author
Owner

⚠️ 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:

  • any of the package files in this branch needs updating, or
  • the branch becomes conflicted, or
  • you click the rebase/retry checkbox if found above, or
  • you rename this PR's title to start with "rebase!" to trigger it manually

The artifact failure details are included below:

File name: mix.lock
[12:08:03.275] INFO (5286): Installing tool [email protected]...
[12:08:03.315] FATAL (5286): tool version not supported
    tool: "erlang"
    version: "29.1.2"
[12:08:03.318] FATAL (5286): Install tool erlang failed in 56ms.

### ⚠️ 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: - any of the package files in this branch needs updating, or - the branch becomes conflicted, or - you click the rebase/retry checkbox if found above, or - you rename this PR's title to start with "rebase!" to trigger it manually The artifact failure details are included below: ##### File name: mix.lock ``` [12:08:03.275] INFO (5286): Installing tool [email protected]... [12:08:03.315] FATAL (5286): tool version not supported tool: "erlang" version: "29.1.2" [12:08:03.318] FATAL (5286): Install tool erlang failed in 56ms. ```
rosa force-pushed renovate/timex-4.x from fc2f5782a8
Some checks failed
renovate/artifacts Artifact file update failure
ci/woodpecker/pr/test Pipeline was successful
ci/woodpecker/push/test Pipeline was successful
to 39159cc2f9
Some checks failed
renovate/artifacts Artifact file update failure
ci/woodpecker/push/test Pipeline failed
ci/woodpecker/pr/test Pipeline failed
2026-11-25 12:08:06 +00:00
Compare
Some checks failed
renovate/artifacts Artifact file update failure
ci/woodpecker/push/test Pipeline failed
ci/woodpecker/pr/test Pipeline failed
This pull request can be merged automatically.
This branch is out-of-date with the base branch
You are not authorized to merge this pull request.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin renovate/timex-4.x:renovate/timex-4.x
git switch renovate/timex-4.x

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.

git switch main
git merge --no-ff renovate/timex-4.x
git switch renovate/timex-4.x
git rebase main
git switch main
git merge --ff-only renovate/timex-4.x
git switch renovate/timex-4.x
git rebase main
git switch main
git merge --no-ff renovate/timex-4.x
git switch main
git merge --squash renovate/timex-4.x
git switch main
git merge --ff-only renovate/timex-4.x
git switch main
git merge renovate/timex-4.x
git push origin main
Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
rosa/spacetraders_client!49
No description provided.