Skip to content

Commit

Permalink
Merge pull request #265 from DevinoSolutions/fix/test-review
Browse files Browse the repository at this point in the history
Fix/test-review
  • Loading branch information
MedAmine1212 authored Feb 17, 2025
2 parents 6957baa + 1fce100 commit 7db1069
Show file tree
Hide file tree
Showing 27 changed files with 1,456 additions and 1,812 deletions.
3 changes: 2 additions & 1 deletion .github/pull_request_template.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,4 +22,5 @@ Fixes # (issue)
- [ ] I have made corresponding changes to the documentation
- [ ] My changes generate no new warnings
- [ ] I have added tests that prove my fix is effective or that my feature works
- [ ] I have updated the CHANGELOG.md file
- [ ] I have updated the `package.json` file with the new version
- [ ] I have updated the `CHANGELOG.md` file for the new version
6 changes: 3 additions & 3 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ jobs:
- name: Install dependencies
if: steps.cache-primes.outputs.cache-hit != 'true'
run: pnpm install --frozen-lockfile
run: pnpm install

- name: Prettier Check
run: pnpm run prettier-check
Expand Down Expand Up @@ -68,7 +68,7 @@ jobs:
- name: Install dependencies
if: steps.cache-primes.outputs.cache-hit != 'true'
run: pnpm install --frozen-lockfile
run: pnpm install

- name: Run Tests with Coverage
run: pnpm run test:coverage
Expand Down Expand Up @@ -146,7 +146,7 @@ jobs:
- name: Install dependencies
if: steps.cache-primes.outputs.cache-hit != 'true'
run: pnpm install --frozen-lockfile
run: pnpm install

- name: Build
run: pnpm run build
Expand Down
36 changes: 34 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,39 @@
# @devino.solutions/upup
# upup-react-file-uploader

## 1.0.0

### Major changes
### 1.0.0 Major changes

- Initial release

## 1.0.1

### 1.0.1 Major changes

- Bug fixes

## 1.0.2

### 1.0.2 Major changes

- Bug fixes

## 1.1.0

### Features

- Added new `customProps` prop for passing custom provider-specific configurations
- Added `enableAutoCorsConfig` prop to control automatic CORS configuration for S3 providers

### Fixes

- Resolved file preview rendering issues
- Fixed unmet peer dependencies warning
- Replaced problematic install command in CI/CD pipelines
- Improved file preview styling layout
- Enhanced default warning and error message styling
- Minor styling fixes and consistency improvements

### Maintenance

- Updated build scripts and documentation
12 changes: 6 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,25 +15,25 @@ Install upup with your favourite package manager
### npm

```bash
npm install @devino.solutions/upup
npm install upup-react-file-uploader
```

### yarn

```bash
yarn add @devino.solutions/upup
yarn add upup-react-file-uploader
```

### pnpm

```bash
pnpm add @devino.solutions/upup
pnpm add upup-react-file-uploader
```

### bun

```bash
bun install @devino.solutions/upup
bun install upup-react-file-uploader
```

## Logic Diagram
Expand All @@ -49,7 +49,7 @@ The example below shows a minimal configuration for AWS S3 upload, using the [Up
### Client Side

```tsx
import { UpupUploader, UpupProvider } from '@bassem97/upup'
import { UpupUploader, UpupProvider } from 'upup-react-file-uploader'

export default function Uploader() {
return (
Expand Down Expand Up @@ -78,7 +78,7 @@ export default function App() {
### Server Side

```ts
import { s3GeneratePresignedUrl } from '@devino.solutions/upup/server'
import { s3GeneratePresignedUrl } from 'upup-react-file-uploader/server'

app.post('/api/upload-token', async (req, res) => {
try {
Expand Down
5 changes: 2 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
{
"name": "@devino.solutions/upup",
"name": "upup-react-file-uploader",
"author": "Devino Solutions",
"license": "MIT",
"version": "1.0.2",
"version": "1.1.0",
"publishConfig": {
"access": "public"
},
Expand Down Expand Up @@ -176,7 +176,6 @@
"framer-motion": "^12.0.6",
"load-script": "^2.0.0",
"pako": "^2.1.0",
"react-file-viewer": "^1.2.1",
"react-icons": "^4.12.0",
"react-toastify": "^11.0.3",
"react-webcam": "^7.2.0",
Expand Down
Loading

0 comments on commit 7db1069

Please sign in to comment.