VOOZH about

URL: https://thenewstack.io/dev-news-deno-decorates-pre-rendering-added-to-nuxt-astro/

⇱ Dev News: Deno Decorates, Pre-Rendering Added to Nuxt, Astro - The New Stack


TNS
SUBSCRIBE
Join our community of software engineering leaders and aspirational developers. Always stay in-the-know by getting the most important news and exclusive content delivered fresh to your inbox to learn more about at-scale software development.
REQUIRED
It seems that you've previously unsubscribed from our newsletter in the past. Click the button below to open the re-subscribe form in a new tab. When you're done, simply close that tab and continue with this form to complete your subscription.
The New Stack does not sell your information or share it with unaffiliated third parties. By continuing, you agree to our Terms of Use and Privacy Policy.
Welcome and thank you for joining The New Stack community!
Please answer a few simple questions to help us deliver the news and resources you are interested in.
REQUIRED
REQUIRED
REQUIRED
REQUIRED
REQUIRED
Great to meet you!
Tell us a bit about your job so we can cover the topics you find most relevant.
REQUIRED
REQUIRED
REQUIRED
REQUIRED
REQUIRED
Welcome!

We’re so glad you’re here. You can expect all the best TNS content to arrive Monday through Friday to keep you on top of the news and at the top of your game.

What’s next?

Check your inbox for a confirmation email where you can adjust your preferences and even join additional groups.

Follow TNS on your favorite social media networks.

Become a TNS follower on LinkedIn.

Check out the latest featured and trending stories while you wait for your first TNS newsletter.

PREV
1 of 2
NEXT
VOXPOP
As a JavaScript developer, what non-React tools do you use most often?
Angular
0%
Astro
0%
Svelte
0%
Vue.js
0%
Other
0%
I only use React
0%
I don't use JavaScript
0%
Thanks for your opinion! Subscribe below to get the final results, published exclusively in our TNS Update newsletter:
NEW! Try Stackie AI
From clobbered drafts to real-time sync
Apr 14th 2026 10:00am, by David Moore
TypeScript 6.0 RC arrives as a bridge to a faster future
Mar 14th 2026 9:00am, by Darryl K. Taft
Mastra empowers web devs to build AI agents in TypeScript
Jan 28th 2026 11:00am, by Loraine Lawson
2024-02-03 05:00:36
Dev News: Deno Decorates, Pre-Rendering Added to Nuxt, Astro
Frontend Development / JavaScript / Software Development

Dev News: Deno Decorates, Pre-Rendering Added to Nuxt, Astro

New releases galore this week. Deno supports decorators, Astro features more control over HTML output, and Nuxt has better cookie reactivity.
Feb 3rd, 2024 5:00am by Loraine Lawson
👁 Featued image for: Dev News: Deno Decorates, Pre-Rendering Added to Nuxt, Astro

The Deno team released Deno v. 1.40 this week, calling it a “significant step forward in the evolution” of the JavaScript and TypeScript runtime.

“This new version is packed with features that enhance the Deno experience, introducing the powerful Temporal API for advanced date and time operations, and embracing the latest decorator syntax for more expressive code,” the team wrote. “Alongside these advancements, we’ve implemented a series of deprecations, stabilizations, and removals aimed at streamlining Deno’s capabilities and preparing for Deno 2.”

The temporal proposal calls for a new API aimed at standardizing date and time handling in JavaScript.

Deno also now supports decorators, which are called for in a proposal for TC39. They are also being implemented in all browsers, the team wrote.

Decorators allow developers to add functionality without modifying the existing code, via what’s basically a wrapper that changes the function of whatever it “decorates.” You can use decorators to add functionality, modify behavior, validate data or support lazy loading. Babel and TypeScript already support decorators.

“Decorators are a proposal for extending JavaScript classes which is widely adopted among developers in transpiler environments, with broad interest in standardization,” they explained. “TC39 has been iterating on decorators’ proposals for over five years. This document describes a new proposal for decorators based on elements from all past proposals.”

