Repository: ViacomInc/data-point (js)

Issue:
deprecate support for 6, bump to 8 and 10
<!--
Thanks for your interest in the project. We appreciate bugs filed and PRs submitted!
Please make sure that you are familiar with and follow the Code of Conduct for
this project (found in the CODE_OF_CONDUCT.md file).

Please fill/un-comment out this template with all the relevant information so we can
understand what's going on and fix the issue.
-->

**Problem description**:

code cant support some common es6 capabilities because of support for 6 that is no longer applicable

**Suggested solution**:

bump support for 8 and 10 
deprecate support for < 8


Pull request:
ci(*): deprecate node 6 support
<!--
Thanks for your interest in the project. We appreciate bugs filed and PRs submitted!

Please make sure that you are familiar with and follow the Code of Conduct for
this project (found in the CODE_OF_CONDUCT.md file).

Also, please make sure you're familiar with and follow the instructions in the
contributing guidelines (found in the CONTRIBUTING.md file).

Please fill out the information below to expedite the review and (hopefully)
merge of your pull request!

BREAKING CHANGES:

If your PR includes a breaking change, please submit it with a codemod under
data-point-codemods that will help users upgrade their codebase.

Breaking changes without a codemod will not be accepted unless a codemod is not
viable or does not apply to the specific situation.
-->

<!-- What changes are being made? (What feature/bug is being fixed here?) -->
**What**:

adds test for node 10

<!-- Why are these changes necessary? -->
**Why**:

closes #315

<!-- How were these changes implemented? -->
**How**:

upgrades travis for testing for node 8 and 10 
updates documentations and package.json engine settings to 8=>

<!-- Have you done all of these things?  -->
**Checklist**:
<!-- add "N/A" to the end of each line that's irrelevant to your changes -->
<!-- to check an item, place an "x" in the box like so: "- [x] Documentation" -->
- [ ] Has Breaking changes
- [ ] Documentation
- [ ] Tests
- [x] Ready to be merged <!-- In your opinion, is this ready to be merged as soon as it's reviewed? -->
- [ ] Added username to **all-contributors** list

<!-- feel free to add additional comments -->


Patch:
diff --git a/.travis.yml b/.travis.yml
index cedc66f..6c2e5cb 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -1,7 +1,7 @@
 language: node_js
 node_js:
-  - 6
   - 8
+  - 10
 sudo: false
 before_install:
   - npm install -g codecov
