TypeScript 5.0: New Decorators Standard, Smaller npm
In developer news this week, TypeScript 5.0 incorporates decorators, while React gets a document page overhaul and Rust has a minor update.
Mar 24th, 2023 11:25am by
npm install -D typescript
React.dev Launches New React Home
In other news from the week, React.dev is nearing its 10th birthday. To celebrate, it has launched a new home for the popular library and related documentation. The site teaches modern React with function components and hooks, and features more than 500 new interactive examples and sandboxes. The previous documentations site is archived at legacy.reactjs.org. The original domain — reactjs.org — will redirect to the new site. The updated docs teach React with Hooks from the beginning and are divided in two main sections, according to a blog post by developers Dan Abramov and Rachel Nabors:- Learn React, a self-paced course that teaches React from scratch and incorporates a “show solution” button for those who get stuck.
- API Reference, which provides the details and usage examples for every React API. Every API page includes information about reference and usage, with usage showing why and how a developer would use an API in practice.
Rust Update to 1.68.1
Finally, Rust published a new point release, Rust 1.68.1, on Thursday. Point releases are minor, typically fixing bugs or performing code cleanup. In this case, Rust 1.68.1 contains a change to how Rust’s CI builds the Windows MSVC compiler, no longer enabling LTO for the Rust code. “This led to a miscompilation that the Rust team is debugging, but in the meantime, we’re reverting the change to enable LTO,” the Rust team stated in a blog post. “This is currently believed to have no effect on the wider usage of ThinLTO. The Rust compiler used an unstable flag as part of the build process to enable ThinLTO despite compiling to a dylib.” Other regressions fixed in the release: ◦ Fix building the compiler with –enable-local-rust; ◦ Treat $prefix-clang as clang in linker detection code; and ◦ Fix a panic in the compiler.
YOUTUBE.COM/THENEWSTACK
Tech moves fast, don't miss an episode. Subscribe to our YouTube
channel to stream all our podcasts, interviews, demos, and more.