Releases: appwrite/sdk-for-react-native
Releases · appwrite/sdk-for-react-native
0.13.0
0.12.0
What's Changed
Features
- Introduce object parameters for all methods
Before (positional parameters):
const result = storage.getFilePreview(
'<BUCKET_ID>',
'<FILE_ID>',
undefined, // width
undefined, // height
ImageGravity.Center,
undefined, // quality
undefined, // borderWidth
undefined, // borderColor
undefined, // borderRadius
undefined, // opacity
undefined, // rotation
undefined, // background
ImageFormat.Jpg,
'<TOKEN>'
);
// Required passing undefined for unused optional parameters
After (object arguments):
const result = storage.getFilePreview({
bucketId: '<BUCKET_ID>',
fileId: '<FILE_ID>',
gravity: ImageGravity.Center,
output: ImageFormat.Jpg,
token: '<TOKEN>'
});
// No more undefined values needed!
- Introduce new TablesDB service with standardized conventions like:
createRow
createColumn
listRows
upsertRow
updateRow
deleteRow
incrementRowColumn
decrementRowColumn
createTable
Learn More
- Add new query options:
- Inversion queries
notContains
notSearch
notBetween
notStartsWith
notEndsWith
- Time helper queries
createdBefore
createdAfter
updatedBefore
updatedAfter
- Inversion queries
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.
0.11.0
What's Changed
- Add
incrementDocumentAttribute
anddecrementDocumentAttribute
support toDatabases
service - Add
sequence
support toDocument
model - Fix autocompletion not working for
Document
model even when generic is passed
Full Changelog: 0.10.1...0.11.0
0.10.1
What's Changed
- Fix URL based methods like
getFileViewURL
,getFilePreviewURL
etc. by adding the missingprojectId
to searchParams - Add
gif
to ImageFormat enum
Full Changelog: 0.10.0...0.10.1
0.10.0
What's Changed
- Add: generate file URL methods like
getFilePreviewURL
,getFileViewURL
etc. - Update (breaking): existing methods like
getFilePreview
to download the image instead of returning URLs
Full Changelog: 0.9.2...0.10.0
0.9.2
What's Changed
- fix: remove credentials when devKeys is set by @ChiragAgg5k in #58
Full Changelog: 0.9.1...0.9.2
0.9.1
What's Changed
- chore: add setDevkey and upsertDocument methods by @ChiragAgg5k in #57
Full Changelog: 0.9.0...0.9.1
0.9.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
Full Changelog: 0.7.4...0.9.0
0.7.4
What's Changed
- fix: bump dependencies to resolve PlatformConstants error with Expo 53 by @ChiragAgg5k in #55
Full Changelog: 0.7.3...0.7.4