@procedures/algebra 0.64.0 → 0.65.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,26 @@
1
1
  # @procedures/algebra
2
2
 
3
+ ## 0.65.0
4
+
5
+ ### Patch Changes
6
+
7
+ - f1c599f: The generator of `@procedures/compiler` gives the members of a union a canonical sequence. Before, the sequence came from the type ids of TypeScript, and a new call of the checker changed it.
8
+
9
+ - The `anyOf` and `enum` lists start with the primitive types. The number literals and the bigint literals follow by value. Then come the string literals by code unit. The other types come last, by the code units of their text.
10
+ - The names of the definitions come from the same sequence. Thus a change in a different part of the generator does not rename a definition.
11
+ - A manifest keeps only the definitions that its procedures reach through `$ref`. A function that the generator refused kept dead definitions before.
12
+
13
+ The manifests of the wrap packages change only in the sequence of their lists, and lose definitions with no reference. Their schemas accept the same values.
14
+ - Updated dependencies [e7ec32b]
15
+ - Updated dependencies [4e20391]
16
+ - Updated dependencies [abf52af]
17
+ - Updated dependencies [a2a09b7]
18
+ - Updated dependencies [ffb85af]
19
+ - Updated dependencies [420ebdc]
20
+ - Updated dependencies [f1c599f]
21
+ - @procedures/compiler@0.65.0
22
+ - @procedures/client@0.65.0
23
+
3
24
  ## 0.64.0
4
25
 
5
26
  ### Patch Changes
