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

Release: uppy@4.0.0-beta.5 #5141

Merged
merged 9 commits into from
May 3, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
2 changes: 1 addition & 1 deletion BUNDLE-README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

Hi, thanks for trying out the bundled version of the Uppy File Uploader. You can
use this from a CDN
(`<script src="https://releases.transloadit.com/uppy/v4.0.0-beta.4/uppy.min.js"></script>`)
(`<script src="https://releases.transloadit.com/uppy/v4.0.0-beta.5/uppy.min.js"></script>`)
or bundle it with your webapp.

Note that the recommended way to use Uppy is to install it with yarn/npm and use
Expand Down
58 changes: 58 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,45 @@ Please add your entries in this format:

In the current stage we aim to release a new version at least every month.

## 4.0.0-beta.5

Released: 2024-05-03

| Package | Version | Package | Version |
| ------------------------- | ------------ | ------------------------- | ------------ |
| @uppy/audio | 2.0.0-beta.5 | @uppy/progress-bar | 4.0.0-beta.4 |
| @uppy/aws-s3 | 4.0.0-beta.3 | @uppy/provider-views | 4.0.0-beta.5 |
| @uppy/aws-s3-multipart | 4.0.0-beta.5 | @uppy/react | 4.0.0-beta.5 |
| @uppy/box | 3.0.0-beta.5 | @uppy/redux-dev-tools | 4.0.0-beta.2 |
| @uppy/companion | 5.0.0-beta.5 | @uppy/remote-sources | 2.0.0-beta.4 |
| @uppy/companion-client | 4.0.0-beta.5 | @uppy/screen-capture | 4.0.0-beta.4 |
| @uppy/compressor | 2.0.0-beta.5 | @uppy/status-bar | 4.0.0-beta.5 |
| @uppy/core | 4.0.0-beta.5 | @uppy/store-default | 4.0.0-beta.2 |
| @uppy/dashboard | 4.0.0-beta.5 | @uppy/store-redux | 4.0.0-beta.3 |
| @uppy/drag-drop | 4.0.0-beta.4 | @uppy/svelte | 4.0.0-beta.3 |
| @uppy/dropbox | 4.0.0-beta.5 | @uppy/thumbnail-generator | 4.0.0-beta.4 |
| @uppy/facebook | 4.0.0-beta.5 | @uppy/transloadit | 4.0.0-beta.5 |
| @uppy/file-input | 4.0.0-beta.5 | @uppy/tus | 4.0.0-beta.4 |
| @uppy/form | 4.0.0-beta.3 | @uppy/unsplash | 4.0.0-beta.5 |
| @uppy/golden-retriever | 4.0.0-beta.4 | @uppy/url | 4.0.0-beta.5 |
| @uppy/google-drive | 4.0.0-beta.5 | @uppy/utils | 6.0.0-beta.5 |
| @uppy/image-editor | 3.0.0-beta.3 | @uppy/vue | 2.0.0-beta.2 |
| @uppy/informer | 4.0.0-beta.2 | @uppy/webcam | 4.0.0-beta.5 |
| @uppy/instagram | 4.0.0-beta.5 | @uppy/xhr-upload | 4.0.0-beta.3 |
| @uppy/locales | 4.0.0-beta.1 | @uppy/zoom | 3.0.0-beta.5 |
| @uppy/onedrive | 4.0.0-beta.5 | uppy | 4.0.0-beta.5 |

