@doenet/doenetml-iframe 0.7.27-dev.630 → 0.7.28

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.
Files changed (4) hide show
  1. package/README.md +5 -15
  2. package/index.js +58185 -64641
  3. package/index.js.map +1 -1
  4. package/package.json +2 -13
package/README.md CHANGED
@@ -350,15 +350,6 @@ To restore, remount the viewer with the saved state:
350
350
  />
351
351
  ```
352
352
 
353
- Each payload records the saved-state format it was written in, so that state
354
- an upgraded viewer cannot read is discarded rather than applied to components
355
- it no longer denotes. When that happens the document opens fresh and the
356
- student is told beside it that their work was saved by an earlier version of
357
- Doenet; nothing on the host side changes, and the credit already recorded
358
- for the student is unaffected, because score is reported separately from the
359
- state. The fresh attempt goes on reporting its own score as usual. Keeping the payload opaque — stored and returned
360
- exactly as received — is what carries that format marker back.
361
-
362
353
  **The gap — and `SPLICE.flushState`.** Reports are throttled (one per 60
363
354
  seconds per viewer), so at any moment the student may have committed work
364
355
  that no report has delivered yet. A host that unmounts a viewer based on
@@ -498,12 +489,11 @@ logged to the console instead:
498
489
  load failure with one of these codes — any other code, or none at all,
499
490
  reaches the student as long as it comes with a `message`.
500
491
 
501
- A request has a single answer: the **first** response carrying state this
502
- viewer can restore from is the one it reboots from, and every response after
503
- that — errors included — is ignored. A response with no state, state for a
504
- different `cid`, or state written in a saved-state format this version cannot
505
- read does not count as that answer, so a listener with nothing usable cannot
506
- shut out one still in flight. Answer once, out of durable
492
+ A request has a single answer: the **first** response carrying state for
493
+ this `cid` is the one the viewer reboots from, and every response after
494
+ that — errors included — is ignored. A response with no state — or state for a
495
+ different `cid` — does not count as that answer, so a listener with nothing
496
+ saved cannot shut out one still in flight. Answer once, out of durable
507
497
  storage: a host that replies from an in-memory cache first and from storage
508
498
  afterwards keeps the cache's answer.
509
499