Skip to content

Commit

Permalink
chore(release): 🔖 0.4.0-rc.1
Browse files Browse the repository at this point in the history
  • Loading branch information
arctic-hen7 committed Apr 9, 2023
1 parent 5c8e50d commit 6cb9cec
Show file tree
Hide file tree
Showing 33 changed files with 62 additions and 39 deletions.
23 changes: 23 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,29 @@

All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.

## [0.4.0-rc.1](https://github.com/framesurge/perseus/compare/v0.4.0-beta.22...v0.4.0-rc.1) (2023-04-09)


### ⚠ BREAKING CHANGES

* removed localized global state (global state functions
should no longer take a locale)

* fix: transmitted global state in locale redirection pages

### Features

* added rocket integration ([#266](https://github.com/framesurge/perseus/issues/266)) ([25bd115](https://github.com/framesurge/perseus/commit/25bd115d690d6dd8421a44b80837af0d7e92c993))
* added support for broader error types across state generation ([9aa079b](https://github.com/framesurge/perseus/commit/9aa079b1f74627c4f76927c9d3d25f11316a941e)), closes [#264](https://github.com/framesurge/perseus/issues/264)
* remove localized global state ([#268](https://github.com/framesurge/perseus/issues/268)) ([2017f69](https://github.com/framesurge/perseus/commit/2017f69a978fc0d3946d38e8c27ec7b0e0e03453)), closes [#267](https://github.com/framesurge/perseus/issues/267)


### Bug Fixes

* cleaned up rocket integration ([5c8e50d](https://github.com/framesurge/perseus/commit/5c8e50d17467b63d61ccf7d9138e523b9c4a271b))
* **cli:** fixed help tests ([0800311](https://github.com/framesurge/perseus/commit/0800311f5b00defd1963eb81425442304c46763d))
* fixed bad version in rocket integration ([6bd2ca0](https://github.com/framesurge/perseus/commit/6bd2ca0a05fe3444a2b79c59a953cda97ffdd8b1))

## [0.4.0-beta.22](https://github.com/framesurge/perseus/compare/v0.4.0-beta.21...v0.4.0-beta.22) (2023-03-12)


Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ Check out [the book](https://framesurge.sh/perseus/en-US/docs) to learn how to t
If you want to start working with Perseus right away, run the following commands and you'll have a basic app ready in no time! (Or, more accurately, after Cargo compiles everything...)

``` shell
cargo install perseus-cli --version 0.4.0-beta.22
cargo install perseus-cli --version 0.4.0-rc.1
perseus new my-app
cd my-app/
perseus serve -w
Expand Down
2 changes: 1 addition & 1 deletion docs/0.4.x/en-US/reference/migrating.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ Perseus v0.4.x added a significant number of breaking changes, as almost the ent
**Warning:** Perseus v0.4.x is now in its final beta period, meaning new features are probably not going to be added until v0.4.0 goes stable. However, due to the full rewrite, we want to make sure there are no outstanding bugs before pushing the full stable release. Please report even the smallest bugs you encounter to us on GitHub, and we can make Perseus v0.4.0 the best it can be.

1. Restructure your `Cargo.toml` to reflect the new dependency-splitting format (which splits engine-side dependencies from those only needed in the browser). See [here](https://github.com/framesurge/perseus/tree/main/examples/core/basic/Cargo.toml) for an example. Note that this will involve adding a server integration for use, like `perseus-warp`.
2. Upgrade the Perseus CLI with `cargo install perseus-cli --version 0.4.0-beta.22`.
2. Upgrade the Perseus CLI with `cargo install perseus-cli --version 0.4.0-rc.1`.
3. Delete the old `.perseus/` directory (this is no longer needed).
4. Rename your `lib.rs` file to `main.rs`.
5. Update each error page instantiation function to provide, as another argument, a function that returns a Sycamore `View<G>` for the document metadata of that error page (e.g. title).
Expand Down
2 changes: 1 addition & 1 deletion docs/next/en-US/first-app/installation.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ Before you get to coding your first Perseus app, you'll need to install the Pers
To install the Perseus CLI, first make sure you have Rust installed (preferably with [`rustup`](https://rustup.rs)), and then run this command:

```sh
cargo install perseus-cli --version 0.4.0-beta.22
cargo install perseus-cli --version 0.4.0-rc.1
```

Once that's done, you can go ahead and create your first app! Although this would usually be done with the `perseus new` command, which spins up a scaffold for you, in this tutorial we'll do things manually so we can go through each line of code step by step. First, create a new Rust project:
Expand Down
2 changes: 1 addition & 1 deletion docs/next/en-US/migrating.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ Perseus v0.4.x added a significant number of breaking changes, as almost the ent
**Warning:** Perseus v0.4.x is now in its final beta period, meaning new features are probably not going to be added until v0.4.0 goes stable. However, due to the full rewrite, we want to make sure there are no outstanding bugs before pushing the full stable release. Please report even the smallest bugs you encounter to us on GitHub, and we can make Perseus v0.4.0 the best it can be.

1. Restructure your `Cargo.toml` to reflect the new dependency-splitting format (which splits engine-side dependencies from those only needed in the browser). See [here](https://github.com/framesurge/perseus/tree/main/examples/core/basic/Cargo.toml) for an example. Note that this will involve adding a server integration for use, like `perseus-warp` (on which you'll probably want to enable the `dflt-server` feature).
2. Upgrade the Perseus CLI with `cargo install perseus-cli --version 0.4.0-beta.22`.
2. Upgrade the Perseus CLI with `cargo install perseus-cli --version 0.4.0-rc.1`.
3. Delete the old `.perseus/` directory (this is no longer needed).
4. Rename your `lib.rs` file to `main.rs` and delete `.perseus/` (it's been removed entirely!).
5. Change the `#[perseus::main]` attribute on the function in `main.rs` to be `#[perseus::main(perseus_axum::dflt_server)]` (replace `perseus_axum` with whatever server integration you decide to use).
Expand Down
2 changes: 1 addition & 1 deletion docs/next/en-US/quickstart.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ To get started with Perseus, you should first make sure you have the Rust langua
Once you have Rust installed, you can run the following command to install Perseus:

```sh
cargo install perseus-cli --version 0.4.0-beta.22
cargo install perseus-cli --version 0.4.0-rc.1
```

(While v0.4.x is still in beta, that `--version` flag is needed to make sure you get the latest beta version.)
Expand Down
2 changes: 1 addition & 1 deletion examples/.base/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "perseus-example-base"
version = "0.4.0-beta.22"
version = "0.4.0-rc.1"
edition = "2021"

# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
Expand Down
2 changes: 1 addition & 1 deletion examples/comprehensive/tiny/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "perseus-example-tiny"
version = "0.4.0-beta.22"
version = "0.4.0-rc.1"
edition = "2021"

# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
Expand Down
4 changes: 2 additions & 2 deletions examples/comprehensive/tiny/Cargo.toml.example
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,11 @@ version = "0.1.0"
edition = "2021"

[dependencies]
perseus = { version = "=0.4.0-beta.22", features = [ "hydrate" ] }
perseus = { version = "=0.4.0-rc.1", features = [ "hydrate" ] }
sycamore = "^0.8.1"

[target.'cfg(engine)'.dependencies]
tokio = { version = "1", features = [ "macros", "rt", "rt-multi-thread" ] }
perseus-axum = { version = "=0.4.0-beta.22", features = [ "dflt-server" ] }
perseus-axum = { version = "=0.4.0-rc.1", features = [ "dflt-server" ] }

[target.'cfg(client)'.dependencies]
2 changes: 1 addition & 1 deletion examples/core/basic/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "perseus-example-basic"
version = "0.4.0-beta.22"
version = "0.4.0-rc.1"
edition = "2021"

# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
Expand Down
4 changes: 2 additions & 2 deletions examples/core/basic/Cargo.toml.example
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,13 @@ edition = "2021"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

[dependencies]
perseus = { version = "=0.4.0-beta.22", features = [ "hydrate" ] }
perseus = { version = "=0.4.0-rc.1", features = [ "hydrate" ] }
sycamore = "^0.8.1"
serde = { version = "1", features = ["derive"] }
serde_json = "1"

[target.'cfg(engine)'.dependencies]
tokio = { version = "1", features = [ "macros", "rt", "rt-multi-thread" ] }
perseus-axum = { version = "=0.4.0-beta.22", features = [ "dflt-server" ] }
perseus-axum = { version = "=0.4.0-rc.1", features = [ "dflt-server" ] }

[target.'cfg(client)'.dependencies]
2 changes: 1 addition & 1 deletion examples/core/capsules/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "perseus-example-capsules"
version = "0.4.0-beta.22"
version = "0.4.0-rc.1"
edition = "2021"

# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
Expand Down
2 changes: 1 addition & 1 deletion examples/core/custom_server/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "perseus-example-custom-server"
version = "0.4.0-beta.22"
version = "0.4.0-rc.1"
edition = "2021"

# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
Expand Down
2 changes: 1 addition & 1 deletion examples/core/custom_server_rocket/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "custom_server_rocket"
version = "0.4.0-beta.22"
version = "0.4.0-rc.1"
edition = "2021"

# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
Expand Down
2 changes: 1 addition & 1 deletion examples/core/error_views/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "perseus-example-base"
version = "0.4.0-beta.22"
version = "0.4.0-rc.1"
edition = "2021"

# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
Expand Down
2 changes: 1 addition & 1 deletion examples/core/helper_build_state/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "perseus-example-helper-build-state"
version = "0.4.0-beta.22"
version = "0.4.0-rc.1"
edition = "2021"

# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
Expand Down
2 changes: 1 addition & 1 deletion examples/core/index_view/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "perseus-example-index-view"
version = "0.4.0-beta.22"
version = "0.4.0-rc.1"
edition = "2018"

# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
Expand Down
2 changes: 1 addition & 1 deletion examples/core/js_interop/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "perseus-example-js-interop"
version = "0.4.0-beta.22"
version = "0.4.0-rc.1"
edition = "2021"

# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
Expand Down
2 changes: 1 addition & 1 deletion examples/core/plugins/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "perseus-example-plugins"
version = "0.4.0-beta.22"
version = "0.4.0-rc.1"
edition = "2021"

# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
Expand Down
2 changes: 1 addition & 1 deletion examples/core/preload/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "perseus-example-preload"
version = "0.4.0-beta.22"
version = "0.4.0-rc.1"
edition = "2021"

# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
Expand Down
2 changes: 1 addition & 1 deletion examples/core/suspense/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "perseus-example-suspense"
version = "0.4.0-beta.22"
version = "0.4.0-rc.1"
edition = "2021"

# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
Expand Down
2 changes: 1 addition & 1 deletion examples/demos/auth/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "perseus-example-auth"
version = "0.4.0-beta.22"
version = "0.4.0-rc.1"
edition = "2021"

# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
Expand Down
2 changes: 1 addition & 1 deletion examples/demos/fetching/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "perseus-example-fetching"
version = "0.4.0-beta.22"
version = "0.4.0-rc.1"
edition = "2021"

# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
Expand Down
2 changes: 1 addition & 1 deletion examples/demos/full_page_layout/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "perseus-example-full-page-layout"
version = "0.4.0-beta.22"
version = "0.4.0-rc.1"
edition = "2021"

# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
Expand Down
2 changes: 1 addition & 1 deletion examples/website/.version-lock
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v0.4.0-beta.22
v0.4.0-rc.1
4 changes: 2 additions & 2 deletions packages/perseus-actix-web/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "perseus-actix-web"
version = "0.4.0-beta.22"
version = "0.4.0-rc.1"
edition = "2021"
description = "An integration that makes the Perseus frontend framework easy to use with Actix Web."
authors = ["arctic_hen7 <arctic_hen7@pm.me>"]
Expand All @@ -14,7 +14,7 @@ categories = ["wasm", "web-programming::http-server", "development-tools", "asyn
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

[dependencies]
perseus = { path = "../perseus", version = "0.4.0-beta.22" }
perseus = { path = "../perseus", version = "0.4.0-rc.1" }
actix-web = "4.3"
actix-files = "0.6"
futures = "0.3"
Expand Down
4 changes: 2 additions & 2 deletions packages/perseus-axum/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "perseus-axum"
version = "0.4.0-beta.22"
version = "0.4.0-rc.1"
edition = "2021"
description = "An integration that makes the Perseus frontend framework easy to use with Axum."
authors = ["arctic_hen7 <arctic_hen7@pm.me>"]
Expand All @@ -14,7 +14,7 @@ categories = ["wasm", "web-programming::http-server", "development-tools", "asyn
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

[dependencies]
perseus = { path = "../perseus", version = "0.4.0-beta.22" }
perseus = { path = "../perseus", version = "0.4.0-rc.1" }
axum = "0.6"
# Axum requires v0.3 of this
tower-http = { version = "0.3", features = [ "fs" ] }
Expand Down
2 changes: 1 addition & 1 deletion packages/perseus-cli/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "perseus-cli"
version = "0.4.0-beta.22"
version = "0.4.0-rc.1"
edition = "2021"
description = "The CLI for the Perseus frontend framework."
authors = ["arctic_hen7 <arctic_hen7@pm.me>"]
Expand Down
2 changes: 1 addition & 1 deletion packages/perseus-integration/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "perseus-integration"
version = "0.4.0-beta.22"
version = "0.4.0-rc.1"
edition = "2021"

# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
Expand Down
2 changes: 1 addition & 1 deletion packages/perseus-macro/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "perseus-macro"
version = "0.4.0-beta.22"
version = "0.4.0-rc.1"
edition = "2021"
autotests = false
description = "The Perseus macros."
Expand Down
4 changes: 2 additions & 2 deletions packages/perseus-rocket/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "perseus-rocket"
version = "0.4.0-beta.22"
version = "0.4.0-rc.1"
edition = "2021"
description = "An integration that makes the Perseus framework easy to use with Rocket."
authors = ["Miroito <alban.vachette@gmail.com", "arctic_hen7 <arctic_hen7@pm.me>"]
Expand All @@ -12,7 +12,7 @@ keywords = ["wasm", "frontend", "webdev", "ssg", "ssr"]
categories = ["wasm", "web-programming::http-server", "development-tools", "asynchronous", "gui"]

[dependencies]
perseus = { path = "../perseus", version = "0.4.0-beta.22"}
perseus = { path = "../perseus", version = "0.4.0-rc.1"}
rocket = "0.5.0-rc.2"

[features]
Expand Down
4 changes: 2 additions & 2 deletions packages/perseus-warp/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "perseus-warp"
version = "0.4.0-beta.22"
version = "0.4.0-rc.1"
edition = "2021"
description = "An integration that makes the Perseus framework easy to use with Warp."
authors = ["arctic_hen7 <arctic_hen7@pm.me>"]
Expand All @@ -14,7 +14,7 @@ categories = ["wasm", "web-programming::http-server", "development-tools", "asyn
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

[dependencies]
perseus = { path = "../perseus", version = "0.4.0-beta.22" }
perseus = { path = "../perseus", version = "0.4.0-rc.1" }
warp = { package = "warp-fix-171", version = "0.3" } # Temporary until Warp #171 is resolved

[features]
Expand Down
4 changes: 2 additions & 2 deletions packages/perseus/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "perseus"
version = "0.4.0-beta.22"
version = "0.4.0-rc.1"
edition = "2021"
description = "A lightning-fast frontend web dev platform with full support for SSR and SSG."
authors = ["arctic_hen7 <arctic_hen7@pm.me>"]
Expand All @@ -17,7 +17,7 @@ categories = ["wasm", "web-programming", "development-tools", "asynchronous", "g
sycamore = { version = "^0.8.1", features = [ "ssr", "suspense" ] }
sycamore-router = "0.8"
sycamore-futures = "0.8"
perseus-macro = { path = "../perseus-macro", version = "0.4.0-beta.22", optional = true }
perseus-macro = { path = "../perseus-macro", version = "0.4.0-rc.1", optional = true }
serde = { version = "1", features = ["derive"] }
serde_json = "1"
thiserror = "1"
Expand Down

0 comments on commit 6cb9cec

Please sign in to comment.