Commit graph

77 commits

Author SHA1 Message Date
Renée Kooi
2b91a96c95
Release 2020-01-15 16:39:45 +01:00
Renée Kooi
a7e4e12fe2
Companion dependency updates (#1983)
* companion: upgrade deps with updtr

* companion: downgrade stuff for node 6 compat

* Update packages/@uppy/companion/package.json
2020-01-06 15:24:35 +01:00
darthf1
19e31d098b Correct Tus.TusOptions typings based on docs (#1989)
* Correct Tus.TusOptions typings based on docs

From: https://uppy.io/docs/tus/

* Update index.d.ts

* Update packages/@uppy/tus/types/index.d.ts

Co-Authored-By: Renée Kooi <renee@kooi.me>
2019-12-16 14:05:39 +01:00
Renée Kooi
18180d5778
Release 2019-12-16 12:53:23 +01:00
Renée Kooi
c370dba0b6
Release 2019-11-04 10:56:06 +01:00
ifedapoolarewaju
bad02f9a69
tus: wait for previous request to get aborted 2019-10-27 08:09:36 +01:00
ifedapoolarewaju
c7828139ed
tus,companion: terminate tus upload on-upload cancel
fixes #1544
2019-10-23 11:27:44 +01:00
Renée Kooi
b2f158e45e
Release 2019-10-14 16:43:19 +02:00
Renée Kooi
4e32e61d7c
Release 2019-10-09 21:00:46 +02:00
Renée Kooi
733de659da
Upgrade standard to v14 (#1860)
* Update eslint dependencies.

* standard --fix

* build: disable handler name lint rule

* status-bar: manually fix lint errors

* webcam: manually fix lint errors

* url: manually fix lint errors

* react-native: manually fix lint errors

* dashboard: manually fix lint errors

* informer: manually fix linting errors

* progress-bar: manually fix lint errors

* provider-views: manually fix lint errors

* redux-dev-tools: manually fix lint errors

* build: disable buggy no-unused-vars rule

* examples: manually fix lint errors

* ` quotes for code things, ' for text things
2019-10-09 14:53:02 +02:00
Renée Kooi
bb8b66d918
Use more cancellation-friendly strategy for limit: N uploads (#1736)
* xhr-upload: redo limit option using different strategy

* xhr-upload: fix marking requests as done

* Move duplicate createEventTracker definitions to @uppy/utils

* tus: new cancellation for local uploads

* tus: fix cancelling queued uploads

* tus: fix wrong name

* aws-s3-multipart: smol refactor

* aws-s3-multipart: new cancellation style

* aws-s3: new cancellation

* utils: port limitPromises test to RateLimitedQueue

* timing fix?

* tus: new cancellation on websocket

* xhr-upload: implement cancellation for remote uploads

* aws-s3-multipart: port to new cancellation

* utils: remove limitPromises

* xhr-upload: remove pause/resume code

* xhr-upload: clean up event listeners

* xhr-upload: extract progress timer to separate class

* Move ProgressTimeout class to utils

* utils: update typings

* Fix lint

* tus: make pause/resume respect the rate limiting queue

* tus: try to explain some of the tricky things at play in the Tus#upload method

* aws-s3-multipart: add missing { abort: true }

* aws-s3-multipart: make pause/resume respect the rate limiting queue

* eslintrc.json - fixed eslint warnings for jsdoc

* Revert "eslintrc.json - fixed eslint warnings for jsdoc"

This reverts commit 50b24773ce.

* eslintrc.json - allow indentation in jsdoc comments

* xhr-upload: fix promise return value

* tus: fix promise return value

* tus: add missing `return () => {}`

* utils: typing export type fixes

* tus: add more jsdoc

* companion-client: add missing SocketOptions type

* utils: fix more export typings

* core,companion-client,tus: more typings tweaking

* companion-client: test fix 😩

* companion-client: add type for Socket#open

* tus: fix emit() call

* add local cancellation fuzz....ish? test
2019-09-25 15:21:17 +02:00
Artur Paikin
e82ac0f137
core: Don’t add/overwrite existing files, allow duplicates from different folders (#1767)
* Add file.data.relativePath to the file.id

* Don’t add/overwrite a file if a file with the same id already exsists, issue a warning

* override @uppy/tus fingerprint to uppy’s file.id

* combine cordove/react native handling, don’t log twice

* always use onError for errors in addFile

* use file.meta.relativePath instead of file.data.relativePath

what do you think, @lakesare?

* update tests to include allowing/diallowing duplicates and file.id generation with relativePath

* update tus-js-client

* refactor error handling for addFile and upload into a mutual  _showOrLogErrorAndThrow method

* explain duplicate files and relativePath

* throw TypeError vs Error when allowedFileTypes is not an array

* fix tests

* tweak docs

* Emit restriction-failed for all restriction errors, move it to _showOrLogErrorAndThrow
2019-09-19 16:43:51 +03:00
Artur Paikin
056a7114a1 Release 2019-08-30 15:24:04 +03:00
Artur Paikin
6599ebdc65
transloadit: add limit option, warn about using limit when it’s set to 0 (#1789)
* add limit option to transloadit plugin to pass down to tus

* warn to set limit when uploading over 10 files

* changelog to set the default limit in 2.0

* always warn if limit === 0
2019-08-22 16:29:00 +03:00
Renée Kooi
c62ec3665d Update eslint to v6 (#1777)
* Update eslint

* Do eslint --fix

* Do not access Object.prototype method 'hasOwnProperty' from target object

* utils: add hasProperty

* eslint --fix

* Disable quote-props for locale files

* add back quotes in locale files

* revert locale files to state on master

* Update react-scripts
2019-08-13 21:45:30 +03:00
Renée Kooi
10bc79574e
lerna link convert (#1730)
* lerna link convert

* ci: use npm ci

* update lockfile

* companion: set `bin` to source file

Since typescript doesn't actually transform anything, we can just use
this.

In a next major version we could set `noEmit: true` in the tsconfig and
stop publishing `lib`.

* companion: do chmod +x on start-server.js

* build: remove obsolete lerna config

* build: explicitly install latest versions when building e2e tests for ci

* Remove versions from private packages

* fix regex

* try fix

* ci: force npm to install to endtoend folder

* ci: fold up e2e build output

* Update netlify deploy preview command

* Remove mentions of npm run bootstrap

* Edit .github/CONTRIBUTING.md instead

* companion: add proxy executable

* companion: fix publish

* Downgrade jest to appease create-react-app
2019-07-19 12:16:36 +02:00
Artur Paikin
bd2beedcff Release 2019-07-18 17:21:42 +02:00
Artur Paikin
81a45a01ed eslint jsdoc fixes 2019-06-25 18:27:48 +03:00
Renée Kooi
e6c52f7681
Use opts.id as the plugin ID for all plugins, fixes #1674 2019-06-19 09:58:14 +02:00
Renée Kooi
2aa6d5a162
Release 2019-06-07 14:34:13 +02:00
Renée Kooi
2faa3a1d1d
tus: implement metaFields (#1644)
A quick copy-paste hackjob from XHRUpload.
2019-06-07 14:08:07 +02:00
Artur Paikin
28d235fe2f Release 2019-06-05 19:07:20 +03:00
Renée Kooi
980210f76c
Add VERSION properties to all plugins.
And remove the proposal-object-rest-spread plugin because it is built
into preset-env now.
2019-05-27 16:53:47 +02:00
Renée Kooi
f97b3931bb
Upgrade eslint. 2019-05-20 11:28:44 +02:00
Artur Paikin
5c9e1a836d Release 2019-05-17 19:17:03 +03:00
Renée Kooi
1ad322497f
Release 2019-05-08 15:27:15 +02:00
Artur Paikin
25d4b3678b Release 2019-04-25 23:03:25 +03:00
Artur Paikin
27424e37c7 update peerDependencies of @uppy/core to ^1.0.0 2019-04-25 22:50:05 +03:00
Ifedapo Olarewaju
057fb6200d point to real tus-js-client 2019-04-25 08:00:26 +01:00
Ifedapo Olarewaju
07556c999c rn-expo: add custom file reader example for tus 2019-04-24 14:53:52 +01:00
Artur Paikin
0f95529cc5 Release 2019-04-19 15:46:25 +03:00
Renée Kooi
7ff690a152
Merge pull request #1429 from loopbio/tus-fix-cancel-with-upload-limit
tus: fix cannot start more uploads after cancel
2019-04-17 16:05:12 +02:00
Ifedapo Olarewaju
f4e558bf94 rename serverUrl to companionUrl
and serverPattern to companionAllowedHosts
2019-04-14 13:53:50 +01:00
Ifedapo Olarewaju
11cb650401 point to latest tus-js-client (1.7.1 plus latest react-native support)
cc @arturi
2019-04-14 13:07:01 +01:00
Artur Paikin
fb4f19e895 update @uppy/tus and @uppy/companion to latest @ifedapoolarewaju fork 2019-04-11 14:58:07 +03:00
Artur Paikin
e092c3fb65 @uppy/tus will depend on ifedapoolarewaju’s fork for now
so it’s in sync with @uppy/companion and Lerna doesn’t have conflicts

//cc @ifedapoolarewaju @goto-bus-stop
2019-04-08 18:36:49 +03:00
ap--
48cceb8f9f tus: fix cannot start more uploads after cancel
The queue in limitPromises is not emptied on cancel,
because the upload promise is not resolved or rejected.
2019-04-07 15:32:22 +02:00
Artur Paikin
7ae8af44ab Release 2019-04-04 19:31:09 +03:00
Artur Paikin
27899d944f Release 2019-03-08 20:47:42 +03:00
Renée Kooi
fd6734be4d
docs: update webpack homepage URLs 2019-03-04 13:43:37 +01:00
Artur Paikin
f94bc77deb Publish
- uppy@0.30.2
 - @uppy/aws-s3-multipart@0.30.2
 - @uppy/aws-s3@0.30.2
 - @uppy/companion-client@0.28.2
 - @uppy/companion@0.17.2
 - @uppy/core@0.30.2
 - @uppy/dashboard@0.30.2
 - @uppy/drag-drop@0.30.2
 - @uppy/dropbox@0.30.2
 - @uppy/file-input@0.30.2
 - @uppy/form@0.30.2
 - @uppy/golden-retriever@0.30.2
 - @uppy/google-drive@0.30.2
 - @uppy/informer@0.30.2
 - @uppy/instagram@0.30.2
 - @uppy/progress-bar@0.30.2
 - @uppy/provider-views@0.30.2
 - @uppy/react@0.30.2
 - @uppy/redux-dev-tools@0.30.2
 - @uppy/robodog@0.30.2
 - @uppy/status-bar@0.30.2
 - @uppy/store-default@0.28.2
 - @uppy/store-redux@0.28.2
 - @uppy/thumbnail-generator@0.30.2
 - @uppy/transloadit@0.30.2
 - @uppy/tus@0.30.2
 - @uppy/url@0.30.2
 - @uppy/utils@0.30.2
 - @uppy/webcam@0.30.2
 - @uppy/xhr-upload@0.30.2
2019-02-22 22:43:58 +03:00
Artur Paikin
a5c39e9a35 Release 2019-02-21 19:09:22 +03:00
Artur Paikin
4dcef4c3b9 Release 2019-02-15 23:55:18 +03:00
Artur Paikin
ea0befe4ce update peerDependencies before release 2019-02-15 22:09:12 +03:00
Artur Paikin
498f47ab05
Merge pull request #1138 from transloadit/improvement/xhr-upload-bundle-resp
Set response in Core rather than in upload plugins
2019-01-31 17:19:26 +03:00
Artur Paikin
3a48c9f232 Update to tus-js-client@1.6.0 with React Native support 2019-01-23 19:26:05 +03:00
Artur Paikin
3ddf4c7548 Release 2019-01-15 19:21:04 +03:00
Artur Paikin
9fce77830b
Remove jsnext:main since it’s been deprecated
https://github.com/stereobooster/package.json#jsnextmain
2019-01-15 18:22:15 +03:00
Renée Kooi
3710b19e1b
Use export = in @uppy/core typings. 2018-12-20 14:51:42 +01:00
Artur Paikin
f1f21b1132 change all upload-success events to emit (file, uploadResp) with uploadResp {status, body, uploadURL}, upload-error to (file, error) 2018-12-19 23:16:48 +03:00