3.0.0 #536
mickael-menu
announced in
Announcements
3.0.0
#536
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Take a look at the migration guide
Changelog
Added
Shared
TableOfContentsServicecan now be used to customize the computation ofpublication.tableOfContents().Streamer
Navigator
EPUBNavigatorViewController.Configuration.disablePageTurnsWhileScrollingproperty disables horizontal swipes for navigating to previous or next resources when scroll mode is enabled. When set totrue, you must implement your own mechanism to move to the next resource (contributed by @alecdhansen).LCP
tableOfContentsproperty inmanifest.jsonis empty.Changed
R2Shared,R2StreamerandR2Navigatorpackages are now calledReadiumShared,ReadiumStreamerandReadiumNavigator.RelativeURL,AbsoluteURL,HTTPURLandFileURL). This is helpful because:download(url: HTTPURL) -> FileURL.asyncfunctions instead.Shared
LinkandLocator'shrefare normalized as valid URLs to improve interoperability with the Readium Web toolkits.selfURL of a manifest anymore. However, you can still normalize the HREFs yourselves by callingManifest.normalizeHREFsToSelf().Publication.localizedTitleis now optional, as we cannot guarantee a publication will always have a title.Formattype was introduced to augmentMediaTypewith more precise information about the format specifications of anAsset.Fetcherwas replaced with a simplerContainertype.PublicationAssetwas replaced byAsset, which contains aFormatand access to the underlyingContainerorResource.ResourceErrorhierarchy was revamped and simplified (seeReadError). Now it is your responsibility to provide a localized user message for each error case.Linkproperty key for archive-based publication assets (e.g. an EPUB/ZIP) is nowhttps://readium.org/webpub-manifest/properties#archiveinstead ofarchive.HTTPServerslightly changed to be more future-proof.ZIPArchiveOpeneris now using ZIPFoundation instead of Minizip, with improved performances when reading ranges ofstoredZIP entries.consumeclosure ofHTTPClient.stream()can now return an error to abort the HTTP request.HTTPErrorhas been refactored for improved type safety and a clearer separation of connection errors versus HTTP errors.DefaultHTTPClientno longer automatically restarts a failedHEADrequest as aGETto retrieve the response body. If you relied on this behavior, you can implement it using a customDefaultHTTPClientDelegate.httpClient(_:recoverRequest:fromError:).Streamer
Streamerobject was deprecated in favor of smaller segregated APIs:AssetRetrieverandPublicationOpener.Navigator
scrollpreference is now forced totruewhen rendering vertical text (e.g. CJK vertical). See this discussion for the rationale.LCP
Fixed
Shared
HTTPClient.download()when the device storage is full.Navigator
page-spread-*property. This is the default behavior in major reading apps like Apple Books.OPDS
Commits
Link'shrefwhen creating aURLby @mickael-menu in ValidateLink'shrefwhen creating aURL#379R2prefix by @mickael-menu in DropR2prefix #412selflink to enable HTTP requests in a RWPM by @mickael-menu in Don't require aselflink to enable HTTP requests in a RWPM #415archiveLink property by @mickael-menu in RenamearchiveLink property #422HTTPServerAPI by @mickael-menu in UpdateHTTPServerAPI #424AudioParserby @domkm in EnhanceAudioParser#414/prefix for exploded archive HREFs by @mickael-menu in Remove/prefix for exploded archive HREFs #432HTTPClientand LCP APIs by @mickael-menu in AsyncHTTPClientand LCP APIs #438ExplodedArchiveby @domkm in Handle URLs with aliases inExplodedArchive#441localizedCaseInsensitiveComparetolocalizedStandardCompareby @domkm in ChangelocalizedCaseInsensitiveComparetolocalizedStandardCompare#451Resourcesdeclaration fromReadiumSharedby @mickael-menu in RemoveResourcesdeclaration fromReadiumShared#481PublicationService.get()by @mickael-menu in FixPublicationService.get()#513OPDS1Parserby @mickael-menu in Fix data race inOPDS1Parser#529New Contributors
Full Changelog: 2.7.4...3.0.0
This discussion was created from the release 3.0.0.
Beta Was this translation helpful? Give feedback.
All reactions