Releases: vertigo-web/vertigo
Releases · vertigo-web/vertigo
0.6.1 - 2024-12-18
Added
Driver::utc_now
(Gets current UTC timestamp)Driver::timezone_offset
(Gets browsers time zone offset in seconds)chrono::NaiveDate
support inAutoJsJson
LazyCache::<T>::new_resource()
helperToComputed
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
Added
Reactive
trait that allows generic components to be more flexible with propsBTreeMap
andchrono::DateTime<Utc>
support inAutoJsJson
#[js_json(default = "None")]
attribute toAutoJsJson
JsJson
implementation for unit type()
- All http methods in
FetchMethod
history_replace
method inDriver
- Minification of
wasm_run.js
- vertigo-cli:
--add-watch-path
towatch
command - vertigo-cli:
--wasm-run-source-map
tobuild
andwatch
command
Fixed
- Missing hash part in history router
- vertigo-cli: Missing
Cache-Control
header for statics
0.5.0 - 2024-04-05
Added
window!
anddocument!
macro to allow invoking simple JavaScript commandsDriver::plains
method to allow responding with plaintext pages- In
css!
macro there is now possibility to reference a class created by anothercss!
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 inurl
- vertigo-cli: Watch script now attached inside body tag
0.4.3 - 2024-02-28
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
Fixed
- Lifetimes and generics in
#[component]
macro - Media queries in SSR
0.4.1 - 2023-12-02
Fixed
- Version matching always failed due to
if true
XD
0.4.0 - 2023-11-08
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 expiredJsJson
andJsValue
list size as u32 - fixes large DOM updates
0.3.2 - 2023-07-17
Added
computed_tuple!
macroon_blur
,on_mouse_down
,on_mouse_up
eventToComputed
trait
0.3.1 - 2023-05-25
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
Added
- Breaking:
dom_element!
macro which returnsDomElement
struct, whiledom!
macro returnsDomNode
now - Suspense mechanism
on_change
event to<select>
/<input>
/<textarea>
- Env variables passed to application
Removed
- vertigo-cli:
Cargo
as lib dependency