diff --git a/packages/bench-trial/package.json b/packages/bench-trial/package.json
index 60fdb2b..75a1475 100644
--- a/packages/bench-trial/package.json
+++ b/packages/bench-trial/package.json
@@ -5,7 +5,7 @@
   "main": "./lib/index.js",
   "license": "Apache-2.0",
   "engines": {
-    "node": ">=6"
+    "node": ">=8"
   },
   "bin": {
     "bench-trial": "runner.js"
diff --git a/packages/data-point-cache/README.md b/packages/data-point-cache/README.md
index 155c769..0de1ee9 100644
--- a/packages/data-point-cache/README.md
+++ b/packages/data-point-cache/README.md
@@ -8,7 +8,7 @@ Factory method to create a simple cache API that you can use for data persistenc
 
 ## Requirements
 
-- Node 6 LTS (or higher)
+- Node 8 LTS (or higher)
 - [Redis](https://redis.io/) (Optional for development)
 
 ## Install
diff --git a/packages/data-point-cache/package.json b/packages/data-point-cache/package.json
index e830827..a804021 100644
--- a/packages/data-point-cache/package.json
+++ b/packages/data-point-cache/package.json
@@ -5,7 +5,7 @@
   "main": "lib/index.js",
   "license": "Apache-2.0",
   "engines": {
-    "node": ">=6"
+    "node": ">=8"
   },
   "author": {
     "name": "Acatl Pacheco",
diff --git a/packages/data-point-codemods/package.json b/packages/data-point-codemods/package.json
index da2ab71..7944661 100644
--- a/packages/data-point-codemods/package.json
+++ b/packages/data-point-codemods/package.json
@@ -4,7 +4,7 @@
   "description": "DataPoint Codemods",
   "license": "Apache-2.0",
   "engines": {
-    "node": ">=6"
+    "node": ">=8"
   },
   "author": {
     "name": "Acatl Pacheco",
diff --git a/packages/data-point-express/README.md b/packages/data-point-express/README.md
index 09a8f33..137c4be 100644
--- a/packages/data-point-express/README.md
+++ b/packages/data-point-express/README.md
@@ -6,7 +6,7 @@
 
 ## Requirements
 
-- Node 6 LTS (or higher)
+- Node 8 LTS (or higher)
 - [Redis](https://redis.io/) (Optional for development)
 - Peer dependencies: [data-point](https://www.npmjs.com/package/data-point), [Express](https://www.npmjs.com/package/express)
 
diff --git a/packages/data-point-express/package.json b/packages/data-point-express/package.json
index 2d47734..b6a53c2 100644
--- a/packages/data-point-express/package.json
+++ b/packages/data-point-express/package.json
@@ -5,7 +5,7 @@
   "main": "lib/index.js",
   "license": "Apache-2.0",
   "engines": {
-    "node": ">=6"
+    "node": ">=8"
   },
   "author": {
     "name": "Acatl Pacheco",
diff --git a/packages/data-point-service/README.md b/packages/data-point-service/README.md
index 5c2e8cd..2a7dd05 100644
--- a/packages/data-point-service/README.md
+++ b/packages/data-point-service/README.md
@@ -6,7 +6,7 @@
 
 ## Requirements
 
-- Node 6 LTS (or higher)
+- Node 8 LTS (or higher)
 - [Redis](https://redis.io/) (Optional for development)
 
 ## Install
diff --git a/packages/data-point-service/package.json b/packages/data-point-service/package.json
index 962ce64..7e1383b 100644
--- a/packages/data-point-service/package.json
+++ b/packages/data-point-service/package.json
@@ -5,7 +5,7 @@
   "main": "lib/index.js",
   "license": "Apache-2.0",
   "engines": {
-    "node": ">=6"
+    "node": ">=8"
   },
   "author": {
     "name": "Acatl Pacheco",
diff --git a/packages/data-point/README.md b/packages/data-point/README.md
index ed247c4..70ed157 100644
--- a/packages/data-point/README.md
+++ b/packages/data-point/README.md
@@ -8,7 +8,7 @@ DataPoint helps you reason with and streamline your data processing layer. With
 
 **Prerequisites**
 
-Node v6 LTS or higher
+Node v8 LTS or higher
 
 **Installing**
 
diff --git a/packages/data-point/lib/utils/index.js b/packages/data-point/lib/utils/index.js
index 871a58f..4b2e415 100644
--- a/packages/data-point/lib/utils/index.js
+++ b/packages/data-point/lib/utils/index.js
@@ -73,7 +73,7 @@ function inspectProperties (obj, props, indent = '') {
     const val = obj[key]
     if (typeof val !== 'undefined') {
       return `${acc}${indent}- ${key}: ${util.inspect(obj[key], {
-        breakLength: 0
+        breakLength: 60
       })}\n`
     }
     return acc
diff --git a/packages/data-point/package.json b/packages/data-point/package.json
index 44adc13..7833452 100644
--- a/packages/data-point/package.json
+++ b/packages/data-point/package.json
@@ -13,7 +13,7 @@
     "url": "https://github.com/ViacomInc/data-point/issues"
   },
   "engines": {
-    "node": ">=4",
+    "node": ">=8",
     "npm": ">=2"
   },
   "author": {


Test patch:
diff --git a/packages/data-point/lib/utils/__snapshots__/utils.test.js.snap b/packages/data-point/lib/utils/__snapshots__/utils.test.js.snap
index 3db7626..07f9b2d 100644
--- a/packages/data-point/lib/utils/__snapshots__/utils.test.js.snap
+++ b/packages/data-point/lib/utils/__snapshots__/utils.test.js.snap
@@ -8,7 +8,6 @@ exports[`inspectProperties It should add indent to keys 1`] = `
 
 exports[`inspectProperties It should inspect each property 1`] = `
 "- a: 1
-- b: { a: true,
-  b: false }
+- b: { a: true, b: false }
 "
 `;