Skip to content

Upload improve #99

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

Merged
merged 42 commits into from
Apr 11, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
42 commits
Select commit Hold shift + click to select a range
f2ce24b
feat: add upload progress callback and abort signal support
manu4543 Apr 2, 2025
10ae4cd
feat: implement abort signal support and upload progress tracking in …
manu4543 Apr 2, 2025
b4daa29
add test cases for onProgress and abort
manu4543 Apr 2, 2025
09c47d2
expose url, upload static functions. Other updates
manu4543 Apr 3, 2025
990cf29
update test cases
manu4543 Apr 3, 2025
b15ed76
refactor: update test descriptions to use 'src' instead of 'path'
manu4543 Apr 3, 2025
74b3073
refactor: update export types and remove unused ImageKitOptions inter…
manu4543 Apr 4, 2025
9341aa2
working upload test cases
manu4543 Apr 4, 2025
af7bef3
update node js version and build libs
manu4543 Apr 5, 2025
9ad887e
fix: enable terser for code minification in rollup configuration
manu4543 Apr 5, 2025
c2edc0b
fix: update codecov version to 3.8.3 and modify coverage reporting sc…
manu4543 Apr 5, 2025
cb7c135
ci: add Codecov upload step to GitHub Actions workflow
manu4543 Apr 5, 2025
b40208d
fix: remove coverage reporting step from startSampleApp script
manu4543 Apr 5, 2025
990b74d
test: add upload error handling tests for abort signal and invalid re…
manu4543 Apr 5, 2025
4d30974
improve test coverage
manu4543 Apr 5, 2025
bbe982b
chore: update package version to 5.0.0.beta.1 and add .npmignore
manu4543 Apr 6, 2025
ed16142
refactor: remove IKResponse interface and update related imports; int…
manu4543 Apr 6, 2025
c989e4a
refactor: update package name to @imagekit/javascript and modify desc…
manu4543 Apr 6, 2025
0b1463e
chore: add publishConfig with beta tag in package.json
manu4543 Apr 6, 2025
aae9934
update readme
manu4543 Apr 6, 2025
b7018e2
refactor: rename signal to abortSignal in upload options and update J…
manu4543 Apr 6, 2025
200fb8f
fix: update documentation link to point to the live ImageKit site
manu4543 Apr 6, 2025
a7655f4
refactor: re-export all interfaces for improved TypeDoc documentation
manu4543 Apr 6, 2025
7e3d812
fix links in JSDocs
manu4543 Apr 6, 2025
064596c
fix: correct version format in package.json and package-lock.json
manu4543 Apr 6, 2025
27a92f2
fix: update version to 5.0.0-beta.2 and adjust publish configuration
manu4543 Apr 6, 2025
b59f621
fix: update version to 5.0.0-beta.3 and enhance npm publish workflow
manu4543 Apr 6, 2025
8d31d57
test: add assertion for requestId in file upload response
manu4543 Apr 7, 2025
42345c3
refactor: remove unused error messages and delete test data file
manu4543 Apr 7, 2025
6b32005
test: add unit tests for buildTransformationString function
manu4543 Apr 7, 2025
814af9d
fix: update version to 5.0.0-beta.4 in package.json and package-lock.…
manu4543 Apr 7, 2025
c6b9f80
fix: update version to 5.0.0-beta.5 in package.json and package-lock.…
manu4543 Apr 7, 2025
0efc78d
fix: make encoding property optional in overlay interfaces
manu4543 Apr 7, 2025
4721a80
fix: update version to 5.0.0-beta.6 in package.json and package-lock.…
manu4543 Apr 8, 2025
dc4e067
Revert "fix: update version to 5.0.0-beta.6 in package.json and packa…
manu4543 Apr 8, 2025
32c07ce
fix: update version to 5.0.0-beta.6 in package.json and package-lock.…
manu4543 Apr 8, 2025
e6308cb
fix: replace formData.append with formData.set for upload options
manu4543 Apr 8, 2025
63ebc6d
Update src/interfaces/UploadOptions.ts
imagekitio Apr 10, 2025
d8a2d11
Update src/interfaces/UploadOptions.ts
imagekitio Apr 10, 2025
d3e5718
fix: change imports to type imports for better type checking
manu4543 Apr 10, 2025
b76ba5e
fix: update version to 5.0.0 in package.json and package-lock.json
manu4543 Apr 11, 2025
3153f03
fix: remove src from files array in package.json
manu4543 Apr 11, 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
5 changes: 4 additions & 1 deletion .babelrc
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
{
"plugins": ["@babel/plugin-proposal-class-properties"],
"plugins": [
["@babel/plugin-transform-class-properties", { "loose": true }],
"@babel/plugin-transform-optional-chaining"
],
"presets": [
"@babel/preset-typescript",
[
Expand Down
5 changes: 3 additions & 2 deletions .github/workflows/nodejs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:

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

steps:
- uses: actions/checkout@v1
Expand All @@ -26,6 +26,7 @@ jobs:
npm install
npm run build
npm run test
npm run report-coverage
env:
CI: true
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v3
16 changes: 13 additions & 3 deletions .github/workflows/npmpublish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:

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

steps:
- uses: actions/checkout@v1
Expand All @@ -35,14 +35,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
run: |
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
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,5 @@ dist
.nyc_output
coverage.lcov
coverage
out-tsc
out-tsc
docs
4 changes: 2 additions & 2 deletions .mocharc.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"coverage": true,
"require": ["esm", "./babel-register.js"],
"require": ["./babel-register.js"],
"exit": true,
"timeout": "40000"
}
}
1 change: 1 addition & 0 deletions .npmignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
package-lock.json
531 changes: 14 additions & 517 deletions README.md

Large diffs are not rendered by default.

Loading