data-point
data-point copied to clipboard
JavaScript Utility for collecting, processing and transforming data
**Problem description**: node's `url.parse` has been deprecated on node 11 and above. Example of code that needs to be updated: https://github.com/ViacomInc/data-point/blob/53b51857c5e5bc6d684dfe4c0ec078afc2cb08f8/packages/data-point-express/lib/route-middleware.js#L5-L7 _At the moment a `eslint-disable-line` has been placed to...
**Problem description**: More than often we find ourselves writing reducer functions that only need either the `input` or the `accumulator` parameters. The result is functions such as: ```js // no...
**Problem description** When request entities fail, and the accumulator contains an `inspect` property, Node will call that function while executing `require('util').inspect`. This interferes with the error message that's generated here...
**Problem description**: When upgrading from Jest 21 to 23, the test coverage decreased unexpectedly. For now, `/packages/data-point-cache/lib/cache.js` has been added to `coveragePathIgnorePatterns`. **Suggested solution**: Add tests that cover the untested...
**Problem description**: The path reducer allows us to get a specific path from an input object, but at times we want to manipulate the object afterward, because of the nature...
**Problem description**: Many of the entities, methods and features DataPoint has have become irrelevant or lead to bad practices. **Suggested solution**: Deprecate the following set of entities, methods, and features:...
**Problem description**: DataPoint documentation examples and SYNOPSIS mainly promote registered entities, when in reality we want to promote more the usage of instance entities. **Suggested solution**: Update documentation by changing...
**Problem description**: By design DataPoint transformations are asynchronous, this provides maximum flexibility for writing your code **but** it also means that there are some things we must take into account...
**Problem description**: `data-point/lib` has a `helpers` directory and a `utils` directory, and `helpers/index.js` actually exports all the `utils` functions: ```js module.exports = Object.assign({}, require('./helpers'), require('../utils')) ``` https://github.com/ViacomInc/data-point/blob/master/packages/data-point/lib/helpers/index.js#L3 **Suggested solution**: Combine...
**Problem description**: There is no way to set breakpoints on path reducers, which makes debugging more difficult. **Suggested solution**: Add a `debug` reducer helper. ```js const { debug } =...