Astro 4.2 and 4.3 Releases

JavaScript framework Astro 4.3 was released Thursday, with more control over the HTML file output. It does this by adding a new build.format option called preserve. The new format preserves how the filesystem is structured and makes sure that it is mirrored to production.

”This feature unlocks better compatibility with certain web servers [that] have strict requirements on how files are structured,” the team noted.

The update also added a new ComponentProps type export that’s similar to React.ComponentProps or Svelte’s ComponentProps.

“This type of export allows you to reference the Props accepted by another component, even if that component doesn’t export that Props type directly,” the team wrote.

Also, Astro 4.2, released earlier this month, boasts experimental features for users to play with. It marked the first release where all but one of the features were community-built.

“This is a huge milestone for us, as it means that Astro is now big enough to have a thriving community of contributors capable of spearheading releases,” the team wrote.

Astro is a relative newcomer to JavaScript frameworks, and ranked as the most popular framework, as measured by growth in satisfaction and usage, in Netlify’s The State of Web Development report.

Astro 4.2 added support for an experimental feature: Pre-rendering pages using the Chromium Speculation Rules API, which allows developers to pre-render pages on the client and run client-side JavaScript on pages the user is likely to visit next for a faster browsing experience.

The other experimental feature it added is reworked routing priority for injected routes. Interestingly, this actually came about because of a problem. Routes injected using the injectRoute()API were given priority so they were matched before other routes.

“While this seemed like a good idea at the time, it unfortunately caused a lot of hard-to-debug issues where routes wouldn’t be matched as expected,” the team wrote. “Historically, we’ve been hesitant to change this behavior due to how many unintended issues changes to the routing system can cause.”

Luiz Ferraz implemented a fix — and thus began the creation of a “new and improved” default routing system, the team stated.

“With this flag enabled, routes injected using the injectRoute() API, as well as redirects, will now follow the same priority order that routes from the filesystem do. This should provide more stable, consisting priority ordering rules for all your project routes,” the blog stated.

There were also bug fixes, detailed in the release notes.

Nuxt 3.10 Adds aSyncData When Pre-Rendering

Nuxt 3.10 was released this week and it’s “packed with features and fixes,” wrote Daniel Roe, who leads the core Nuxt team.

One update that should improve site performance is experimental share asyncData when pre-rendering, in which Nuxt automatically refetches data for developers when pre-rendering the site.

“Your useAsyncData and useFetch calls will be deduplicated and cached between renders of your site,” explained Roe. “It is particularly important to make sure that any unique key of your data is always resolvable to the same data. For example, if you are using useAsyncData to fetch data related to a particular page, you should provide a key that uniquely matches that data. (useFetch should do this automatically.)”

This update also includes SSR-safe accessible unique ID creation, which supports building more accessible interfaces in an app.

Also included in this update:

  • Extended app/router options for custom scrollBehavior or added runtime augmenting of routes;
  • Client-side Node.js support, which ”should make life easier for users who are working with libraries without proper browser support,” Roe noted. That said, he added that because of the risk in increasing a bundle unnecessarily, Nuxt “would strongly urge users to choose other alternatives if at all possible.”
  • Better cookie reactivity;
  • Better detection of antipatterns, which translates into a better ability to identify potential bugs and performance problems;
  • Build-time route metadata; and
  • Bundler module resolution.

The blog post covers these highlights but the full release notes are on GitHub.

TRENDING STORIES
Loraine Lawson is a veteran technology reporter who has covered technology issues from data integration to security for 25 years. Before joining The New Stack, she served as the editor of the banking technology site Bank Automation News. She has...
Read more from Loraine Lawson
SHARE THIS STORY
TRENDING STORIES
TNS owner Insight Partners is an investor in: Deno.
SHARE THIS STORY
TRENDING STORIES
TNS DAILY NEWSLETTER Receive a free roundup of the most recent TNS articles in your inbox each day.
The New Stack does not sell your information or share it with unaffiliated third parties. By continuing, you agree to our Terms of Use and Privacy Policy.