discovery-media-player 0.1.94 → 0.1.95

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 (2) hide show
  1. package/package.json +1 -1
  2. package/server/schema.js +9 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "discovery-media-player",
3
- "version": "0.1.94",
3
+ "version": "0.1.95",
4
4
  "description": "Self-hosted document viewer: per-recipient tracked links, reading analytics, live presentation. The core knows nothing about the application hosting it — everything it borrows arrives through an injected context.",
5
5
  "keywords": [
6
6
  "pdf-viewer",
package/server/schema.js CHANGED
@@ -322,6 +322,15 @@ async function vraimentSonderTout() {
322
322
  */
323
323
  // Plafond du diagnostic : borné, ET qui le dit. Voir ci-dessous — la borne n'était jamais le défaut,
324
324
  // son SILENCE l'était.
325
+ //
326
+ // ⚠️ CONDITION DE VALIDITÉ DE `tronque` : elle ne tient que tant que `PLAFOND_SANS_RANG <= db-max-rows`.
327
+ // Un `limit` explicite NE BAT PAS le plafond implicite du serveur : PostgREST rend `min(limit,
328
+ // db-max-rows)`. Si un exploitant abaisse `db-max-rows` sous ce plafond — durcissement légitime — une
329
+ // liste réellement coupée reviendrait à moins de PLAFOND, `>= PLAFOND` serait faux, et `tronque`
330
+ // redeviendrait un faux négatif SILENCIEUX. C'est le miroir de la leçon des bornes : la PRÉSENCE d'un
331
+ // `limit` n'est pas plus la borne réelle que son ABSENCE n'était « tout ». La détection propre passe par
332
+ // l'en-tête Content-Range, hors de portée de `db.request` (corps seul) — d'où un garde-fou dont on
333
+ // DÉCLARE la condition de validité, plutôt qu'un qu'on croirait inconditionnel. (relevé 2e hôte)
325
334
  const PLAFOND_SANS_RANG = 1000;
326
335
 
327
336
  async function ajouterSansRang(etat) {