Debian Codegraph @

doc/CHANGES

raw
1 Version 2.8.3 (2023-07-17):
2 ---------------------------
3
4 Additions
5
6 - ppxlib 0.28.0 and higher compatibility (#413).
7 - ReScript 10 support (#405, reported by Quinn Dougherty).
8 - ReScript 11 support (#422).
9
10 Bugs fixed
11
12 - Show sources of .re files in HTML view when build system is Dune (#404,
13 reported by Konstantin Olkhovskiy).
14 - Respect [@coverage off] in or-patterns (#414, reported by Nora Sandler).
15 - Add <packages> to Cobertura format (#420, Maxim Grankin).
16 - Stack overflow in HTML generation (#421, Allan Blanchard).
17
18 Changes
19
20 - Prebuilt binaries for npm are now built on Ubuntu 20.04 and macOS 11. They
21 were previously built on Ubuntu 18.04 and macOS 10.
22
23 Version 2.8.2 (2023-04-13):
24 ---------------------------
25
26 Additions
27
28 - ppxlib 0.26.0 and 0.27.0 compatibility (#400, Sonja Heinze).
29
30 Bugs fixed
31
32 - Collation of subdirectories in HTML report (#401, Luke Maurer).
33
34 Version 2.8.1 (2022-03-14):
35 ---------------------------
36
37 Bugs fixed
38
39 - OCaml 5.00 compatibility (#399, @kit-ty-kate).
40
41 Version 2.8.0 (2022-02-10):
42 ---------------------------
43
44 Additions
45
46 - HTML: collapsible tree index for large projects, activated by --tree option
47 (#396, Arvid Jakobsson).
48
49 Bugs fixed
50
51 - Don't instrument lazy values which are compiled as already forced (#398,
52 reported by @Ngoguey42).
53 - Use Sys.backend_type to detect js_of_ocaml (#397, Pat Rondon).
54 - Text summary report: show files with 0 points as having 100% coverage
55 (f3b9108).
56
57 Version 2.7.1 (2022-01-19):
58 ---------------------------
59
60 Bugs fixed
61
62 - Emit point data as arrays instead of as lists, to avoid exposing JavaScript
63 tooling to large AST structures (#395, Jaap Frolich).
64 - Reporter: look for files relative to Dune workspace root (#369).
65
66 Version 2.7.0 (2021-11-23):
67 ---------------------------
68
69 Additions
70
71 - Reports in Cobertura XML format, used on GitLab (#383, Valentin Chaboche).
72 - .coverage file merging (#389, Valentin Chaboche).
73 - Environment variable BISECT_SIGTERM and PPX option --bisect-sigterm, which
74 cause the runtime to write .coverage files upon receiving SIGTERM (#390,
75 Arvid Jakobsson).
76 - bisect-ppx-report: verbose logging now hidden behind new --verbose flag
77 (4b36eb4).
78 - HTML: minimal metadata so that links to reports are decorated by social
79 media platforms (#373).
80
81 Bugs fixed
82
83 - Adapt to change in how ReScript represents -> (#382, reported by Danni
84 Friedland).
85 - Broken installation on pnpm (#381, reported by Tillmann Rendel).
86 - bisect-ppx-report: clearer error messages (#386, 6327d04).
87 - HTML: visit count tooltip not visible on last line of report (#374).
88
89 Version 2.6.3 (2021-07-21):
90 ---------------------------
91
92 Bugs fixed
93
94 - Downgrade binaries to require Ubuntu only 18.04, not 20.04 (6f86646,
95 reported by Peter Piekarczyk).
96
97 Version 2.6.2 (2021-07-20):
98 ---------------------------
99
100 Changes
101
102 - Remove dependency on Marshal from Bisect_common to adapt to upstream changes
103 in ReScript (#376, reported by John Doneth).
104
105 Version 2.6.1 (2021-05-04):
106 ---------------------------
107
108 Bugs fixed
109
110 - Do not instrument React.forwardRef and React.memo (#375, reported by Mathieu
111 Haton).
112
113 Version 2.6.0 (2021-02-06):
114 ---------------------------
115
116 Changes
117
118 - Port to ppxlib (#327, Sonja Heinze).
119 - CSS: use ligature fonts, if installed (#339).
120 - Internal: switch to Dune cram tests, finding lots of bugs in the process
121 (beb80b3, 593a7c2, #352).
122
123 Bugs fixed
124
125 - Workaround for typing issue with instrumentation of or-patterns under GADTs;
126 includes a new match instrumenter (#325, reported by Mehdi Bouaziz).
127 - The second subexpression of (||) and (&&) is in tail position iff the whole
128 expression is in tail position; Bisect was unconditionally wrapping the
129 second expression in successor code (#359, reported by Benjamin Monate).
130 - HTML: words that have an instrumentation point on one of their characters
131 were not searchable (#346).
132 - Don't clobber the global random number generator (#344).
133 - (or) nested inside (||) not properly instrumented (#347).
134 - Subexpressions of Pexp_newtype were always treated as if they were in tail
135 position (#348).
136 - assert instrumentation was placed at the wrong point in the generated code
137 (#349).
138 - assert false should not be instrumented; the point is unreachable (#355).
139 - Instrumentation of or-patterns inside local open patterns could trigger
140 unused open warning (#350).
141
142 Removed
143
144 These removals were planned and announced in the 2.0.0 release.
145
146 - PPX option --mode (#200).
147 - PPX option --no-comment-parsing (#202).
148 - PPX option --exclude (#244).
149 - PPX option --exclude-file, which has been renamed to --exclusions (#245).
150 - Reporter options --html, --text, --coveralls, which have been replaced by
151 html, summary, send-to subcommands, respectively (#145).
152 - Support for discovering .out files. Bisect switched to extension .coverage
153 in 2.0.0 (#110).
154 - --dump, --csv, and the old-style text report (#251).
155 - The old command line, including single-dashed (-) multi-character options,
156 and usage of bisect-ppx-report without a subcommand (such as
157 bisect-ppx-report html) (#145).
158
159 Version 2.5.0 (2020-10-19):
160 ---------------------------
161 Additions
162
163 - Support Dune's --instrument-with integration, introduced in Dune 2.7.0
164 (#331, Pau Ruiz Safont).
165
166 Bugs fixed
167
168 - runtime.unix_open is not a function in js_of_ocaml integration, occurring
169 since Dune 2.7.0 (#334).
170 - Don't assume that (&&) is always applied to two arguments (#333, reported
171 Vladimir Keleshev).
172 - esy sandbox directory specified in environment variable cur__target_dir
173 might not exist (#328, reported David Sancho).
174 - Reporter: don't crash on symlink cycles (#324, reported Rudi Grinberg).
175
176 Version 2.4.1 (2020-05-10):
177 ---------------------------
178 Bugs fixed
179
180 - Support Jest with in-source builds (#322, Jihchi Lee).
181 - Make application expression instrumentation less invasive (#319).
182
183 Changes
184
185 - Use OCaml 4.11 AST (#321).
186
187 Version 2.4.0 (2020-04-21):
188 ---------------------------
189 Additions
190
191 - PPX --exclude-files command-line option (#313).
192 - Jest integration (#314, Jihchi Lee).
193 - Register exit hook automatically on Node (3471d2a).
194
195 Bugs fixed
196
197 - CSS: display text cursor over entire code view (#315).
198
199 Version 2.3.2 (2020-04-19):
200 ---------------------------
201 Bugs fixed
202
203 - Support taking PPX options from BuckleScript (#310).
204 - Find exclusions file when run from ./lib/bs by BuckleScript (#311).
205
206 Version 2.3.1 (2020-04-13):
207 ---------------------------
208 Bugs fixed
209
210 - Support JS method calls (#308).
211
212 Version 2.3.0 (2020-04-06):
213 ---------------------------
214 Additions
215
216 - Dark theme support (#301, Ulrik Strid).
217 - Dark theme based on GitHub-Dark (#260).
218 - PPX options --bisect-file and --bisect-silent as alternatives to BISECT_FILE
219 and BISECT_SILENT environment variables (#303, Mehdi Bouaziz).
220
221 Bugs fixed
222
223 - HTML: coverage meters displayed incorrectly (b61f46a, reported Ulrik Strid).
224 - HTML: Firefox would use the default font in pre > code (#300, Ulrik Strid).
225 - HTML: don't show tooltip over unvisited points (#304).
226
227 Version 2.2.0 (2020-03-26):
228 ---------------------------
229 Additions
230
231 - Support for exception pattern extensions added in OCaml 4.08 (#297).
232
233 Bugs fixed
234
235 - HTML: generate <!DOCTYPE html> and <html lang="en"> (#288, @zapashcanon).
236 - Invalid doc comment section heading levels (#291, reported Risto Stevcev).
237 - Hide generated code from odoc (#293, reported Risto Stevcev).
238
239 Version 2.1.0 (2020-03-20):
240 ---------------------------
241 Additions
242
243 - GitHub Actions integration (#280, Ulrik Strid).
244 - Reporter --coverage-path option to specify search paths for .coverage files
245 (#269).
246 - Reporter --source-path option to specify search paths for source files
247 (#283).
248
249 Deprecations
250
251 - -I in favor of --search-path (#283).
252
253 Version 2.0.0 (2020-03-17):
254 ---------------------------
255 Additions
256
257 - BuckleScript support and NPM packaging (#206, #249).
258 - Js_of_ocaml support (#212).
259 - Automated sending of reports from Travis and CircleCI to Coveralls and
260 Codecov (#241).
261 - Better integration with Dune (#235).
262 - Better integration with esy (#263, #270).
263 - [@coverage off] attribute and its variants for excluding expressions and
264 module items from coverage (#198).
265 - [@@@coverage exclude file] for excluding entire files (#130, #219).
266 - Cmdliner-based command line (#145).
267 - Reporter automatically searches for .coverage files (#236).
268 - New, more disciplined instrumentation strategy (#82, #128, #205).
269 - Syntax highlighting in the generated reports (#135).
270 - Sanity-checking the set of source files included in the coverage report
271 (a7a4ca0).
272 - Use 4.10 ASTs internally for the transformation (#274).
273 - MIT license (#199).
274
275 Deprecations
276
277 These features will be removed in 2.1.0.
278
279 - PPX -mode option (#200).
280 - PPX -no-comment-parsing option (#202).
281 - PPX -exclude option (#244).
282 - PPX -exclude-file in favor of --exclusions (#245).
283 - Reporter --html, --text, --coveralls are deprecated in favor of the html,
284 summary, coveralls sub-commands, respectively (#145).
285 - All other reporter multi-character options with a single dash (-) prefix are
286 deprecated in favor of double-dashed (--) versions (#145).
287 - .out files are now .coverage files (#110).
288
289 Removed
290
291 - BISECT-IGNORE comments, in favor of [@coverage off] (#202).
292
293 Bugs fixed
294
295 - Randomize intermediate filenames to avoid collisions upon their creation
296 (#194, Mindy Preston).
297 - Left margin indicators in the HTML report could be invisible, if they were
298 located at the bottom of the margin (#254).
299
300 Version 1.4.2 (2020-01-17):
301 ---------------------------
302 Changes
303
304 - Use OCaml 4.09 ASTs during preprocessing (88d24c5, 02dfb10).
305
306
307 Version 1.4.1 (2018-03-25):
308 ---------------------------
309 Additions
310
311 - PPX -no-comment-parsing option, to work around Bisect_ppx trying to parse
312 (*BISECT-IGNORE*) comments (#187, reported Ben Anderson).
313
314 Bugs fixed
315
316 - Bisect_ppx should run after other PPXs (#186, reported Brian Caine).
317 - Round displayed coverage percentages down (#172, reported Iago Abal).
318
319 Version 1.4.0 (2018-11-28):
320 ---------------------------
321 Additions
322
323 - Coveralls reports with bisect-ppx-report -coveralls ... (#176, Sam Miller).
324
325 Bugs fixed
326
327 - Infinite loop when unable to create bisect*.out files (#175, reported Josh
328 Berdine).
329 - Infinite loop when source file was compiled with an absolute path (#180,
330 reported Calvin Beck).
331
332 Version 1.3.4 (2018-07-23):
333 ---------------------------
334 - Remove manual call to PPX driver (#173, Rudi Grinberg).
335
336 Version 1.3.3 (2018-04-29):
337 ---------------------------
338 Bugs fixed
339
340 - Don't try to read .exclude file when Bisect_ppx is disabled (#169, Gary
341 Trakhman).
342 - Refactor how instrumented code registers itself with the Bisect_ppx runtime,
343 to make it easier to use Bisect_ppx with libraries other than stdlib (#171,
344 Hugo Heuzard).
345
346 Packaging
347
348 - The deprecated packages bisect_ppx.ocamlbuild and bisect_ppx.plugin, which
349 contained the Bisect_ppx Ocamlbuild plugin, have been deleted. The plugin is
350 now available only through bisect_ppx-ocamlbuild (#143).
351 - The deprecated package alias bisect_ppx.fast has been deleted (#144).
352
353 Miscellaneous
354
355 - Major refactoring of the instrumenter to make it much easier to work on.
356
357 Version 1.3.2 (2017-12-21):
358 ---------------------------
359 Bugs fixed
360
361 - Report names of intermediate files when Bisect_ppx is unable to read them
362 (#163, Emilio Jesús Gallego Arias).
363 - Don't apply instrumentation to attributes in .mli files (#164, reported
364 Etienne Millon).
365
366 Improvements
367
368 - Generate HTML report filenames from source filenames, instead of assigning
369 them numbers (#139, Brad Langel).
370
371 Version 1.3.1 (2017-10-05):
372 ---------------------------
373 Compatibility with OCaml 4.06
374
375 - Do not treat bytes and string as equivalent types.
376
377 Bugs fixed
378
379 - Reporter tool now has better usage/help output (76220cf).
380 - Various documentation improvements.
381 - Reduce chance of generated identifier collisions, and make collision a
382 compile-time error (#160).
383
384 Simplifications
385
386 - Drop pre-visited points (BISECT-VISIT), and implement them as ignored
387 points (#159).
388 - Remove -simple-cases PPX option. This was an internal feature.
389 - Remove -inexhaustive-matching PPX option. This was an internal feature.
390 - Internal source code improvements, including a complete reorganization of
391 the PPX.
392
393 Version 1.3.0 (2017-08-16):
394 ---------------------------
395 Planned to break in the future 2.0.0
396
397 - The Ocamlbuild plugin will be factored out into its own OPAM package
398 bisect_ppx-ocamlbuild, and the ocamlfind package will be changed to also
399 have that name, instead of the current bisect_ppx.ocamlbuild. The new OPAM
400 package is available now, since Bisect_ppx 1.3.0 (#146).
401 - Delete ocamlfind package bisect_ppx.fast. It is a little-used alias for
402 package bisect_ppx (#144).
403 - Delete ocamlfind package bisect_ppx.plugin. It is a little-used alias for
404 bisect_ppx.ocamlbuild (#144).
405
406 Additions
407
408 - Port to Jbuilder (#117, Rudi Grinberg).
409 - Port to ocaml-migrate-parsetree (#117, Rudi Grinberg).
410 - Add "-conditional" workaround for Jbuilder (#153).
411 - API for dumping coverage statistics before program exit, e.g. for
412 long-running daemons (#129, Edwin Török).
413 - Match cases consisting of only assert false are no longer instrumented
414 (#118, Gabriel Scherer).
415 - Change license to MPL 2.0, from GPL 3.0 (#133).
416
417 Bugs fixed
418
419 - Don't instrument refutation cases ("| p -> .") (#118, Gabriel Scherer).
420 - Some builds failing with "unary operator expected" (#123, Brad Langel).
421 - Better error messages for malformed bisect*.out files (#137,
422 Emilio Jesús Gallego Arias).
423
424 Miscellaneous
425
426 - Document bisect*.out file format (#138, Brad Langel).
427 - Testing, build, debuggability improvements, including by Gabriel Scherer,
428 Emilio Jesús Gallego Arias.
429
430 Version 1.2.0 (2016-11-08):
431 ---------------------------
432 Additions
433
434 - Compatibility with OCaml 4.04 (#113).
435 - Install .mli files (#98, prompted Christian Lindig).
436
437 Removals
438
439 This release removes several features which appear to get little or no use.
440
441 - Rename package bisect_ppx.plugin to bisect_ppx.ocamlbuild; bisect_ppx.plugin
442 is still available as a deprecated name (#93).
443 - Remove -combine-expr option from the reporter (#105, #106).
444 - Remove EMMA, XML, and "bisect" output formats (#105, #106).
445 - Remove obsolete -no-navbar and -no-folding options from HTML output (#106).
446 - Remove point kinds (#101).
447 - Eliminate .cmp files; this makes the -I option unnecessary for output
448 formats besides HTML (#102, #108).
449
450 Version 1.1.0 (2016-04-02):
451 ---------------------------
452 - Port to 4.03.
453 - Allow exclusion of entire files, instead of only top-level values (prompted
454 @solongordon).
455 - Allow files to be excluded by regular expression, instead of only by exact
456 string match (requested @solongordon).
457
458 Version 1.0.1 (2016-03-04):
459 ---------------------------
460 - Add option -ignore-missing-files to bisect-ppx-report, which allows the
461 reporter to silently ignore missing source files instead of failing. This is
462 intended for build processes that generate temporary source files, but
463 delete them before the reporter is run (requested Ivan Gotovchits).
464 - Fix bug in which bisect-ppx-report treated source code as format strings for
465 Buffer.add_substitute. This caused wrong behavior on source code substrings
466 that looked like Buffer.add_substitute patterns (reported Ivan Gotovchits).
467 - Various minor documentation and internal build fixes.
468
469 Version 1.0.0 (2016-02-09):
470 ---------------------------
471 - Redesign HTML reports.
472 - Put separate points on each clause of or-patterns.
473 - Put points on applications of |>.
474 - Eliminate -safe, -fast, -faster modes. All modes now fast and thread-safe.
475 - Improve integration with other ppx preprocessors.
476 - Install native ppx rewriter when possible.
477 - Adjust which points have which kinds.
478 - Clean up command-line help of bisect-ppx-report.
479 - Add Ocamlbuild plugin helper and "coverage" tag.
480 - New documentation.
481 - Testing, build, and packaging improvements.
482
483 Version 0.2.6 (2016-01-01):
484 --------------------------
485 - Fix missing 'function' and 'fun' expression instrumentation (Anton Bachin).
486 - Update bisect-report test for recent points (Anton Bachin).
487 - Added appropriate tests (Anton Bachin).
488
489 Version 0.2.5 (2015-09-07):
490 ---------------------------
491 - Revert the _Random_ indices for output files, just create multiple
492 - Correct dependency on Str in META.
493 - Obey OCamls line directive when looking for BISECT comments.
494
495 Version 0.2.4 (2015-08-14):
496 ---------------------------
497 - Fast mode returns: create one array to track instrumented points per
498 implementation file (module). Created a separate findlib package:
499 bisect_ppx.fast to implement this method (just calls the ppx rewriter
500 with the appropriate argument).
501 - Runtime logging now default to a file: bisect.log. To regain original
502 behavior set BISECT_SILENT=ERR. You can use the same variable to set
503 a filename.
504 - Fixed bug for creating html reports off of implicit filenames.
505
506 Version 0.2.3 (2015-06-17):
507 --------------------------
508 - @hnrgrgr Fixed more comment lexing bugs
509
510 Version 0.2.2 (2015-06-12):
511 ---------------------------
512 - Added a runtime only package distribution for findlib.
513 - Change the points annotation method, 'For' loops are correctly labeled.
514 - Updated appropriate test.
515 - When linking with '-thread' _Random_ indices are used for the output files.
516 - @simonjbeaumont, fix for exclusions of locally abstract typed definitions.
517
518 Version 0.2.1 (2015-05-22):
519 ---------------------------
520 - fix double slashes at the end of a string bug, due to BISECT
521 specifiy commenting.
522
523 Version 0.2 (2015-05-15):
524 -------------------------
525 - fix bug to make sure that we don't instrument other ppx attributes.
526
527 Version 0.1 (2015-05-06):
528 -------------------------
529 - start versioning for bisect_ppx (just the ppx no CamlP4) of Bisect.
530 - Original bisect (changes below).
531
532 Version 1.3 (2012-11-03):
533 -------------------------
534 - new instrumenter based on '-ppx'
535 - new '-summary-only' to output only summary (text mode only)
536 - refactoring, including minor bugfixes
537 - bug#86: '-ocaml-prefix' doesn't really work
538 - bug#87: install shouldn't build anything
539 - bug#89: do not activate warnings by default
540
541 Version 1.2 (2012-08-14):
542 -------------------------
543 - new '-combine-expr' to allow combination of results
544 - new 'dump' output mode (mainly for debug)
545 - new 'bisect' output mode (i. e. format of runtime data)
546 - new '-exclude-file' command-line switch to exclude toplevel functions
547 listed in a file
548 - update for OCaml 4.00.0
549 - bug #95: polymorphic recursion is not handled
550 - bug #104: configure script should be executable
551
552 Version 1.1 (2011-02-12):
553 -------------------------
554 - update for Objective Caml 3.12.0
555 - new build system
556 - 'instrument.cmo' renamed to 'bisect_pp.cmo' (and now depends on 'str.cma')
557 - instrumentation modes ('safe', 'fast', and 'faster')
558 - '-exclude' command-line switch to exclude functions from instrumentation
559 - '(*BISECT-MARK*)' / '(*BISECT-VISIT*)' comments to mark lines
560 - '(*BISECT-IGNORE-BEGIN*)' / '(*BISECT-IGNORE-END*)' / '(*BISECT-IGNORE*)'
561 comments to ignore parts of source file
562 - bug #51: unportable use of 'which'
563 - bug #52: thread-compatibility module does not compile
564 - bug #59: instrumented code is 20 times slower
565
566 Version 1.0 (2009-12-17):
567 -------------------------
568 - switch to OCaml 3.11.1
569 - multiple outputs now allowed at once
570 - '-enable' / '-disable' command-line switches to control instrumentation
571 - support for multithread applications
572 - new output mode: EMMA-compatible XML
573 - support for ocamlfind installation
574 - major code refactoring and improvement
575 - bug #41: '-I' command-line switch to specify search path
576
577 Version 1.0-beta (2009-05-31):
578 ------------------------------
579 - switch to OCaml 3.11.0
580 - bug #30: incorrect detection of ocamljava
581 - bug #31: default make target
582 - bug #32: incorrect source rendering under Firefox
583 - bug #33: information about global coverage missing
584 - bug #34: bare text mode added
585 - bug #35: introduction of navigation bar and code folding
586 - bug #36: instrumentation with -unsafe switch
587 - bug #37: incorrect handling of array literals
588 - unreported bug regarding the handling of if/then construct with no else
589 - introduction of CSV, XML modes
590 - major code refactoring and improvement
591
592 Version 1.0-alpha (2008-07-06):
593 -------------------------------
594 - first public version