Skip to content

Commit

Permalink
Release v0.3.8 (#50)
Browse files Browse the repository at this point in the history
* Release v0.3.8

* Remove redundant CI rule
  • Loading branch information
willcrichton authored Sep 12, 2024
1 parent 4eeda22 commit bb2b1bd
Show file tree
Hide file tree
Showing 9 changed files with 16 additions and 16 deletions.
4 changes: 0 additions & 4 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,11 @@ on:
- "**"
tags-ignore:
- "v*"
pull_request:
branches:
- "**"

env:
AQUASCOPE_VERSION: 0.3.1
AQUASCOPE_TOOLCHAIN: nightly-2023-08-25


jobs:
tests:
runs-on: ubuntu-latest
Expand Down
6 changes: 3 additions & 3 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion crates/mdbook-quiz-schema/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "mdbook-quiz-schema"
version = "0.3.7"
version = "0.3.8"
authors = ["Will Crichton <[email protected]>"]
description = "Schema for quizzes used in mdbook-quiz"
license = "MIT OR Apache-2.0"
Expand Down
2 changes: 1 addition & 1 deletion crates/mdbook-quiz-validate/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "mdbook-quiz-validate"
version = "0.3.7"
version = "0.3.8"
authors = ["Will Crichton <[email protected]>"]
description = "Input validation for quizzes used in mdbook-quiz"
license = "MIT OR Apache-2.0"
Expand Down
2 changes: 1 addition & 1 deletion crates/mdbook-quiz/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name = "mdbook-quiz"
authors = ["Will Crichton <[email protected]>"]
description = "Interactive quizzes for your mdBook"
license = "MIT OR Apache-2.0"
version = "0.3.7"
version = "0.3.8"
edition = "2021"
include = ["/src", "/js"]
repository = "https://github.com/cognitive-engineering-lab/mdbook-quiz"
Expand Down
2 changes: 1 addition & 1 deletion js/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"private": true,
"depot": {
"depot-version": "0.2.17"
"depot-version": "0.2.18"
},
"devDependencies": {
"@biomejs/biome": "^1.8.3",
Expand Down
2 changes: 1 addition & 1 deletion js/packages/quiz-embed/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@wcrichto/quiz-embed",
"version": "0.3.5",
"version": "0.3.8",
"depot": {
"platform": "browser"
},
Expand Down
2 changes: 1 addition & 1 deletion js/packages/quiz/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@wcrichto/quiz",
"version": "0.3.5",
"version": "0.3.8",
"files": [
"dist"
],
Expand Down
10 changes: 7 additions & 3 deletions js/packages/quiz/src/components/quiz.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -112,11 +112,13 @@ interface QuizState {
let loadState = ({
quiz,
answerStorage,
cacheAnswers
cacheAnswers,
autoStart
}: {
quiz: Quiz;
answerStorage: AnswerStorage;
cacheAnswers?: boolean;
autoStart?: boolean;
}): QuizState => {
let stored = answerStorage.load();

Expand All @@ -143,7 +145,7 @@ let loadState = ({
};
} else {
return {
started: false,
started: autoStart || false,
index: 0,
attempt: 0,
confirmedDone: false,
Expand Down Expand Up @@ -301,6 +303,7 @@ export interface QuizViewConfig {
cacheAnswers?: boolean;
allowRetry?: boolean;
showBugReporter?: boolean;
autoStart?: boolean;
}

export type QuizViewProps = QuizViewConfig & {
Expand Down Expand Up @@ -354,7 +357,8 @@ export let QuizView: React.FC<QuizViewProps> = observer(
loadState({
quiz: config.quiz,
answerStorage,
cacheAnswers: config.cacheAnswers
cacheAnswers: config.cacheAnswers,
autoStart: config.autoStart
})
);

Expand Down

0 comments on commit bb2b1bd

Please sign in to comment.