Skip to content

Releases: vertigo-web/vertigo

0.6.1 - 2024-12-18

18 Dec 20:43
Compare
Choose a tag to compare

Added

  • Driver::utc_now (Gets current UTC timestamp)
  • Driver::timezone_offset (Gets browsers time zone offset in seconds)
  • chrono::NaiveDate support in AutoJsJson
  • LazyCache::<T>::new_resource() helper
  • ToComputed impls for primitive types

Changed

  • Hush excessive logging when no Content-Type or cookie provided

Fixed

  • Docstrings and other attributes in component! macro

0.6.0 - 2024-08-02

02 Aug 20:19
Compare
Choose a tag to compare

Added

  • Reactive trait that allows generic components to be more flexible with props
  • BTreeMap and chrono::DateTime<Utc> support in AutoJsJson
  • #[js_json(default = "None")] attribute to AutoJsJson
  • JsJson implementation for unit type ()
  • All http methods in FetchMethod
  • history_replace method in Driver
  • Minification of wasm_run.js
  • vertigo-cli: --add-watch-path to watch command
  • vertigo-cli: --wasm-run-source-map to build and watch command

Fixed

  • Missing hash part in history router
  • vertigo-cli: Missing Cache-Control header for statics

0.5.0 - 2024-04-05

05 Apr 06:57
Compare
Choose a tag to compare

Added

  • window! and document! macro to allow invoking simple JavaScript commands
  • Driver::plains method to allow responding with plaintext pages
  • In css! macro there is now possibility to reference a class created by another css! using [] brackets
  • Enums nad newtypes support in AutoJsJson
  • bind! macro now accepts namespaced variables, f. ex. bind!(state.value, || value + 100)
  • Components now accept value without attribute name if the names matches (color={color}{color})
  • In dom! macro .. operator now spreads iterable into children (<ul>{..items}</ul>)

Changed

  • Hashing of bundled files shortened from SHA256 to CRC64/Base64 to have file names shorter

Fixed

  • Component embedding using non-local name (f. ex. <my_module::MyComponent />)
  • Raw field name support in AutoJsJson derive macro
  • component! macro copying attributes to struct (and doc-strings)
  • css! macro resolving expressions in url
  • vertigo-cli: Watch script now attached inside body tag

0.4.3 - 2024-02-28

28 Feb 14:42
Compare
Choose a tag to compare

Fixed

  • vertigo-cli: Don't html-escape styles embedded during SSR
  • vertigo-cli: Don't panic when missing root html element
  • vertigo-cli: Allow missing "head" element
  • Removed panics/unwraps from dom! macro

0.4.2 - 2024-02-06

06 Feb 13:31
Compare
Choose a tag to compare

Fixed

  • Lifetimes and generics in #[component] macro
  • Media queries in SSR

0.4.1 - 2023-12-02

03 Dec 19:42
Compare
Choose a tag to compare

Fixed

  • Version matching always failed due to if true XD

0.4.0 - 2023-11-08

08 Nov 20:04
Compare
Choose a tag to compare

Added

  • LazyCache::forget
  • Check for vertigo/vertigo-cli major.minor versions mismatch. Error is printed on CLI and JavaScript console.

Fixed

  • LazyCache::force_update really forces the update even if value not expired
  • JsJson and JsValue list size as u32 - fixes large DOM updates

0.3.2 - 2023-07-17

17 Jul 19:18
Compare
Choose a tag to compare

Added

  • computed_tuple! macro
  • on_blur, on_mouse_down, on_mouse_up event
  • ToComputed trait

0.3.1 - 2023-05-25

25 May 09:37
Compare
Choose a tag to compare

Added

  • In dom! macro, allow default value for an attribute by passing empty {}

Fixed

  • vertigo-cli: Fixed un-captured outputs of commands run during build

0.3.0 - 2023-05-01

01 May 18:10
Compare
Choose a tag to compare

Added

  • Breaking: dom_element! macro which returns DomElement struct, while dom! macro returns DomNode now
  • Suspense mechanism
  • on_change event to <select>/<input>/<textarea>
  • Env variables passed to application

Removed

  • vertigo-cli: Cargo as lib dependency