Skip to content

Releases: dav-apps/davClassLibrary

v1.3.2

Choose a tag to compare

@Dav2070 Dav2070 released this 16 Sep 17:38

Changelog

  • Update davClassLibrary/DataAccess/SyncManager.cs
    • Fix swapped file path and content type arguments when uploading updated files
    • Use named arguments for file uploads to avoid argument mix-ups
    • Skip creating file objects when the local file is missing
    • Handle failed uploads without an error object to prevent null reference exceptions
  • Update davClassLibrary/Controllers/TableObjectsController.cs
    • Validate file paths before uploading files
    • Return a failed upload result for missing or unreadable files instead of throwing an exception
  • Add davClassLibrary.Tests/DataAccess/UploadFailure.spec.cs
    • Verify that missing files fail without making a network request
    • Verify that synchronization uploads the correct file contents and MIME type
    • Verify that transport failures do not cause a secondary null reference exception

v1.3.1

Choose a tag to compare

@Dav2070 Dav2070 released this 11 Sep 14:58

Changelog

  • Update davClassLibrary/DataAccess/ApiManager.cs
    • Add DownloadPublicFile to download public files without an authorization header
    • Keep authenticated downloads separate from public downloads
  • Update davClassLibrary/DataAccess/SyncManager.cs
    • Fix profile image downloads by using DownloadPublicFile for public image URLs
  • Add davClassLibrary.Tests/DataAccess/ApiManager.spec.cs
    • Verify that public downloads omit the access token and authenticated downloads use the current token
  • Update davClassLibrary/davClassLibrary.csproj
    • Update System.Text.Encoding.CodePages from 10.0.10 to 10.0.12

v1.3

Choose a tag to compare

@Dav2070 Dav2070 released this 09 Aug 11:53

Changelog

  • General
    • Migrate API communication from REST to GraphQL
    • Add GraphQL nuget packages, remove Websockets package & update all other packages
  • Update davClassLibrary/Dav.cs
    • Rename TableIds to TableNames & ParallelTableIds to ParallelTableNames
    • Remove websocket connection handling
  • Update davClassLibrary/Controllers/CheckoutSessionsController.cs
    • Replace REST API implementation with GraphQL
    • Rename CreateCheckoutSession to CreateSubscriptionCheckoutSession
  • Update davClassLibrary/Controllers/SessionsController.cs
    • Replace REST API implementation with GraphQL
    • Remove CreateSession method
    • Update RenewSession and DeleteSession methods for GraphQL
  • Update davClassLibrary/Controllers/TableObjectsController.cs
    • Replace REST API implementation with GraphQL
    • Replace GetTableObject with RetrieveTableObject
    • Update CreateTableObject, UpdateTableObject and DeleteTableObject methods for GraphQL
    • Replace SetTableObjectFile with UploadTableObjectFile
    • Remove GetTableObjectFile method
  • Update davClassLibrary/Controllers/TablesController.cs
    • Replace REST API implementation with GraphQL
    • Replace GetTable with RetrieveTable using table names
  • Update davClassLibrary/Controllers/UsersController.cs
    • Replace REST API implementation with GraphQL
    • Replace GetUser with RetrieveUser
    • Remove GetProfileImageOfUser method
  • Remove davClassLibrary/Controllers/WebsocketConnectionsController.cs
  • Add davClassLibrary/DataAccess/ApiManager.cs
    • Add HTTP and GraphQL client management
    • Add DownloadFile method
  • Update davClassLibrary/DataAccess/SettingsManager.cs
    • Remove fallback support for old jwt and username settings keys
  • Update davClassLibrary/DataAccess/SyncManager.cs
    • Migrate synchronization from REST to GraphQL
    • Change table synchronization from table ids to table names
    • Remove websocket synchronization for real-time table object changes
    • Update table object create, update, delete and file synchronization for GraphQL
  • Add davClassLibrary/Models/Resources.cs
    • Add GraphQL resource models
  • Update davClassLibrary/Types.cs
    • Add GraphQL response types
  • Update davClassLibrary/ErrorCodes.cs
    • Replace numeric API error codes with GraphQL string error codes
  • Update davClassLibrary/Utils.cs
    • Add GraphQL API error handling
    • Rename SortTableIds to SortTableNames and change it to use string table names
  • Update davClassLibrary.Tests/DataAccess/SyncManager.spec.cs
    • Update all tests for changes in controller methods
  • Update davClassLibrary.Tests/Utils.spec.cs
    • Update all tests for SortTableIds for change to SortTableNames

v1.2.5

Choose a tag to compare

@Dav2070 Dav2070 released this 02 Dec 23:35

Changelog

  • Add Id attribute to User models
  • Update SettingsManager with setter and getter for Id

v1.2.4

Choose a tag to compare

@Dav2070 Dav2070 released this 11 Oct 20:20

Changelog

  • Update davClassLibrary/DataAccess/SyncManager.cs
    • Fix a bug in Sync method that caused to update the etag of a table even when not all table objects were successfully downloaded

v1.2.3

Choose a tag to compare

@Dav2070 Dav2070 released this 13 Dec 22:07

Changelog

  • Update davClassLibrary/Utils.cs
    • Fix a bug in HandleApiError which caused a crash when receiving an error from the API without errors in the response body
  • Other changes
    • Update nuget packages in both projects

v1.2.2

Choose a tag to compare

@Dav2070 Dav2070 released this 23 Feb 18:13

Changelog

  • Fix a small bug with saving the correct new table etag when updating a table object file with new ext on the server
  • Fix a bug which caused a crash when the deletion of a TableObject on the server fails and returns no errors

v1.2.1

Choose a tag to compare

@Dav2070 Dav2070 released this 10 Feb 18:42

Changelog

  • Update davClassLibrary/Utils.cs
    • Fix a bug that caused an infinite loop in SortTableIds
  • Update davClassLibrary.Tests/Utils.spec.cs
    • Add more tests for SortTableIds method

v1.2

Choose a tag to compare

@Dav2070 Dav2070 released this 05 Feb 13:32

Changelog

  • Add davClassLibrary/Controllers/CheckoutSessionsController.cs
    • Add CheckoutSessionsController class with CreateCheckoutSession method
    • Add CreateCheckoutSessionResponse and CreateCheckoutSessionResponseData classes

v1.1.2

Choose a tag to compare

@Dav2070 Dav2070 released this 02 Feb 21:02

Changelog

  • Update davClassLibrary/Utils.cs
    • Rewrite and simplify SortTableIds method
  • Update davClassLibrary.Tests/Utils.cs
    • Add more tests for SortTableIds method