Skip to content
Merged

V5 #172

Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
21 commits
Select commit Hold shift + click to select a range
98be21d
inital commit
manu4543 May 7, 2025
00dfe6c
Update npm publish workflow and improve Image component documentation
manu4543 May 7, 2025
3d08a74
Remove Babel configuration file
manu4543 May 7, 2025
ae9546c
Bump version to 5.0.0-beta.1 in package.json and package-lock.json
manu4543 May 7, 2025
6e599d6
add test case
manu4543 May 8, 2025
f91a89b
Refactor SSR configuration in react-router to maintain server-side re…
manu4543 May 8, 2025
27fcc22
Add comment to clarify CSR workaround in CSR component
manu4543 May 8, 2025
4b71974
Remove unused ImageClient component and clean up routes in CSR and SSR
manu4543 May 8, 2025
f20cf44
Add sizes prop to Image component and update responsive behavior in B…
manu4543 May 8, 2025
d4ab032
Refactor CI workflows to enable end-to-end testing with Playwright an…
manu4543 May 8, 2025
899c689
test should fail
manu4543 May 8, 2025
d7bb67c
revert
manu4543 May 8, 2025
dda2a90
remove package-lock.json
manu4543 May 8, 2025
fb0394f
update gitignore
manu4543 May 8, 2025
7a3f327
Update package name in package-lock.json to @imagekit/react
manu4543 May 8, 2025
8cba459
fix test cases, move lazy after user props
manu4543 May 8, 2025
19dd9c2
update readme
manu4543 May 8, 2025
01c3343
Enhance documentation for Image and Video components; update transfor…
manu4543 May 8, 2025
efb9489
Update package and snapshot files for @imagekit/react
manu4543 May 9, 2025
b7cb883
Remove unnecessary blank lines in IKImageProps type definition
manu4543 May 9, 2025
f684b5d
Bump version to 5.0.0; update dependencies and changelog for release
manu4543 May 9, 2025
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
10 changes: 0 additions & 10 deletions .babelrc

This file was deleted.

71 changes: 7 additions & 64 deletions .github/workflows/nodejs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ jobs:

strategy:
matrix:
node-version: [12.x]
node-version: [20.x]

steps:
- uses: actions/checkout@v1
Expand All @@ -18,74 +18,17 @@ jobs:
with:
node-version: ${{ matrix.node-version }}

- name: Setup module and run unit tests
run: |
npm install
# npm run test:ci
env:
CI: true
REACT_APP_PUBLIC_KEY: ${{ secrets.ik_public_key }}
REACT_APP_PRIVATE_KEY: ${{ secrets.ik_private_key }}
REACT_APP_URL_ENDPOINT: ${{ secrets.ik_url_endopint }}

e2e:
runs-on: ubuntu-latest

strategy:
matrix:
node-version: [12.x]

steps:
- uses: actions/checkout@v1

- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}

- name: Setup module
- name: Build and Test
run: |
npm install
npm run build
npm pack
- name: build test-app
run: |
cd tests/test-app
echo REACT_APP_URL_ENDPOINT = ${{ secrets.ik_url_endopint }} > .env;
echo REACT_APP_PUBLIC_KEY = ${{ secrets.ik_public_key }} >> .env;
echo REACT_APP_PRIVATE_KEY = ${{ secrets.ik_private_key }} >> .env;
echo REACT_APP_AUTHENTICATION_ENDPOINT = 'http://localhost:4001/auth' >> .env;
npm install && npm install ../../imagekitio*.tgz --force && npm run build
cd server
echo PRIVATE_KEY = ${{ secrets.ik_private_key }} >> .env;
cd test-app
npm install
npm install ../imagekit-react-*.tgz --no-save
npx playwright install --with-deps
npm run test:e2e
env:
CI: true
REACT_APP_PUBLIC_KEY: ${{ secrets.ik_public_key }}
REACT_APP_PRIVATE_KEY: ${{ secrets.ik_private_key }}
REACT_APP_URL_ENDPOINT: ${{ secrets.ik_url_endopint }}

