openpencil/packages/docs
Danila Poyarkov 8131401ead
fix: explain unsupported browsers instead of a blank window (#745)
* fix: explain unsupported browsers instead of a blank window

The desktop app on macOS 13 with WebKit older than Safari 17.4 opened an
empty window because startup called Promise.withResolvers, which Vite lowers
nothing for: build.target only rewrites syntax and never polyfills APIs, and
the target itself was an implicit Vite default (#744).

Make the supported baseline explicit in src/app/shell/support/baseline.ts and
feed it to build.target, a lint rule that rejects newer static built-ins in
browser-shipped sources, and the documented system requirements. Replace
Promise.withResolvers with a createDeferred() helper.

Turn src/main.ts into a small gate that checks sentinel features before
dynamically importing the app, so an old engine still evaluates enough code
to render platform-specific update guidance: macOS/Safari via Software
Update, WebKitGTK and WebView2 on Linux and Windows, and each browser's
own update path on the web, with a prefilled bug report link. Render-blocking
errors during the first route are captured through app.config.errorHandler
and shown the same way instead of leaving the window blank.

Desktop facts come from tauri-plugin-os and a webview_version command; the
bundle now declares macOS 13 as its minimum system version.

* build: enforce the browser baseline from compatibility data

Replace the hand-maintained list of built-ins newer than the baseline with
two data-driven checks. The app and browser-shipped packages pin their
TypeScript lib to ES2023, the last edition Chrome 111, Firefox 128 and
Safari 16.4 implement in full, so a newer built-in such as
Promise.withResolvers fails type-checking. Web APIs, which lib.dom does not
version, go through eslint-plugin-compat under oxlint with the same browsers
in settings.browsers, scoped to sources that ship to a browser.

A unit test keeps the oxlint browser list and the tsconfig libs derived from
src/app/shell/support/baseline.ts, so the three cannot drift apart.

* fix: recognise production error codes in the boot observer

Vue passes the error reference URL as the errorHandler info argument in
production builds instead of the development string, so the observer never
classified a setup or render failure as fatal in the shipped app and the
boot-failure notice only appeared on the dev server. Match Vue's exported
ErrorCodes in both forms, and cover the component-setup path in the E2E
spec; the scenario was also verified against a production build.
2026-09-22 14:40:59 +04:00
..
.vitepress docs: remove GitHub Discussions link from docs header 2026-09-18 23:58:37 +03:00
de fix: use official Homebrew cask installation guidance (#712) 2026-09-17 13:36:17 +03:00
development ci: shard unit tests by owner and cut the quick suite from 100 s to 13 s (#715) 2026-09-17 10:18:16 +03:00
es fix: use official Homebrew cask installation guidance (#712) 2026-09-17 13:36:17 +03:00
fr fix: use official Homebrew cask installation guidance (#712) 2026-09-17 13:36:17 +03:00
it fix: use official Homebrew cask installation guidance (#712) 2026-09-17 13:36:17 +03:00
overview fix: use official Homebrew cask installation guidance (#712) 2026-09-17 13:36:17 +03:00
pl fix: use official Homebrew cask installation guidance (#712) 2026-09-17 13:36:17 +03:00
programmable feat: open documents and layers from openpencil:// and web links (#708) 2026-09-18 14:45:49 +03:00
public feat: refresh branding with generated platform icons (#707) 2026-09-16 11:54:07 +03:00
reference test: cover and document inherited instance dimensions 2026-09-14 00:24:52 +03:00
ru fix: use official Homebrew cask installation guidance (#712) 2026-09-17 13:36:17 +03:00
user-guide docs: clarify recovery cleanup and browser font scope 2026-09-15 23:19:29 +03:00
getting-started.md fix: explain unsupported browsers instead of a blank window (#745) 2026-09-22 14:40:59 +04:00
index.md Refine docs structure for SDK and automation 2026-03-24 23:24:08 +03:00
package.json feat: refresh branding with generated platform icons (#707) 2026-09-16 11:54:07 +03:00