Skip to content

v3.3.1

Compare
Choose a tag to compare
@github-actions github-actions released this 19 May 06:45
· 21 commits to master since this release

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 and EpubBookRef.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, for EpubBook.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).