From ea0a089f79900e9dae4f05307c78fef3a38d8b89 Mon Sep 17 00:00:00 2001 From: oflg Date: Mon, 13 Nov 2023 12:27:59 +0800 Subject: [PATCH] v1.1.2 --- README.md | 9 ++++++--- package.json | 2 +- 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 38611ab..a7be752 100644 --- a/README.md +++ b/README.md @@ -15,14 +15,17 @@ Create a card and review it at a given time: ```js const fsrsJs = require("fsrs.js") -let fsrs = new fsrsJs.FSRS; -let card = new fsrsJs.Card; +let fsrs = new fsrsJs.FSRS(); +let card = new fsrsJs.Card(); let rating= fsrsJs.Rating; let state = fsrsJs.State; //Set algorithm parameters +// fsrs.p.request_retention=0.9 +// fsrs.p.maximum_interval=36500 // fsrs.p.w=[0.4, 0.6, 2.4, 5.8, 4.93, 0.94, 0.86, 0.01, 1.49, 0.14, 0.94, 2.18, 0.05, 0.34, 1.26, 0.29, 2.61] -console.log(fsrs.p.w) + +console.log(fsrs.p) let now = new Date(2022, 10, 29, 12, 30, 0, 0); let scheduling_cards = fsrs.repeat(card, now); diff --git a/package.json b/package.json index 39fdfa1..b8e84a8 100644 --- a/package.json +++ b/package.json @@ -1,5 +1,5 @@ { - "version": "1.1.1", + "version": "1.1.2", "license": "MIT", "main": "dist/index.js", "typings": "dist/index.d.ts",