This major change addresses three concerns:
- The build task is dramatically simplified.
- The output is compatible with the upcoming TypeScript incremental builds. This application will start using incremental builds once they are available via terminal argument, such as
--incremental
.
- The output is compatible with the upcoming TypeScript incremental builds. This application will start using incremental builds once they are available via terminal argument, such as
- From the outside the application is dramatically more simple.
- There is only one list of options, which is always populated by default.
- There is not a separate method for executing the application. Before the code looks like
prettydiff.mode(options)
where now it is simplyprettydiff()
. - No need to pass a list of options in as the application reads from the options property:
prettydiff.options
.
- Fixes an internal architectural defect.
- Pretty Diff was using options
end
andstart
internally to determine when to switch between language grammars. This is problematic if options are cached in memory and those options are not reset to a default value between each time the application is called. - Now
end
andstart
are removed from the options object and are reset to their default after every execution.
- Pretty Diff was using options