From 1853bdab9e90572a88c61d57f0d7774f49aece7a Mon Sep 17 00:00:00 2001 From: Mathieu Benoit Date: Sun, 25 Oct 2026 16:27:47 -0400 Subject: [PATCH] [ADD] deps: HiGHS solver as a pinned dev dependency, with its notices MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The exact diagnostic floor needs a MILP solver that runs offline in the page: highs 1.15.4 (HiGHS 1.15.1 compiled to WebAssembly, MIT), pinned exact like the other bundled packages. Its wasm links work under other licences, so TIERS.txt gains one "incorporé à highs" section per work, texts fetched upstream at the matching tags, LLVM's Apache 2.0 in full. Guards: highs loads only from the solver module, main.js and tests; the TIERS check splits sections on the 72-character rule only, matches the highs LICENSE byte for byte, and ties every section to its index line. Checked: node 7143, long 160, guards 246, browser 1596; TIERS mutants caught. --- FR --- [ADD] deps : le solveur HiGHS en dépendance de développement épinglée Le plancher exact du diagnostic exige un solveur MILP hors ligne dans la page : highs 1.15.4 (HiGHS 1.15.1 en WebAssembly, MIT), épinglé comme les autres paquets incorporés. Son wasm lie des œuvres sous d'autres licences : TIERS.txt reçoit une section « incorporé à highs » par œuvre, textes pris en amont aux bons tags, l'Apache 2.0 de LLVM en entier. Gardes : highs ne se charge que dans le module du solveur, main.js et les épreuves ; TIERS se coupe à la seule ligne de 72 « = », la section de highs suit son LICENSE à l'octet, et chaque section a sa ligne d'index. Vérifié : node 7143, longue 160, gardes 246, navigateur 1596 ; mutants pris. Assisted-by: Claude Opus 5.5 --- CHANGELOG.md | 4 + README.md | 5 +- package-lock.json | 11 + package.json | 1 + public/licences/TIERS.txt | 943 ++++++++++++++++++++++++++++++++- spec.md | 8 +- test/arborescence.test.js | 68 ++- test/construction.long.test.js | 42 +- 8 files changed, 1052 insertions(+), 30 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index e1a2b91..f8ea8cf 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -632,6 +632,10 @@ chaque organisation seule. La carte de la proposition choisie dit d'une proposition sans conflit qui l'atteint que ses collisions sont au minimum, et ne propose plus « Repartir d'elle » pour elles. +- Les avis des tiers livrés avec l'application, `licences/TIERS.txt`, + nomment le solveur HiGHS, qui servira au calcul exact du plancher des + collisions du diagnostic, et chaque œuvre que son module WebAssembly + compile, chacune avec le texte entier de sa licence. **Version de format des fichiers** : 3. Les étiquettes, les objectifs, leurs règles, les cases nouvelles, le mode des objectifs et l'ordre des priorités diff --git a/README.md b/README.md index bf1c139..1f8549f 100644 --- a/README.md +++ b/README.md @@ -198,8 +198,9 @@ L'application embarque la police **Noto Sans** (Regular et Bold), sous la planche de badges et à l'interface. Son texte est dans `public/licences/NotoSans-OFL.txt`, sa provenance dans `src/polices/PROVENANCE`. Les avis des paquets que la page incorpore — Svelte, pdf-lib, fontkit et ce -qu'ils tirent — sont dans `public/licences/TIERS.txt`. Ces fichiers voyagent -avec la page, dans `www/licences/`. +qu'ils tirent, et le solveur **HiGHS** (paquet `highs`), avec les œuvres que +son module WebAssembly compile — sont dans `public/licences/TIERS.txt`. Ces +fichiers voyagent avec la page, dans `www/licences/`. Le logo de TechnoLibre, `src/actifs/full_logo_technolibre_2023.svg` et `.png`, est la marque de l'éditeur ; « À propos » l'affiche et le donne à télécharger. diff --git a/package-lock.json b/package-lock.json index 921b5d8..6e58156 100644 --- a/package-lock.json +++ b/package-lock.json @@ -18,6 +18,7 @@ "electron": "^44.5.1", "electron-builder": "^26.15.3", "fast-check": "^4.10.2", + "highs": "1.15.4", "pdf-lib": "1.17.1", "pdfjs-dist": "6.4.299", "playwright": "^1.63.0", @@ -3741,6 +3742,16 @@ "node": ">= 0.4" } }, + "node_modules/highs": { + "version": "1.15.4", + "resolved": "https://registry.npmjs.org/highs/-/highs-1.15.4.tgz", + "integrity": "sha512-vsC03XHDqWAVrEFUt22h8e4CDDMb+LAFa0bycjPUq2kadRigK5pNLVIlwspKvMxxVtrr4NAucZHP/CAgigxiDQ==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=18" + } + }, "node_modules/hosted-git-info": { "version": "4.1.0", "resolved": "https://registry.npmjs.org/hosted-git-info/-/hosted-git-info-4.1.0.tgz", diff --git a/package.json b/package.json index 78e73d2..a4aeb54 100644 --- a/package.json +++ b/package.json @@ -32,6 +32,7 @@ "electron": "^44.5.1", "electron-builder": "^26.15.3", "fast-check": "^4.10.2", + "highs": "1.15.4", "pdf-lib": "1.17.1", "pdfjs-dist": "6.4.299", "playwright": "^1.63.0", diff --git a/public/licences/TIERS.txt b/public/licences/TIERS.txt index 7040623..c8f0bf1 100644 --- a/public/licences/TIERS.txt +++ b/public/licences/TIERS.txt @@ -6,7 +6,10 @@ licence. Une section par paquet présent dans les morceaux construits : son nom et sa version, la licence que déclare son package.json, et le texte de son fichier de licence. @pdf-lib/fontkit incorpore lui-même, dans sa construction publiée, le code d'autres paquets : chacun a sa section, -« incorporé à @pdf-lib/fontkit ». La construction minifiée retire les +« incorporé à @pdf-lib/fontkit ». highs, le solveur du diagnostic, compile +dans son module WebAssembly HiGHS et les œuvres que sa construction lie : +chacune a sa section, « incorporé à highs », à la version de cette +construction. La construction minifiée, comme la compilation, retire les commentaires du code : l'avis qu'un code incorporé porte en tête suit, mot pour mot, le texte de sa section, avec le texte entier de sa licence. La police Noto Sans a son texte à côté de ce fichier, dans NotoSans-OFL.txt. @@ -47,6 +50,15 @@ tslib 1.14.1 — 0BSD — pdf-lib/node_modules/tslib/LICENSE.txt incorporé à @pdf-lib/fontkit : iconv-lite 0.4.24 — MIT incorporé à @pdf-lib/fontkit : safer-buffer 2.1.2 — MIT incorporé à @pdf-lib/fontkit : rollup-plugin-node-builtins 2.1.2 — ISC, et MIT pour le code repris de Node.js +highs 1.15.4 — MIT — highs/LICENSE + incorporé à highs : HiGHS 1.15.1 — MIT, IPX et basiclu compris + incorporé à highs : lecteur LP de HiGHS 1.15.1 — MIT + incorporé à highs : cuPDLP-C — MIT + incorporé à highs : pdqsort — Zlib + incorporé à highs : Emscripten 6.0.3 — MIT ou University of Illinois/NCSA + incorporé à highs : libc++, libc++abi et compiler-rt (LLVM 21.1.8) — Apache-2.0 WITH LLVM-exception + incorporé à highs : musl 1.2.6 — MIT + incorporé à highs : dlmalloc 2.8.6 — domaine public (CC0 1.0) ======================================================================== paquet : svelte 5.57.1 @@ -1117,3 +1129,932 @@ NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + +======================================================================== +paquet : highs 1.15.4 +licence : MIT +texte : highs/LICENSE, pour highs-js et pour HiGHS, qu'il compile en un module WebAssembly (highs.wasm) et son chargeur JavaScript +------------------------------------------------------------------------ +MIT License + +Copyright (c) 2023 highs-js +Copyright (c) 2026 HiGHS + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. + +======================================================================== +incorporé à highs : HiGHS 1.15.1 +licence : MIT +texte : LICENSE.txt du dépôt ERGO-Code/HiGHS au tag v1.15.1, la version que highs-js 1.15.4 compile, IPX et basiclu compris ; les fichiers d'IPX et de basiclu portent en tête l'avis d'ERGO-Code, que la compilation retire : il suit le texte MIT +------------------------------------------------------------------------ +MIT License + +Copyright (c) 2026 HiGHS + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. + +------------------------------------------------------------------------ +IPX et basiclu (en-tête de leurs fichiers) : + +Copyright (C) 2016-2018 ERGO-Code +Copyright (C) 2016-2019 ERGO-Code +Copyright (c) 2018-2019 ERGO-Code. See license.txt for license. + +======================================================================== +incorporé à highs : lecteur LP de HiGHS 1.15.1 +licence : MIT +texte : LICENSE du répertoire highs/io/filereaderlp de HiGHS au tag v1.15.1, le lecteur du format LP, par lequel un modèle entre dans le solveur +------------------------------------------------------------------------ +Copyright (c) 2020 Michael Feldmeier + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. + +======================================================================== +incorporé à highs : cuPDLP-C +licence : MIT +texte : LICENSE du dépôt COPT-Public/cuPDLP-C au commit 7b94c41, la révision que HiGHS 1.15.1 copie dans highs/pdlp/cupdlp sans fichier de licence ; le même texte qu'au tag v0.3.0 +------------------------------------------------------------------------ +MIT License + +Copyright (c) 2023 COPT-Public + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. + +======================================================================== +incorporé à highs : pdqsort +licence : Zlib +texte : extern/pdqsort/license.txt de HiGHS au tag v1.15.1, identique au license.txt du dépôt orlp/pdqsort +------------------------------------------------------------------------ +Copyright (c) 2021 Orson Peters + +This software is provided 'as-is', without any express or implied warranty. In no event will the +authors be held liable for any damages arising from the use of this software. + +Permission is granted to anyone to use this software for any purpose, including commercial +applications, and to alter it and redistribute it freely, subject to the following restrictions: + +1. The origin of this software must not be misrepresented; you must not claim that you wrote the + original software. If you use this software in a product, an acknowledgment in the product + documentation would be appreciated but is not required. + +2. Altered source versions must be plainly marked as such, and must not be misrepresented as + being the original software. + +3. This notice may not be removed or altered from any source distribution. + +======================================================================== +incorporé à highs : Emscripten 6.0.3 +licence : MIT ou University of Illinois/NCSA, au choix +texte : LICENSE du dépôt emscripten-core/emscripten au tag 6.0.3, la version que fixe la construction de highs-js 1.15.4 (EMSDK_VERSION) : le chargeur JavaScript du module et les bibliothèques système qu'il lie +------------------------------------------------------------------------ +Emscripten is available under 2 licenses, the MIT license and the +University of Illinois/NCSA Open Source License. + +Both are permissive open source licenses, with little if any +practical difference between them. + +The reason for offering both is that (1) the MIT license is +well-known, while (2) the University of Illinois/NCSA Open Source +License allows Emscripten's code to be integrated upstream into +LLVM, which uses that license, should the opportunity arise. + +The full text of both licenses follows. + +============================================================================== + +Copyright (c) 2010-2014 Emscripten authors, see AUTHORS file. + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in +all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN +THE SOFTWARE. + +============================================================================== + +Copyright (c) 2010-2014 Emscripten authors, see AUTHORS file. +All rights reserved. + +Permission is hereby granted, free of charge, to any person obtaining a +copy of this software and associated documentation files (the +"Software"), to deal with the Software without restriction, including +without limitation the rights to use, copy, modify, merge, publish, +distribute, sublicense, and/or sell copies of the Software, and to +permit persons to whom the Software is furnished to do so, subject to +the following conditions: + + Redistributions of source code must retain the above copyright + notice, this list of conditions and the following disclaimers. + + Redistributions in binary form must reproduce the above + copyright notice, this list of conditions and the following disclaimers + in the documentation and/or other materials provided with the + distribution. + + Neither the names of Mozilla, + nor the names of its contributors may be used to endorse + or promote products derived from this Software without specific prior + written permission. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS +OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF +MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. +IN NO EVENT SHALL THE CONTRIBUTORS OR COPYRIGHT HOLDERS BE LIABLE FOR +ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, +TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE +SOFTWARE OR THE USE OR OTHER DEALINGS WITH THE SOFTWARE. + +============================================================================== + +This program uses portions of Node.js source code located in src/library_path.js, +in accordance with the terms of the MIT license. Node's license follows: + + """ + Copyright Joyent, Inc. and other Node contributors. All rights reserved. + Permission is hereby granted, free of charge, to any person obtaining a copy + of this software and associated documentation files (the "Software"), to + deal in the Software without restriction, including without limitation the + rights to use, copy, modify, merge, publish, distribute, sublicense, and/or + sell copies of the Software, and to permit persons to whom the Software is + furnished to do so, subject to the following conditions: + + The above copyright notice and this permission notice shall be included in + all copies or substantial portions of the Software. + + THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING + FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS + IN THE SOFTWARE. + """ + +The musl libc project is bundled in this repo, and it has the MIT license, see +system/lib/libc/musl/COPYRIGHT + +The third_party/ subdirectory contains code with other licenses. None of it is +used by default, but certain options use it (e.g., the optional closure compiler +flag will run closure compiler from third_party/). + +======================================================================== +incorporé à highs : libc++, libc++abi et compiler-rt (LLVM 21.1.8) +licence : Apache-2.0 WITH LLVM-exception +texte : LICENSE.TXT de libc++ dans llvm-project au tag llvmorg-21.1.8, la version qu'Emscripten 6.0.3 incorpore (copie identique dans system/lib/libcxx) : l'Apache License 2.0 entière, les exceptions LLVM, puis la licence d'origine. Les LICENSE.TXT de libc++abi et de compiler-rt sont le même texte, sauf la part « Legacy », qui suit pour chacun +------------------------------------------------------------------------ +============================================================================== +The LLVM Project is under the Apache License v2.0 with LLVM Exceptions: +============================================================================== + + Apache License + Version 2.0, January 2004 + http://www.apache.org/licenses/ + + TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION + + 1. Definitions. + + "License" shall mean the terms and conditions for use, reproduction, + and distribution as defined by Sections 1 through 9 of this document. + + "Licensor" shall mean the copyright owner or entity authorized by + the copyright owner that is granting the License. + + "Legal Entity" shall mean the union of the acting entity and all + other entities that control, are controlled by, or are under common + control with that entity. For the purposes of this definition, + "control" means (i) the power, direct or indirect, to cause the + direction or management of such entity, whether by contract or + otherwise, or (ii) ownership of fifty percent (50%) or more of the + outstanding shares, or (iii) beneficial ownership of such entity. + + "You" (or "Your") shall mean an individual or Legal Entity + exercising permissions granted by this License. + + "Source" form shall mean the preferred form for making modifications, + including but not limited to software source code, documentation + source, and configuration files. + + "Object" form shall mean any form resulting from mechanical + transformation or translation of a Source form, including but + not limited to compiled object code, generated documentation, + and conversions to other media types. + + "Work" shall mean the work of authorship, whether in Source or + Object form, made available under the License, as indicated by a + copyright notice that is included in or attached to the work + (an example is provided in the Appendix below). + + "Derivative Works" shall mean any work, whether in Source or Object + form, that is based on (or derived from) the Work and for which the + editorial revisions, annotations, elaborations, or other modifications + represent, as a whole, an original work of authorship. For the purposes + of this License, Derivative Works shall not include works that remain + separable from, or merely link (or bind by name) to the interfaces of, + the Work and Derivative Works thereof. + + "Contribution" shall mean any work of authorship, including + the original version of the Work and any modifications or additions + to that Work or Derivative Works thereof, that is intentionally + submitted to Licensor for inclusion in the Work by the copyright owner + or by an individual or Legal Entity authorized to submit on behalf of + the copyright owner. For the purposes of this definition, "submitted" + means any form of electronic, verbal, or written communication sent + to the Licensor or its representatives, including but not limited to + communication on electronic mailing lists, source code control systems, + and issue tracking systems that are managed by, or on behalf of, the + Licensor for the purpose of discussing and improving the Work, but + excluding communication that is conspicuously marked or otherwise + designated in writing by the copyright owner as "Not a Contribution." + + "Contributor" shall mean Licensor and any individual or Legal Entity + on behalf of whom a Contribution has been received by Licensor and + subsequently incorporated within the Work. + + 2. Grant of Copyright License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + copyright license to reproduce, prepare Derivative Works of, + publicly display, publicly perform, sublicense, and distribute the + Work and such Derivative Works in Source or Object form. + + 3. Grant of Patent License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + (except as stated in this section) patent license to make, have made, + use, offer to sell, sell, import, and otherwise transfer the Work, + where such license applies only to those patent claims licensable + by such Contributor that are necessarily infringed by their + Contribution(s) alone or by combination of their Contribution(s) + with the Work to which such Contribution(s) was submitted. If You + institute patent litigation against any entity (including a + cross-claim or counterclaim in a lawsuit) alleging that the Work + or a Contribution incorporated within the Work constitutes direct + or contributory patent infringement, then any patent licenses + granted to You under this License for that Work shall terminate + as of the date such litigation is filed. + + 4. Redistribution. You may reproduce and distribute copies of the + Work or Derivative Works thereof in any medium, with or without + modifications, and in Source or Object form, provided that You + meet the following conditions: + + (a) You must give any other recipients of the Work or + Derivative Works a copy of this License; and + + (b) You must cause any modified files to carry prominent notices + stating that You changed the files; and + + (c) You must retain, in the Source form of any Derivative Works + that You distribute, all copyright, patent, trademark, and + attribution notices from the Source form of the Work, + excluding those notices that do not pertain to any part of + the Derivative Works; and + + (d) If the Work includes a "NOTICE" text file as part of its + distribution, then any Derivative Works that You distribute must + include a readable copy of the attribution notices contained + within such NOTICE file, excluding those notices that do not + pertain to any part of the Derivative Works, in at least one + of the following places: within a NOTICE text file distributed + as part of the Derivative Works; within the Source form or + documentation, if provided along with the Derivative Works; or, + within a display generated by the Derivative Works, if and + wherever such third-party notices normally appear. The contents + of the NOTICE file are for informational purposes only and + do not modify the License. You may add Your own attribution + notices within Derivative Works that You distribute, alongside + or as an addendum to the NOTICE text from the Work, provided + that such additional attribution notices cannot be construed + as modifying the License. + + You may add Your own copyright statement to Your modifications and + may provide additional or different license terms and conditions + for use, reproduction, or distribution of Your modifications, or + for any such Derivative Works as a whole, provided Your use, + reproduction, and distribution of the Work otherwise complies with + the conditions stated in this License. + + 5. Submission of Contributions. Unless You explicitly state otherwise, + any Contribution intentionally submitted for inclusion in the Work + by You to the Licensor shall be under the terms and conditions of + this License, without any additional terms or conditions. + Notwithstanding the above, nothing herein shall supersede or modify + the terms of any separate license agreement you may have executed + with Licensor regarding such Contributions. + + 6. Trademarks. This License does not grant permission to use the trade + names, trademarks, service marks, or product names of the Licensor, + except as required for reasonable and customary use in describing the + origin of the Work and reproducing the content of the NOTICE file. + + 7. Disclaimer of Warranty. Unless required by applicable law or + agreed to in writing, Licensor provides the Work (and each + Contributor provides its Contributions) on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + implied, including, without limitation, any warranties or conditions + of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A + PARTICULAR PURPOSE. You are solely responsible for determining the + appropriateness of using or redistributing the Work and assume any + risks associated with Your exercise of permissions under this License. + + 8. Limitation of Liability. In no event and under no legal theory, + whether in tort (including negligence), contract, or otherwise, + unless required by applicable law (such as deliberate and grossly + negligent acts) or agreed to in writing, shall any Contributor be + liable to You for damages, including any direct, indirect, special, + incidental, or consequential damages of any character arising as a + result of this License or out of the use or inability to use the + Work (including but not limited to damages for loss of goodwill, + work stoppage, computer failure or malfunction, or any and all + other commercial damages or losses), even if such Contributor + has been advised of the possibility of such damages. + + 9. Accepting Warranty or Additional Liability. While redistributing + the Work or Derivative Works thereof, You may choose to offer, + and charge a fee for, acceptance of support, warranty, indemnity, + or other liability obligations and/or rights consistent with this + License. However, in accepting such obligations, You may act only + on Your own behalf and on Your sole responsibility, not on behalf + of any other Contributor, and only if You agree to indemnify, + defend, and hold each Contributor harmless for any liability + incurred by, or claims asserted against, such Contributor by reason + of your accepting any such warranty or additional liability. + + END OF TERMS AND CONDITIONS + + APPENDIX: How to apply the Apache License to your work. + + To apply the Apache License to your work, attach the following + boilerplate notice, with the fields enclosed by brackets "[]" + replaced with your own identifying information. (Don't include + the brackets!) The text should be enclosed in the appropriate + comment syntax for the file format. We also recommend that a + file or class name and description of purpose be included on the + same "printed page" as the copyright notice for easier + identification within third-party archives. + + Copyright [yyyy] [name of copyright owner] + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + +---- LLVM Exceptions to the Apache 2.0 License ---- + +As an exception, if, as a result of your compiling your source code, portions +of this Software are embedded into an Object form of such source code, you +may redistribute such embedded portions in such Object form without complying +with the conditions of Sections 4(a), 4(b) and 4(d) of the License. + +In addition, if you combine or link compiled forms of this Software with +software that is licensed under the GPLv2 ("Combined Software") and if a +court of competent jurisdiction determines that the patent provision (Section +3), the indemnity provision (Section 9) or other Section of the License +conflicts with the conditions of the GPLv2, you may retroactively and +prospectively choose to deem waived or otherwise exclude such Section(s) of +the License, but only in their entirety and only with respect to the Combined +Software. + +============================================================================== +Software from third parties included in the LLVM Project: +============================================================================== +The LLVM Project contains third party software which is under different license +terms. All such code will be identified clearly using at least one of two +mechanisms: +1) It will be in a separate directory tree with its own `LICENSE.txt` or + `LICENSE` file at the top containing the specific license and restrictions + which apply to that software, or +2) It will contain specific license and restriction terms at the top of every + file. + +============================================================================== +Legacy LLVM License (https://llvm.org/docs/DeveloperPolicy.html#legacy): +============================================================================== + +The libc++ library is dual licensed under both the University of Illinois +"BSD-Like" license and the MIT license. As a user of this code you may choose +to use it under either license. As a contributor, you agree to allow your code +to be used under both. + +Full text of the relevant licenses is included below. + +============================================================================== + +University of Illinois/NCSA +Open Source License + +Copyright (c) 2009-2019 by the contributors listed in CREDITS.TXT + +All rights reserved. + +Developed by: + + LLVM Team + + University of Illinois at Urbana-Champaign + + http://llvm.org + +Permission is hereby granted, free of charge, to any person obtaining a copy of +this software and associated documentation files (the "Software"), to deal with +the Software without restriction, including without limitation the rights to +use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies +of the Software, and to permit persons to whom the Software is furnished to do +so, subject to the following conditions: + + * Redistributions of source code must retain the above copyright notice, + this list of conditions and the following disclaimers. + + * Redistributions in binary form must reproduce the above copyright notice, + this list of conditions and the following disclaimers in the + documentation and/or other materials provided with the distribution. + + * Neither the names of the LLVM Team, University of Illinois at + Urbana-Champaign, nor the names of its contributors may be used to + endorse or promote products derived from this Software without specific + prior written permission. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS +FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +CONTRIBUTORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS WITH THE +SOFTWARE. + +============================================================================== + +Copyright (c) 2009-2014 by the contributors listed in CREDITS.TXT + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in +all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN +THE SOFTWARE. + +------------------------------------------------------------------------ +libc++abi (part « Legacy » de son LICENSE.TXT) : + +============================================================================== +Legacy LLVM License (https://llvm.org/docs/DeveloperPolicy.html#legacy): +============================================================================== + +The libc++abi library is dual licensed under both the University of Illinois +"BSD-Like" license and the MIT license. As a user of this code you may choose +to use it under either license. As a contributor, you agree to allow your code +to be used under both. + +Full text of the relevant licenses is included below. + +============================================================================== + +University of Illinois/NCSA +Open Source License + +Copyright (c) 2009-2019 by the contributors listed in CREDITS.TXT + +All rights reserved. + +Developed by: + + LLVM Team + + University of Illinois at Urbana-Champaign + + http://llvm.org + +Permission is hereby granted, free of charge, to any person obtaining a copy of +this software and associated documentation files (the "Software"), to deal with +the Software without restriction, including without limitation the rights to +use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies +of the Software, and to permit persons to whom the Software is furnished to do +so, subject to the following conditions: + + * Redistributions of source code must retain the above copyright notice, + this list of conditions and the following disclaimers. + + * Redistributions in binary form must reproduce the above copyright notice, + this list of conditions and the following disclaimers in the + documentation and/or other materials provided with the distribution. + + * Neither the names of the LLVM Team, University of Illinois at + Urbana-Champaign, nor the names of its contributors may be used to + endorse or promote products derived from this Software without specific + prior written permission. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS +FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +CONTRIBUTORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS WITH THE +SOFTWARE. + +============================================================================== + +Copyright (c) 2009-2014 by the contributors listed in CREDITS.TXT + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in +all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN +THE SOFTWARE. + +------------------------------------------------------------------------ +compiler-rt (part « Legacy » de son LICENSE.TXT) : + +============================================================================== +Legacy LLVM License (https://llvm.org/docs/DeveloperPolicy.html#legacy): +============================================================================== + +The compiler_rt library is dual licensed under both the University of Illinois +"BSD-Like" license and the MIT license. As a user of this code you may choose +to use it under either license. As a contributor, you agree to allow your code +to be used under both. + +Full text of the relevant licenses is included below. + +============================================================================== + +University of Illinois/NCSA +Open Source License + +Copyright (c) 2009-2019 by the contributors listed in CREDITS.TXT + +All rights reserved. + +Developed by: + + LLVM Team + + University of Illinois at Urbana-Champaign + + http://llvm.org + +Permission is hereby granted, free of charge, to any person obtaining a copy of +this software and associated documentation files (the "Software"), to deal with +the Software without restriction, including without limitation the rights to +use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies +of the Software, and to permit persons to whom the Software is furnished to do +so, subject to the following conditions: + + * Redistributions of source code must retain the above copyright notice, + this list of conditions and the following disclaimers. + + * Redistributions in binary form must reproduce the above copyright notice, + this list of conditions and the following disclaimers in the + documentation and/or other materials provided with the distribution. + + * Neither the names of the LLVM Team, University of Illinois at + Urbana-Champaign, nor the names of its contributors may be used to + endorse or promote products derived from this Software without specific + prior written permission. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS +FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +CONTRIBUTORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS WITH THE +SOFTWARE. + +============================================================================== + +Copyright (c) 2009-2015 by the contributors listed in CREDITS.TXT + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in +all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN +THE SOFTWARE. + +======================================================================== +incorporé à highs : musl 1.2.6 +licence : MIT +texte : COPYRIGHT du dépôt musl au tag v1.2.6, la bibliothèque C d'Emscripten 6.0.3 (copie identique dans system/lib/libc/musl) +------------------------------------------------------------------------ +musl as a whole is licensed under the following standard MIT license: + +---------------------------------------------------------------------- +Copyright © 2005-2020 Rich Felker, et al. + +Permission is hereby granted, free of charge, to any person obtaining +a copy of this software and associated documentation files (the +"Software"), to deal in the Software without restriction, including +without limitation the rights to use, copy, modify, merge, publish, +distribute, sublicense, and/or sell copies of the Software, and to +permit persons to whom the Software is furnished to do so, subject to +the following conditions: + +The above copyright notice and this permission notice shall be +included in all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, +EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF +MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. +IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY +CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, +TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE +SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. +---------------------------------------------------------------------- + +Authors/contributors include: + +A. Wilcox +Ada Worcester +Alex Dowad +Alex Suykov +Alexander Monakov +Andre McCurdy +Andrew Kelley +Anthony G. Basile +Aric Belsito +Arvid Picciani +Bartosz Brachaczek +Benjamin Peterson +Bobby Bingham +Boris Brezillon +Brent Cook +Chris Spiegel +Clément Vasseur +Daniel Micay +Daniel Sabogal +Daurnimator +David Carlier +David Edelsohn +Denys Vlasenko +Dmitry Ivanov +Dmitry V. Levin +Drew DeVault +Emil Renner Berthing +Fangrui Song +Felix Fietkau +Felix Janda +Gianluca Anzolin +Hauke Mehrtens +He X +Hiltjo Posthuma +Isaac Dunham +Jaydeep Patil +Jens Gustedt +Jeremy Huntwork +Jo-Philipp Wich +Joakim Sindholt +John Spencer +Julien Ramseier +Justin Cormack +Kaarle Ritvanen +Khem Raj +Kylie McClain +Leah Neukirchen +Luca Barbato +Luka Perkov +Lynn Ochs +M Farkas-Dyck (Strake) +Mahesh Bodapati +Markus Wichmann +Masanori Ogino +Michael Clark +Michael Forney +Mikhail Kremnyov +Natanael Copa +Nicholas J. Kain +orc +Pascal Cuoq +Patrick Oppenlander +Petr Hosek +Petr Skocik +Pierre Carrier +Reini Urban +Rich Felker +Richard Pennington +Ryan Fairfax +Samuel Holland +Segev Finer +Shiz +sin +Solar Designer +Stefan Kristiansson +Stefan O'Rear +Szabolcs Nagy +Timo Teräs +Trutz Behn +Will Dietz +William Haddon +William Pitcock + +Portions of this software are derived from third-party works licensed +under terms compatible with the above MIT license: + +The TRE regular expression implementation (src/regex/reg* and +src/regex/tre*) is Copyright © 2001-2008 Ville Laurikari and licensed +under a 2-clause BSD license (license text in the source files). The +included version has been heavily modified by Rich Felker in 2012, in +the interests of size, simplicity, and namespace cleanliness. + +Much of the math library code (src/math/* and src/complex/*) is +Copyright © 1993,2004 Sun Microsystems or +Copyright © 2003-2011 David Schultz or +Copyright © 2003-2009 Steven G. Kargl or +Copyright © 2003-2009 Bruce D. Evans or +Copyright © 2008 Stephen L. Moshier or +Copyright © 2017-2018 Arm Limited +and labelled as such in comments in the individual source files. All +have been licensed under extremely permissive terms. + +The ARM memcpy code (src/string/arm/memcpy.S) is Copyright © 2008 +The Android Open Source Project and is licensed under a two-clause BSD +license. It was taken from Bionic libc, used on Android. + +The AArch64 memcpy and memset code (src/string/aarch64/*) are +Copyright © 1999-2019, Arm Limited. + +The implementation of DES for crypt (src/crypt/crypt_des.c) is +Copyright © 1994 David Burren. It is licensed under a BSD license. + +The implementation of blowfish crypt (src/crypt/crypt_blowfish.c) was +originally written by Solar Designer and placed into the public +domain. The code also comes with a fallback permissive license for use +in jurisdictions that may not recognize the public domain. + +The smoothsort implementation (src/stdlib/qsort.c) is Copyright © 2011 +Lynn Ochs and is licensed under an MIT-style license. + +The x86_64 port was written by Nicholas J. Kain and is licensed under +the standard MIT terms. + +The mips and microblaze ports were originally written by Richard +Pennington for use in the ellcc project. The original code was adapted +by Rich Felker for build system and code conventions during upstream +integration. It is licensed under the standard MIT terms. + +The mips64 port was contributed by Imagination Technologies and is +licensed under the standard MIT terms. + +The powerpc port was also originally written by Richard Pennington, +and later supplemented and integrated by John Spencer. It is licensed +under the standard MIT terms. + +All other files which have no copyright comments are original works +produced specifically for use as part of this library, written either +by Rich Felker, the main author of the library, or by one or more +contibutors listed above. Details on authorship of individual files +can be found in the git version control history of the project. The +omission of copyright and license comments in each file is in the +interest of source tree size. + +In addition, permission is hereby granted for all public header files +(include/* and arch/*/bits/*) and crt files intended to be linked into +applications (crt/*, ldso/dlstart.c, and arch/*/crt_arch.h) to omit +the copyright notice and permission notice otherwise required by the +license, and to use these files without any requirement of +attribution. These files include substantial contributions from: + +Bobby Bingham +John Spencer +Nicholas J. Kain +Rich Felker +Richard Pennington +Stefan Kristiansson +Szabolcs Nagy + +all of whom have explicitly granted such permission. + +This file previously contained text expressing a belief that most of +the files covered by the above exception were sufficiently trivial not +to be subject to copyright, resulting in confusion over whether it +negated the permissions granted in the license. In the spirit of +permissive licensing, and of not having licensing issues being an +obstacle to adoption, that text has been removed. + +======================================================================== +incorporé à highs : dlmalloc 2.8.6 +licence : domaine public (CC0 1.0) +texte : avis en tête de system/lib/dlmalloc.c d'Emscripten 6.0.3, l'allocateur de mémoire par défaut de cette version, que la construction de highs-js ne remplace pas +------------------------------------------------------------------------ + This is a version (aka dlmalloc) of malloc/free/realloc written by + Doug Lea and released to the public domain, as explained at + http://creativecommons.org/publicdomain/zero/1.0/ Send questions, + comments, complaints, performance data, etc to dl@cs.oswego.edu diff --git a/spec.md b/spec.md index d2d0c15..54aadb2 100644 --- a/spec.md +++ b/spec.md @@ -8918,8 +8918,12 @@ sa valeur soit encore relevée ; un seul reste entièrement ouvert. producteur — la date du document est l'horodatage du placement (§ 14.7). `pdfjs-dist` lit sous `node` la couche de texte, les traits et les boîtes dont le test dépend entièrement, et trame les pages des captures d'écran du - § 19.6. Toutes sont des dépendances de développement épinglées à leur version - exacte : Vite incorpore au paquet ce que la page importe, et rien d'autre. + § 19.6. Le solveur destiné au plancher exact du diagnostic, `highs` + (highs-js, qui compile HiGHS en WebAssembly), les rejoint aux mêmes + conditions. Toutes sont des dépendances de développement épinglées à leur + version exacte : Vite incorpore au paquet ce que la page importe, et rien + d'autre. Leurs avis, et ceux des œuvres que leur construction publiée + incorpore, vont dans `public/licences/TIERS.txt`, qui voyage avec la page. 3. **TRANCHÉ — la désignation des animateurs est manuelle.** Il n'existe aucune commande qui les répartit : § 5.8 et § 2.1, étape 6. 4. **TRANCHÉ — mesuré : le coût de la maximisation du plafond a priori** sur diff --git a/test/arborescence.test.js b/test/arborescence.test.js index 2a379f8..317021f 100644 --- a/test/arborescence.test.js +++ b/test/arborescence.test.js @@ -1501,11 +1501,12 @@ describe('arborescence : dépendances déclarées', () => { }); // Les paquets de développement, liste fermée : ceux de l'outillage, puis -// ceux des sorties — pdf-lib et fontkit, que la page incorpore pour la -// planche, pdfjs-dist, outil d'épreuve qui relit le PDF (§ 11.1, § 17, -// point 2). Le projet n'a aucune dépendance d'exécution : Vite incorpore ce -// que la page importe. Les paquets des sorties sont épinglés à une version -// exacte, et ni eux ni ce qu'ils tirent ne portent de script d'installation. +// ceux que la page incorpore et leur outil d'épreuve — pdf-lib et fontkit, +// pour la planche, pdfjs-dist, qui relit le PDF (§ 11.1, § 17, point 2), et +// highs, le solveur destiné au plancher exact du diagnostic, module et actif +// wasm. Le projet n'a aucune dépendance d'exécution : Vite incorpore ce que +// la page importe. Ces paquets sont épinglés à une version exacte, et ni eux +// ni ce qu'ils tirent ne portent de script d'installation. const DEPENDANCES_DE_DEVELOPPEMENT = [ '@capacitor/cli', '@capacitor/core', @@ -1516,6 +1517,7 @@ const DEPENDANCES_DE_DEVELOPPEMENT = [ 'electron', 'electron-builder', 'fast-check', + 'highs', 'pdf-lib', 'pdfjs-dist', 'playwright', @@ -1523,7 +1525,7 @@ const DEPENDANCES_DE_DEVELOPPEMENT = [ 'vite', 'vitest', ]; -const PAQUETS_EPINGLES = ['pdf-lib', '@pdf-lib/fontkit', 'pdfjs-dist']; +const PAQUETS_EPINGLES = ['pdf-lib', '@pdf-lib/fontkit', 'pdfjs-dist', 'highs']; const SCRIPTS_ADMIS = { 'electron-winstaller': false }; const VERSION_EXACTE = /^\d+\.\d+\.\d+$/; @@ -1579,19 +1581,25 @@ function releverPaquetsDeclares(racine, liste = DEPENDANCES_DE_DEVELOPPEMENT) { return refus; } -// Les paquets réservés à une place : chacun ne se charge que sous les arbres -// admis, relatifs à la racine. pdf-lib et fontkit dessinent la planche dans -// src/pdf, seule couche de la page qui les importe ; les épreuves les -// relisent. pdfjs-dist, lecteur qui relit le PDF comme un lecteur réel, ne -// sert qu'aux épreuves et aux commandes de Vitest, sous test/ : un module -// livré qui l'importerait l'emporterait dans la page. +// Les paquets réservés à une place : chacun ne se charge que dans les lieux +// admis, relatifs à la racine — un arbre et tout ce qu'il contient, ou un +// fichier nommé par son chemin exact. pdf-lib et fontkit dessinent la +// planche dans src/pdf, seule couche de la page qui les importe ; les +// épreuves les relisent. pdfjs-dist, lecteur qui relit le PDF comme un +// lecteur réel, ne sert qu'aux épreuves et aux commandes de Vitest, sous +// test/ : un module livré qui l'importerait l'emporterait dans la page. +// highs, le solveur du plancher exact du diagnostic, ne se charge que dans +// src/application/solveur_travailleur.js, seul module de src/ qui l'importe, +// et dans src/main.js, pour désigner son actif wasm (highs/runtime?url) ; le +// reste de src/application n'y touche pas. const PAQUETS_RESERVES = [ { paquets: ['pdf-lib', '@pdf-lib/fontkit'], admis: ['src/pdf', 'test'] }, { paquets: ['pdfjs-dist'], admis: ['test'] }, + { paquets: ['highs'], admis: ['src/application/solveur_travailleur.js', 'src/main.js', 'test'] }, ]; // Relevé « fichier:ligne spécificateur » des chargements d'un paquet -// réservé hors de ses arbres admis, dans le périmètre des dépendances +// réservé hors de ses lieux admis, dans le périmètre des dépendances // (sourcesDuProjet), par fichier puis par ligne. Un chargement écrit dans // une chaîne, donnée d'épreuve, n'en est pas un. Lève quand le périmètre ne // porte aucun fichier. @@ -1606,7 +1614,7 @@ function releverPaquetsReserves(racine, reserves = PAQUETS_RESERVES) { .filter(({ indice, specificateur }) => estDuCode(code, indice) && estNu(specificateur)) .filter(({ specificateur }) => { const reserve = reserves.find(({ paquets }) => paquets.includes(nomDePaquet(specificateur))); - return reserve !== undefined && !reserve.admis.some((arbre) => nom.startsWith(`${arbre}/`)); + return reserve !== undefined && !reserve.admis.some((lieu) => nom === lieu || nom.startsWith(`${lieu}/`)); }) .map(({ indice, specificateur }) => `${nom}:${ligneDe(texte, indice)} ${specificateur}`); }); @@ -1769,7 +1777,7 @@ describe('arborescence : la validation des placements (§ 8.9)', () => { }); describe('arborescence : les sorties — PDF, impression, police (§ 11.1, § 13.4, § 17 point 2)', () => { - test('les paquets de développement sont ceux de la liste fermée, les trois paquets des sorties épinglés exacts, sans script d’installation ; aucune dépendance d’exécution', () => { + test('les paquets de développement sont ceux de la liste fermée, les paquets des sorties et le solveur épinglés exacts, sans script d’installation ; aucune dépendance d’exécution', () => { assert.deepEqual(releverPaquetsDeclares(RACINE), []); }); @@ -1783,32 +1791,35 @@ describe('arborescence : les sorties — PDF, impression, police (§ 11.1, § 13 'node_modules/pako': {}, 'node_modules/pdfjs-dist': { optionalDependencies: { canevas: '1.0.0' } }, 'node_modules/canevas': { hasInstallScript: true }, + 'node_modules/highs': { hasInstallScript: true }, 'node_modules/sans-rapport': { hasInstallScript: true }, }, }; const fichiers = { 'package.json': JSON.stringify({ dependencies: { 'pdf-lib': '1.17.1' }, - devDependencies: { vite: '^8.3.2', 'pdf-lib': '^1.17.1', 'pdfjs-dist': '6.4.299', 'outil-de-trop': '1.0.0' }, + devDependencies: { vite: '^8.3.2', 'pdf-lib': '^1.17.1', 'pdfjs-dist': '6.4.299', highs: '^1.15.4', 'outil-de-trop': '1.0.0' }, allowScripts: { 'electron-winstaller': false, canevas: true }, }), 'package-lock.json': JSON.stringify(verrou), }; assert.deepEqual( - avecArbre(fichiers, (racine) => releverPaquetsDeclares(racine, ['vite', 'pdf-lib', 'pdfjs-dist', 'svelte'])), + avecArbre(fichiers, (racine) => releverPaquetsDeclares(racine, ['vite', 'pdf-lib', 'pdfjs-dist', 'highs', 'svelte'])), [ 'devDependencies outil-de-trop : hors de la liste', 'devDependencies svelte : absent', 'dependencies pdf-lib', "devDependencies pdf-lib : ^1.17.1 n'est pas une version exacte", + "devDependencies highs : ^1.15.4 n'est pas une version exacte", 'allowScripts : {"electron-winstaller":false,"canevas":true}', + "node_modules/highs : script d'installation", "node_modules/pdf-lib/node_modules/tslib : script d'installation", "node_modules/canevas : script d'installation", ], ); }); - test('pdf-lib et fontkit ne se chargent que sous src/pdf et test/, pdfjs-dist que sous test/', () => { + test('pdf-lib et fontkit ne se chargent que sous src/pdf et test/, pdfjs-dist que sous test/, highs que dans solveur_travailleur.js, src/main.js et test/', () => { assert.deepEqual(releverPaquetsReserves(RACINE), []); }); @@ -1837,6 +1848,27 @@ describe('arborescence : les sorties — PDF, impression, police (§ 11.1, § 13 ]); }); + test('la garde des paquets réservés admet un fichier nommé par son chemin exact : highs ne se charge que dans src/application/solveur_travailleur.js, src/main.js et test/', () => { + const fichiers = { + 'src/application/solveur_travailleur.js': "import highs from 'highs';\n", + 'src/main.js': "import urlHighs from 'highs/runtime?url';\n", + 'src/application/modele_tour.js': "const charger = () => import('highs');\n", + 'src/application/solveur_travailleur.js.mjs': "import highs from 'highs';\n", + 'src/application/solveur_travailleur.js.bak/charge.js': "import highs from 'highs';\n", + 'src/main.js.d/reste.js': "import highs from 'highs';\n", + 'src/interface/diagnostic/travailleur_solveur.js': "import loadHighs from 'highs';\n", + 'test/solveur.js': "import highs from 'highs';\nimport urlHighs from 'highs/runtime?url';\n", + 'vite.config.js': "import { defineConfig } from 'vite';\n", + }; + assert.deepEqual(avecArbre(fichiers, releverPaquetsReserves), [ + 'src/application/modele_tour.js:1 highs', + 'src/application/solveur_travailleur.js.bak/charge.js:1 highs', + 'src/application/solveur_travailleur.js.mjs:1 highs', + 'src/interface/diagnostic/travailleur_solveur.js:1 highs', + 'src/main.js.d/reste.js:1 highs', + ]); + }); + test('src/polices ne se charge que par src/main.js et le montage des épreuves, src/impression que par src/main.js', () => { assert.deepEqual(releverImportateursReserves(RACINE), []); }); diff --git a/test/construction.long.test.js b/test/construction.long.test.js index ba70c0e..eb46221 100644 --- a/test/construction.long.test.js +++ b/test/construction.long.test.js @@ -681,20 +681,48 @@ describe('construction : les sorties (§ 11.1, § 14.15)', () => { }) .map(({ nom, version, licence }) => `${nom} ${version} — ${licence}`); assert.deepEqual(fautes, []); - // Les paquets de la production PDF ont leur avis, même quand aucune - // page ne les importe encore. - for (const nom of ['pdf-lib', '@pdf-lib/fontkit', '@pdf-lib/standard-fonts', '@pdf-lib/upng', 'pako', 'tslib']) { + // Les paquets de la production PDF et le solveur du diagnostic ont leur + // avis, même quand aucune page ne les importe encore. + for (const nom of ['pdf-lib', '@pdf-lib/fontkit', '@pdf-lib/standard-fonts', '@pdf-lib/upng', 'pako', 'tslib', 'highs']) { assert.ok(tiers.some((s) => s.nom === nom), `${nom} sans avis`); } + // La section de highs porte, sous son filet de « - », le LICENSE du + // paquet tel quel ; chaque section a sa ligne d'index, « nom version » + // pour un paquet, « incorporé à P : nom » pour une œuvre incorporée, et + // l'index ne nomme rien qui n'ait sa section. + const texte = readFileSync(join(RACINE, 'public', 'licences', 'TIERS.txt'), 'utf8'); + const sections = texte.split(/^={72}$/m); + const highs = sections.find((s) => /^\s*paquet : highs /.test(s)); + assert.equal(highs.split(/^-{72}\n/m)[1].trim(), readFileSync(join(RACINE, 'node_modules', 'highs', 'LICENSE'), 'utf8').trim()); + const debut = texte.indexOf('\nIndex\n'); + const index = texte.slice(debut, texte.indexOf('\n\n', debut + 7)).split('\n').slice(3); + const entete = (s) => /^\s*(paquet : (\S+ \S+)|incorporé à (\S+) : (.+))/.exec(s); + const nomme = sections + .map(entete) + .filter(Boolean) + .map(([, , paquet, hote, oeuvre]) => (paquet === undefined ? `incorporé à ${hote} : ${oeuvre}` : paquet)); + assert.deepEqual( + nomme.filter((n) => !index.some((ligne) => ligne.trim().startsWith(`${n} — `))), + [], + 'sections sans ligne d’index', + ); + assert.deepEqual( + index.filter((ligne) => !/^Noto Sans /.test(ligne) && !nomme.some((n) => ligne.trim().startsWith(`${n} — `))), + [], + 'lignes d’index sans section', + ); }); // La construction minifiée retire les commentaires ordinaires : l'avis // qu'un code incorporé porte en tête n'arrive dans www/ que par TIERS.txt. // Chaque ligne « Copyright … » d'un commentaire de la construction publiée // de fontkit y figure donc telle quelle, et une section « incorporé » qui - // nomme Apache porte le texte entier de l'Apache License 2.0. Une ligne - // « Copyright » est le texte du titulaire : aucune incise française n'y - // entre, elle va dans l'en-tête de la section. + // nomme Apache porte le texte entier de l'Apache License 2.0. Les sections + // se coupent à la ligne de 72 « = » qui les sépare, et à elle seule : un + // texte amont qui trace ses propres filets de « = », comme le LICENSE.TXT + // de LLVM, reste entier dans sa section. Une ligne « Copyright » est le + // texte du titulaire : aucune incise française n'y entre, elle va dans + // l'en-tête de la section. test('TIERS.txt porte mot pour mot les avis que les commentaires de fontkit incorporent, et le texte de leur licence', () => { const tiers = readFileSync(join(RACINE, 'public', 'licences', 'TIERS.txt'), 'utf8'); const lignes = new Set(tiers.split('\n').map((l) => l.trim())); @@ -707,7 +735,7 @@ describe('construction : les sorties (§ 11.1, § 14.15)', () => { assert.ok(avis.length > 0, `aucun avis dans ${entree}`); assert.deepEqual([...new Set(avis)].filter((ligne) => !lignes.has(ligne)), []); - const incorporees = tiers.split(/^=+$/m).filter((section) => /^\s*incorporé à /.test(section)); + const incorporees = tiers.split(/^={72}$/m).filter((section) => /^\s*incorporé à /.test(section)); assert.ok(incorporees.length > 0, 'aucune section « incorporé »'); const TERMES_APACHE = [ 'Version 2.0, January 2004',