- name: Run E2E tests
uses: cypress-io/github-action@v4
with:
start: npm run serve:test-app
wait-on: 'http://localhost:4000, http://localhost:4001'
env:
DEBUG: 'cypress:server:browsers:electron'
CI: true
REACT_APP_PUBLIC_KEY: ${{ secrets.ik_public_key }}
REACT_APP_PRIVATE_KEY: ${{ secrets.ik_private_key }}
REACT_APP_URL_ENDPOINT: ${{ secrets.ik_url_endopint }}
REACT_APP_AUTHENTICATION_ENDPOINT: 'http://localhost:4001/auth'

- name: tar workspace
if: always()
run: |
tar -cf build.tar --exclude=./build.tar .
- name: Archive build details
if: always()
uses: actions/upload-artifact@v4
with:
name: e2e-archive
path: build.tar
retention-days: 1

35 changes: 24 additions & 11 deletions .github/workflows/npmpublish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,24 +10,27 @@ jobs:

strategy:
matrix:
node-version: [12.x]
node-version: [20.x]

steps:
- uses: actions/checkout@v1
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}
- name: npm install, build, and test
- name: Build and Test
run: |
npm i
# npm run test:ci
npm install
npm run build
npm pack
cd test-app
npm install
npm install ../imagekit-react-*.tgz --no-save
npx playwright install --with-deps
npm run test:e2e
env:
CI: true
REACT_APP_PUBLIC_KEY: ${{ secrets.ik_public_key }}
REACT_APP_PRIVATE_KEY: ${{ secrets.ik_private_key }}
REACT_APP_URL_ENDPOINT: ${{ secrets.ik_url_endopint }}


publish:
needs: build
Expand All @@ -36,14 +39,24 @@ jobs:
- uses: actions/checkout@v1
- uses: actions/setup-node@v1
with:
node-version: 12
node-version: 20
registry-url: https://registry.npmjs.org/
- name: npm publish
- name: NPM Publish
run: |
npm i
npm install
npm run build
npm config set //registry.npmjs.org/:_authToken=$NODE_AUTH_TOKEN
npm publish
# print the NPM user name for validation
npm whoami
VERSION=$(node -p "require('./package.json').version" )
# Only publish stable versions to the latest tag
if [[ "$VERSION" =~ ^[^-]+$ ]]; then
NPM_TAG="latest"
else
NPM_TAG="beta"
fi
echo "Publishing $VERSION with $NPM_TAG tag."
npm publish --tag $NPM_TAG --access public
env:
NODE_AUTH_TOKEN: ${{secrets.npm_token}}
CI: true
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,4 @@ lib
dist
coverage
.DS_Store
*.tgz
1 change: 1 addition & 0 deletions .npmignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
package-lock.json
23 changes: 23 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
## 5.0.0

This is a major release that includes breaking changes. Please refer to the [official documentation](https://imagekit.io/docs/integration/react) for up-to-date usage instructions.

## 4.3.0

- Added support for React version 19 by [@ankur-dwivedi](https://github.com/ankur-dwivedi) in [#171](https://github.com/imagekit-developer/imagekit-react/pull/171)

**Full Changelog**: [v4.2.0...v4.3.0](https://github.com/imagekit-developer/imagekit-react/compare/4.2.0...4.3.0)

## 4.2.0

- Added `checks` parameter by [@imagekitio](https://github.com/imagekitio) in [#161](https://github.com/imagekit-developer/imagekit-react/pull/161)

**Full Changelog**: [v4.1.0...v4.2.0](https://github.com/imagekit-developer/imagekit-react/compare/4.1.0...4.2.0)

## 4.1.0

- Release details not specified.

**Full Changelog**: [v4.0.0...v4.1.0](https://github.com/imagekit-developer/imagekit-react/compare/4.0.0...4.1.0)

For the complete list of releases and changes, visit the [GitHub Releases Page](https://github.com/imagekit-developer/imagekit-react/releases).
28 changes: 0 additions & 28 deletions CONTRIBUTING.md

This file was deleted.

Loading