Changelog
0.2.0
On deck
- Added the
encodeCookie()
anddecodeCookie()
exports to cookies.ts, removed theCOOKIE_JWT_HEADER
. Also changed someconst
functions into regular functions. Cav shouldn’t have any exported variables in the Deno Docs anymore - 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$$
, as well as themake
utility - Changed endpoint
message
tobody
- Changed endpoint
groups
toparams
- Updated the cookies to better handle signed/unsigned operations
- HttpErrors thrown during query/body 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
- Params can only be strings (used to allow string[] also). Duplicate params will override old values
- No more plural(s) in module names (besides deps)
- 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 or the extension isn’t known, the default is html. Supported extensions are: .html, .md, .css, .json, .js, .svg, .txt, .rss, .xml
- Removed the old asset bundling, which bundled all ts(x) files in the assets directory
- Added the
bundle
endpoint and related functions - Managed to get the resolver and setup function to fit onto the schemas without breaking the types (!!!! “the big problem”. Haven’t tested this fully yet, it might not be working lol. This problem has been hard for me)
- Whenever Cav sets a content-type of “text/*”, it also sets the “utf-8” charset. This applies for static string routes and asset files
- Created the
html.ts
file and put acx
utility in there (more later?) - Updates to how/when etagging works
res.headers
->headers
, plus a newres()
utility for endpointsrouterContext()
was changed tocontext()
and moved tocontext.ts
- Examples
- Docs
0.1.0
June 16, 2022
Working prototype.