Skip to content

Commit

Permalink
Update CHANGELOG.md
Browse files Browse the repository at this point in the history
  • Loading branch information
kaplanelad authored Aug 8, 2024
1 parent 412ab9c commit 723bfeb
Showing 1 changed file with 45 additions and 1 deletion.
46 changes: 45 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

## Unreleased

## 0.7.0
* Moving to _timezone aware timestamps_. From now on migrations will generate **timestamps with time zone** by default. Moving to TZ aware timestamps in combination with newly revamped timestamp code generation in SeaORM v1.0.0 finally allows for _seamlessly_ moving between using `sqlite` and `postgres` with minimal or no entities code changes (resolved [this long standing issue](https://github.com/loco-rs/loco/issues/518#issuecomment-2051708319)). TZ aware timestamps also aligns us with how Rails works today (initially Rails had a no-tz timestamps, and today the default is to use timestamps). If not specified the TZ is the server TZ, which is usually UTC, therefore semantically this is almost like a no-tz timestamp.

**A few highlights:**
Expand All @@ -18,7 +19,50 @@ Generating users.rs

For better cross database provider compatibility, from now on prefer the `tstz` type instead of just `ts` when using generators (i.e. `cargo loco generate model movie released:tstz`)


* remove eyer lib. [https://github.com/loco-rs/loco/pull/650](https://github.com/loco-rs/loco/pull/650)
### Breaking Changes:
1. Update the Main Function in src/bin/main

Replace the return type of the main function:

**Before:**
```rust
async fn main() -> eyre::Result<()>
```

**After:**
```rust
async fn main() -> loco_rs::Result<()>
```


2. Modify examples/playground.rs
You need to apply two changes here:

a. Update the Function Signature
**Before:**
```rust
async fn main() -> eyre::Result<()>
```

**After:**
```rust
async fn main() -> loco_rs::Result<()>
```

b. Adjust the Context Handling
**Before:**
```rust
let _ctx = playground::<App>().await.context("playground")?;
```

**After:**
```rust
let _ctx = playground::<App>().await?;
```

Note,
If you are using eyre in your project, you can continue to do so. We have only removed this crate from our base code dependencies.
* Bump rstest crate to 0.21.0. [https://github.com/loco-rs/loco/pull/650](https://github.com/loco-rs/loco/pull/650)
* Bump serial_test crate to 3.1.1. [https://github.com/loco-rs/loco/pull/651](https://github.com/loco-rs/loco/pull/651)
* Bumo object store to create to 0.10.2. [https://github.com/loco-rs/loco/pull/654](https://github.com/loco-rs/loco/pull/654)
Expand Down

0 comments on commit 723bfeb

Please sign in to comment.