Skip to content

Conversation

@naskya
Copy link
Contributor

@naskya naskya commented Apr 30, 2024

This pull request adds support for chrono::DateTime<Local> and chrono::DateTime<FixedOffset>.

All of the following types are converted to JavaScript Date with this implementation:

  • chrono::NaiveDateTime
  • chrono::DateTime<Utc>
  • chrono::DateTime<Local>
  • chrono::DateTime<FixedOffset>

Follow-up of:

Closes:

sup39 and others added 2 commits April 29, 2024 19:26
Co-authored-by: sup39 <dev@sup39.dev>
@Brooooooklyn Brooooooklyn merged commit 68b5f2c into napi-rs:main Apr 30, 2024
@naskya naskya deleted the feat/support-chrono-with-timezones branch May 1, 2024 03:25
Brooooooklyn pushed a commit that referenced this pull request Jun 27, 2024
* feat(napi): implement From/ToNapiValue for chrono::DateTime<Local> and chrono::DateTime<FixedOffset> (#1902)

* chore(napi): update tests

Co-authored-by: sup39 <dev@sup39.dev>

---------

Co-authored-by: sup39 <dev@sup39.dev>
kodiakhq bot referenced this pull request in X-oss-byte/Canary-nextjs Jun 28, 2024
[![Mend Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com)

This PR contains the following updates:

| Package | Type | Update | Change |
|---|---|---|---|
| [napi](https://togithub.com/napi-rs/napi-rs) | dependencies | patch | `2.16.7` -> `2.16.8` |

---

> [!WARNING]
> Some dependencies could not be looked up. Check the Dependency Dashboard for more information.

---

### Release Notes

<details>
<summary>napi-rs/napi-rs (napi)</summary>

### [`v2.16.8`](https://togithub.com/napi-rs/napi-rs/releases/tag/napi%402.16.8)

[Compare Source](https://togithub.com/napi-rs/napi-rs/compare/napi@2.16.7...napi@2.16.8)

#### What Changed

-   feat(napi): support chrono datetime with timezones  by [@&#8203;naskya](https://togithub.com/naskya) ([https://github.com/napi-rs/napi-rs/pull/2074](https://togithub.com/napi-rs/napi-rs/pull/2074))
-   chore(napi): let docs.rs generate all documentation by [@&#8203;Gentle](https://togithub.com/Gentle) [#&#8203;2160](https://togithub.com/napi-rs/napi-rs/issues/2160)

**Full Changelog**: https://github.com/napi-rs/napi-rs/compare/napi@2.16.7...napi@2.16.8

</details>

---

### Configuration

📅 **Schedule**: 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](https://www.mend.io/free-developer-tools/renovate/). View repository job log [here](https://developer.mend.io/github/X-oss-byte/Canary-nextjs).
kodiakhq bot referenced this pull request in X-oss-byte/Canary-nextjs Jul 1, 2024
[![Mend Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com)

This PR contains the following updates:

| Package | Type | Update | Change |
|---|---|---|---|
| [napi-derive](https://togithub.com/napi-rs/napi-rs) | dependencies | patch | `2.16.7` -> `2.16.8` |

---

> [!WARNING]
> Some dependencies could not be looked up. Check the Dependency Dashboard for more information.

---

### Release Notes

<details>
<summary>napi-rs/napi-rs (napi-derive)</summary>

### [`v2.16.8`](https://togithub.com/napi-rs/napi-rs/releases/tag/napi%402.16.8)

[Compare Source](https://togithub.com/napi-rs/napi-rs/compare/napi-derive@2.16.7...napi-derive@2.16.8)

#### What Changed

-   feat(napi): support chrono datetime with timezones  by [@&#8203;naskya](https://togithub.com/naskya) ([https://github.com/napi-rs/napi-rs/pull/2074](https://togithub.com/napi-rs/napi-rs/pull/2074))
-   chore(napi): let docs.rs generate all documentation by [@&#8203;Gentle](https://togithub.com/Gentle) [#&#8203;2160](https://togithub.com/napi-rs/napi-rs/issues/2160)

**Full Changelog**: https://github.com/napi-rs/napi-rs/compare/napi@2.16.7...napi@2.16.8

</details>

---

### Configuration

📅 **Schedule**: 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](https://www.mend.io/free-developer-tools/renovate/). View repository job log [here](https://developer.mend.io/github/X-oss-byte/Canary-nextjs).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants