Skip to content

[pull] main from chronotope:main - #7

Open
pull[bot] wants to merge 1006 commits into
WiresmithTech:mainfrom
chronotope:main
Open

[pull] main from chronotope:main#7
pull[bot] wants to merge 1006 commits into
WiresmithTech:mainfrom
chronotope:main

Conversation

@pull

@pull pull Bot commented Mar 20, 2022

Copy link
Copy Markdown

See Commits and Changes for more details.


Created by pull[bot]

Can you help keep this open source service alive? 💖 Please sponsor : )

@pull pull Bot added the ⤵️ pull label Mar 20, 2022
@djc
djc deleted the branch WiresmithTech:main January 26, 2024 12:49
@djc
djc deleted the main branch January 26, 2024 12:49
pitdicker and others added 27 commits February 26, 2024 10:36
Updates the requirements on [windows-bindgen](https://github.com/microsoft/windows-rs) to permit the latest version.
- [Release notes](https://github.com/microsoft/windows-rs/releases)
- [Commits](microsoft/windows-rs@0.53.0...0.54.0)

---
updated-dependencies:
- dependency-name: windows-bindgen
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
dependabot Bot and others added 30 commits October 20, 2025 07:54
Bumps [actions/setup-node](https://github.com/actions/setup-node) from 5 to 6.
- [Release notes](https://github.com/actions/setup-node/releases)
- [Commits](actions/setup-node@v5...v6)

---
updated-dependencies:
- dependency-name: actions/setup-node
  dependency-version: '6'
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
Signed-off-by: spuradage <spuradage@outlook.com>
Bumps [actions/checkout](https://github.com/actions/checkout) from 5 to 6.
- [Release notes](https://github.com/actions/checkout/releases)
- [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md)
- [Commits](actions/checkout@v5...v6)

---
updated-dependencies:
- dependency-name: actions/checkout
  dependency-version: '6'
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
… that can panic because of invalid user input.
Bumps [codecov/codecov-action](https://github.com/codecov/codecov-action) from 5 to 6.
- [Release notes](https://github.com/codecov/codecov-action/releases)
- [Changelog](https://github.com/codecov/codecov-action/blob/main/CHANGELOG.md)
- [Commits](codecov/codecov-action@v5...v6)

---
updated-dependencies:
- dependency-name: codecov/codecov-action
  dependency-version: '6'
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
Updates the requirements on [similar-asserts](https://github.com/mitsuhiko/similar-asserts) to permit the latest version.
- [Changelog](https://github.com/mitsuhiko/similar-asserts/blob/main/CHANGELOG.md)
- [Commits](mitsuhiko/similar-asserts@1.6.1...2.0.0)

---
updated-dependencies:
- dependency-name: similar-asserts
  dependency-version: 2.0.0
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
TimeZoneName::new rejected designations outside 3-7 characters or [0-9A-Za-z+-]. zic and glibc accept longer names and '_', so a valid /etc/localtime using such a designation failed to parse and chrono::Local silently fell back to UTC.

Store the designation in a 32-byte length-prefixed buffer (TimeZoneName/LocalTimeType stay Copy, no API change), accept up to 31 characters, truncating longer names instead of failing the parse, and allow '_'. Adds regression tests.

Fixes #1793
Bumps [actions/checkout](https://github.com/actions/checkout) from 6 to 7.
- [Release notes](https://github.com/actions/checkout/releases)
- [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md)
- [Commits](actions/checkout@v6...v7)

---
updated-dependencies:
- dependency-name: actions/checkout
  dependency-version: '7'
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
Web-target cfg gates (the wasm-bindgen / js-sys code paths and the
`wasm-pack test --node` harness) currently key on
`target_arch = "wasm32"`. As a result they silently disappear when
building for `wasm64-unknown-unknown`: the `wasm-bindgen` and `js-sys`
optional dependencies are not pulled in, `Utc::now()`, `Local`'s offset
lookup, and the `js_sys::Date` conversions fall back to the non-web
default (which calls `SystemTime::now()` and panics on wasm), and the
`tests/wasm.rs` harness is compiled out.

Switching the gates to `target_family = "wasm"` makes the same web
backend apply to any WebAssembly target, including `wasm64`. The
existing `not(any(target_os = "emscripten", target_os = "wasi"[, "linux"]))`
exclusions are preserved, so behavior on `wasm32-unknown-emscripten`,
`wasm32-wasip*` and emscripten/WASI variants is unchanged.

`target_family = "wasm"` has been stable since Rust 1.54, well below
chrono's MSRV (1.62).

`wasm64-unknown-unknown` is a Tier 3 target, so it cannot be added to
CI, but the same code paths are still exercised by the existing
`wasm-pack test --node --features wasmbind` job on `wasm32`.
Bumps [actions/setup-node](https://github.com/actions/setup-node) from 6 to 7.
- [Release notes](https://github.com/actions/setup-node/releases)
- [Commits](actions/setup-node@v6...v7)

---
updated-dependencies:
- dependency-name: actions/setup-node
  dependency-version: '7'
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
`NaiveDateDaysIterator` and `NaiveDateWeeksIterator` implemented
`DoubleEndedIterator` by walking their single `value` cursor backwards
from the start, while `size_hint`/`len` reported the number of steps up
to `NaiveDate::MAX`. As a result reversing them (e.g.
`iter_days().take(n).rev()`) produced dates far outside the intended
range.

Track an exclusive upper bound `end` so each iterator models the
half-open range `[value, end)`: `next` advances `value` from the front
and `next_back` lowers `end` from the back. `nth_back` skips in O(1) so
`take(n).rev()` stays cheap even though the range extends to
`NaiveDate::MAX`. Forward iteration and `size_hint` are unchanged.

Fixes #1757
`from_isoywd_opt` is a fallible `_opt` constructor documented to return
`None` for out-of-range years, but it panicked for `i32::MIN` /
`i32::MAX` because the internal `year - 1` / `year + 1` step overflowed.
Use checked arithmetic and return `None` there; such years are far
outside the range of `NaiveDate` anyway.

Fixes #1808
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.