package/dist/manifest.js CHANGED
@@ -149,24 +149,25 @@ export const manifest = {
149
149
  "type": "object",
150
150
  "properties": {
151
151
  "kind": {
152
- "const": "sent"
152
+ "const": "dropped"
153
153
  },
154
- "at": {
155
- "type": "number",
156
- "description": "This value is the time that the packet leaves the qdisc, in nanoseconds."
154
+ "why": {
155
+ "enum": [
156
+ "limit",
157
+ "size"
158
+ ],
159
+ "description": "A `limit` drop is a full queue. A `size` drop is a packet longer than the largest size of tbf."
157
160
  },
158
161
  "ahead": {
159
- "type": "number",
160
- "description": "This value is the packets in the queue at the arrival of the packet."
162
+ "type": "number"
161
163
  },
162
164
  "bytes": {
163
- "type": "number",
164
- "description": "This value is the bytes in the queue at the arrival of the packet."
165
+ "type": "number"
165
166
  }
166
167
  },
167
168
  "required": [
168
169
  "kind",
169
- "at",
170
+ "why",
170
171
  "ahead",
171
172
  "bytes"
172
173
  ]
@@ -175,25 +176,24 @@ export const manifest = {
175
176
  "type": "object",
176
177
  "properties": {
177
178
  "kind": {
178
- "const": "dropped"
179
+ "const": "sent"
179
180
  },
180
- "why": {
181
- "enum": [
182
- "limit",
183
- "size"
184
- ],
185
- "description": "A `limit` drop is a full queue. A `size` drop is a packet longer than the largest size of tbf."
181
+ "at": {
182
+ "type": "number",
183
+ "description": "This value is the time that the packet leaves the qdisc, in nanoseconds."
186
184
  },
187
185
  "ahead": {
188
- "type": "number"
186
+ "type": "number",
187
+ "description": "This value is the packets in the queue at the arrival of the packet."
189
188
  },
190
189
  "bytes": {
191
- "type": "number"
190
+ "type": "number",
191
+ "description": "This value is the bytes in the queue at the arrival of the packet."
192
192
  }
193
193
  },
194
194
  "required": [
195
195
  "kind",
196
- "why",
196
+ "at",
197
197
  "ahead",
198
198
  "bytes"
199
199
  ]
@@ -237,7 +237,7 @@ export const manifest = {
237
237
  {
238
238
  "type": "object",
239
239
  "properties": {
240
- "knob": {
240
+ "expr": {
241
241
  "type": "string"
242
242
  },
243
243
  "unit": {
@@ -245,14 +245,14 @@ export const manifest = {
245
245
  }
246
246
  },
247
247
  "required": [
248
- "knob",
248
+ "expr",
249
249
  "unit"
250
250
  ]
251
251
  },
252
252
  {
253
253
  "type": "object",
254
254
  "properties": {
255
- "expr": {
255
+ "knob": {
256
256
  "type": "string"
257
257
  },
258
258
  "unit": {
@@ -260,7 +260,7 @@ export const manifest = {
260
260
  }
261
261
  },
262
262
  "required": [
263
- "expr",
263
+ "knob",
264
264
  "unit"
265
265
  ]
266
266
  },
@@ -354,11 +354,11 @@ export const manifest = {
354
354
  },
355
355
  "rung": {
356
356
  "enum": [
357
- "normative",
358
- "implemented",
357
+ "derived",
359
358
  "documented",
360
- "observed",
361
- "derived"
359
+ "implemented",
360
+ "normative",
361
+ "observed"
362
362
  ]
363
363
  },
364
364
  "note": {
@@ -400,13 +400,13 @@ export const manifest = {
400
400
  "properties": {
401
401
  "kind": {
402
402
  "enum": [
403
- "rx",
404
- "tx",
405
403
  "app",
406
- "timer",
407
404
  "local",
408
405
  "packet",
409
- "peer"
406
+ "peer",
407
+ "rx",
408
+ "timer",
409
+ "tx"
410
410
  ]
411
411
  },
412
412
  "note": {
@@ -512,10 +512,10 @@ export const manifest = {
512
512
  },
513
513
  "fidelity": {
514
514
  "enum": [
515
- "derived",
516
515
  "complete",
517
- "sampled",
518
- "lossy"
516
+ "derived",
517
+ "lossy",
518
+ "sampled"
519
519
  ]
520
520
  },
521
521
  "note": {
@@ -622,7 +622,7 @@ export const manifest = {
622
622
  {
623
623
  "type": "object",
624
624
  "properties": {
625
- "knob": {
625
+ "expr": {
626
626
  "type": "string"
627
627
  },
628
628
  "unit": {
@@ -630,14 +630,14 @@ export const manifest = {
630
630
  }
631
631
  },
632
632
  "required": [
633
- "knob",
633
+ "expr",
634
634
  "unit"
635
635
  ]
636
636
  },
637
637
  {
638
638
  "type": "object",
639
639
  "properties": {
640
- "expr": {
640
+ "knob": {
641
641
  "type": "string"
642
642
  },
643
643
  "unit": {
@@ -645,7 +645,7 @@ export const manifest = {
645
645
  }
646
646
  },
647
647
  "required": [
648
- "expr",
648
+ "knob",
649
649
  "unit"
650
650
  ]
651
651
  },
@@ -693,7 +693,7 @@ export const manifest = {
693
693
  {
694
694
  "type": "object",
695
695
  "properties": {
696
- "knob": {
696
+ "expr": {
697
697
  "type": "string"
698
698
  },
699
699
  "unit": {
@@ -701,14 +701,14 @@ export const manifest = {
701
701
  }
702
702
  },
703
703
  "required": [
704
- "knob",
704
+ "expr",
705
705
  "unit"
706
706
  ]
707
707
  },
708
708
  {
709
709
  "type": "object",
710
710
  "properties": {
711
- "expr": {
711
+ "knob": {
712
712
  "type": "string"
713
713
  },
714
714
  "unit": {
@@ -716,7 +716,7 @@ export const manifest = {
716
716
  }
717
717
  },
718
718
  "required": [
719
- "expr",
719
+ "knob",
720
720
  "unit"
721
721
  ]
722
722
  },
@@ -764,7 +764,7 @@ export const manifest = {
764
764
  {
765
765
  "type": "object",
766
766
  "properties": {
767
- "knob": {
767
+ "expr": {
768
768
  "type": "string"
769
769
  },
770
770
  "unit": {
@@ -772,14 +772,14 @@ export const manifest = {
772
772
  }
773
773
  },
774
774
  "required": [
775
- "knob",
775
+ "expr",
776
776
  "unit"
777
777
  ]
778
778
  },
779
779
  {
780
780
  "type": "object",
781
781
  "properties": {
782
- "expr": {
782
+ "knob": {
783
783
  "type": "string"
784
784
  },
785
785
  "unit": {
@@ -787,7 +787,7 @@ export const manifest = {
787
787
  }
788
788
  },
789
789
  "required": [
790
- "expr",
790
+ "knob",
791
791
  "unit"
792
792
  ]
793
793
  },
@@ -950,15 +950,24 @@ export const manifest = {
950
950
  "type": "object",
951
951
  "properties": {
952
952
  "op": {
953
- "const": "num"
953
+ "enum": [
954
+ "*",
955
+ "+",
956
+ "-",
957
+ "/"
958
+ ]
954
959
  },
955
- "n": {
956
- "$ref": "#/$defs/Rational"
960
+ "a": {
961
+ "$ref": "#/$defs/Node"
962
+ },
963
+ "b": {
964
+ "$ref": "#/$defs/Node"
957
965
  }
958
966
  },
959
967
  "required": [
960
968
  "op",
961
- "n"
969
+ "a",
970
+ "b"
962
971
  ]
963
972
  },
964
973
  {
@@ -981,23 +990,23 @@ export const manifest = {
981
990
  "properties": {
982
991
  "op": {
983
992
  "enum": [
984
- "+",
985
- "-",
986
- "*",
987
- "/"
993
+ "ceil",
994
+ "floor",
995
+ "max",
996
+ "min",
997
+ "pow"
988
998
  ]
989
999
  },
990
- "a": {
991
- "$ref": "#/$defs/Node"
992
- },
993
- "b": {
994
- "$ref": "#/$defs/Node"
1000
+ "args": {
1001
+ "type": "array",
1002
+ "items": {
1003
+ "$ref": "#/$defs/Node"
1004
+ }
995
1005
  }
996
1006
  },
997
1007
  "required": [
998
1008
  "op",
999
- "a",
1000
- "b"
1009
+ "args"
1001
1010
  ]
1002
1011
  },
1003
1012
  {
@@ -1019,24 +1028,15 @@ export const manifest = {
1019
1028
  "type": "object",
1020
1029
  "properties": {
1021
1030
  "op": {
1022
- "enum": [
1023
- "min",
1024
- "max",
1025
- "floor",
1026
- "ceil",
1027
- "pow"
1028
- ]
1031
+ "const": "num"
1029
1032
  },
1030
- "args": {
1031
- "type": "array",
1032
- "items": {
1033
- "$ref": "#/$defs/Node"
1034
- }
1033
+ "n": {
1034
+ "$ref": "#/$defs/Rational"
1035
1035
  }
1036
1036
  },
1037
1037
  "required": [
1038
1038
  "op",
1039
- "args"
1039
+ "n"
1040
1040
  ]
1041
1041
  }
1042
1042
  ]
@@ -1138,8 +1138,8 @@ export const manifest = {
1138
1138
  },
1139
1139
  "linklayer": {
1140
1140
  "enum": [
1141
- "ethernet",
1142
- "atm"
1141
+ "atm",
1142
+ "ethernet"
1143
1143
  ],
1144
1144
  "description": "An ATM link counts the length in cells of 48 bytes, and each cell takes 53 bytes."
1145
1145
  }
@@ -1184,17 +1184,6 @@ export const manifest = {
1184
1184
  },
1185
1185
  "Realization": {
1186
1186
  "anyOf": [
1187
- {
1188
- "type": "object",
1189
- "properties": {
1190
- "timer": {
1191
- "type": "string"
1192
- }
1193
- },
1194
- "required": [
1195
- "timer"
1196
- ]
1197
- },
1198
1187
  {
1199
1188
  "type": "object",
1200
1189
  "properties": {
@@ -1221,7 +1210,7 @@ export const manifest = {
1221
1210
  {
1222
1211
  "type": "object",
1223
1212
  "properties": {
1224
- "knob": {
1213
+ "expr": {
1225
1214
  "type": "string"
1226
1215
  },
1227
1216
  "unit": {
@@ -1229,14 +1218,14 @@ export const manifest = {
1229
1218
  }
1230
1219
  },
1231
1220
  "required": [
1232
- "knob",
1221
+ "expr",
1233
1222
  "unit"
1234
1223
  ]
1235
1224
  },
1236
1225
  {
1237
1226
  "type": "object",
1238
1227
  "properties": {
1239
- "expr": {
1228
+ "knob": {
1240
1229
  "type": "string"
1241
1230
  },
1242
1231
  "unit": {
@@ -1244,7 +1233,7 @@ export const manifest = {
1244
1233
  }
1245
1234
  },
1246
1235
  "required": [
1247
- "expr",
1236
+ "knob",
1248
1237
  "unit"
1249
1238
  ]
1250
1239
  },
@@ -1292,7 +1281,7 @@ export const manifest = {
1292
1281
  {
1293
1282
  "type": "object",
1294
1283
  "properties": {
1295
- "knob": {
1284
+ "expr": {
1296
1285
  "type": "string"
1297
1286
  },
1298
1287
  "unit": {
@@ -1300,14 +1289,14 @@ export const manifest = {
1300
1289
  }
1301
1290
  },
1302
1291
  "required": [
1303
- "knob",
1292
+ "expr",
1304
1293
  "unit"
1305
1294
  ]
1306
1295
  },
1307
1296
  {
1308
1297
  "type": "object",
1309
1298
  "properties": {
1310
- "expr": {
1299
+ "knob": {
1311
1300
  "type": "string"
1312
1301
  },
1313
1302
  "unit": {
@@ -1315,7 +1304,7 @@ export const manifest = {
1315
1304
  }
1316
1305
  },
1317
1306
  "required": [
1318
- "expr",
1307
+ "knob",
1319
1308
  "unit"
1320
1309
  ]
1321
1310
  },
@@ -1350,6 +1339,17 @@ export const manifest = {
1350
1339
  "required": [
1351
1340
  "duration"
1352
1341
  ]
1342
+ },
1343
+ {
1344
+ "type": "object",
1345
+ "properties": {
1346
+ "timer": {
1347
+ "type": "string"
1348
+ }
1349
+ },
1350
+ "required": [
1351
+ "timer"
1352
+ ]
1353
1353
  }
1354
1354
  ]
1355
1355
  },
@@ -1547,8 +1547,8 @@ export const manifest = {
1547
1547
  },
1548
1548
  "linklayer": {
1549
1549
  "enum": [
1550
- "ethernet",
1551
- "atm"
1550
+ "atm",
1551
+ "ethernet"
1552
1552
  ],
1553
1553
  "description": "An ATM link counts the length in cells of 48 bytes, and each cell takes 53 bytes."
1554
1554
  }
@@ -1606,7 +1606,7 @@ export const manifest = {
1606
1606
  {
1607
1607
  "type": "object",
1608
1608
  "properties": {
1609
- "knob": {
1609
+ "expr": {
1610
1610
  "type": "string"
1611
1611
  },
1612
1612
  "unit": {
@@ -1614,14 +1614,14 @@ export const manifest = {
1614
1614
  }
1615
1615
  },
1616
1616
  "required": [
1617
- "knob",
1617
+ "expr",
1618
1618
  "unit"
1619
1619
  ]
1620
1620
  },
1621
1621
  {
1622
1622
  "type": "object",
1623
1623
  "properties": {
1624
- "expr": {
1624
+ "knob": {
1625
1625
  "type": "string"
1626
1626
  },
1627
1627
  "unit": {
@@ -1629,7 +1629,7 @@ export const manifest = {
1629
1629
  }
1630
1630
  },
1631
1631
  "required": [
1632
- "expr",
1632
+ "knob",
1633
1633
  "unit"
1634
1634
  ]
1635
1635
  },
@@ -1677,7 +1677,7 @@ export const manifest = {
1677
1677
  {
1678
1678
  "type": "object",
1679
1679
  "properties": {
1680
- "knob": {
1680
+ "expr": {
1681
1681
  "type": "string"
1682
1682
  },
1683
1683
  "unit": {
@@ -1685,14 +1685,14 @@ export const manifest = {
1685
1685
  }
1686
1686
  },
1687
1687
  "required": [
1688
- "knob",
1688
+ "expr",
1689
1689
  "unit"
1690
1690
  ]
1691
1691
  },
1692
1692
  {
1693
1693
  "type": "object",
1694
1694
  "properties": {
1695
- "expr": {
1695
+ "knob": {
1696
1696
  "type": "string"
1697
1697
  },
1698
1698
  "unit": {
@@ -1700,7 +1700,7 @@ export const manifest = {
1700
1700
  }
1701
1701
  },
1702
1702
  "required": [
1703
- "expr",
1703
+ "knob",
1704
1704
  "unit"
1705
1705
  ]
1706
1706
  },
@@ -1942,15 +1942,15 @@ export const manifest = {
1942
1942
  },
1943
1943
  "Vantage": {
1944
1944
  "enum": [
1945
- "wire",
1945
+ "canary",
1946
+ "driver",
1947
+ "injector",
1946
1948
  "kernel",
1947
1949
  "middlebox",
1948
1950
  "proxy",
1949
- "driver",
1951
+ "self",
1950
1952
  "server",
1951
- "canary",
1952
- "injector",
1953
- "self"
1953
+ "wire"
1954
1954
  ]
1955
1955
  }
1956
1956
  },
@@ -2425,8 +2425,8 @@ export const manifest = {
2425
2425
  "properties": {
2426
2426
  "kind": {
2427
2427
  "enum": [
2428
- "pfifo",
2429
- "bfifo"
2428
+ "bfifo",
2429
+ "pfifo"
2430
2430
  ]
2431
2431
  },
2432
2432
  "txQueueLen": {
@@ -3586,10 +3586,10 @@ export const manifest = {
3586
3586
  "output": {
3587
3587
  "anyOf": [
3588
3588
  {
3589
- "$ref": "#/$defs/Unknown"
3589
+ "$ref": "#/$defs/Recovery"
3590
3590
  },
3591
3591
  {
3592
- "$ref": "#/$defs/Recovery"
3592
+ "$ref": "#/$defs/Unknown"
3593
3593
  }
3594
3594
  ]
3595
3595
  },
@@ -3915,10 +3915,10 @@ export const manifest = {
3915
3915
  "output": {
3916
3916
  "anyOf": [
3917
3917
  {
3918
- "$ref": "#/$defs/Unknown"
3918
+ "$ref": "#/$defs/Band"
3919
3919
  },
3920
3920
  {
3921
- "$ref": "#/$defs/Band"
3921
+ "$ref": "#/$defs/Unknown"
3922
3922
  }
3923
3923
  ]
3924
3924
  },