adplus-dvertising
Connect with us

Tech

Deno Improves Node.js Support: Built-in Modules, package.json, Dynamic Import and Worker Compilation

Published

 on

Recent releases of Deno (1.30, 1.31, and 1.32) make it easier for Node.js developers to transition to Deno projects. Deno 1.30 improves support for Node built-in modules and import maps. Deno 1.31 adds package.json support and includes the Node compatibility layer into the Deno runtime. Deno 1.32 adds deno compile support for web workers and dynamic imports.

With Deno 1.30, developers can expose Node modules with node: specifiers.

import  readFileSync  from "node:fs";

console.log(readFileSync("deno.json",  encoding: "utf8" ));

For developers using code with both Deno and Node.js, the node: scheme will work in both runtimes. Deno’s documentation helpfully advises:

Take note that importing via a bare specifier (ex. import readFileSync from "fs";) is not supported. If you attempt to do so and the bare specifier matches a Node.js built-in module not found in an import map, Deno will provide a helpful error message asking if you meant to import with the node: prefix.

The deno.json file can also now include import maps, eliminating the necessity to have two configuration files. To do so, developers specify imports and scopes keys in deno.json. Import maps are now supported in all modern browsers and allow resolving module specifiers by matching them to a location (on disk or at a remote location).

300x250x1

With Deno 1.31, Deno will automatically detect a package.json and use it to install and resolve dependencies. deno task will also run scripts from the scripts section of the package.json.

For instance, the following code:

$ deno run -A npm:create-vite vite-project --template vue
$ cd vite-project
$ deno task dev

will run a default Vite project in dev environment, as instructed by the template package.json installed by the create-vite scaffolding tool.

Deno 1.31 also includes the Node compatibility layer in the Deno runtime. The release note explains:

The Deno team has taken radical steps to improve the situation for users relying on npm packages – either via npm: specifiers or on the newly added package.json auto-discovery. The whole compatibility layer is now embedded in the Deno runtime itself, and V8 snapshots are used to drastically reduce the startup time. This tighter integration enables easier polyfilling of missing APIs and enhances the performance of already supported built-in Node.js modules.

Starting Deno 1.32, developers can use dynamic imports and Web Worker API with binaries created with the deno compile subcommand. The new feature makes it easier for developers to build executables for multi-threaded programs.

Deno is open-source software available under the MIT license. Contributions are encouraged via the Deno Project and should follow the Deno contribution guideline.

728x90x4

Source link

Continue Reading

Tech

Record low prices hit Apple's M3 MacBook Pro 14-inch, now on sale from $1,399 – AppleInsider

Published

 on




B&H has dropped MacBook Pro prices further as March comes to a close. Pick up an M3 MacBook Pro with 16GB RAM for just $1,549 — or opt for the M3 Pro MacBook Pro 14-inch for $1,699. Both are record-breaking deals.

14-inch models

16-inch models

300x250x1

There are numerous MacBook Pro deals on upgraded configurations, so if you’re looking for an M3 Max configuration or extra storage, it’s worth checking out our Mac Price Guide to shop the latest sales.

Even more month-end deals on Apple

Best Apple prices

Aggressive savings are in effect now on nearly every current Mac. You can also find discounted prices on streaming services, closeout models and software. Here are a few of the top deals going on now:

Adblock test (Why?)

728x90x4

Source link

Continue Reading

Tech

Apple's (NASDAQ:AAPL) New iPad Pro and iPad Air to Hit Markets Soon – TipRanks.com – TipRanks

Published

 on


Apple (NASDAQ:AAPL) is likely to introduce its new iPad Pro and iPad Air as soon as May. The much-anticipated product launch will come just ahead of Apple’s Worldwide Developers Conference (WWDC) in June.

End to a Long Wait

As the much-awaited moment draws near, Bloomberg reports that the tech giant’s suppliers have already ramped up production of the devices. For Apple’s devout customers, the introduction of the revamped iPads marks the end of a nearly 18-month drought of major new releases from the company. The iPads are expected to boast features such as new OLED displays for the Pro model and an option for a 12.9-inch screen for the Air model.

Revamped iPads Unleashed

The long wait for new iPad models has resulted in sluggish tablet sales for Apple in recent times. Consequently, the company will likely look to the revamped versions to boost demand. Additionally, Apple is introducing more processing power to the new versions. The Pro models will feature a new M3 chip. Similarly, the iPad Air is also receiving an upgrade with a new processor, moving from its last version’s M1 chip to the latest technology.

300x250x1

What to Expect in June

Importantly, the product launches are scheduled just before Apple’s highly anticipated annual Worldwide Developers Conference. This event is slated for June 10. The iPhone maker is widely expected to unveil its AI strategy as well as software updates for its range of products at the event. 

Is Apple a Buy, Sell, or a Hold?

Apple’s share price has corrected by nearly 11% year-to-date. The Street has a cautiously optimistic stance on the stock with a Moderate Buy consensus rating. Furthermore, the average AAPL price target of $203.40 points to an 18.6% potential upside in the company’s share price.

Read full Disclosure

Adblock test (Why?)

728x90x4

Source link

Continue Reading

Tech

Take-Two Interactive to Acquire 'Borderlands' Developer Gearbox From Embracer Group for $460 Million – Yahoo Canada Sports

Published

 on


Take-Two Interactive has acquired video game developer Gearbox, the maker of the “Borderlands” franchise, from Embracer Group for $460 million.

Per Take Two, the company “expects the transaction to deepen its successful relationship with Gearbox Entertainment and to provide increased financial benefits through a fully integrated operational structure.”

More from Variety

300x250x1

As part of the deal, Take-Two will acquire Gearbox IP, including “Borderlands” and “Tiny Tina’s Wonderlands” franchises, games published by Take-Two’s 2K Games, as well as “Homeworld,” “Risk of Rain,” “Brothers in Arms” and “Duke Nukem.”

Currently, Gearbox has six “key interactive entertainment projects in various stages of development,” per Take-Two, which includes five sequels, two from “Borderlands” and “Homeworld” universes, and at least one “exciting new intellectual property,” all of which have been acquired in the sale.

Take-Two’s purchase of Gearbox is expected to close in June, pending regulatory approval. Upon completion, Gearbox will operate as a studio within 2K, continuing to be led by Gearbox CEO Randy Pitchford and his management team.

Former Gearbox owner Embracer, a Swedish gaming conglomerate who snapped up the rights to “Lord of the Rings” two years ago, has undergone a severe restructuring program over the past year, which has seen the company shut down or dispose of dozens of games studios and titles and lay off hundreds of staff, resulting in aftershocks that have reverberated throughout the games industry.

The sale of Gearbox marks the latest insistence of Embracer unloading assets, following the company divesting Saber Interactive.

“Our acquisition of Gearbox is an exciting moment for Take-Two and will strengthen our industry-leading creative talent and portfolio of owned intellectual property, including the iconic Borderlands franchise,” Take-Two CEO Strauss Zelnick said. “This combination enhances the financial profile of our existing projects with Gearbox and unlocks the opportunity for us to drive increased long-term growth by leveraging the full resources of Take-Two across all of Gearbox’s exciting initiatives.”

Best of Variety

Sign up for Variety’s Newsletter. For the latest news, follow us on Facebook, Twitter, and Instagram.

Adblock test (Why?)

728x90x4

Source link

Continue Reading

Trending