Changelog
0.2.0
Up next:- Added the
encodeCookie()
anddecodeCookie()
exports to cookies.ts - When serving assets without an explicit asset
path
specified, theserveAsset()
function will now use the routed path from the RouterContext instead of the full request path - When no
path
option is specified forserveAsset
, all requests to files beginning with a ‘.’ will 404. Auto redirects for ‘/index.html’ were removed, and requests to ‘.html’ files don’t auto redirect anymore either - Moved the browser exports to
dom.ts
and added some selector shorthands$
and$$
- Resolvers are no longer assigned to endpoints as the
resolve
property - Endpoints now require both a schema and a resolver to be specified explicitly
- Change
ResolveArg
toResolverArg
- Updated the cookies to better handle signed/unsigned operations
- Changed the name of
browser.ts
todom.ts
- HttpErrors thrown during query/message parsing are passed along instead of being wrapped in a 400 HttpError
- Modified client type to treat “*” correctly (it treated it like a path param, but it doesn’t consume path parts)
- Various other e2e bug fixes
- Changed endpoint
message
s tobody
s - Changed endpoint
groups
toparams
- Params can only be strings (used to allow string[] also). Duplicate params will override old values
- No more plural(s) in filenames
- When a string is specified on a router, it’ll serve that string with a content-type based on the extension of the route. If there isn’t an extension, it defaults to html. Supported extensions are: .html, .md, .css, .json, .js, .svg, .txt, .rss, .xml,
- Added the
bundle
endpoint type and related utility functions - Removed asset bundling
- Managed to get the resolver and setup function to fit onto the schemas without breaking the types
- Whenever Cav sets a content-type of “text/*”, it also sets the “utf-8” charset
0.1.0
June 16, 2022:Stuff’s workin’. See https://deno.land/x/cav@0.1.0/mod.ts