- @uppy/core: make UppyEventMap more readable (Murderlon)
- @uppy/audio,@uppy/compressor,@uppy/core,@uppy/dashboard,@uppy/remote-sources,@uppy/tus,@uppy/utils: Format (Murderlon)
- @uppy/aws-s3-multipart: Format (Murderlon)
- meta: enable prettier for markdown (Merlijn Vos / #5133)
- @uppy/xhr-upload: do not throw when res is missing url (Merlijn Vos / #5132)
- @uppy/companion: coerce `requestUrl` to a string (Antoine du Hamel / #5128)
- meta: enforce use of `.js` extension in `import type` declarations (Antoine du Hamel / #5126)
- @uppy/core: add instance ID to generated IDs (Merlijn Vos / #5080)
- @uppy/core: reference updated i18n in Restricter (Merlijn Vos / #5118)


## 4.0.0-beta.4

Released: 2024-04-29
Expand Down Expand Up @@ -236,6 +275,25 @@ Released: 2024-03-28
- meta: prepare release workflow for beta versions (Antoine du Hamel)


## 3.25.1

Released: 2024-05-03

| Package | Version | Package | Version |
| ---------------- | ------- | ---------------- | ------- |
| @uppy/companion | 4.13.2 | @uppy/xhr-upload | 3.6.6 |
| @uppy/core | 3.11.1 | uppy | 3.25.1 |
| @uppy/locales | 3.5.3 | | |

- @uppy/locales: Update ru_RU locale (Uladzislau Bodryi / #5120)
- meta: fix `update-contributors` script (Antoine du Hamel / #5137)
- meta: fix `bullet` setting for ReMark (Antoine du Hamel)
- meta: add prettier to `.md` pre-commit hooks (Antoine du Hamel)
- @uppy/core: make UppyEventMap more readable (Murderlon)
- meta: enable prettier for markdown (Merlijn Vos / #5133)
- @uppy/xhr-upload: do not throw when res is missing url (Merlijn Vos / #5132)
- @uppy/companion: coerce `requestUrl` to a string (Antoine du Hamel / #5128)


## 3.25.0

Expand Down
349 changes: 72 additions & 277 deletions README.md

Large diffs are not rendered by default.

53 changes: 34 additions & 19 deletions bin/update-contributors.mjs
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
#!/usr/bin/env node

import { spawn } from 'node:child_process'
import fetchContrib from 'github-contributors-list/lib/contributors.js'
import layoutStrategy from 'github-contributors-list/lib/strategies/layout_strategies/json.js'
import sortStrategy from 'github-contributors-list/lib/strategies/sort_strategies/sort_desc.js'
import filterStrategy from 'github-contributors-list/lib/strategies/filter_strategies/login.js'
import { Buffer } from 'node:buffer'
import fs from 'node:fs/promises'
import process from 'node:process'
Expand All @@ -10,27 +13,37 @@ const README_FILE_NAME = new URL('../README.md', import.meta.url)
const readme = await fs.open(README_FILE_NAME, 'r+')
const readmeContent = await readme.readFile()

const githubcontrib = spawn('npx', [
'githubcontrib',
'--owner', 'transloadit',
'--repo', 'uppy',
'--cols', '6',
'--format', 'md',
'--showlogin', 'true',
'--sortOrder', 'desc',
], {
stdio: ['ignore', 'pipe', 'inherit'],
})

githubcontrib.on('error', console.error)

// Detect start of contributors section.
const START_TAG = Buffer.from('<!--contributors-->\n')
const START_TAG_POSITION = readmeContent.indexOf(START_TAG) + START_TAG.byteLength
const START_TAG = Buffer.from('<table id="contributors_table">\n')
const START_TAG_POSITION =
readmeContent.indexOf(START_TAG) + START_TAG.byteLength

const args = {
owner: 'transloadit',
repository: 'uppy',
cols: 6,
format: 'json',
sortBy: 'contributions',
sortOrder: 'desc',
filter: [],
layoutStrategy,
sortStrategy,
filterStrategy,
}
const { contributors } = await fetchContrib(args).loadAll(
args.owner,
args.repository,
args.authToken || process.env.GITHUB_API_TOKEN,
args.fromDate,
)
let cursor = START_TAG_POSITION
for await (const data of githubcontrib.stdout) {
const { bytesWritten } = await readme.write(data.toString('utf-8'), cursor, 'utf-8')
for (const line of contributors) {
let row = '<tr>'
for (const { html_url, login, avatar_url } of line) {
row += `<td><a href=${html_url}><img width="117" alt=${JSON.stringify(login)} src=${JSON.stringify(avatar_url)}></a></td>`
}
row += '</tr>\n'
const { bytesWritten } = await readme.write(row, cursor, 'utf-8')
cursor += bytesWritten
}

Expand All @@ -40,6 +53,8 @@ if (cursor === START_TAG_POSITION) {
process.exit(1)
}

await readme.truncate(cursor)

// Write the end of the file.
await readme.write(
readmeContent,
Expand Down
4 changes: 2 additions & 2 deletions examples/aws-nodejs/public/drag.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<meta charset="utf-8" />
<title>Uppy</title>
<link
href="https://releases.transloadit.com/uppy/v4.0.0-beta.4/uppy.min.css"
href="https://releases.transloadit.com/uppy/v4.0.0-beta.5/uppy.min.css"
rel="stylesheet"
/>
</head>
Expand All @@ -22,7 +22,7 @@ <h5>Uploaded files:</h5>
DragDrop,
ProgressBar,
AwsS3,
} from 'https://releases.transloadit.com/uppy/v4.0.0-beta.4/uppy.min.mjs'
} from 'https://releases.transloadit.com/uppy/v4.0.0-beta.5/uppy.min.mjs'

// Function for displaying uploaded files
const onUploadSuccess = (elForUploadedFiles) => (file, response) => {
Expand Down
4 changes: 2 additions & 2 deletions examples/aws-nodejs/public/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<meta charset="utf-8" />
<title>Uppy – AWS upload example</title>
<link
href="https://releases.transloadit.com/uppy/v4.0.0-beta.4/uppy.min.css"
href="https://releases.transloadit.com/uppy/v4.0.0-beta.5/uppy.min.css"
rel="stylesheet"
/>
</head>
Expand All @@ -16,7 +16,7 @@ <h1>AWS upload example</h1>
Uppy,
Dashboard,
AwsS3,
} from 'https://releases.transloadit.com/uppy/v4.0.0-beta.4/uppy.min.mjs'
} from 'https://releases.transloadit.com/uppy/v4.0.0-beta.5/uppy.min.mjs'
/**
* This generator transforms a deep object into URL-encodable pairs
* to work with `URLSearchParams` on the client and `body-parser` on the server.
Expand Down
4 changes: 2 additions & 2 deletions examples/cdn-example/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<link
href="https://releases.transloadit.com/uppy/v4.0.0-beta.4/uppy.min.css"
href="https://releases.transloadit.com/uppy/v4.0.0-beta.5/uppy.min.css"
rel="stylesheet"
/>
</head>
Expand All @@ -19,7 +19,7 @@
Dashboard,
Webcam,
Tus,
} from 'https://releases.transloadit.com/uppy/v4.0.0-beta.4/uppy.min.mjs'
} from 'https://releases.transloadit.com/uppy/v4.0.0-beta.5/uppy.min.mjs'

const uppy = new Uppy({ debug: true, autoProceed: false })
.use(Dashboard, { trigger: '#uppyModalOpener' })
Expand Down
4 changes: 2 additions & 2 deletions examples/uppy-with-companion/client/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<link
href="https://releases.transloadit.com/uppy/v4.0.0-beta.4/uppy.min.css"
href="https://releases.transloadit.com/uppy/v4.0.0-beta.5/uppy.min.css"
rel="stylesheet"
/>
</head>
Expand All @@ -19,7 +19,7 @@
Instagram,
GoogleDrive,
Tus,
} from 'https://releases.transloadit.com/uppy/v4.0.0-beta.4/uppy.min.mjs'
} from 'https://releases.transloadit.com/uppy/v4.0.0-beta.5/uppy.min.mjs'

const uppy = new Uppy({ debug: true, autoProceed: false })
.use(Dashboard, { trigger: '#uppyModalOpener' })
Expand Down
4 changes: 3 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,9 @@
"*.{css,html,json,scss,vue,yaml,yml}": "prettier -w",
"*.md": [
"remark --silently-ignore -i .remarkignore -foq",
"eslint --fix"
"eslint --fix",
"prettier -w",
"eslint"
]
},
"remarkConfig": {
Expand Down
7 changes: 7 additions & 0 deletions packages/@uppy/audio/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
# @uppy/audio

## 2.0.0-beta.5

Released: 2024-05-03
Included in: Uppy v4.0.0-beta.5

- @uppy/audio,@uppy/compressor,@uppy/core,@uppy/dashboard,@uppy/remote-sources,@uppy/tus,@uppy/utils: Format (Murderlon)

## 2.0.0-beta.1

Released: 2024-03-28
Expand Down
2 changes: 1 addition & 1 deletion packages/@uppy/audio/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@uppy/audio",
"description": "Uppy plugin that records audio using the device’s microphone.",
"version": "2.0.0-beta.4",
"version": "2.0.0-beta.5",
"license": "MIT",
"main": "lib/index.js",
"style": "dist/style.min.css",
Expand Down
8 changes: 8 additions & 0 deletions packages/@uppy/aws-s3-multipart/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
# @uppy/aws-s3-multipart

## 4.0.0-beta.5

Released: 2024-05-03
Included in: Uppy v4.0.0-beta.5

- @uppy/aws-s3-multipart: Format (Murderlon)
2 changes: 1 addition & 1 deletion packages/@uppy/aws-s3-multipart/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@uppy/aws-s3-multipart",
"description": "Upload to Amazon S3 with Uppy and S3's Multipart upload strategy",
"version": "4.0.0-beta.4",
"version": "4.0.0-beta.5",
"license": "MIT",
"main": "lib/index.js",
"type": "module",
Expand Down
2 changes: 1 addition & 1 deletion packages/@uppy/aws-s3/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@uppy/aws-s3",
"description": "Upload to Amazon S3 with Uppy",
"version": "4.0.0-beta.2",
"version": "4.0.0-beta.3",
"license": "MIT",
"main": "lib/index.js",
"type": "module",
Expand Down
2 changes: 1 addition & 1 deletion packages/@uppy/box/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@uppy/box",
"description": "Import files from Box, into Uppy.",
"version": "3.0.0-beta.4",
"version": "3.0.0-beta.5",
"license": "MIT",
"main": "lib/index.js",
"type": "module",
Expand Down
2 changes: 1 addition & 1 deletion packages/@uppy/companion-client/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@uppy/companion-client",
"description": "Client library for communication with Companion. Intended for use in Uppy plugins.",
"version": "4.0.0-beta.4",
"version": "4.0.0-beta.5",
"license": "MIT",
"main": "lib/index.js",
"type": "module",
Expand Down
14 changes: 14 additions & 0 deletions packages/@uppy/companion/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
# @uppy/companion

## 5.0.0-beta.5

Released: 2024-05-03
Included in: Uppy v4.0.0-beta.5

- @uppy/companion: coerce `requestUrl` to a string (Antoine du Hamel / #5128)

## 5.0.0-beta.4

Released: 2024-04-29
Expand All @@ -18,6 +25,13 @@ Included in: Uppy v4.0.0-beta.1
- @uppy/companion: improve error msg (Mikael Finstad / #5010)
- @uppy/companion: crash if trying to set path to / (Mikael Finstad / #5003)

## 4.13.2

Released: 2024-05-03
Included in: Uppy v3.25.1

- @uppy/companion: coerce `requestUrl` to a string (Antoine du Hamel / #5128)

## 4.13.1

Released: 2024-04-10
Expand Down
2 changes: 1 addition & 1 deletion packages/@uppy/companion/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@uppy/companion",
"version": "5.0.0-beta.4",
"version": "5.0.0-beta.5",
"description": "OAuth helper and remote fetcher for Uppy's (https://uppy.io) extensible file upload widget with support for drag&drop, resumable uploads, previews, restrictions, file processing/encoding, remote providers like Dropbox and Google Drive, S3 and more :dog:",
"main": "lib/companion.js",
"types": "lib/companion.d.ts",
Expand Down
7 changes: 7 additions & 0 deletions packages/@uppy/compressor/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
# @uppy/compressor

## 2.0.0-beta.5

Released: 2024-05-03
Included in: Uppy v4.0.0-beta.5

- @uppy/audio,@uppy/compressor,@uppy/core,@uppy/dashboard,@uppy/remote-sources,@uppy/tus,@uppy/utils: Format (Murderlon)

## 1.1.1

Released: 2024-02-20
Expand Down
2 changes: 1 addition & 1 deletion packages/@uppy/compressor/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@uppy/compressor",
"description": "Uppy plugin that compresses images before upload, saving up to 60% in size",
"version": "2.0.0-beta.4",
"version": "2.0.0-beta.5",
"license": "MIT",
"main": "lib/index.js",
"style": "dist/style.min.css",
Expand Down
16 changes: 16 additions & 0 deletions packages/@uppy/core/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,15 @@
# @uppy/core

## 4.0.0-beta.5

Released: 2024-05-03
Included in: Uppy v4.0.0-beta.5

- @uppy/core: make UppyEventMap more readable (Murderlon)
- @uppy/audio,@uppy/compressor,@uppy/core,@uppy/dashboard,@uppy/remote-sources,@uppy/tus,@uppy/utils: Format (Murderlon)
- @uppy/core: add instance ID to generated IDs (Merlijn Vos / #5080)
- @uppy/core: reference updated i18n in Restricter (Merlijn Vos / #5118)

## 4.0.0-beta.4

Released: 2024-04-29
Expand Down Expand Up @@ -32,6 +42,12 @@ Included in: Uppy v4.0.0-beta.1
- @uppy/core: various type fixes (Antoine du Hamel / #4995)
- @uppy/core,@uppy/provider-views: Fix breadcrumbs (Evgenia Karunus / #4986)

## 3.11.1

Released: 2024-05-03
Included in: Uppy v3.25.1

- @uppy/core: make UppyEventMap more readable (Murderlon)

## 3.11.0

Expand Down
Loading