Open
Description
Potential improvements discovered during #87 but not blocking its merge:
- github action slack notification like we had in travis
- Use github releases with release notes instead of changelog. (I normally use np for publishing npm modules as it reduces chances of forgetting something)
- disable travis builder
- Option to auto-download results files (
downloadResults: true
) forcreateAssembly
? I already created an example for this, but it could be a nice feature to be integrated in the API. Then we could even create a simple transloadit CLI that allows people to process local files using predefined templates for different useful operations! - allow specifying
filename
andcontentType
of uploaded streams? See form-data- Maybe merge the concept of filename and fieldname (it's a bit confusing)
- Show off more cool things in readme (visual examples? gifs)
- More files under
examples/
- More files under
- Create types for all
any
fields in ts
Logs / Global Event Emitter
Could allow the user subscribe to:
- Log events
- onProgress event
- (Suggested by kvz:) I think it would be nice if there was an option: reporter. By default it would be false. It could be set to nodesdk.consoleLogger or a custom function (
progressCb
add default console logger).
Is this still needed now that we have thedebug
module for logging?
If we decide to add an EventEmitter it could lead to breaking changes (e.g. removing onUploadProgress and onAssemblyProgress from method options and move them to event listener)
Tests improvements
- run tests periodically (every 24h? integration tests against live api)
- some tests/code is holding resources causing
Jest did not exit one second after the test run has completed
after test finished. I have worked around with --forceExit however this is not recommended. - maybe replace localtunnel with another solution, as we will be causing load on their servers
- Move more tests from integration to unit to speed up and improve stability. Can use nock recording to auto create test responses
- If possible, convert tests to typescript and make
jest
automatically check types in the tests (instead of usingtsd
with a duplicated and incomplete type test file)