Commit graph

387 commits

Author SHA1 Message Date
Mikael Finstad
684f661f39
Build lib refactor to esm (#5537)
* fix scope

* set default view type list

* refactor build-lib to mjs
2024-12-04 17:19:09 +08:00
Antoine du Hamel
64bffd5363
export plugin options (#5433) 2024-08-28 15:49:03 +02:00
Antoine du Hamel
a2f1472907
meta: update manual-cdn workflow (#5329) 2024-07-11 10:40:41 +02:00
Antoine du Hamel
c8d16f6a55
meta: simplify build:ts script (#5262) 2024-06-19 15:24:31 +02:00
Antoine du Hamel
b1e4b34c37
meta: remove nodemon from the deps (#5172) 2024-05-16 12:35:36 +02:00
Antoine du Hamel
55f621c13c
Merge stable branch 2024-05-03 14:46:04 +02:00
Antoine du Hamel
77c6b2512c
meta: fix update-contributors script (#5137) 2024-05-02 22:10:27 +02:00
Merlijn Vos
915a563da9
@uppy/react: remove useUppy & reintroduce useUppyState (#5059) 2024-04-17 12:05:48 +02:00
Merlijn Vos
eede2c2869
@uppy/locales: do not build dist/ folder (#5055) 2024-04-11 09:50:14 +02:00
Murderlon
a787a6496f
Merge branch 'main' into 4.x
* main: (90 commits)
  crash if trying to set path to / (#5003)
  fix `super.toggleCheckbox` bug (#5004)
  @uppy/aws-s3-multipart: fix escaping issue with client signed request (#5006)
  add missing exports (#5009)
  @uppy/transloadit: migrate to TS (#4987)
  @uppy/utils: fix `RateLimitedQueue#wrapPromiseFunction` types (#5007)
  @uppy/golden-retriever: migrate to TS (#4989)
  Bump follow-redirects from 1.15.4 to 1.15.6 (#5002)
  meta: fix `resize-observer-polyfill` types (#4994)
  @uppy/core: various type fixes (#4995)
  @uppy/utils: fix `findAllDOMElements` type (#4997)
  @uppy/status-bar: fix `recoveredState` type (#4996)
  @uppy/utils: fix `AbortablePromise` type (#4988)
  Fix breadcrumbs (#4986)
  @uppy/drag-drop: refactor to TypeScript (#4983)
  @uppy/webcam: refactor to TypeScript (#4870)
  @uppy/url: migrate to TS (#4980)
  @uppy/zoom: refactor to TypeScript (#4979)
  @uppy/unsplash: refactor to TypeScript (#4979)
  @uppy/onedrive: refactor to TypeScript (#4979)
  ...
2024-03-19 17:52:15 +01: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
2a9cd56e6f
Merge branch 'main' of https://github.com/transloadit/uppy 2024-01-23 15:23:31 +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
Antoine du Hamel
c5e1b14d1d
uppy: remove legacy bundle
IE11 is long dead, Uppy doesn't use any web API that is not already supported by every major browsers, maintaining the legacy bundle is more work than it's worth, let's get rid of it!
2024-01-03 18:22:42 +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