@nirs4all/io-wasm 0.1.11 → 0.1.13

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.
@@ -0,0 +1,518 @@
1
+
2
+ CeCILL FREE SOFTWARE LICENSE AGREEMENT
3
+
4
+ Version 2.1 dated 2013-06-21
5
+
6
+
7
+ Notice
8
+
9
+ This Agreement is a Free Software license agreement that is the result
10
+ of discussions between its authors in order to ensure compliance with
11
+ the two main principles guiding its drafting:
12
+
13
+ * firstly, compliance with the principles governing the distribution
14
+ of Free Software: access to source code, broad rights granted to users,
15
+ * secondly, the election of a governing law, French law, with which it
16
+ is conformant, both as regards the law of torts and intellectual
17
+ property law, and the protection that it offers to both authors and
18
+ holders of the economic rights over software.
19
+
20
+ The authors of the CeCILL (for Ce[a] C[nrs] I[nria] L[ogiciel] L[ibre])
21
+ license are:
22
+
23
+ Commissariat à l'énergie atomique et aux énergies alternatives - CEA, a
24
+ public scientific, technical and industrial research establishment,
25
+ having its principal place of business at 25 rue Leblanc, immeuble Le
26
+ Ponant D, 75015 Paris, France.
27
+
28
+ Centre National de la Recherche Scientifique - CNRS, a public scientific
29
+ and technological establishment, having its principal place of business
30
+ at 3 rue Michel-Ange, 75794 Paris cedex 16, France.
31
+
32
+ Institut National de Recherche en Informatique et en Automatique -
33
+ Inria, a public scientific and technological establishment, having its
34
+ principal place of business at Domaine de Voluceau, Rocquencourt, BP
35
+ 105, 78153 Le Chesnay cedex, France.
36
+
37
+
38
+ Preamble
39
+
40
+ The purpose of this Free Software license agreement is to grant users
41
+ the right to modify and redistribute the software governed by this
42
+ license within the framework of an open source distribution model.
43
+
44
+ The exercising of this right is conditional upon certain obligations for
45
+ users so as to preserve this status for all subsequent redistributions.
46
+
47
+ In consideration of access to the source code and the rights to copy,
48
+ modify and redistribute granted by the license, users are provided only
49
+ with a limited warranty and the software's author, the holder of the
50
+ economic rights, and the successive licensors only have limited liability.
51
+
52
+ In this respect, the risks associated with loading, using, modifying
53
+ and/or developing or reproducing the software by the user are brought to
54
+ the user's attention, given its Free Software status, which may make it
55
+ complicated to use, with the result that its use is reserved for
56
+ developers and experienced professionals having in-depth computer
57
+ knowledge. Users are therefore encouraged to load and test the
58
+ suitability of the software as regards their requirements in conditions
59
+ enabling the security of their systems and/or data to be ensured and,
60
+ more generally, to use and operate it in the same conditions of
61
+ security. This Agreement may be freely reproduced and published,
62
+ provided it is not altered, and that no provisions are either added or
63
+ removed herefrom.
64
+
65
+ This Agreement may apply to any or all software for which the holder of
66
+ the economic rights decides to submit the use thereof to its provisions.
67
+
68
+ Frequently asked questions can be found on the official website of the
69
+ CeCILL licenses family (http://www.cecill.info/index.en.html) for any
70
+ necessary clarification.
71
+
72
+
73
+ Article 1 - DEFINITIONS
74
+
75
+ For the purpose of this Agreement, when the following expressions
76
+ commence with a capital letter, they shall have the following meaning:
77
+
78
+ Agreement: means this license agreement, and its possible subsequent
79
+ versions and annexes.
80
+
81
+ Software: means the software in its Object Code and/or Source Code form
82
+ and, where applicable, its documentation, "as is" when the Licensee
83
+ accepts the Agreement.
84
+
85
+ Initial Software: means the Software in its Source Code and possibly its
86
+ Object Code form and, where applicable, its documentation, "as is" when
87
+ it is first distributed under the terms and conditions of the Agreement.
88
+
89
+ Modified Software: means the Software modified by at least one
90
+ Contribution.
91
+
92
+ Source Code: means all the Software's instructions and program lines to
93
+ which access is required so as to modify the Software.
94
+
95
+ Object Code: means the binary files originating from the compilation of
96
+ the Source Code.
97
+
98
+ Holder: means the holder(s) of the economic rights over the Initial
99
+ Software.
100
+
101
+ Licensee: means the Software user(s) having accepted the Agreement.
102
+
103
+ Contributor: means a Licensee having made at least one Contribution.
104
+
105
+ Licensor: means the Holder, or any other individual or legal entity, who
106
+ distributes the Software under the Agreement.
107
+
108
+ Contribution: means any or all modifications, corrections, translations,
109
+ adaptations and/or new functions integrated into the Software by any or
110
+ all Contributors, as well as any or all Internal Modules.
111
+
112
+ Module: means a set of sources files including their documentation that
113
+ enables supplementary functions or services in addition to those offered
114
+ by the Software.
115
+
116
+ External Module: means any or all Modules, not derived from the
117
+ Software, so that this Module and the Software run in separate address
118
+ spaces, with one calling the other when they are run.
119
+
120
+ Internal Module: means any or all Module, connected to the Software so
121
+ that they both execute in the same address space.
122
+
123
+ GNU GPL: means the GNU General Public License version 2 or any
124
+ subsequent version, as published by the Free Software Foundation Inc.
125
+
126
+ GNU Affero GPL: means the GNU Affero General Public License version 3 or
127
+ any subsequent version, as published by the Free Software Foundation Inc.
128
+
129
+ EUPL: means the European Union Public License version 1.1 or any
130
+ subsequent version, as published by the European Commission.
131
+
132
+ Parties: mean both the Licensee and the Licensor.
133
+
134
+ These expressions may be used both in singular and plural form.
135
+
136
+
137
+ Article 2 - PURPOSE
138
+
139
+ The purpose of the Agreement is the grant by the Licensor to the
140
+ Licensee of a non-exclusive, transferable and worldwide license for the
141
+ Software as set forth in Article 5 <#scope> hereinafter for the whole
142
+ term of the protection granted by the rights over said Software.
143
+
144
+
145
+ Article 3 - ACCEPTANCE
146
+
147
+ 3.1 The Licensee shall be deemed as having accepted the terms and
148
+ conditions of this Agreement upon the occurrence of the first of the
149
+ following events:
150
+
151
+ * (i) loading the Software by any or all means, notably, by
152
+ downloading from a remote server, or by loading from a physical medium;
153
+ * (ii) the first time the Licensee exercises any of the rights granted
154
+ hereunder.
155
+
156
+ 3.2 One copy of the Agreement, containing a notice relating to the
157
+ characteristics of the Software, to the limited warranty, and to the
158
+ fact that its use is restricted to experienced users has been provided
159
+ to the Licensee prior to its acceptance as set forth in Article 3.1
160
+ <#accepting> hereinabove, and the Licensee hereby acknowledges that it
161
+ has read and understood it.
162
+
163
+
164
+ Article 4 - EFFECTIVE DATE AND TERM
165
+
166
+
167
+ 4.1 EFFECTIVE DATE
168
+
169
+ The Agreement shall become effective on the date when it is accepted by
170
+ the Licensee as set forth in Article 3.1 <#accepting>.
171
+
172
+
173
+ 4.2 TERM
174
+
175
+ The Agreement shall remain in force for the entire legal term of
176
+ protection of the economic rights over the Software.
177
+
178
+
179
+ Article 5 - SCOPE OF RIGHTS GRANTED
180
+
181
+ The Licensor hereby grants to the Licensee, who accepts, the following
182
+ rights over the Software for any or all use, and for the term of the
183
+ Agreement, on the basis of the terms and conditions set forth hereinafter.
184
+
185
+ Besides, if the Licensor owns or comes to own one or more patents
186
+ protecting all or part of the functions of the Software or of its
187
+ components, the Licensor undertakes not to enforce the rights granted by
188
+ these patents against successive Licensees using, exploiting or
189
+ modifying the Software. If these patents are transferred, the Licensor
190
+ undertakes to have the transferees subscribe to the obligations set
191
+ forth in this paragraph.
192
+
193
+
194
+ 5.1 RIGHT OF USE
195
+
196
+ The Licensee is authorized to use the Software, without any limitation
197
+ as to its fields of application, with it being hereinafter specified
198
+ that this comprises:
199
+
200
+ 1. permanent or temporary reproduction of all or part of the Software
201
+ by any or all means and in any or all form.
202
+
203
+ 2. loading, displaying, running, or storing the Software on any or all
204
+ medium.
205
+
206
+ 3. entitlement to observe, study or test its operation so as to
207
+ determine the ideas and principles behind any or all constituent
208
+ elements of said Software. This shall apply when the Licensee
209
+ carries out any or all loading, displaying, running, transmission or
210
+ storage operation as regards the Software, that it is entitled to
211
+ carry out hereunder.
212
+
213
+
214
+ 5.2 ENTITLEMENT TO MAKE CONTRIBUTIONS
215
+
216
+ The right to make Contributions includes the right to translate, adapt,
217
+ arrange, or make any or all modifications to the Software, and the right
218
+ to reproduce the resulting software.
219
+
220
+ The Licensee is authorized to make any or all Contributions to the
221
+ Software provided that it includes an explicit notice that it is the
222
+ author of said Contribution and indicates the date of the creation thereof.
223
+
224
+
225
+ 5.3 RIGHT OF DISTRIBUTION
226
+
227
+ In particular, the right of distribution includes the right to publish,
228
+ transmit and communicate the Software to the general public on any or
229
+ all medium, and by any or all means, and the right to market, either in
230
+ consideration of a fee, or free of charge, one or more copies of the
231
+ Software by any means.
232
+
233
+ The Licensee is further authorized to distribute copies of the modified
234
+ or unmodified Software to third parties according to the terms and
235
+ conditions set forth hereinafter.
236
+
237
+
238
+ 5.3.1 DISTRIBUTION OF SOFTWARE WITHOUT MODIFICATION
239
+
240
+ The Licensee is authorized to distribute true copies of the Software in
241
+ Source Code or Object Code form, provided that said distribution
242
+ complies with all the provisions of the Agreement and is accompanied by:
243
+
244
+ 1. a copy of the Agreement,
245
+
246
+ 2. a notice relating to the limitation of both the Licensor's warranty
247
+ and liability as set forth in Articles 8 and 9,
248
+
249
+ and that, in the event that only the Object Code of the Software is
250
+ redistributed, the Licensee allows effective access to the full Source
251
+ Code of the Software for a period of at least three years from the
252
+ distribution of the Software, it being understood that the additional
253
+ acquisition cost of the Source Code shall not exceed the cost of the
254
+ data transfer.
255
+
256
+
257
+ 5.3.2 DISTRIBUTION OF MODIFIED SOFTWARE
258
+
259
+ When the Licensee makes a Contribution to the Software, the terms and
260
+ conditions for the distribution of the resulting Modified Software
261
+ become subject to all the provisions of this Agreement.
262
+
263
+ The Licensee is authorized to distribute the Modified Software, in
264
+ source code or object code form, provided that said distribution
265
+ complies with all the provisions of the Agreement and is accompanied by:
266
+
267
+ 1. a copy of the Agreement,
268
+
269
+ 2. a notice relating to the limitation of both the Licensor's warranty
270
+ and liability as set forth in Articles 8 and 9,
271
+
272
+ and, in the event that only the object code of the Modified Software is
273
+ redistributed,
274
+
275
+ 3. a note stating the conditions of effective access to the full source
276
+ code of the Modified Software for a period of at least three years
277
+ from the distribution of the Modified Software, it being understood
278
+ that the additional acquisition cost of the source code shall not
279
+ exceed the cost of the data transfer.
280
+
281
+
282
+ 5.3.3 DISTRIBUTION OF EXTERNAL MODULES
283
+
284
+ When the Licensee has developed an External Module, the terms and
285
+ conditions of this Agreement do not apply to said External Module, that
286
+ may be distributed under a separate license agreement.
287
+
288
+
289
+ 5.3.4 COMPATIBILITY WITH OTHER LICENSES
290
+
291
+ The Licensee can include a code that is subject to the provisions of one
292
+ of the versions of the GNU GPL, GNU Affero GPL and/or EUPL in the
293
+ Modified or unmodified Software, and distribute that entire code under
294
+ the terms of the same version of the GNU GPL, GNU Affero GPL and/or EUPL.
295
+
296
+ The Licensee can include the Modified or unmodified Software in a code
297
+ that is subject to the provisions of one of the versions of the GNU GPL,
298
+ GNU Affero GPL and/or EUPL and distribute that entire code under the
299
+ terms of the same version of the GNU GPL, GNU Affero GPL and/or EUPL.
300
+
301
+
302
+ Article 6 - INTELLECTUAL PROPERTY
303
+
304
+
305
+ 6.1 OVER THE INITIAL SOFTWARE
306
+
307
+ The Holder owns the economic rights over the Initial Software. Any or
308
+ all use of the Initial Software is subject to compliance with the terms
309
+ and conditions under which the Holder has elected to distribute its work
310
+ and no one shall be entitled to modify the terms and conditions for the
311
+ distribution of said Initial Software.
312
+
313
+ The Holder undertakes that the Initial Software will remain ruled at
314
+ least by this Agreement, for the duration set forth in Article 4.2 <#term>.
315
+
316
+
317
+ 6.2 OVER THE CONTRIBUTIONS
318
+
319
+ The Licensee who develops a Contribution is the owner of the
320
+ intellectual property rights over this Contribution as defined by
321
+ applicable law.
322
+
323
+
324
+ 6.3 OVER THE EXTERNAL MODULES
325
+
326
+ The Licensee who develops an External Module is the owner of the
327
+ intellectual property rights over this External Module as defined by
328
+ applicable law and is free to choose the type of agreement that shall
329
+ govern its distribution.
330
+
331
+
332
+ 6.4 JOINT PROVISIONS
333
+
334
+ The Licensee expressly undertakes:
335
+
336
+ 1. not to remove, or modify, in any manner, the intellectual property
337
+ notices attached to the Software;
338
+
339
+ 2. to reproduce said notices, in an identical manner, in the copies of
340
+ the Software modified or not.
341
+
342
+ The Licensee undertakes not to directly or indirectly infringe the
343
+ intellectual property rights on the Software of the Holder and/or
344
+ Contributors, and to take, where applicable, vis-à-vis its staff, any
345
+ and all measures required to ensure respect of said intellectual
346
+ property rights of the Holder and/or Contributors.
347
+
348
+
349
+ Article 7 - RELATED SERVICES
350
+
351
+ 7.1 Under no circumstances shall the Agreement oblige the Licensor to
352
+ provide technical assistance or maintenance services for the Software.
353
+
354
+ However, the Licensor is entitled to offer this type of services. The
355
+ terms and conditions of such technical assistance, and/or such
356
+ maintenance, shall be set forth in a separate instrument. Only the
357
+ Licensor offering said maintenance and/or technical assistance services
358
+ shall incur liability therefor.
359
+
360
+ 7.2 Similarly, any Licensor is entitled to offer to its licensees, under
361
+ its sole responsibility, a warranty, that shall only be binding upon
362
+ itself, for the redistribution of the Software and/or the Modified
363
+ Software, under terms and conditions that it is free to decide. Said
364
+ warranty, and the financial terms and conditions of its application,
365
+ shall be subject of a separate instrument executed between the Licensor
366
+ and the Licensee.
367
+
368
+
369
+ Article 8 - LIABILITY
370
+
371
+ 8.1 Subject to the provisions of Article 8.2, the Licensee shall be
372
+ entitled to claim compensation for any direct loss it may have suffered
373
+ from the Software as a result of a fault on the part of the relevant
374
+ Licensor, subject to providing evidence thereof.
375
+
376
+ 8.2 The Licensor's liability is limited to the commitments made under
377
+ this Agreement and shall not be incurred as a result of in particular:
378
+ (i) loss due the Licensee's total or partial failure to fulfill its
379
+ obligations, (ii) direct or consequential loss that is suffered by the
380
+ Licensee due to the use or performance of the Software, and (iii) more
381
+ generally, any consequential loss. In particular the Parties expressly
382
+ agree that any or all pecuniary or business loss (i.e. loss of data,
383
+ loss of profits, operating loss, loss of customers or orders,
384
+ opportunity cost, any disturbance to business activities) or any or all
385
+ legal proceedings instituted against the Licensee by a third party,
386
+ shall constitute consequential loss and shall not provide entitlement to
387
+ any or all compensation from the Licensor.
388
+
389
+
390
+ Article 9 - WARRANTY
391
+
392
+ 9.1 The Licensee acknowledges that the scientific and technical
393
+ state-of-the-art when the Software was distributed did not enable all
394
+ possible uses to be tested and verified, nor for the presence of
395
+ possible defects to be detected. In this respect, the Licensee's
396
+ attention has been drawn to the risks associated with loading, using,
397
+ modifying and/or developing and reproducing the Software which are
398
+ reserved for experienced users.
399
+
400
+ The Licensee shall be responsible for verifying, by any or all means,
401
+ the suitability of the product for its requirements, its good working
402
+ order, and for ensuring that it shall not cause damage to either persons
403
+ or properties.
404
+
405
+ 9.2 The Licensor hereby represents, in good faith, that it is entitled
406
+ to grant all the rights over the Software (including in particular the
407
+ rights set forth in Article 5 <#scope>).
408
+
409
+ 9.3 The Licensee acknowledges that the Software is supplied "as is" by
410
+ the Licensor without any other express or tacit warranty, other than
411
+ that provided for in Article 9.2 <#good-faith> and, in particular,
412
+ without any warranty as to its commercial value, its secured, safe,
413
+ innovative or relevant nature.
414
+
415
+ Specifically, the Licensor does not warrant that the Software is free
416
+ from any error, that it will operate without interruption, that it will
417
+ be compatible with the Licensee's own equipment and software
418
+ configuration, nor that it will meet the Licensee's requirements.
419
+
420
+ 9.4 The Licensor does not either expressly or tacitly warrant that the
421
+ Software does not infringe any third party intellectual property right
422
+ relating to a patent, software or any other property right. Therefore,
423
+ the Licensor disclaims any and all liability towards the Licensee
424
+ arising out of any or all proceedings for infringement that may be
425
+ instituted in respect of the use, modification and redistribution of the
426
+ Software. Nevertheless, should such proceedings be instituted against
427
+ the Licensee, the Licensor shall provide it with technical and legal
428
+ expertise for its defense. Such technical and legal expertise shall be
429
+ decided on a case-by-case basis between the relevant Licensor and the
430
+ Licensee pursuant to a memorandum of understanding. The Licensor
431
+ disclaims any and all liability as regards the Licensee's use of the
432
+ name of the Software. No warranty is given as regards the existence of
433
+ prior rights over the name of the Software or as regards the existence
434
+ of a trademark.
435
+
436
+
437
+ Article 10 - TERMINATION
438
+
439
+ 10.1 In the event of a breach by the Licensee of its obligations
440
+ hereunder, the Licensor may automatically terminate this Agreement
441
+ thirty (30) days after notice has been sent to the Licensee and has
442
+ remained ineffective.
443
+
444
+ 10.2 A Licensee whose Agreement is terminated shall no longer be
445
+ authorized to use, modify or distribute the Software. However, any
446
+ licenses that it may have granted prior to termination of the Agreement
447
+ shall remain valid subject to their having been granted in compliance
448
+ with the terms and conditions hereof.
449
+
450
+
451
+ Article 11 - MISCELLANEOUS
452
+
453
+
454
+ 11.1 EXCUSABLE EVENTS
455
+
456
+ Neither Party shall be liable for any or all delay, or failure to
457
+ perform the Agreement, that may be attributable to an event of force
458
+ majeure, an act of God or an outside cause, such as defective
459
+ functioning or interruptions of the electricity or telecommunications
460
+ networks, network paralysis following a virus attack, intervention by
461
+ government authorities, natural disasters, water damage, earthquakes,
462
+ fire, explosions, strikes and labor unrest, war, etc.
463
+
464
+ 11.2 Any failure by either Party, on one or more occasions, to invoke
465
+ one or more of the provisions hereof, shall under no circumstances be
466
+ interpreted as being a waiver by the interested Party of its right to
467
+ invoke said provision(s) subsequently.
468
+
469
+ 11.3 The Agreement cancels and replaces any or all previous agreements,
470
+ whether written or oral, between the Parties and having the same
471
+ purpose, and constitutes the entirety of the agreement between said
472
+ Parties concerning said purpose. No supplement or modification to the
473
+ terms and conditions hereof shall be effective as between the Parties
474
+ unless it is made in writing and signed by their duly authorized
475
+ representatives.
476
+
477
+ 11.4 In the event that one or more of the provisions hereof were to
478
+ conflict with a current or future applicable act or legislative text,
479
+ said act or legislative text shall prevail, and the Parties shall make
480
+ the necessary amendments so as to comply with said act or legislative
481
+ text. All other provisions shall remain effective. Similarly, invalidity
482
+ of a provision of the Agreement, for any reason whatsoever, shall not
483
+ cause the Agreement as a whole to be invalid.
484
+
485
+
486
+ 11.5 LANGUAGE
487
+
488
+ The Agreement is drafted in both French and English and both versions
489
+ are deemed authentic.
490
+
491
+
492
+ Article 12 - NEW VERSIONS OF THE AGREEMENT
493
+
494
+ 12.1 Any person is authorized to duplicate and distribute copies of this
495
+ Agreement.
496
+
497
+ 12.2 So as to ensure coherence, the wording of this Agreement is
498
+ protected and may only be modified by the authors of the License, who
499
+ reserve the right to periodically publish updates or new versions of the
500
+ Agreement, each with a separate number. These subsequent versions may
501
+ address new issues encountered by Free Software.
502
+
503
+ 12.3 Any Software distributed under a given version of the Agreement may
504
+ only be subsequently distributed under the same version of the Agreement
505
+ or a subsequent version, subject to the provisions of Article 5.3.4
506
+ <#compatibility>.
507
+
508
+
509
+ Article 13 - GOVERNING LAW AND JURISDICTION
510
+
511
+ 13.1 The Agreement is governed by French law. The Parties agree to
512
+ endeavor to seek an amicable solution to any disagreements or disputes
513
+ that may arise during the performance of the Agreement.
514
+
515
+ 13.2 Failing an amicable solution within two (2) months as from their
516
+ occurrence, and unless emergency proceedings are necessary, the
517
+ disagreements or disputes shall be referred to the Paris Courts having
518
+ jurisdiction, by the more diligent Party.
@@ -0,0 +1,18 @@
1
+ MIT License
2
+
3
+ Copyright (c) <year> <copyright holders>
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy of this software and
6
+ associated documentation files (the "Software"), to deal in the Software without restriction, including
7
+ without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
8
+ copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the
9
+ following conditions:
10
+
11
+ The above copyright notice and this permission notice shall be included in all copies or substantial
12
+ portions of the Software.
13
+
14
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT
15
+ LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO
16
+ EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
17
+ IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE
18
+ USE OR OTHER DEALINGS IN THE SOFTWARE.
@@ -0,0 +1,39 @@
1
+ UNICODE LICENSE V3
2
+
3
+ COPYRIGHT AND PERMISSION NOTICE
4
+
5
+ Copyright © 1991-2023 Unicode, Inc.
6
+
7
+ NOTICE TO USER: Carefully read the following legal agreement. BY
8
+ DOWNLOADING, INSTALLING, COPYING OR OTHERWISE USING DATA FILES, AND/OR
9
+ SOFTWARE, YOU UNEQUIVOCALLY ACCEPT, AND AGREE TO BE BOUND BY, ALL OF THE
10
+ TERMS AND CONDITIONS OF THIS AGREEMENT. IF YOU DO NOT AGREE, DO NOT
11
+ DOWNLOAD, INSTALL, COPY, DISTRIBUTE OR USE THE DATA FILES OR SOFTWARE.
12
+
13
+ Permission is hereby granted, free of charge, to any person obtaining a
14
+ copy of data files and any associated documentation (the "Data Files") or
15
+ software and any associated documentation (the "Software") to deal in the
16
+ Data Files or Software without restriction, including without limitation
17
+ the rights to use, copy, modify, merge, publish, distribute, and/or sell
18
+ copies of the Data Files or Software, and to permit persons to whom the
19
+ Data Files or Software are furnished to do so, provided that either (a)
20
+ this copyright and permission notice appear with all copies of the Data
21
+ Files or Software, or (b) this copyright and permission notice appear in
22
+ associated Documentation.
23
+
24
+ THE DATA FILES AND SOFTWARE ARE PROVIDED "AS IS", WITHOUT WARRANTY OF ANY
25
+ KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
26
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT OF
27
+ THIRD PARTY RIGHTS.
28
+
29
+ IN NO EVENT SHALL THE COPYRIGHT HOLDER OR HOLDERS INCLUDED IN THIS NOTICE
30
+ BE LIABLE FOR ANY CLAIM, OR ANY SPECIAL INDIRECT OR CONSEQUENTIAL DAMAGES,
31
+ OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
32
+ WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION,
33
+ ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THE DATA
34
+ FILES OR SOFTWARE.
35
+
36
+ Except as contained in this notice, the name of a copyright holder shall
37
+ not be used in advertising or otherwise to promote the sale, use or other
38
+ dealings in these Data Files or Software without prior written
39
+ authorization of the copyright holder.
package/LICENSING.md ADDED
@@ -0,0 +1,49 @@
1
+ # Licensing — nirs4all-io
2
+
3
+ `nirs4all-io` is part of the **nirs4all ecosystem** and is offered under a
4
+ **dual open-source license plus an optional commercial license** (open-core model).
5
+
6
+ ## 1. Open-source license (default)
7
+
8
+ > **SPDX-License-Identifier:** `CeCILL-2.1 OR AGPL-3.0-or-later`
9
+
10
+ You may use, modify, and redistribute this software under the terms of **either**, at
11
+ your option:
12
+
13
+ 1. the **CeCILL Free Software License Agreement, version 2.1** — full text in
14
+ [`LICENSES/CeCILL-2.1.txt`](LICENSES/CeCILL-2.1.txt); **or**
15
+ 2. the **GNU Affero General Public License, version 3.0 or (at your option) any later
16
+ version** — full text in [`LICENSES/AGPL-3.0-or-later.txt`](LICENSES/AGPL-3.0-or-later.txt).
17
+
18
+ CeCILL-2.1 is the French (CIRAD) GPL/AGPL-compatible license; AGPL-3.0-or-later is its
19
+ internationally recognized equivalent. The two are co-equal — choose whichever you
20
+ prefer. The repository's root `LICENSE` file ships the AGPL-3.0-or-later text so code
21
+ hosts display a recognized SPDX license; this does **not** diminish the CeCILL-2.1 option.
22
+
23
+ Unless a separate commercial agreement is explicitly in place, your use of this code is
24
+ governed by the open-source terms above.
25
+
26
+ ## 2. Commercial license
27
+
28
+ If the copyleft obligations of CeCILL-2.1 / AGPL-3.0-or-later do not fit your use case —
29
+ for example, embedding `nirs4all-io` in a **proprietary, closed-source product or SaaS**
30
+ without publishing your own source code — a **commercial license** is available.
31
+
32
+ - Terms: [`LICENSES/COMMERCIAL-LICENSE.md`](LICENSES/COMMERCIAL-LICENSE.md).
33
+ - **For any commercial use, contact: <nirs4all-admin@cirad.fr>.**
34
+
35
+ ## 3. Third-party components
36
+
37
+ `nirs4all-io` relies on third-party open-source components. Their licenses are summarized
38
+ in [`THIRD_PARTY_NOTICES.md`](THIRD_PARTY_NOTICES.md), and the relevant license-family
39
+ texts are bundled under [`LICENSES/`](LICENSES/).
40
+
41
+
42
+ ## Recommended SPDX header for source files
43
+
44
+ ```
45
+ # SPDX-License-Identifier: CeCILL-2.1 OR AGPL-3.0-or-later
46
+ // SPDX-License-Identifier: CeCILL-2.1 OR AGPL-3.0-or-later
47
+ ```
48
+
49
+ © 2025 CIRAD — nirs4all ecosystem.
package/README.md CHANGED
@@ -19,6 +19,7 @@ inferRecords(recordSets) // decoded nirs4all-formats records -> DatasetPlan ob
19
19
  inferDataset(files, recordSets, options) // browser raw files + decoded records -> DatasetPlan object
20
20
  proposeDataset(files, recordSets, options) // iterative builder: -> {plan, proposals, spec, valid, validation_errors}
21
21
  assembleDataset(files, recordSets, specJson) // materialize a DatasetSpec -> AssembledDataset object
22
+ loadSummary(files, recordSets, specJson) // canonical native structural summary JSON
22
23
  version() // () -> crate version string (semver)
23
24
  ```
24
25
 
@@ -106,13 +107,40 @@ spec **object** directly. The raw `to_spec` / `validate` string functions stay
106
107
  reachable for the cross-binding JSON contract.
107
108
 
108
109
  ```js
109
- import * as nio from "./idiomatic.mjs";
110
+ import * as nio from "@nirs4all/io-wasm/idiomatic";
110
111
  const spec = nio.toSpec({ name: "run", sources: [{ id: "x", role: "features", input: "x.csv" }] });
111
112
  nio.validateSpec(spec); // throws on an invalid spec
112
113
  const plan = nio.inferFiles(files); // options default to {}
113
114
  const ds = nio.assembleDataset([], recordSets, plan.resolved_spec); // object spec OK
114
115
  ```
115
116
 
117
+ ## Legal payload policy
118
+
119
+ `scripts/stage_wasm_package.mjs --check-legal` requires this binding's `LICENSE`,
120
+ `LICENSING.md`, `THIRD_PARTY_NOTICES.md`, `COPY_PROVENANCE.md`, and complete
121
+ `LICENSES/` directory to be byte-identical to the canonical files at the repository
122
+ root. The release staging step copies that verified mirror into the npm package.
123
+
124
+ For dependencies licensed as `MIT OR Apache-2.0` or `Unlicense OR MIT`, the WASM
125
+ distribution relies on the MIT option and bundles `LICENSES/MIT.txt`; a separate
126
+ Unlicense text is therefore not required. Apache Arrow is Apache-only but is not in
127
+ the fs-free WASM dependency graph. The locked WASM closure does, however, include
128
+ `ryu 1.0.23` (`Apache-2.0 OR BSL-1.0`) through `csv`. This distribution selects
129
+ Apache-2.0 and bundles `LICENSES/Apache-2.0.txt`, imported from the exact upstream
130
+ crate whose SHA-256 matches `bindings/wasm/Cargo.lock`; BSL-1.0 therefore does not
131
+ apply. The staging guard pins both the crate and Apache-text hashes so an upgrade
132
+ cannot silently reuse an unaudited payload. The same audit covers the mandatory
133
+ Unicode-3.0 branch of `unicode-ident 1.0.24`; its exact locked upstream text is
134
+ bundled as `LICENSES/Unicode-3.0.txt` and pinned by the guard. A normalized digest
135
+ of every package name, version, and SPDX expression returned by locked Cargo
136
+ metadata makes any other closure change fail closed pending a fresh audit.
137
+
138
+ The same staging command emits `nirs4all-io-wasm.cdx.json`, a deterministic
139
+ CycloneDX 1.6 SBOM with all 55 locked Cargo components, their SPDX expressions,
140
+ crate hashes, purls, and dependency edges. Its subject is `nirs4all-io-wasm`
141
+ `0.1.12`; source properties attest the full Git commit and tree. Timestamps,
142
+ UUIDs, local paths, and other volatile fields are intentionally excluded.
143
+
116
144
  ## Test
117
145
 
118
146
  ```bash
@@ -120,3 +148,7 @@ wasm-pack build bindings/wasm --target nodejs --out-dir pkg
120
148
  node bindings/wasm/tests/node_smoke.cjs # raw exports
121
149
  node bindings/wasm/tests/idiomatic_smoke.mjs # idiomatic.mjs wrapper
122
150
  ```
151
+
152
+ The release workflow runs both smokes again against the staged npm package and
153
+ retains the exact `.tgz`, including the wrapper, detailed types, and canonical
154
+ project license/provenance inventory plus the closure-specific CycloneDX SBOM.