Skip to content

101.0.0

Latest
Compare
Choose a tag to compare
@prettydiff prettydiff released this 21 Apr 09:21
· 60 commits to master since this release
cb84482

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.
  • 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 simply prettydiff().
    • 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 and start 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 and start are removed from the options object and are reset to their default after every execution.