Skip to main content
Go to Latest
File

Changelog

Up next: 0.2.0

  • Added the encodeCookie() and decodeCookie() exports to cookies.ts
  • When serving assets without an explicit asset path specified, the serveAsset() function will now use the routed path from the RouterContext instead of the full request path
  • When no path option is specified for serveAsset, 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 to ResolverArg
  • Updated the cookies to better handle signed/unsigned operations
  • Changed the name of browser.ts to dom.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 messages to bodys
  • Changed endpoint groups to params
  • 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: .txt, .js, .css, .html, .json, .svg, .xml, .rss
  • 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

June 16, 2022: 0.1.0

Stuff’s workin’. See https://deno.land/x/cav@0.1.0/mod.ts