ts-fsrs 5.3.0 → 5.3.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # ts-fsrs
2
2
 
3
+ ## 5.3.1
4
+
5
+ ### Patch Changes
6
+
7
+ - [#315](https://github.com/open-spaced-repetition/ts-fsrs/pull/315) [`40e712e`](https://github.com/open-spaced-repetition/ts-fsrs/commit/40e712ebf229997154682294f40436bf1524022d) Thanks [@moaaz-ae](https://github.com/moaaz-ae)! - fix: prevent unexpected skipping of learning steps when Rating.Good is selected in State.Learning (#311)
8
+
3
9
  ## 5.3.0
4
10
 
5
11
  ### Minor Changes
package/dist/index.cjs CHANGED
@@ -483,7 +483,7 @@ function alea(seed) {
483
483
  return prng;
484
484
  }
485
485
 
486
- const version="5.3.0";
486
+ const version="5.3.1";
487
487
 
488
488
  const default_request_retention = 0.9;
489
489
  const default_maximum_interval = 36500;
@@ -971,9 +971,7 @@ class BasicScheduler extends AbstractScheduler {
971
971
  const steps_strategy = this.learningStepsStrategy(
972
972
  parameters,
973
973
  card.state,
974
- // In the original learning steps setup (Again = 5m, Hard = 10m, Good = FSRS),
975
- // not adding 1 can cause slight variations in the memory state’s ds.
976
- this.current.state === State.Learning && grade !== Rating.Again && grade !== Rating.Hard ? card.learning_steps + 1 : card.learning_steps
974
+ card.learning_steps
977
975
  );
978
976
  const scheduled_minutes = Math.max(
979
977
  0,