Releases: appwrite/sdk-for-cli
Releases · appwrite/sdk-for-cli
9.0.1
9.0.0
8.3.0
What's Changed
- Feat: Add support for
appwrite.config.jsonfile- All new projects will be initialized with this configuration file
- Resolves bundler conflicts (e.g., Vite) that incorrectly interpret
.jsonfiles as library imports
- Add
incrementDocumentAttributeanddecrementDocumentAttributesupport toDatabasesservice - Type generation fixes:
- Fix relationships using the relatedCollection's id instead of name
- Update auto generated comment to show relative path instead of absolute path
Note: The existing
appwrite.jsonfile remains fully supported for backward compatibility
Full Changelog: 8.2.2...8.3.0
8.2.2
What's Changed
- Fix object comparison logic when pushing settings
- Type generation fixes:
- Dart: Fixed import casing to snake_case, removed
extends Documentand hardcoded attributes, removed unnecessary imports - Java: Fixed indentation to 4 spaces, updated imports to
java.util.Objects, fixed enum casing in strict mode as per Oracle official docs - Javascript: Updated optional values formatting from
|nullto| null - Kotlin: Fixed indentation to 4 spaces per Kotlinlang official docs
- PHP: Fixed indentation to 4 spaces per PHP Fig official docs
- Swift: Fixed indentation to 4 spaces, improved
decodeIfPresentusage for optionals, added missingpublictoinitmethod - Typescript: Fixed indentation to 4 spaces per Typescript coding guidelines
- Dart: Fixed import casing to snake_case, removed
Full Changelog: 8.2.1...8.2.2
8.2.1
What's Changed
- Added
--with-variablesoption to the Sites command for adding/updating environment variables - Fixed Functions environment variables not being pushed with
--with-variables - Removed
awaitPoolswhen wiping old variables
Note: Storing environment variables in the
varsattribute ofappwrite.jsonis now deprecated due to security risks. Variables are now synced directly from the.envfile in the root directory of the function’s or site’s folder.
Full Changelog: 8.2.0...8.2.1
8.2.0
What's Changed
- Add
encryptattribute support - Add improved warnings on attribute recreation and deletion
- Fix
nullparsing error when using create attribute command - Type generation fixes and improvements:
- Add
--strict/-sflag toappwrite typescommand to generate types in strict mode. This automatically converts the casing of attributes to match the language's naming conventions - Add automatic package import to
dartlanguage which uses package detection to import the correct package - Add
Documentclass extension to generated types indartandjslanguage to support internal attributes like$idand$collectionIdetc. - Add proper enum support to
jslanguage - Fix indentation in
java,kotlinandswiftto use 2 spaces instead of 4 for consistency across all languages - Fix doc comments to use correct syntax in various languages (for eg.
///instead of/*) - Update enums in
dartto use lowerCamelCase instrictmode as per constant_identifier_names
- Add
Full Changelog: 8.1.1...8.2.0
8.1.1
What's Changed
- Fix circular dependency issue due to usage of
successmethod inutils.jsfile fromparser.jsfile - Type generation fixes:
- Add ability to generate types directly to a specific file by passing a file path to
appwrite types <output_path>, instead of just a directory - Fix non-required attributes to not be null if default value is provided
- Fix
Modelsimport error - Improve formatting and add auto-generated comments
- Add ability to generate types directly to a specific file by passing a file path to
Full Changelog: 8.1.0...8.1.1
8.1.0
What's Changed
- Add multi-region support to
initcommand - Update
initcommand to clear previous configuration inappwrite.json - Update localConfig to store multi-region endpoint
- Fix throw error when creating unknown attribute instead of timing out
- Fix equal comparison of large numbers and BigNumber instances using proper equality checks
- Fix duplication of reasons when comparing localConfig with remoteConfig
- Fix
firstOrNull()tofirstOrNullin types generation for dart - Fix unknown attribute
doubleerror during types generation - Refactor to use
isCloud()method consistently
Full Changelog: 8.0.2...8.1.0
8.0.2
What's Changed
- Add Type generation fixes:
- Properly handle enum attributes in dart, java and kotlin
- Fix initialisation of null attributes in dart's
fromMapmethod - Fix relationships and enums in swift
Full Changelog: 8.0.1...8.0.2
8.0.1
What's Changed
- Add
resourceIdandresourceTypeattributes tocreateRedirectRule - Add
providerReferencetovcscommand for getting repository contents - Add warning comment to bulk
updateDocumentsmethod - Fix type generation for enums in Typescript and PHP language
Full Changelog: 8.0.0...8.0.1