Skip to content

Releases: zng-ui/zng

v0.21.13

07 Apr 06:49
ef38926

Choose a tag to compare

  • Fix AnyVar::try_set_from_map panic when the other variable is const.

  • Fix IMAGES and AUDIOS extensions not always applying.

  • Fix IMAGES.limits and AUDIOS.limits not filtering paths and uris.

  • Image widget now does not render large images when a better reduced alternate is loading.

    • DeprecatedImageEntry::with_best_reduce.
    • Added ImageEntry::best_reduce.
    • Image widget now tracks loading state of the best sized entry and only presents that entry.
  • Change impl Mul<i32> and Mul<f32> for Px to be saturating to match other operations.

  • Better cleanup of leftover memmap files after crash.

    • Now crash-handler-process runs the cleanup after spawning the app-process.
    • Now app-process runs cleanup on view-process respawn.
    • Add zng_task::channel::cleanup_memmap_storage for manual cleanup in advanced scenarios where the crash-handler is not used.
  • Fix is_mouse_active stops updating.

  • Change IpcBytes to not block on IO when deserializing named memmap.

    • Memmap reconnection now runs in parallel, only blocks on first read if not ready yet.
    • Reconnection errors are now panic on first read.
  • Fix view-process not responding when handling memory pressure event.

  • Add Image::on_load_size_layout.

  • Fix panic on raw image and audio events without handle.

Crates will be available on crates.io once Publish completes.

v0.21.12

01 Apr 19:15
3c7fea1

Choose a tag to compare

  • Fix Malay and Uzbek languages defaulting to RTL when no script tag is given.
  • Fix non-spacing marks rendering disconnected in text width ligatures disabled.
    • Non-spacing marks now are merged with previous segment, always uses segment level ligatures.
    • TextSegmentKind::NonSpacingMark can now only appear at the start of texts and may be removed in future releases.
  • Add "system-ui" font names for: hi, bn, te, as, gu, kn, mr, ta, ne, or, pa, si, ta.
    • In macOS and Ubuntu also adds font names for: ar, fa, he, hy, ka, ps, ur.
    • All supported desktop platforms now cover the full range of languages that have a defined Lang::autonym.
  • Fix panic in Text! when an incorrect render_update happens before first render after view-process respawn.

Crates will be available on crates.io once Publish completes.

v0.21.11

29 Mar 01:31
d8f863e

Choose a tag to compare

  • Implement Window::movable.

    • Disabling now works in all windowed platforms except Wayland.
  • Add cargo zng l10n --translate to generate machine translations.

    • Added docs/machine-translation.md guide.
    • Added machine translated l10n resources for many languages.
  • Fix http task response parsing.

  • Fix http post task hanging.

  • Fix panic when http task response is missing code.

  • Surface http task API CacheMode in zng::task::http.

Crates will be available on crates.io once Publish completes.

v0.21.10

24 Mar 01:26
03e01d8

Choose a tag to compare

  • Define autonym for pseudo (test) locales.

  • Fix cargo zng l10n --pseudo issues.

    • Now handles terms correctly.
    • Now also replaces literal strings.
    • Fixes function call arguments.
  • Upgrade cargo zng l10n --pseudo to current directory format.

    • Generates pseudo localization for dependencies too.
  • Fix Text! widget not refreshing on LANG_VAR changes.

  • Add FontName::system_ui with value "system-ui.

    • Deprecated FontNames::system_ui and related methods.
    • Add GenericFonts::system_ui and related methods.
    • Fixes Chinese, Japanese and Korean UI fonts not loading.

Crates will be available on crates.io once Publish completes.

v0.21.9

21 Mar 05:03
2b5f98d

Choose a tag to compare

  • Force update tar dependency to avoid vulnerability.
  • Add machine translated l10n resources for German, Spanish, French, Italian, Japanese, Korean and Simplified Chinese.
  • Add ImageEntry::format_name.
  • Change Image::on_load_layout to await window load.
  • Fix scoped command state variables disconnecting.
  • Fix can_<command> properties holding command handle after deinit.

Crates will be available on crates.io once Publish completes.

v0.21.8

19 Mar 05:02
763b586

Choose a tag to compare

  • Fix view-process image format magic number matching any empty pattern.
  • Fix AVIF image format magic number.

Crates will be available on crates.io once Publish completes.

v0.21.7

19 Mar 00:09
b42af2e

Choose a tag to compare

  • Add ImageSource::Entries for generating multi entry images.
    • SVG renderer now uses this to generate downscaled samples if requested.
  • Add ImageEntry::icc_profile that provides a copy of the ICC Profile metadata used for decoding.
    • Adds "image_meta_icc" feature, not enabled by default.
  • Add ImageEntry::exif that provides a copy of the EXIF metadata used for decoding.
    • Adds "image_meta_exif" feature, not enabled by default.
  • Add support for CUR cursor images.
    • Adds ImageEntry::cur_hotspot.
    • Adds "image_cur" feature.
    • Integrated with cursor property WindowVars::cursor.
  • Add support for extensions metadata in audio and image APIs.
  • Add ImageFormat::magic_numbers.
  • Add HeadlessApp::doc_test_deadline so spawn a timeout task in doctests.

Crates will be available on crates.io once Publish completes.

v0.21.6

14 Mar 20:05
33209cd

Choose a tag to compare

  • Fix zng build with "view_bundle_licenses" feature.
    • Fix zng-view build with "bundle_licenses".

Crates will be available on crates.io once Publish completes.

v0.21.5

14 Mar 04:15
0b07233

Choose a tag to compare

  • Fix images decoded from RGBf32 crashing the view-process.
  • Implement image encoding for GIF, PNM, TGA, HDR, OpenEXR and Farbfeld.
  • Optimize image encoding, now is faster and uses less memory.
  • Add IpcBytesMut::from_bytes and from_bytes_blocking.
  • Add IpcBytesMut::from_slice_blocking.
  • Fix Inspector screenshot save dialog suggesting formats that do not implement encoding.

Crates will be available on crates.io once Publish completes.

v0.21.4

11 Mar 06:37
9f1a2ae

Choose a tag to compare

  • Fix build with "image_tiff" and "view" features.

  • Add Lang::autonym, name of language and region in own language.

    • Adds "lang_autonym" Cargo feature, not enabled by default.
  • Add Lang::is_machine_translation.

    • Adds support for machine variant, as in en-machine to indicate a resource that was machine translated.
    • LangMap gives priority for human translations of different regions over machine translations.
  • Improve cargo zng l10n --check.

    • Check the Fluent syntax of localization files.
    • Check if localized messages match the template.
    • Add --check-strict to also check for missing messages.

Crates will be available on crates.io once Publish completes.