Skip to content

v0.99.54

Compare
Choose a tag to compare
@lkrms lkrms released this 24 Sep 05:03
· 314 commits to main since this release
v0.99.54
e351289

Added

Sync

  • Add SyncStoreInterface/SyncStore/Sync methods hasProvider(), hasEntityType() and getEntityType() for completeness
  • Add SyncUtil with getEntityTypeUri()

Changed

Container

  • In Application::exportHar():
    • If no $uuid is given, use the UUID of the current sync run if available when naming the HAR file
    • Export HAR files to their own subdirectory

Http

  • Rename Http to HttpUtil for consistency with other component utility classes

Sync

  • Rename "class resolvers" to "namespace helpers" to widen their scope for features like URI mapping in the future
    • Rename SyncClassResolverInterface to SyncNamespaceHelperInterface, and rename its methods for consistency:
      • entityToProvider() -> getEntityProvider()
      • providerToEntity() -> getProviderEntities()
    • Rename getClassResolver() methods to getNamespaceHelper()
  • Review SyncStoreInterface/SyncStore/Sync:
    • Accept provider signatures in getProviderId()
    • Accept provider IDs in getProvider(), and if the provider is not registered, throw an exception instead of returning null
    • Rename entity type-related methods for clarity:
      • registerEntity() -> registerEntityType()
      • getEntityId() -> getEntityTypeId()
      • getEntityUri() -> getEntityTypeUri() (and do not return null)
      • getEntityPrefix() -> getNamespacePrefix()
  • Rename interfaces:
    • SyncEntityLinkType -> LinkType
    • SyncEntitySource -> EntitySource
    • SyncEntityState -> EntityState
    • SyncErrorType -> ErrorType