[release] v0.0.69 #6
bradleyboy
announced in
Announcements
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
👋 hey folks - we've just cut a new release of Nokkio–v0.0.69. It includes a variety of fixes and a few notable highlights. To update, run this in your terminal:
nokkio upgrade
Rebuilt CSS modules support
Internally, Nokkio uses esbuild for fast, reliable builds. For some time we've been using our own hand-rolled plugin for CSS modules. In v0.0.69, we've switched over to the relatively new native CSS module support in esbuild.
Endpoints improvements
Similar to the fixes in v0.0.68, we're continuing to improve the ergonomics and performance of Nokkio's endpoints.
Better logging
If a
console.log
falls in the forest, does it make a sound? Previously, if you usedconsole.log
(or warn or error) anywhere in your server code, it wasn't readily obvious where those logs would go. Inv0.0.69
, any logging calls you make in your endpoints will be piped through to your browser's console in development, so you can view all your logs in one place.Better dependency managment
Previous versions of Nokkio attempted to intelligently vendor your endpoint dependencies for improved performance, but we found this error-prone for a variety of reasons and it had a negative impact on deploy times. We've removed the implicit vendoring and implemented a few other fixes to improve cold starts without needing to vendor.
New commands for testing and typechecking
Nokkio endpoints use Deno for their runtime environment. Prior to v0.0.69, if you wanted to type check or run tests in the
server
directory, you would need to usedeno
directly to do so. Nokkio ships with its own locked version of Deno, so this could lead to mismatches in behavior.In v0.0.69, we've added two new commands to make running tests and typechecking more consistent:
nokkio typecheck-server
(docs) - If you've written your server code in TypeScript, this typechecks all files in the directory. Pairs well withnokkio:ci
as a pre-deploy check for safer deploys.nokkio test-server
(docs) - This runs all tests found in yourserver
directory using the correctdeno test
command.Beta Was this translation helpful? Give feedback.
All reactions