Repository navigation
Release Next v3.0.0-next.21
Pre-release@cloudpdf/contract@3.0.0-next.21
Minor Changes
- #956 by @bobsingor –
tenants.update(PATCH /v1/tenants/:tenantId) sets a tenant'sfeatures, the server modules it may use, and tenant records carryfeatures.TenantFeature({ id, stopped?: 'cap' }) is a named component.
@cloudpdf/sdk@3.0.0-next.21
Minor Changes
- #956 by @bobsingor –
tenants.update({ tenantId, features })sets the server modules a tenant may use, and tenant records havefeatures.
@cloudpdf/server@3.0.0-next.21
Minor Changes
-
#964 by @bobsingor – A Postgres connection that fails while idle in the pool no longer crashes the server. A database restart or failover,
pg_terminate_backend, or a proxy closing the connection used to reach Node as an uncaughterrorevent frompg.Pool. The pool now drops that connection and opens a new one for the next query.createPostgresDbtakesonIdleConnectionErrorto report these, andcloudpdf-serverlogs each one's message as a warning. -
#955 by @bobsingor –
buildApptakes the deployment's license aslicense: the runtimecreateLicenseRuntimemade, and nothing else. It replaceslicenseGate. Any other object, including a copy of a runtime, stops the build with an error namingcreateLicenseRuntime. The runtime is sealed: its methods can't be replaced, andbuildAppenforces the license from the runtime behind it.createLicenseRuntimetakes onlydb,env,secretResolverandstartTimer, and passes nothing else on, so license verification always uses the identity compiled into the package. -
#956 by @bobsingor – Tenants have
features: the server modules each tenant may use, by module id. A module's routes answer only tenants whose features hold it; others get403 FeatureNotEnabled, and a feature held as{ id, stopped: 'cap' }answers402 FeatureStopped. A new tenant has none: the operator turns modules on per tenant withPATCH /v1/tenants/:tenantId(API token only, every id an installed module), and other replicas follow within 30 seconds. Migration 050 adds the column on SQLite and Postgres.
@cloudpdf/server-modules@3.0.0-next.21
Minor Changes
- #955 by @bobsingor – Test a module in a real server from published packages:
startTestServerfrom@cloudpdf/server-modules/testingstarts@cloudpdf/serverwith your modules mounted, on127.0.0.1with its own in-memory database, files and credentials, licensed by a development key (CLOUDPDF_LICENSE_KEYorlicenseKey).addDocument(pdf)uploads a PDF through the server's upload API and answers its id and page keys;fetch(doc, path, { scope })calls a route on the document's layer with a viewer token for exactly that scope;token()signs that token for a client of your own;apiTokencalls as the deployment;close()removes everything. The kit also exportsHostedModule, the typedefineServerModulereturns, so a module's declarations build with the kit as its only dependency.
@embedpdf/core-ui@3.0.0-next.21
Minor Changes
- #957 by @bobsingor – A floating bar's place takes
hideWhenIdle(FloatPlace) in place ofhideWhileScrolling, andhideWhenIdleOf(data, id)reads it in place ofhideWhileScrollingOf, through the bar it rides along: the bar rests out of sight while nothing moves, instead of hiding while the pages scroll.
@embedpdf/angular@3.0.0-next.21
Minor Changes
- #957 by @bobsingor – The Stage ref from
@embedpdf/angular/stagehaslistCurrentPages(): the pages you're on, the current spread while it fits across the view, else the current page.
@embedpdf/plugin-stage@3.0.0-next.21
Minor Changes
-
#958 by @bobsingor – In paged flow, pushing past the edge of the page turns it, as readers expect from a wheel, a trackpad and a finger. Scroll or swipe past the bottom for the next page, at its top; past the top for the previous page, at its bottom; or swipe sideways past the edge (the other way in a right-to-left document). A tall page stops at its bottom first, and the next push turns it. One gesture turns one page, and its momentum doesn't scroll the page that arrives. The new
turnGesturessetting (defaulttrue) turns this off, leaving page turns tonextPage(),previousPage()and navigation. Nothing changes in continuous flow. -
#957 by @bobsingor –
listCurrentPages()gives the pages you're on: the current spread while it fits across the view, its two pages side by side however tall they are, else the current page alone.nextPage()andpreviousPage()step past those pages, andcanGoNext()andcanGoPrevious()say whether there's a page after or before them. A spread that fits across the view but is taller than it used to step one page at a time, so Next from 1–2 went to page 2, already on screen, and nothing moved; and on the second page of the first or last spread, Previous or Next was enabled and did nothing. A spread that fits across the view also lands at its top, like a page.
@embedpdf/viewer-chrome@3.0.0-next.21
Minor Changes
-
#958 by @bobsingor – The View menu's Scrolling group gains Page by page (
view:scroll-paged, iconpageByPage), next to Vertical and Horizontal: one page or spread at a time, turned by scrolling or swiping past its edge. Vertical and Horizontal now also switch back to scrolling every page, and a lock onfloworlayoutgreys them out. The label is in all 15 languages. -
#957 by @bobsingor – The page number:
- The
pagerbar holds the previous and next page buttons around the page number, one group that never moves into "More". The number and the count are one button, "3 / 12", that turns the number into a field to type a page:pageNumber.pageandpageNumber.pagessay{current} / {total}and{first}–{last} / {total}in every language. It names the pages the buttons step past, the Stage'slistCurrentPages(): "2–3 / 12" while a spread fits across the view, so Next goes to 4–5, and the one page once you zoom in past it. A document of one page has no page number, andpage:next,page:previous,page:firstandpage:lastdon't show for it. - A floating bar whose place says
hideWhenIdle: true, and by default the bar with the page number, at every size, fades out once the pages and the pointer have been still for two seconds, and comes back when the pages move, the pointer moves over them or presses them, or the keyboard reaches it. It stays while the pointer is on it, while you're using it from the keyboard or typing in it, and while a menu from it is open. Out of sight it takes no clicks and keeps its place in the keyboard's order.hideWhileScrollingis gone. - A floating bar's corners follow the theme's
radius, like its buttons, instead of being round. - A command's chevron to the next or previous page points the other way in a right-to-left language, in a bar, a menu and a strip bar, where the row mirrors.
- The
-
#963 by @bobsingor – The strip over selected text sits below it, as the annotation strip does, and above it only when there's no room below. Its menus open on the strip's side, away from the text.
-
#963 by @bobsingor – The style panel shows only styles: the flags section (
/F) is gone, with its title and hints (annotationFlags.*) in the language packs. A selection with nothing to style shows the panel's empty state.
Patch Changes
- #952 by @bobsingor – The spinner on a page whose picture is on its way turns in place. It slid across the page instead, because its placement and its spin shared one
transform. Thepage-loadingpart is still the circle, so restyling it works as before.
@embedpdf/viewer@3.0.0-next.21
Minor Changes
-
#957 by @bobsingor – The page number floating over the pages has previous and next page buttons around it, reads "3 / 12", and draws nothing for a document of one page. With pages side by side it reads "2–3 / 12" while the spread fits across the view, and Next goes to the next spread; zoomed in past it, it names the one page, and Next goes to the page beside it. It fades out once the pages and the pointer have been still for two seconds, at every size, and comes back when they move or the keyboard reaches it; a floating bar of yours does the same with
hideWhenIdle: truein its place, which replaceshideWhileScrolling. Floating bars have the theme's corners instead of round ones. -
#963 by @bobsingor – The bar over selected text sits below it, like the one over a selected annotation, and above it only without room below. The style panel no longer shows an annotation's flags; the
annotationFlags.*keys instringsare gone with it.
@embedpdf/engine-services@3.0.0-next.21
Patch Changes
- #950 by @KleiKodesh – An
/XYZdestination that leaves out trailing parameters, such as[page /XYZ 10 700], keeps the left and top it has instead of reading all three asnull./XYZis now read throughFPDFDest_GetViewand the null-parameter mask like every other view type. A0zoom still reads asnull, which means the same.
@embedpdf/web@3.0.0-next.21
Patch Changes
- #962 by @bobsingor –
createSurfaceFocusFollower()puts the cursor in its element without scrolling. A panel that takes focus as it opens, such as Find, no longer shifts the page around the viewer sideways when the viewer sits in a box that can scroll, such as one withoverflow: hiddenand content off to one side.