Skip to content

Release Next v3.0.0-next.21

Pre-release
Pre-release

Choose a tag to compare

@github-actions github-actions released this 03 Nov 11:42
· 338 commits to main since this release
3283147

@cloudpdf/contract@3.0.0-next.21

Minor Changes

  • #956 by @bobsingor – tenants.update (PATCH /v1/tenants/:tenantId) sets a tenant's features, the server modules it may use, and tenant records carry features. 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 have features.

@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 uncaught error event from pg.Pool. The pool now drops that connection and opens a new one for the next query. createPostgresDb takes onIdleConnectionError to report these, and cloudpdf-server logs each one's message as a warning.

  • #955 by @bobsingor – buildApp takes the deployment's license as license: the runtime createLicenseRuntime made, and nothing else. It replaces licenseGate. Any other object, including a copy of a runtime, stops the build with an error naming createLicenseRuntime. The runtime is sealed: its methods can't be replaced, and buildApp enforces the license from the runtime behind it. createLicenseRuntime takes only db, env, secretResolver and startTimer, 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 get 403 FeatureNotEnabled, and a feature held as { id, stopped: 'cap' } answers 402 FeatureStopped. A new tenant has none: the operator turns modules on per tenant with PATCH /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: startTestServer from @cloudpdf/server-modules/testing starts @cloudpdf/server with your modules mounted, on 127.0.0.1 with its own in-memory database, files and credentials, licensed by a development key (CLOUDPDF_LICENSE_KEY or licenseKey). 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; apiToken calls as the deployment; close() removes everything. The kit also exports HostedModule, the type defineServerModule returns, 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 of hideWhileScrolling, and hideWhenIdleOf(data, id) reads it in place of hideWhileScrollingOf, 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/stage has listCurrentPages(): 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 turnGestures setting (default true) turns this off, leaving page turns to nextPage(), 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() and previousPage() step past those pages, and canGoNext() and canGoPrevious() 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, icon pageByPage), 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 on flow or layout greys them out. The label is in all 15 languages.

  • #957 by @bobsingor – The page number:

    • The pager bar 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.page and pageNumber.pages say {current} / {total} and {first}–{last} / {total} in every language. It names the pages the buttons step past, the Stage's listCurrentPages(): "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, and page:next, page:previous, page:first and page:last don'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. hideWhileScrolling is 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.
  • #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. The page-loading part 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: true in its place, which replaces hideWhileScrolling. 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 in strings are gone with it.

@embedpdf/engine-services@3.0.0-next.21

Patch Changes

  • #950 by @KleiKodesh – An /XYZ destination that leaves out trailing parameters, such as [page /XYZ 10 700], keeps the left and top it has instead of reading all three as null. /XYZ is now read through FPDFDest_GetView and the null-parameter mask like every other view type. A 0 zoom still reads as null, 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 with overflow: hidden and content off to one side.

@cloudpdf/engine@3.0.0-next.21

@cloudpdf/web@3.0.0-next.21

@cloudpdf/plugin-protected-display@3.0.0-next.21

@cloudpdf/viewer-angular@3.0.0-next.21

@cloudpdf/viewer@3.0.0-next.21

@cloudpdf/viewer-react@3.0.0-next.21

@cloudpdf/viewer-svelte@3.0.0-next.21

@cloudpdf/viewer-vue@3.0.0-next.21

@embedpdf/core-acrojs@3.0.0-next.21

@embedpdf/core-annotation@3.0.0-next.21

@embedpdf/core-fonts@3.0.0-next.21

@embedpdf/core-form@3.0.0-next.21

@embedpdf/core-geometry@3.0.0-next.21

@embedpdf/core-js-sandbox@3.0.0-next.21

@embedpdf/core@3.0.0-next.21

@embedpdf/core-signature@3.0.0-next.21

@embedpdf/core-stage@3.0.0-next.21

@embedpdf/core-text@3.0.0-next.21

@embedpdf/engine-core@3.0.0-next.21

@embedpdf/engine@3.0.0-next.21

@embedpdf/engine-runtime@3.0.0-next.21

@embedpdf/engine-runtime-darwin-arm64@3.0.0-next.21

@embedpdf/engine-runtime-darwin-x64@3.0.0-next.21

@embedpdf/engine-runtime-linux-arm64@3.0.0-next.21

@embedpdf/engine-runtime-linux-x64@3.0.0-next.21

@embedpdf/engine-runtime-linuxmusl-arm64@3.0.0-next.21

@embedpdf/engine-runtime-linuxmusl-x64@3.0.0-next.21

@embedpdf/engine-runtime-wasm32@3.0.0-next.21

@embedpdf/engine-runtime-win32-arm64@3.0.0-next.21

@embedpdf/engine-runtime-win32-x64@3.0.0-next.21

@embedpdf/react@3.0.0-next.21

@embedpdf/svelte@3.0.0-next.21

@embedpdf/vue@3.0.0-next.21

@embedpdf/plugin-actions@3.0.0-next.21

@embedpdf/plugin-annotation@3.0.0-next.21

@embedpdf/plugin-attachment@3.0.0-next.21

@embedpdf/plugin-commands@3.0.0-next.21

@embedpdf/plugin-fonts@3.0.0-next.21

@embedpdf/plugin-form@3.0.0-next.21

@embedpdf/plugin-history@3.0.0-next.21

@embedpdf/plugin-i18n@3.0.0-next.21

@embedpdf/plugin-interaction@3.0.0-next.21

@embedpdf/plugin-link@3.0.0-next.21

@embedpdf/plugin-measurement@3.0.0-next.21

@embedpdf/plugin-metadata@3.0.0-next.21

@embedpdf/plugin-outline@3.0.0-next.21

@embedpdf/plugin-page-edit@3.0.0-next.21

@embedpdf/plugin-redaction@3.0.0-next.21

@embedpdf/plugin-render@3.0.0-next.21

@embedpdf/plugin-search@3.0.0-next.21

@embedpdf/plugin-selection@3.0.0-next.21

@embedpdf/plugin-shell@3.0.0-next.21

@embedpdf/plugin-signature@3.0.0-next.21

@embedpdf/plugin-stamp@3.0.0-next.21

@embedpdf/plugin-view-manager@3.0.0-next.21

@embedpdf/viewer-angular@3.0.0-next.21

@embedpdf/viewer-react@3.0.0-next.21

@embedpdf/viewer-svelte@3.0.0-next.21

@embedpdf/viewer-vue@3.0.0-next.21