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
-
Take a look at the migration guide
Changelog
Added
Shared
TableOfContentsService
can now be used to customize the computation ofpublication.tableOfContents()
.Streamer
Navigator
EPUBNavigatorViewController.Configuration.disablePageTurnsWhileScrolling
property 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
tableOfContents
property inmanifest.json
is empty.Changed
R2Shared
,R2Streamer
andR2Navigator
packages are now calledReadiumShared
,ReadiumStreamer
andReadiumNavigator
.RelativeURL
,AbsoluteURL
,HTTPURL
andFileURL
). This is helpful because:download(url: HTTPURL) -> FileURL
.async
functions instead.Shared
Link
andLocator
'shref
are normalized as valid URLs to improve interoperability with the Readium Web toolkits.self
URL of a manifest anymore. However, you can still normalize the HREFs yourselves by callingManifest.normalizeHREFsToSelf()
.Publication.localizedTitle
is now optional, as we cannot guarantee a publication will always have a title.Format
type was introduced to augmentMediaType
with more precise information about the format specifications of anAsset
.Fetcher
was replaced with a simplerContainer
type.PublicationAsset
was replaced byAsset
, which contains aFormat
and access to the underlyingContainer
orResource
.ResourceError
hierarchy was revamped and simplified (seeReadError
). Now it is your responsibility to provide a localized user message for each error case.Link
property key for archive-based publication assets (e.g. an EPUB/ZIP) is nowhttps://readium.org/webpub-manifest/properties#archive
instead ofarchive
.HTTPServer
slightly changed to be more future-proof.ZIPArchiveOpener
is now using ZIPFoundation instead of Minizip, with improved performances when reading ranges ofstored
ZIP entries.consume
closure ofHTTPClient.stream()
can now return an error to abort the HTTP request.HTTPError
has been refactored for improved type safety and a clearer separation of connection errors versus HTTP errors.DefaultHTTPClient
no longer automatically restarts a failedHEAD
request as aGET
to retrieve the response body. If you relied on this behavior, you can implement it using a customDefaultHTTPClientDelegate.httpClient(_:recoverRequest:fromError:)
.Streamer
Streamer
object was deprecated in favor of smaller segregated APIs:AssetRetriever
andPublicationOpener
.Navigator
scroll
preference is now forced totrue
when 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
'shref
when creating aURL
by @mickael-menu in ValidateLink
'shref
when creating aURL
#379R2
prefix by @mickael-menu in DropR2
prefix #412self
link to enable HTTP requests in a RWPM by @mickael-menu in Don't require aself
link to enable HTTP requests in a RWPM #415archive
Link property by @mickael-menu in Renamearchive
Link property #422HTTPServer
API by @mickael-menu in UpdateHTTPServer
API #424AudioParser
by @domkm in EnhanceAudioParser
#414/
prefix for exploded archive HREFs by @mickael-menu in Remove/
prefix for exploded archive HREFs #432HTTPClient
and LCP APIs by @mickael-menu in AsyncHTTPClient
and LCP APIs #438ExplodedArchive
by @domkm in Handle URLs with aliases inExplodedArchive
#441localizedCaseInsensitiveCompare
tolocalizedStandardCompare
by @domkm in ChangelocalizedCaseInsensitiveCompare
tolocalizedStandardCompare
#451Resources
declaration fromReadiumShared
by @mickael-menu in RemoveResources
declaration fromReadiumShared
#481PublicationService.get()
by @mickael-menu in FixPublicationService.get()
#513OPDS1Parser
by @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