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.
* 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>
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>
* 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
* @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
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
* 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/
* enforce some eslint rules
* enforce accessibility linter rules
* harden lint rules with only 1 or 2 warnings
* fix remaining rules with less than 3 warnings
* fix e2e tests
* fix remaining rules with less than 4 warnings
* fix remaining rules with less than 6 warnings
* fix `shuffleTaglines`
* fix companion build
We can now use `Object.fromEntries`, `Object.values`, and `Symbol`.
Also changes polyfill suggestion for legacy browsers to use `core-js`
which includes almost all we need and more.
* tools: remove use of `promisify` where possible
Remove use of `promisify` when a native promise API is available.
* website: fix minify build
It seems that `tinyify` doesn't support some modern ES features,
replacing it with `terser`.
* website: fix highlight script
`Prism` needs to be a global variable now it seems...
* Force Uppy initialization with new keyword, remove run()
* update some types
* update docs and examples
* Update packages/@uppy/core/src/index.js
Co-authored-by: Antoine du Hamel <duhamelantoine1995@gmail.com>
* Update packages/@uppy/core/types/index.d.ts
Co-authored-by: Antoine du Hamel <duhamelantoine1995@gmail.com>
* add new in tests
* Move all types to ESM syntax and fix all issues
* Add back e2e build script and revert uppy docs commit
Co-authored-by: Antoine du Hamel <duhamelantoine1995@gmail.com>
Co-authored-by: Murderlon <merlijn@soverin.net>
* master: (23 commits)
A bit of polish (#2986)
Companion: Fix typescript error
Companion: Fix invalid referrer crashing the process
Publish 1.30 blog post
Release
Build: Companion needs to be built before locale-pack
Release
Fix build: locale-pack first, integrations second
changelog for 1.30
Release
Update package.json
Only log info if debug is true (#2855)
build(deps): bump prismjs from 1.23.0 to 1.24.0 (#2971)
Angular Integration (#2871)
ci: don't run markdown tests in type tests
Add types for `uppy.once` method (#2965)
build: lint fixes in build scripts
Fix typo in docs/progressbar.md (#2962)
Document `uppy.once` in `docs/uppy.md` (#2960)
Add `props` example to docs/vue.md (#2959)
...
* Remove IE polyfills and special casing
* dashboard: remove `resize-observer-polyfill`
* deps: remove url-parse to use global `URL` instead
* Update documentation for browser support
* Add a migration guide
* Update e2e test platforms
* Remove polyfills from examples and add those missing in CDN bundle
* Use Node.js v16.x on CI because of `AbortController`
* Update bundle builder to produce two builds: `uppy.js` without polyfills, `uppy.legacy.js` with polyfills.
* Upgrade create-react-app deps
* remove null coalescing operator as it's not supported by the build chain
* disable Safari testing (for now)
Co-authored-by: Renée Kooi <renee@kooi.me>