Commit graph

376 commits

Author SHA1 Message Date
Antoine du Hamel
77c6b2512c
meta: fix update-contributors script (#5137) 2024-05-02 22:10:27 +02:00
Antoine du Hamel
3e796e2c0f
meta: add support for Fragment short syntax (#4953) 2024-02-26 11:43:43 +01:00
Antoine du Hamel
3bdf312f90
uppy: fix bundle builder (#4950) 2024-02-22 16:31:15 +01:00
Antoine du Hamel
34ce4dfe7a
meta: improve output watcher diff (#4876) 2024-01-19 11:25:55 +01:00
Mikael Finstad
ed7b4d4401
meta: remove comments from output watcher (#4875)
Co-authored-by: Antoine du Hamel <antoine@transloadit.com>
2024-01-19 10:40:00 +01:00
Artur Paikin
a116db5147
Migrate to AWS-SDK V3 syntax (#4810) 2023-12-04 17:14:04 +00:00
Trivikram Kamat
736a1bc926
meta: migrate AWS SDK v2 to v3 in bin/uploadcdn (#4776) 2023-11-14 10:51:36 +01:00
Antoine du Hamel
70ffe60947
meta: fix build of TypeScript plugins (#4784) 2023-11-09 13:28:34 +01:00
Antoine du Hamel
773c8cb9a1
meta: add support for TypeScript plugins (#4640) 2023-10-17 15:38:15 +02:00
Merlijn Vos
6430a00aa9
Remove the website (#4369) 2023-03-24 00:33:46 +08:00
Mikael Finstad
8c653bb099
@uppy/companion: document how to run many instances (#4227)
Co-authored-by: Kevin van Zonneveld <kevin@vanzonneveld.net>
Co-authored-by: Merlijn Vos <merlijn@soverin.net>
2023-01-04 14:01:46 +01:00
Antoine du Hamel
4bb99880b3
@uppy/robodog: remove package (#3946)
Co-authored-by: Artur Paikin <artur@arturpaikin.com>
2022-08-22 17:19:15 +02:00
Antoine du Hamel
5044230bf1
meta: upgrade all dev dependencies (#3903) 2022-08-16 22:39:28 +02:00
Antoine du Hamel
003b9518b3 Merge stable branch 2022-08-03 11:54:15 +02:00
Antoine du Hamel
a6d6f0bb94
meta: keepNames in bundle (#3926)
We rely on `.name` for the `@uppy/remote-sources` plugin.
2022-08-02 17:27:27 +01:00
Antoine du Hamel
7b0db7d3a0
meta: use node: protocol when using Node.js built-in core modules (#3871)
`node:` protocol is available as of Node.js 14.18.0 LTS. Since we are
dropping support for all Node.js versions below that, we can take
advantage of this prefix to help differentiate built-in modules from npm
modules.
2022-07-18 14:09:03 +02:00
Antoine du Hamel
e00b9ed526
uppy: refactor to ESM (#3807) 2022-06-07 19:12:36 +02:00
Antoine du Hamel
6085477ed0
meta: disable ESM to CJS transform in dist files (#3773)
* meta: disable ESM to CJS transorm in dist files

This commit removes all the hacks that needed to happen in order to ship
working CJS code. Onwards, we plan to distribute Uppy packages as ESM.

* No mocking with Jest and ESM
2022-05-30 18:33:01 +02:00
Antoine du Hamel
2cbd762627
@uppy/image-editor: remove CJS-interop hack in the source code (#3778) 2022-05-23 17:14:52 +02:00
Antoine du Hamel
bf1489edd1
meta: prepare internal script files for lint rune hardening (#3760) 2022-05-23 11:59:22 +02:00
Antoine du Hamel
456c2b7422
@uppy/core: refactor to ESM (#3744) 2022-05-20 11:04:09 +02:00
Antoine du Hamel
797e171179
meta: fix more linter warnings (#3757) 2022-05-19 17:15:38 +02:00
Antoine du Hamel
6a1cf724aa
@uppy/provider-views: refactor to ESM (#3715)
* @uppy/provider-views: refactor to ESM

* fix ESM to CJS transforms

`export {default as whatever} from 'whatever'` was not transformed correctly
2022-05-14 01:46:42 +02:00
Antoine du Hamel
7a0e893b9d
@uppy/form: refactor to ESM (#3654) 2022-04-21 16:51:54 +02:00
Antoine du Hamel
2a4e2bf823
meta: fix e2e (#3562) 2022-03-11 19:24:38 +01:00
Antoine du Hamel
6012220d17
meta: fix support of export declaration in source files (#3558)
Rewrite all `export … from …` to `module.exports = require(…)`, and
`export default …` to `module.exports = …`  when transpiling ESM to CJS.

It also transform `.jsx` imports into `.js` as we are not shipping JSX to npm.
2022-03-11 12:37:55 +01:00
Mikael Finstad
267c34045a
replace debug
remove debug flag
instead add allowLocalUrls (COMPANION_ALLOW_LOCAL_URLS)
which defaults to false
this fixes https://huntr.dev/bounties/8b060cc3-2420-468e-8293-b9216620175b/

also don't allow localhost for any providers getURLMeta
2022-03-02 19:02:56 +08:00
Mikael Finstad
146d8f302d
Fix COMPANION_PATH (#3515)
* Fix COMPANION_PATH

make sure it serves everything served behind that path
fixes #3514

* add tests for subpath

* chmod +x companion.sh

* remove process.exit

as it's considered harmful in this case
an error thrown will also be printed to stderr

* add backward compatible redirect

* Apply suggestions from code review

Co-authored-by: Antoine du Hamel <duhamelantoine1995@gmail.com>

* fix oops

Co-authored-by: Antoine du Hamel <duhamelantoine1995@gmail.com>
2022-03-02 17:52:59 +07:00
Antoine du Hamel
38174972d9
meta: fix CDN bundle (#3494) 2022-02-17 16:22:03 +01:00
Antoine du Hamel
f4f1b810b7
meta: use a single .env file for config (#3498)
Fixes: https://github.com/transloadit/uppy/issues/3473
Co-authored-by: Antoine du Hamel <duhamelantoine1995@gmail.com>
Co-authored-by: Mikael Finstad <finstaden@gmail.com>
2022-02-17 15:47:15 +01:00
Antoine du Hamel
a6e36217ad
meta: add support for ESM sources in build script (#3468) 2022-02-15 17:46:14 +01:00
Antoine du Hamel
f08b71d48b
meta: consolidate ENV files and fix contributing guidelines (#3475)
And use `pull_request_target` event instead of `pull_request` to use secrets from forks.

Fixes: https://github.com/transloadit/uppy/issues/3473

Co-authored-by: Mikael Finstad <finstaden@gmail.com>
2022-02-14 15:13:38 +01:00
Merlijn Vos
6da874ed3a
meta: Make E2E Great Again (#3444)
Co-authored-by: Antoine du Hamel <duhamelantoine1995@gmail.com>
2022-02-08 17:37:27 +01:00
Antoine du Hamel
848aa858e1
meta: replace browserify with esbuild (#3363)
* meta: build bundle using esbuild

* meta: don't use terser to build minified bundle

* website: use esbuild instead of browserify

* remove disc and disc.html

* Update lock file

* Simplify inject script

* nits

* fix `yarn start`
2022-01-13 15:22:01 +01:00
Antoine du Hamel
007aad98fb
meta: use ESBuild to bundle in E2E test suite (#3375)
* use ESBuild to bundle E2E tests

* fix linter warnings

* Update create-react-app deps

* list test suites dynamically
2021-12-16 11:33:19 +01:00
Antoine du Hamel
b17f1da4f3
meta: enable linter on mjs scripts (#3364) 2021-12-13 11:39:08 +01:00
Antoine du Hamel
3f56f194a7
meta: update npm deps (#3352) 2021-12-09 18:12:34 +01:00
Antoine du Hamel
9c7b17e936
@uppy/companion: don't pin Yarn version in package.json (#3347)
Fixes: https://github.com/transloadit/uppy/issues/3356
2021-12-09 16:52:33 +01:00
Antoine du Hamel
b8a466b6ad
meta: add release automations (#3304)
* meta: add release automations

* Add missing versions

* remove old scripts that are no longer useful

* add special casing for robodog

* skip fetching if HEAD is already available locally

* Publish to npm from GitHub actions

* fixes

* Update afterVersionBump script

* Fix getUpToDateRefsFromGitHub script

* Make sub-package specific changelogs

* fix git and PR opening process in GH Actions

* fix Release action

* don't fetch GH user names in changelog

* add support for commits that touch several packages

* add website as a valid commit message prefix

* Assign the PR to the releaser and fix other GH related bugs

* Remove release branch from CI

* Restore git history at the end of local release session

* skip CI if assignee has not approved the PR

* fix release commit message

* beautify commit message

* Special case for @uppy/robodog

* Failure is not an option

* Rename release CI

* Always rewind before crashing

* Improve logging

* fix changelog table

* fix linter

* Update CONTRIBUTING.md

* Remove unused package

* Disable Release workflow between two releases

* Fix git command and workaround deleted branch
2021-12-07 18:19:06 +01:00
Antoine du Hamel
96192e4177
@uppy/companion: fix deploy Yarn version (#3327)
* @uppy/companion: fix deploy

When running from the Dockerfile, Corepack cannot pick up the
information from the parent package.json and tries to run with an
older version of Yarn.

* Update update-yarn.sh
2021-11-29 20:15:49 +07:00
Antoine du Hamel
9380cf575c
build: disable loose transpilation for legacy bundle (#3329)
* Revert "Convert sets to arrays prior to using spread operator to enable transpilation to ES5 (#3297)"

This reverts commit a545c66d10.

* build: disable loose transpilation for legacy bundle

Refs: https://github.com/transloadit/uppy/pull/3297#issuecomment-963228990
2021-11-24 23:12:14 +01:00
Merlijn Vos
00094af525
Refactor locale scripts & generate types and docs (#3276)
Closes #3232 

### Summary

- Create `locale.js` for every plugin instead of `this.defaultLocale` in the class
- Complete refactor of locale scripts
  - No dynamic plugin class imports with hacks to mimic the environment in order to get the `defaultLocale`.
  - Separate tests and build in separate files
  - Add two modes for test file, `unused` (fails hard) and `warnings`
- Generate docs
  - Use remark to cleanly mutate the file
  - Rename some doc files to match the plugin name (such as `statusbar` --> `status-bar`)
  - Comments in `locale.js` are kept and are present in the docs as well.
- Generate types
2021-11-10 11:43:04 +01:00
Kevin van Zonneveld
bfe659820e
Upgrade linting to 2.0.0-0 (#3280)
* Upgrade linting to 2.0.0-0

* Adjust so we can pass without error

* Fix linting

* Update header-blacklist.js

* Update index.js

* Update Uppy.js

* Update Components.js

* Update StatusBar.js

* Update Assembly.js

* Upgrade to linting 2.0.0 (final release)
2021-11-09 11:19:05 +00:00
Murderlon
0dbec60257
Release uppy@2.1.2, @uppy/robodog@2.1.3 2021-11-08 16:09:34 +01:00
Murderlon
9fbc0de51b
meta: update version references in docs 2021-11-08 15:59:50 +01:00
Antoine du Hamel
8fae622a05 meta: add update-yarn script (#3278) 2021-10-27 17:52:47 +02:00
Antoine du Hamel
01d7ea13e9
meta: use Yarn v3 instead of npm (#3237)
* meta: use Yarn v3 instead of npm

* Update CONTRIBUTING.md to fix linter errors

* remove remaining npm commands

* Update deps
2021-10-20 15:16:59 +02:00
Artur Paikin
01158d7445
e2e tests: Move transloadit2 test into transloadit, remove the former (#3271)
* move transloadit2 test into transloadit, remove the former

* Update endtoend-build-tests

* Revert "move transloadit2 test into transloadit, remove the former"

This reverts commit ff25d4b8cd.

* Revert "Update endtoend-build-tests"

This reverts commit 723f48fc03.

* rename transloadit2 to transloadit-assembly-options

* timeout option is nested now https://webdriver.io/docs/api/element/waitForExist/
2021-10-19 18:44:35 +01:00
Antoine du Hamel
7cad0130dd
ci: fix tranloadit2 e2e tests (#3270)
* ci: fix tranloadit2 e2e tests

* ci: Re-enable tranloadit tests

* ci: update settings

* improve comments

* Remove cropping step from transloadit2 e2e test

* add steps back

* remove template id

* increase timeout

* transloadit2

* Re-enable all e2e tests

Co-authored-by: Artur Paikin <artur@arturpaikin.com>
2021-10-19 15:23:32 +01:00
Artur Paikin
38f780d14c
build: make-changelog script and draft 2.0 changelog (#3140)
* draft 2.0 changelog, WIP

* add bash script that outputs helpful list of changes between two tags

* Update CHANGELOG.md

* Update make-changelog
2021-08-29 22:57:29 +01:00