Skip to content

Commit

Permalink
Prepare v0.3.0 release (#148)
Browse files Browse the repository at this point in the history
* bump versions

* add blog

* fix an old mistake

* add "Looking for contributors" note

* Update website/blog/2021-07-27-new-release.md

Co-authored-by: Simon <[email protected]>

* Apply suggestions from review

* Update READMEs

* update gloo version on homepage

* Apply suggestions from code review

Co-authored-by: Xavientois <[email protected]>

* Update README.md

Co-authored-by: Simon <[email protected]>
Co-authored-by: Xavientois <[email protected]>
  • Loading branch information
3 people authored Jul 28, 2021
1 parent d903f7d commit 628669a
Show file tree
Hide file tree
Showing 12 changed files with 103 additions and 15 deletions.
6 changes: 5 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,9 @@
**/*.rs.bk
Cargo.lock

guide/book
# editor configs
.vscode
.idea

# hosting cache
.firebase/hosting.*.cache
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ edition = "2018"
license = "MIT/Apache-2.0"
name = "gloo"
readme = "README.md"
version = "0.2.1"
version = "0.3.0"
repository = "https://github.com/rustwasm/gloo"
homepage = "https://github.com/rustwasm/gloo"
categories = ["api-bindings", "wasm"]
Expand Down
2 changes: 0 additions & 2 deletions crates/console/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,6 @@ repository = "https://github.com/rustwasm/gloo/tree/master/crates/console"
homepage = "https://github.com/rustwasm/gloo"
categories = ["api-bindings", "development-tools::profiling", "wasm"]

# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

[dependencies]
wasm-bindgen = { version = "0.2", features = ["serde-serialize"] }
js-sys = "0.3"
Expand Down
9 changes: 6 additions & 3 deletions crates/dialogs/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
<h1><code>gloo-dialogs</code></h1>

<p>
<a href="https://dev.azure.com/rustwasm/gloo/_build?definitionId=6"><img src="https://img.shields.io/azure-devops/build/rustwasm/gloo/6.svg?style=flat-square" alt="Build Status" /></a>
<a href="https://crates.io/crates/gloo-dialogs"><img src="https://img.shields.io/crates/v/gloo-dialogs.svg?style=flat-square" alt="Crates.io version" /></a>
<a href="https://crates.io/crates/gloo-dialogs"><img src="https://img.shields.io/crates/d/gloo-dialogs.svg?style=flat-square" alt="Download" /></a>
<a href="https://docs.rs/gloo-dialogs"><img src="https://img.shields.io/badge/docs-latest-blue.svg?style=flat-square" alt="docs.rs docs" /></a>
Expand All @@ -20,8 +19,12 @@
<sub>Built with 🦀🕸 by <a href="https://rustwasm.github.io/">The Rust and WebAssembly Working Group</a></sub>
</div>

This crate provides wrapper for `alert`, `prompt` and `confirm` functions.
This crate provides wrappers for the following functions.
- [`alert`](https://developer.mozilla.org/en-US/docs/Web/API/Window/alert)
- [`confirm`](https://developer.mozilla.org/en-US/docs/Web/API/Window/confirm)
- [`prompt`](https://developer.mozilla.org/en-US/docs/Web/API/Window/prompt)

`web-sys` provides a raw API which is hard to use. This crate provides an easy-to-use,
idiomatic Rust API for these functions.

See the documentation for [`alert`], [`prompt`] and [`confirm`] for more information.
See the [API documentation](https://docs.rs/gloo-dialogs) to learn more.
1 change: 0 additions & 1 deletion crates/events/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
<h1><code>gloo-events</code></h1>

<p>
<a href="https://dev.azure.com/rustwasm/gloo/_build?definitionId=6"><img src="https://img.shields.io/azure-devops/build/rustwasm/gloo/6.svg?style=flat-square" alt="Build Status" /></a>
<a href="https://crates.io/crates/gloo-events"><img src="https://img.shields.io/crates/v/gloo-events.svg?style=flat-square" alt="Crates.io version" /></a>
<a href="https://crates.io/crates/gloo-events"><img src="https://img.shields.io/crates/d/gloo-events.svg?style=flat-square" alt="Download" /></a>
<a href="https://docs.rs/gloo-events"><img src="https://img.shields.io/badge/docs-latest-blue.svg?style=flat-square" alt="docs.rs docs" /></a>
Expand Down
1 change: 0 additions & 1 deletion crates/file/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
<h1><code>gloo-file</code></h1>

<p>
<a href="https://dev.azure.com/rustwasm/gloo/_build?definitionId=6"><img src="https://img.shields.io/azure-devops/build/rustwasm/gloo/6.svg?style=flat-square" alt="Build Status" /></a>
<a href="https://crates.io/crates/gloo-file"><img src="https://img.shields.io/crates/v/gloo-file.svg?style=flat-square" alt="Crates.io version" /></a>
<a href="https://crates.io/crates/gloo-file"><img src="https://img.shields.io/crates/d/gloo-file.svg?style=flat-square" alt="Download" /></a>
<a href="https://docs.rs/gloo-file"><img src="https://img.shields.io/badge/docs-latest-blue.svg?style=flat-square" alt="docs.rs docs" /></a>
Expand Down
1 change: 0 additions & 1 deletion crates/render/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
<h1><code>gloo-render</code></h1>

<p>
<a href="https://dev.azure.com/rustwasm/gloo/_build?definitionId=6"><img src="https://img.shields.io/azure-devops/build/rustwasm/gloo/6.svg?style=flat-square" alt="Build Status" /></a>
<a href="https://crates.io/crates/gloo-render"><img src="https://img.shields.io/crates/v/gloo-render.svg?style=flat-square" alt="Crates.io version" /></a>
<a href="https://crates.io/crates/gloo-render"><img src="https://img.shields.io/crates/d/gloo-render.svg?style=flat-square" alt="Download" /></a>
<a href="https://docs.rs/gloo-render"><img src="https://img.shields.io/badge/docs-latest-blue.svg?style=flat-square" alt="docs.rs docs" /></a>
Expand Down
1 change: 0 additions & 1 deletion crates/storage/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
<h1><code>gloo-storage</code></h1>

<p>
<a href="https://dev.azure.com/rustwasm/gloo/_build?definitionId=6"><img src="https://img.shields.io/azure-devops/build/rustwasm/gloo/6.svg?style=flat-square" alt="Build Status" /></a>
<a href="https://crates.io/crates/gloo-storage"><img src="https://img.shields.io/crates/v/gloo-storage.svg?style=flat-square" alt="Crates.io version" /></a>
<a href="https://crates.io/crates/gloo-storage"><img src="https://img.shields.io/crates/d/gloo-storage.svg?style=flat-square" alt="Download" /></a>
<a href="https://docs.rs/gloo-storage"><img src="https://img.shields.io/badge/docs-latest-blue.svg?style=flat-square" alt="docs.rs docs" /></a>
Expand Down
1 change: 0 additions & 1 deletion crates/timers/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
<h1><code>gloo-timers</code></h1>

<p>
<a href="https://dev.azure.com/rustwasm/gloo/_build?definitionId=6"><img src="https://img.shields.io/azure-devops/build/rustwasm/gloo/6.svg?style=flat-square" alt="Build Status" /></a>
<a href="https://crates.io/crates/gloo-timers"><img src="https://img.shields.io/crates/v/gloo-timers.svg?style=flat-square" alt="Crates.io version" /></a>
<a href="https://crates.io/crates/gloo-timers"><img src="https://img.shields.io/crates/d/gloo-timers.svg?style=flat-square" alt="Download" /></a>
<a href="https://docs.rs/gloo-timers"><img src="https://img.shields.io/badge/docs-latest-blue.svg?style=flat-square" alt="docs.rs docs" /></a>
Expand Down
2 changes: 1 addition & 1 deletion website/blog/2019-05-29-hello-world.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
slug: hello-world
title: Hello World
author: Muhammad Hamza
author_title: Maintainer of Docusaurus
author_title: Maintainer of Gloo
author_url: https://github.com/hamza1311
author_image_url: https://avatars.githubusercontent.com/u/47357913?v=4
tags: [hello]
Expand Down
88 changes: 88 additions & 0 deletions website/blog/2021-07-27-new-release.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,88 @@
---
slug: release-0.3.0
title: Releasing v0.3.0
author: Muhammad Hamza
author_title: Maintainer of Gloo
author_url: https://github.com/hamza1311
author_image_url: https://avatars.githubusercontent.com/u/47357913?v=4
tags: [release]
---

The Gloo team is happy to announce a new, long overdue, version of Gloo: v0.3.0.
Gloo is a modular toolkit for building fast, reliable Web applications and libraries with Rust and WASM.

## What's new

This release focuses on adding new features and crates.

### New crates

#### `gloo-console`

`gloo-console` provides an ergonomic way to access the browser's console API using macros:

```rust
log!("text");
```

The formatting is done on the browser side. Any `JsValue` can be provided and it'll be logged as-is:

```rust
let object = JsValue::from("any JsValue can be logged");
log!(object);
```

Multiple values can also be provided:

```rust
let object = JsValue::from("Some JsValue");
log!("literal", object);
```

#### `gloo-dialogs`

`gloo-dialogs` provides wrappers for the following functions:

- [`alert`](https://developer.mozilla.org/en-US/docs/Web/API/Window/alert)
- [`confirm`](https://developer.mozilla.org/en-US/docs/Web/API/Window/confirm)
- [`prompt`](https://developer.mozilla.org/en-US/docs/Web/API/Window/prompt)

```rust
alert("Hello World!");
```

```rust
prompt("What do you want to say?");
```


```rust
confirm("Are you sure?");
```

#### `gloo-render`

`gloo-render` provides wrapper for
[`requestAnimationFrame`](https://developer.mozilla.org/en-US/docs/Web/API/window/requestAnimationFrame):

```rust
request_animation_frame(|_| {
// inside animation frame.
})
```

#### `gloo-storage`

`gloo-storage` provides wrappers for the [Web Storage API](https://developer.mozilla.org/en-US/docs/Web/API/Web_Storage_API).
It can be used to access both local storage and session storage.

### Other changes

- We now use GitHub Actions instead of Azure for CI
- READMEs and crate level docs are no longer synced
- This website exists!!

## Looking for contributors

Gloo project is in need of contributors. I recently became maintainer of this project, and I'm trying to revive it.
It would be really appreciated if you could contribute or raise awareness about the Gloo project.
4 changes: 2 additions & 2 deletions website/src/pages/__index.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ as [API documentation](https://docs.rs/gloo/).

## Gloo Crates

1. [`console-timer`](docs/console)
1. [`console`](docs/console)
2. [`dialog`](docs/dialog)
3. [`event`](docs/event)
4. [`file`](docs/file)
Expand All @@ -31,7 +31,7 @@ Add a `gloo` dependency to your `Cargo.toml`:

```toml
[dependencies]
gloo = "0.2"
gloo = "0.3"
```

### `src/lib.rs`
Expand Down

0 comments on commit 628669a

Please sign in to comment.