OnTopic 5.0.0 includes a lot of breaking changes, including types, members, and parameters that have been renamed or removed. To aid in migration, we should ensure that these have a placeholders for their previous signature marked with [Obsolete]. This will make it easier to migrate code by providing clear instructions to implementations referring to the legacy signatures.
Contents
- Types
- Members
- Parameters
- Not Possible (or Necessary?
Types
Renamed
Note: The TopicCollection and ReadOnlyTopicCollection cannot be marked as [Obsolete] as they have been subsequently replaced with non-keyed collections with the same names.
Removed
Replaced
Members
Renamed
Removed
Parameters
Not Possible (or Necessary?)
The following cannot be included because the new types are implicitly compatible with the old types, thus introducing an ambiguous reference.
OnTopic 5.0.0 includes a lot of breaking changes, including types, members, and parameters that have been renamed or removed. To aid in migration, we should ensure that these have a placeholders for their previous signature marked with
[Obsolete]. This will make it easier to migrate code by providing clear instructions to implementations referring to the legacy signatures.Contents
Types
Renamed
[Follow(Relationships)]renamed to[Include(AssociationTypes)](7c150d8)Relationshipsrenamed toAssociationTypes(78600fd)[Relationship(RelationshipType)]renamed to[Collection(CollectionType)](f84ae66)RelationshipTyperenamed toCollectionType(1daf799)AttributeValueCollectionrenamed toAttributeCollection(f51407a)AttributeValuerenamed toAttributeRecord(f51407a){Delete}EventArgsrenamed toTopic{Delete}EventArgs(37b38f5)TopicCollectiontoKeyedTopicCollection(826b93c)*TopicCollection<T>toKeyedTopicCollection<T>(826b93c)ReadOnlyTopicCollectiontoReadOnlyKeyedTopicCollection(826b93c)*ReadOnlyTopicCollection<T>toReadOnlyKeyedTopicCollection<T>(826b93c)Removed
AttributeTypeDescriptorremoved;AttributeDescriptorshould be used instead (7b00274)Replaced
RelatedTopicCollectionreplaced withTopicMultiMap(66ccd9d)NamedTopicCollectionreplaced withKeyValuesPair<T>(66ccd9d)Members
Renamed
Topic.DerivedTopicrenamed toBaseTopic(2486ab2)AttributeKeyAttribute.Valuerenamed toKeyTopicRepository.GetContentTypeDescriptors(ContentTypeDescriptor)renamed toSetContentTypeDescriptors()(a078fc8)Topic.Relationships(was aRelatedTopicCollection, now aTopicRelationshipMultiMap) (66ccd9d)SetTopic()renamed toSetValue()(34a8c52)GetAllTopics()renamed toGetAllValues()(34a8c52)GetTopics()renamed toGetValues()(34a8c52)RemoveTopic()renamed toRemove()(34a8c52)ClearTopics()renamed toClear()(34a8c52)TopicRepositoryRenameEventrenamed toTopicRenamed(37b38f5)DeleteEventrenamed toTopicDeleted(37b38f5)MoveEventrenamed toTopicMoved(37b38f5)INavigationViewModel.CurrentKeyreplaced withCurrentWebPath(8fd4d80, 31475d2)Removed
Topic.Descriptionremoved, in favor ofAttributes.GetValue()(6c3a2e9)ReadOnlyTopicCollection.FromList()removed, in favor of constructor (b013e38)ReadOnlyKeyedTopicCollection<T>.FromList()removed, in favor of constructor (b013e38)StaticTypeLookupService.DefaultTyperemoved, in favor ofLookup()fallbacks (ab4253d)IRouteBuilder.MapTopicRoute()removed, in favor ofIEndpointRouteBuilder.MapTopicRoute()(6be993b, 826b93c)….GetTopic()was moved toKeyedCollection(826b93c), no longer supported by:TopicCollection(826b93c)ReadOnlyTopicCollection(826b93c)ITopicViewModel.IsHiddenremoved, since hidden associations are not mapped (68a4e83)Parameters
TopicFactory.Create()parameter order updated, withidmoved afterparent(69caaa2)ITopicRepository(and implementations)Load()parameterisRecursivemoved after newreferenceTopicparameter (704c8de)Save()parameterisDraftparameter removed (59a7716)INavigationTopicViewModel<T>.IsSelected(uniqueKey)parameter renamed towebPath(7a6e7ef)Not Possible (or Necessary?)
The following cannot be included because the new types are implicitly compatible with the old types, thus introducing an ambiguous reference.
ITopicMappingServiceMapAsync(Topic, Relationships)updated to `MapAsync(Topic, AssociationTypes) (78600fd)MapAsync(…, ConcurrentDictionary<int, object>)updated toMapAsync(…, MappedTopicCache)(d8e3c68)