Skip to content

Commit

Permalink
refactor: reset to 0.1 and rename project
Browse files Browse the repository at this point in the history
  • Loading branch information
simbleau committed Mar 28, 2024
1 parent a542fca commit bcebb71
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 80 deletions.
69 changes: 6 additions & 63 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,72 +1,15 @@
# Changelog

<!-- Instructions
This changelog follows the patterns described here: <https://keepachangelog.com/en/1.0.0/>.
Subheadings to categorize changes are `added, changed, deprecated, removed, fixed, security`.
## 1.5.0

### changed

- To Bevy 0.13


## 1.4.2

### fixed

- `KeyRotationEvent` events are now in the plugin

## 1.4.1

### added

- Added `KeyRotationEvent` events triggered on start, rotation, failure, and stoppage

### changed

- Changed `instant::{Duration, Instant}` to `web_time::{Duration, Instant}`
- Exposed `StopKeyRotationExt`

## v1.4.0

### changed

- Updated to bevy 0.12

## v1.3.1

### fixed

- `AuthProvider` is now `?Send` on wasm32

## v1.3.0

### changed

- `Kegen` resource is now public

## v1.2.0

### added

- `commands.start_key_rotation_with_keystore(keystore)` begins key rotation without blocking

### fixed

- On initial authentication, expired tokens no longer grant a `KeystoreState::Conformant` state

## v1.1.0

### added

- `commands.start_key_rotation(username, password)` begins key rotation
- `commands.stop_key_rotation()` stops key rotation

### changed
-->

- `KeystoreState` now starts as `KeystoreState::NonConformant` by default
## Unreleased

## v1.0.0
## 0.1.0

Initial release
- Initial release. Crate was renamed to `bevy_key_rotation` from `bevy-key-rotation` and republished.
20 changes: 10 additions & 10 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,24 +1,24 @@
[package]
name = "bevy-key-rotation"
name = "bevy_key_rotation"
description = "Access and refresh token rotation for Bevy applications"
license = "MIT/Apache-2.0"
repository = "https://github.com/vectorgameexperts/bevy-key-rotation"
repository = "https://github.com/loopystudios/bevy_key_rotation"
authors = ["Spencer C. Imbleau"]
keywords = ["gamedev"]
version = "1.5.0"
version = "0.1.0"
edition = "2021"

# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
[dependencies]
web-time = "1.0"
thiserror = "1.0"
bevy-async-task = "1.4"
async-trait = "0.1"
web-time = "1.1.0"
thiserror = "1.0.58"
bevy_async_task = "0.1.0"
async-trait = "0.1.79"
bevy = { version = "0.13", default-features = false }

[target.'cfg(not(target_arch = "wasm32"))'.dev-dependencies]
getrandom = { version = "0.2" }
getrandom = { version = "0.2.12" }

[target.'cfg(target_arch = "wasm32")'.dev-dependencies]
wasm-bindgen-test = "0.3"
getrandom = { version = "0.2", features = ["js"] }
wasm-bindgen-test = "0.3.42"
getrandom = { version = "0.2.12", features = ["js"] }
12 changes: 5 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,21 +1,19 @@
# Bevy Key Rotation

![MIT/Apache 2.0](https://img.shields.io/badge/license-MIT%2FApache-blue.svg)
[![crates.io](https://img.shields.io/crates/v/bevy-key-rotation.svg)](https://crates.io/crates/bevy-key-rotation)
[![docs.rs](https://img.shields.io/docsrs/bevy-key-rotation)](https://docs.rs/bevy-key-rotation)
[![crates.io](https://img.shields.io/crates/v/bevy_key_rotation.svg)](https://crates.io/crates/bevy_key_rotation)
[![docs.rs](https://img.shields.io/docsrs/bevy_key_rotation)](https://docs.rs/bevy_key_rotation)

A minimum crate for non-blocking, continuous use of an access token, by ensuring it is constantly rotated ahead-of-time via refresh token. When a refresh token needs to be rotated, it is rotated with username/password credentials.

There is full API support for **wasm** and **native**. Android and iOS are untested (Help needed).

## Bevy version support

|bevy|bevy-key-rotation|
|bevy|bevy_key_rotation|
|---|---|
|0.13|1.5, main|
|0.12|1.4|
|0.11|1.3|
|<= 0.10|Unsupported|
|0.13|0.1, main|
|< 0.13|Unsupported|

## Usage

Expand Down

0 comments on commit bcebb71

Please sign in to comment.