Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Refactor and async/await #87

Merged
merged 163 commits into from
Jan 20, 2021
Merged
Show file tree
Hide file tree
Changes from 27 commits
Commits
Show all changes
163 commits
Select commit Hold shift + click to select a range
65739b5
refactor
mifi Dec 15, 2020
9a51ebe
replace request with got
mifi Dec 16, 2020
e76986a
fix unit tests
mifi Dec 16, 2020
8f7cf41
migrate to github actions
mifi Dec 17, 2020
086fc5f
re-add request as a dev dependnecy (needed for integration.js)
mifi Dec 17, 2020
b4188c6
add forgotten yarn.lock
mifi Dec 17, 2020
46c23e3
fix broken chai
mifi Dec 17, 2020
71370c2
fix broken image in integration test
mifi Dec 17, 2020
cd020d3
fix jsdoc
mifi Dec 17, 2020
a75795c
fix jsdoc (2)
mifi Dec 17, 2020
fcb4cc5
fix cb functions
mifi Dec 17, 2020
22a895c
fix bug
mifi Dec 17, 2020
5ba86d9
move all legacy endpoints together
mifi Dec 17, 2020
24397fb
fix existing bug and its broken integration test
mifi Dec 17, 2020
1f41fe8
fix existing bug
mifi Dec 17, 2020
a5bfb87
fix bug
mifi Dec 17, 2020
6c9ff87
fix broken test and async-ify
mifi Dec 17, 2020
87dadfd
fix bug in test code
mifi Dec 17, 2020
814d05c
fix broken test
mifi Dec 17, 2020
4b10791
fix last broken test
mifi Dec 17, 2020
5fbc7a4
fix bug introduced
mifi Dec 17, 2020
49fc8e4
fix http error handling
mifi Dec 17, 2020
29b0562
add timeout to currently broken test
mifi Dec 17, 2020
bf7ec26
refactor/simplify upload code
mifi Dec 18, 2020
d436590
simplify _sendTusRequest
mifi Dec 18, 2020
10b117b
replace underscore with lodash
mifi Dec 21, 2020
5ad3cb7
parallellize tus upload and fix broken uploadProgress
mifi Dec 21, 2020
da19acc
fix lint
mifi Dec 21, 2020
b2df620
Allow adding non-streams #86 #50
mifi Dec 21, 2020
31bbbf1
improve require of lodash
mifi Dec 30, 2020
53d3291
refactor
mifi Dec 30, 2020
f7be645
remove transpiling and unused modules
mifi Dec 30, 2020
1dc361a
remove duplicate .eslintrc file
mifi Dec 30, 2020
cd232ba
fix example
mifi Dec 30, 2020
32fcdfa
refactor
mifi Dec 30, 2020
6e140b1
improve readme
mifi Dec 31, 2020
ef66db4
remove incorrect code from readme
mifi Dec 31, 2020
02742a5
improve/simplify webp example
mifi Dec 31, 2020
4a3e12f
fix retry bug and add test for this
mifi Dec 31, 2020
8eb20ac
remove abundant example
mifi Jan 1, 2021
3742291
remove zerobytes example (it's now an integration test)
mifi Jan 1, 2021
9a9cee9
fix broken examples and simplify
mifi Jan 1, 2021
19b3555
fix broken unknown error handling
mifi Jan 1, 2021
d57d363
improve examples
mifi Jan 1, 2021
6763b75
improve test
mifi Jan 1, 2021
8de9ad6
fix todo
mifi Jan 1, 2021
f9ee77c
simplify
mifi Jan 1, 2021
e235068
improve test
mifi Jan 1, 2021
f745279
improve documentation
mifi Jan 1, 2021
ef6b237
improve initial DX in readme
mifi Jan 1, 2021
f219871
improve readme
mifi Jan 1, 2021
35d493f
promisify API doc
mifi Jan 1, 2021
bf92bfd
fix examples
mifi Jan 1, 2021
fa1bb27
improve readme
mifi Jan 1, 2021
83d3a38
fix lint
mifi Jan 1, 2021
e03cc8c
fix build badge
mifi Jan 2, 2021
a75e377
improve readme
mifi Jan 2, 2021
d5c4399
implement upload progress for form upload too
mifi Jan 2, 2021
9a0a544
fix whitespace (lint)
mifi Jan 2, 2021
feb38ff
update readme
mifi Jan 3, 2021
9cdab22
async/awaitify PaginationStream
mifi Jan 3, 2021
10717e9
remove request and simplify some tests
mifi Jan 3, 2021
1008490
fix test
mifi Jan 3, 2021
7c635c6
simplify code
mifi Jan 3, 2021
6abb63d
improve tests
mifi Jan 3, 2021
d2231f1
use smaller img for tests
mifi Jan 3, 2021
732328d
fix typo
mifi Jan 3, 2021
6214537
add test for form field
mifi Jan 3, 2021
e1fb74d
fix examples path
mifi Jan 3, 2021
911507d
add example of svg to png
mifi Jan 3, 2021
8fd8bab
implement addStream test
mifi Jan 3, 2021
79d2155
upgrade tus.js to 2.2.0
mifi Jan 4, 2021
9d828ba
fix lint
mifi Jan 4, 2021
9072ea7
upgrade tests to jest
mifi Jan 6, 2021
a9f96b5
Enable jest intellisense in vscode
mifi Jan 6, 2021
478cb90
Remove got's user-agent
mifi Jan 6, 2021
c0a6d71
remove `resume: true`
mifi Jan 6, 2021
dfdfee4
fix test run scripts
mifi Jan 6, 2021
4b7fbb8
fix secrets
mifi Jan 6, 2021
7640198
run integration tests in series
mifi Jan 6, 2021
c4349b4
fix test that caused jest to hang
mifi Jan 6, 2021
599e5f5
increase delays
mifi Jan 6, 2021
c629999
try to disable failing tests
mifi Jan 6, 2021
df2de3e
fix lint
mifi Jan 6, 2021
2589de4
try to disable other test
mifi Jan 6, 2021
53d7c83
re=enable tests and add --forceExit
mifi Jan 6, 2021
3c80c7d
try to add coverage
mifi Jan 7, 2021
d216a5b
fix lint
mifi Jan 7, 2021
b1f98f7
fix build
mifi Jan 7, 2021
7892a3b
use different gist account
mifi Jan 7, 2021
4c8f0c7
Refactor and bugfixes
mifi Jan 7, 2021
1a63fff
fix test logic
mifi Jan 7, 2021
810e88b
unify error thrown upon existance of response.error
mifi Jan 7, 2021
9fc5a54
Don't use callback terminiology for onProgress
mifi Jan 7, 2021
14884cd
disable retry in got (default 2)
mifi Jan 7, 2021
c527f82
improve readme examples
mifi Jan 7, 2021
21aaaea
Add more tests and remove retry
mifi Jan 8, 2021
d0bcaf3
add extra check on retrry
mifi Jan 8, 2021
f2dd8de
throw error also on 404
mifi Jan 8, 2021
18e451b
Improve error handling and documentation (breaking)
mifi Jan 8, 2021
2fd65fa
Add test for notify_url
mifi Jan 8, 2021
570cce8
fix test
mifi Jan 8, 2021
8d12e61
improve readme
mifi Jan 8, 2021
d109e33
Add coverage report and generate badge svg
mifi Jan 10, 2021
942ae7a
fix syntax error
mifi Jan 10, 2021
44607bc
Use debug module for logging
mifi Jan 10, 2021
aa0d5a3
improve readme
mifi Jan 10, 2021
991f457
improve readme
mifi Jan 10, 2021
4e313f9
improve createTemplate
mifi Jan 10, 2021
3f0e201
throw error if assembly_url or assembly_ssl_url doesn't exist in resp…
mifi Jan 10, 2021
caff720
fix lint
mifi Jan 10, 2021
6ff1ed5
pull out logic
mifi Jan 13, 2021
c343918
allow add an arbitrary string or buffer as a file upload
mifi Jan 13, 2021
41263c6
add retry example
mifi Jan 13, 2021
271aa9c
remove abundant timeout
mifi Jan 13, 2021
1497837
add maxRetries option
mifi Jan 13, 2021
a501667
simplify
mifi Jan 13, 2021
9090e53
simplify
mifi Jan 13, 2021
80257f0
fix undefined bug
mifi Jan 13, 2021
1ebb7c0
reuse
mifi Jan 13, 2021
af38dcd
add timeout options and increase default timeout to 60s
mifi Jan 13, 2021
8d73175
include assembly_ssl_url in error
mifi Jan 13, 2021
146d8a4
convert recursion to while loop
mifi Jan 13, 2021
9a762fa
add safety catch
mifi Jan 13, 2021
a4c775e
expose awaitAssemblyCompletion
mifi Jan 13, 2021
45a4d79
improve error message
mifi Jan 13, 2021
45545fa
pull out method
mifi Jan 13, 2021
eb874f8
Breaking: remove legacy callback endpoints
mifi Jan 13, 2021
4d45dac
improve readme
mifi Jan 14, 2021
e760f83
split up onProgress handler
mifi Jan 14, 2021
7df2d26
Warn existing callback users
mifi Jan 14, 2021
be3d437
refactor tests
mifi Jan 14, 2021
675ff77
refactor tests
mifi Jan 14, 2021
76a92e4
add assert
mifi Jan 14, 2021
3f05be7
add missing tests
mifi Jan 14, 2021
fe237b0
return from polling instead of throwing error
mifi Jan 15, 2021
7865224
add test for ASSEMBLY_CANCELED
mifi Jan 15, 2021
22c88c2
throw when createAssembly result contains "error" but 200
mifi Jan 15, 2021
7187004
fix bug introduced
mifi Jan 15, 2021
b779dc1
add improvements
mifi Jan 15, 2021
ccf1eed
add test for throw on 404
mifi Jan 15, 2021
8c4a9da
try to resolve test crash on github actions
mifi Jan 15, 2021
45aa3e6
don't throw unknown error if result.ok is not set
mifi Jan 15, 2021
0e90070
remove unfinished tests
mifi Jan 15, 2021
3a85560
improve readme
mifi Jan 15, 2021
0455a9e
allow changing default timeout
mifi Jan 15, 2021
2dde464
improve test
mifi Jan 15, 2021
77ad758
add example
mifi Jan 15, 2021
86df65b
fix readme
mifi Jan 16, 2021
a4bf05c
simplify test
mifi Jan 16, 2021
11bb6c3
make easier to log from tests
mifi Jan 16, 2021
22a3db2
Add typescript definitions #78
mifi Jan 16, 2021
8ac1041
add typescript defs to readme
mifi Jan 16, 2021
4a66943
fix fields (don't have to be string)
mifi Jan 16, 2021
8d0d5d7
Remove undocumented fields option
mifi Jan 16, 2021
f7e52b7
Add tests for non string fields inside params
mifi Jan 16, 2021
afc20a0
fix instance state concurrency issue
mifi Jan 19, 2021
515593d
remove addStream
mifi Jan 19, 2021
282a314
Make createAssembly fully declarative
mifi Jan 19, 2021
86f75a3
fix svg
mifi Jan 19, 2021
b0641eb
add TransloaditClientLegacy
mifi Jan 19, 2021
bfe3464
fix node 10 whoops
mifi Jan 19, 2021
707796f
add reference to v2 docs
mifi Jan 19, 2021
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion .babelrc
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
"add-module-exports",
"transform-object-assign",
"es6-promise",
"transform-async-to-generator"
"transform-async-to-generator",
"transform-object-rest-spread"
]
}
22 changes: 22 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
name: Test

on: [push, pull_request]

jobs:
test:
runs-on: ubuntu-latest

strategy:
matrix:
node: ['10', '12', '14']

steps:
- uses: actions/checkout@v2

- uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node }}

- run: yarn
- run: npm run lint
- run: npm test
15 changes: 0 additions & 15 deletions .travis.yml

This file was deleted.

Loading