Releases: appwrite/sdk-for-web
Releases · appwrite/sdk-for-web
19.0.0
What's Changed
Features
- Introduce object parameters for all methods
Before (positional parameters):
const result = storage.getFilePreview(
'<BUCKET_ID>',
'<FILE_ID>',
0, // width
0, // height
ImageGravity.Center, // gravity
-1, // quality
0, // borderWidth
'', // borderColor
0, // borderRadius
0, // opacity
-360, // rotation
'', // background
ImageFormat.Jpg, // output
'<TOKEN>' // token
);
// Required passing undefined for unused optional parameters
After (object parameters):
const result = storage.getFilePreview({
bucketId: '<BUCKET_ID>',
fileId: '<FILE_ID>',
output: ImageFormat.Jpg,
token: '<TOKEN>'
});
// No more undefined values needed!
- Introduce new
TablesDB
service with standardized conventions likecreateRow
,createColumn
etc. Learn More - Add new query options:
notContains
,notSearch
,notBetween
etc.
Improvements
- Add parameter descriptions to doc comments
- Add deprecated tags to position-based parameter methods
- Add deprecated tags to legacy
Database
service and its methods
Note: Deprecated methods remain fully supported but may be removed in future versions.
Full Changelog: 18.2.0...19.0.0
18.2.0
What's Changed
- Add
incrementDocumentAttribute
anddecrementDocumentAttribute
support toDatabases
service - Add
gif
support toImageFormat
enum - Fix undefined
fileParam
error inchunkedUpload
method - Fix autocompletion not working for
Document
model even when generic is passed
Full Changelog: 18.1.1...18.2.0
18.1.1
What's Changed
- fix: remove credentials when devKeys is set by @ChiragAgg5k in #127
Full Changelog: 18.1.0...18.1.1
18.1.0
What's Changed
- chore: add setDevKey and upsetDocument method by @ChiragAgg5k in #126
Full Changelog: 18.0.0...18.1.0
18.0.0
What's Changed
- Add
<REGION>
to doc examples due to the new multi region endpoints - Remove
Gif
from ImageFormat enum - Remove
search
param fromlistExecutions
method - Add
token
param togetFilePreview
andgetFileView
for File tokens usage - Improve CORS error catching in
client.call
method
Full Changelog: 17.0.2...18.0.0
17.0.2
17.0.1
What's Changed
- remove unnecessary titles from method descriptions.
- fix duplicate adding of payload params.
- removed unnecessary awaits and asyncs.
- ensure AppwriteException response is always string.
New Contributors
- @ChiragAgg5k made their first contribution in #122
Full Changelog: 17.0.0...17.0.1