Skip to content

Commit

Permalink
Bump dependency versions, support node 8+ (disabled node 6-)
Browse files Browse the repository at this point in the history
- Update all dependencies
- "clarify" and "stack" now use the same version of "stack-chain",
  this fixes the error "Conflicting version of stack-chain found"
- trace and clarify are now activated only for node 8 and higher

The last item could be seen as breaking change, but I am not treating
it as such, because

- the change does not break the normal execution of the program
- the whole library is for debugging purposes (humans). It does not
  have an API.
  • Loading branch information
nknapp committed Jan 9, 2018
1 parent 2002550 commit f8a52ec
Show file tree
Hide file tree
Showing 4 changed files with 254 additions and 192 deletions.
6 changes: 3 additions & 3 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@

'use strict'

var versionStr = process.version.match(/v(\d+).*/)[1]
var majorVersion = Number(versionStr)
if (majorVersion >= 4 && majorVersion < 8) {
const versionStr = process.version.match(/v(\d+).*/)[1]
const majorVersion = Number(versionStr)
if (majorVersion >= 8) {
require('trace')
require('clarify')
console.log('Trace and clarify activated')
Expand Down

0 comments on commit f8a52ec

Please sign in to comment.