v3.3.1
Breaking changes
The types for EpubBook.Content.xxx.Local
, EpubBook.Content.xxx.Remote
, EpubBookRef.Content.xxx.Local
, and EpubBookRef.Content.xxx.Remote
have been changed from Dictionary<string, xxx>
to ReadOnlyCollection<xxx>
.
The following substitutions are provided for the dictionary operations:
- for
EpubBook
:EpubBook.Content.xxx.Local.ContainsKey(key)
→EpubBook.Content.xxx.ContainsLocalFileWithKey(key)
;EpubBook.Content.xxx.Local[key]
→EpubBook.Content.xxx.GetLocalFileByKey(key)
;EpubBook.Content.xxx.Local.TryGetValue(key, out yyy)
→EpubBook.Content.xxx.TryGetLocalFileByKey(key, out yyy)
.
- for
EpubBookRef
:EpubBookRef.Content.xxx.Local.ContainsKey(key)
→EpubBookRef.Content.xxx.ContainsLocalFileRefWithKey(key)
;EpubBookRef.Content.xxx.Local[key]
→EpubBookRef.Content.xxx.GetLocalFileRefByKey(key)
;EpubBookRef.Content.xxx.Local.TryGetValue(key, out yyy)
→EpubBookRef.Content.xxx.TryGetLocalFileRefByKey(key, out yyy)
.
New features
- Content file collections (
EpubBook.Content
andEpubBookRef.Content
) now provide access to their files both by file keys as well as absolute file paths which eliminates the need to iterate the collection to find a file with a given file path. For example, forEpubBook.Content
:EpubBook.Content.xxx.ContainsLocalFileWithFilePath(filePath)
;EpubBook.Content.xxx.GetLocalFileByFilePath(filePath)
;EpubBook.Content.xxx.TryGetLocalFileByFilePath(filePath, out file)
.
Bug fixes
- Fix for constructing navigation items when OPF and navigation files are located in different subdirectories (#91).