https://github.com/nextcloud-libraries/nextcloud-upload
Nextcloud Upload helpers for Nextcloud apps https://npmjs.org/@nextcloud/upload
https://github.com/nextcloud-libraries/nextcloud-upload
javascript javascript-library nextcloud nextcloud-plugin typescript upload upload-file uploader
Last synced: 3 months ago
JSON representation
Nextcloud Upload helpers for Nextcloud apps https://npmjs.org/@nextcloud/upload
- Host: GitHub
- URL: https://github.com/nextcloud-libraries/nextcloud-upload
- Owner: nextcloud-libraries
- License: agpl-3.0
- Created: 2022-05-12T18:09:41.000Z (almost 4 years ago)
- Default Branch: main
- Last Pushed: 2025-04-12T08:29:36.000Z (about 1 year ago)
- Last Synced: 2025-04-12T23:08:08.980Z (about 1 year ago)
- Topics: javascript, javascript-library, nextcloud, nextcloud-plugin, typescript, upload, upload-file, uploader
- Language: TypeScript
- Homepage: https://nextcloud-libraries.github.io/nextcloud-upload
- Size: 14.8 MB
- Stars: 9
- Watchers: 4
- Forks: 3
- Open Issues: 13
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
- Authors: AUTHORS.md
Awesome Lists containing this project
README
# @nextcloud/upload
[](https://api.reuse.software/info/github.com/nextcloud-libraries/nextcloud-upload)
[](https://www.npmjs.com/package/@nextcloud/upload)

Nextcloud upload helpers for Nextcloud apps
## Usage
📘 [API documentation](https://nextcloud-libraries.github.io/nextcloud-upload)
## Development
### 📤 Releasing a new version
- Pull the latest changes from `main` or `stableX`
- Checkout a new branch with the tag name (e.g `v4.0.1`): `git checkout -b v`
- Run `npm version patch --no-git-tag-version` (`npm version minor --no-git-tag-version` if minor).
This will return a new version name, make sure it matches what you expect
- Generate the changelog content from the [release](https://github.com/nextcloud-libraries/nextcloud-upload/releases) page.
Create a draft release, select the previous tag, click `generate` then paste the content to the `CHANGELOG.md` file
1. adjust the links to the merged pull requests and authors so that the changelog also works outside of GitHub
by running `npm run prerelease:format-changelog`.
This will apply this regex: `by @([^ ]+) in ((https://github.com/)nextcloud-libraries/nextcloud-upload/pull/(\d+))`
Which this as the replacement: `[\#$4]($2) \([$1]($3$1)\)`
2. use the the version as tag AND title (e.g `v4.0.1`)
3. add the changelog content as description (https://github.com/nextcloud-libraries/nextcloud-upload/releases)
- Commit, push and create PR
- Get your PR reviewed and merged
- Create a milestone with the follow-up version at https://github.com/nextcloud-libraries/nextcloud-upload/milestones
- Move all open tickets and PRs to the follow-up
- Close the milestone of the version you release
- Publish the previously drafted release on GitHub
