Skip to content

0.1.2

Compare
Choose a tag to compare
@darwin darwin released this 27 Jan 23:41
· 3893 commits to master since this release

Version checks and defensive initialisation

This is just a maintenance release. All components are now aware of their particular versions and can print proper warnings on version mismatches with other components:

  • Dirac Agent checks if nREPL server has Dirac nREPL middleware with expected version
  • Dirac Agent checks if connected DevTools clients have expected version
  • DevTools checks if Dirac Agent has expected version

Also I realised that lein deploy clojars is building a standalone jar with all dependencies bundled. I didn't expect this because in my other projects it is definitely not the case. Maybe the :aot option is causing that? Anyways a convenient side effect is that you don't have to list required Dirac dependencies in your nREPL context when including Dirac nREPL middleware or launching Dirac Agent in your nREPL server process. See updated config snippet here: https://github.com/binaryage/dirac#start-nrepl-server. One potential problem could be possible conflicts with your existing dependencies. I have implemented some code to inform about potential dependency issues when requiring dirac.agent, but I'm not sure about all edge cases. I will leave it as is for now - feel free to open an issue with a better proposal.

Notable commits:

  • c62831f Dirac Agent checks for proper version of nREPL middleware
  • d047426 be more defensive when requiring dirac agent
  • 87df3b5 check Dirac DevTools version on Agent side
  • cea1773 check Agent version on Dirac DevTools side