Releases: tulz-app/laminext
Releases · tulz-app/laminext
0.14.0
0.13.10
- API: new:
input
/textArea
.changes
/.value
/.checked
/.files
now have additional overloaded versions
that accept achangeStreamTransform: EventStream[Event] => EventStream[Event]
parameter (can be used, for example, to
debounce the "changed" events) - API: new:
input
/textArea
.validated
/.validatedCheckBox
/.validatedFile
/.validatedFiles
now accept a second
(optional) parameter –changeStreamTransform: EventStream[Event] => EventStream[Event]
– which is passed to the
.value
/.checked
/.files
- API: additional validation builders accepting a functions like
check: A => Option[Err]
that can construct error messages
using the value that is being validated
0.13.9
0.13.8
v0.13.7
0.13.6
0.13.5
fetch
module: RequestUrl
hostname
renamed intohost
to reflect that it can contain the portpath
renamed intosegments
to better reflect what it isuri
function renamed tourl
RequestUrl
now makes sure to not contain empty segments (thus it is no longer possible,
accidentally or otherwise, to have a double/
in the request URL)- new
RequestUrl.fromLocation(location: dom.raw.Location)
builder - Breaking:
addPath(path: String*)
renamed toaddSegments(path: String*)
- New:
withParams(params: Map[String, Seq[String]])
- New:
withSegments(segments: String*)
*path
methods will split the argument by /
into a Seq[String]
, ensuring there are
no empty segments.
url
, RequestUrl.apply
and RequestUrl.fromLocation
ensure there are no empty segments as well.
util
module: new utilities in the
UrlString
objectparse
– parse a string into adom.raw.Location
val myUrl = "https://laminext.dev/path?param=1" val location: dom.raw.Location = UrlString.parse(myUrl) console.print(location.origin)
UrlUtils
objectencodeSearchParams(params: Map[String, Seq[String]]): String
– encode the given parameters into a URL search string (?param=1&...
)decodeSearchParams(search: String): Map[String, Seq[String]]
– decode a URL search string into a map of parameters
0.13.4
0.13.3 – circe 0.14.1
Updating circe to v0.14.1