Prettier 2.7; Deno 1.23; web streams; block statements; statically transform module specifiers

ES.nextNews: the latest in JavaScript and cross-platform tools
Curated by Dr. Axel Rauschmayer and Johannes Weber.

ES.next News

The latest in JavaScript and cross-platform tools

Prettier 2.7: new --cache CLI option and TypeScript 4.7 syntax
prettier.io@__sosukesuzuki, @PrettierCode
Highlights – quoting the blog post:
  • This release includes a new --cache CLI option. Enabling this option will use some attributes as cache keys and format files only if they have changed. This could dramatically improve CLI performance.
  • We’ve also added support for formatting TypeScript 4.7 syntax!


Deno 1.23: no type-checking by default (deno run, deno eval, deno cache) and more
deno.com@biwanczuk, @davidsherret, github/ry, @kt3k, @satyarohith_, @deno_land
  • No type-checking by default in deno run, deno eval, and deno cache
  • File watcher watches dynamic imports
  • Updates to deno task
  • Updates to deno fmt
  • deno info supports --config and --no-config flags
  • REPL: Use Ctrl-S to insert newlines into your input
  • SIGINT and SIGBREAK signal listening support on Windows
  • Support for "deflate-raw" in CompressionStream and DecompressionStream
  • TypeScript 4.7
  • Changes to flags standard module (which parses command line arguments)
  • Changes to assertThrows and assertRejects


Add 90+ code assists and refactorings to Visual Studio Code
marketplace.visualstudio.com Sponsor
Refactor JavaScript, TypeScript, React and Vue.js code. With the P42 JavaScript Assistant.


Using web streams on Node.js
2ality.com@2ality
Web streams are a new standard that works on browsers, Node.js and Deno. For example, the Response returned by fetch() has a property .body with a web stream.

The blog post is a tutorial for using web streams with many code examples. It focuses on Node.js but most of the content also applies to other platforms.



The JavaScript block statement
www.webpro.nl@webprolific
Nested block statements enable you to reuse variable names. Which can be helpful – e.g. in tests and in consoles:
function test() {
  const type = 'some';
  {
    const thing = getThing(type, 1);
    assert.equal(thing, 1);
  }
  {
    const thing = getThing(type, 2);
    assert.equal(thing, 2);
  }
}


Use esm-import-transformer for “isomorphic-ish” ECMAScript modules
www.zachleat.com@zachleat
The utility esm-import-transformer lets you search and replace module specifiers in JavaScript source code. One use case is to translate code for Node.js to code that works on browsers:
// Before
import {html, css, LitElement} from "lit";
// After
import {html, css, LitElement} from "https://cdn.jsdelivr.net/gh/lit/dist@2/core/lit-core.min.js";



Looking for deeply qualified employees or customers? Advertise on ES.next News!
ES.next News reaches over 14,000 highly skilled and motivated developers. We take their trust seriously and have high editorial standards.
Check out our media data and get directly in touch with us.
Follow on Twitter

This email was sent to you. Want to change how you receive these emails?
You can unsubscribe from this list

Older messages

TC39 meeting in June; Rome Tools 0.6.0; aborting asynchronous tasks; querying node_modules

Tuesday, June 14, 2022

ES.nextNews: the latest in JavaScript and cross-platform tools Curated by Dr. Axel Rauschmayer and Johannes Weber. ES.next News The latest in JavaScript and cross-platform tools Updates from TC39

Node v18.3.0; logging and error handling; monorepos; Node.js testing; Wasm in JS ecosystem

Tuesday, June 7, 2022

ES.nextNews: the latest in JavaScript and cross-platform tools Curated by Dr. Axel Rauschmayer and Johannes Weber. ES.next News The latest in JavaScript and cross-platform tools Node v18.3.0 (current):

Parcel v2.6.0; Lerna 5; processing Arrays non-destructively; managing local dependencies; converting libraries from Node.js to Deno

Tuesday, May 31, 2022

ES.nextNews: the latest in JavaScript and cross-platform tools Curated by Dr. Axel Rauschmayer and Johannes Weber. ES.next News The latest in JavaScript and cross-platform tools Parcel v2.6.0 parceljs.

Babel 7.18.0; ESLint v8.16.0; Deno 1.22; JavaScript MIME type; property paths

Tuesday, May 24, 2022

ES.nextNews: the latest in JavaScript and cross-platform tools Curated by Dr. Axel Rauschmayer and Johannes Weber. ES.next News The latest in JavaScript and cross-platform tools Babel 7.18.0:

Community Group for non-browser JS platforms; universal JavaScript; JavaScript containers; Jest joins OpenJS Foundation; esbuild

Tuesday, May 17, 2022

ES.nextNews: the latest in JavaScript and cross-platform tools Curated by Dr. Axel Rauschmayer and Johannes Weber. ES.next News The latest in JavaScript and cross-platform tools WinterCG: Community

Infographic | Visualizing the Impact of Rising Sea Levels, by Country 🌎

Saturday, June 25, 2022

Here's a look at how people around the world could be impacted by coastal flooding by 2100, based on rising sea level projections. View Online | Subscribe Presented by: Support the Future of Data

Daily Coding Problem: Problem #799 [Easy]

Saturday, June 25, 2022

Daily Coding Problem Good morning! Here's your coding interview problem for today. This problem was asked by Google. Implement a PrefixMapSum class with the following methods: insert(key: str,

How Far Can an Electric Car Go on One Charge?

Saturday, June 25, 2022

Did You Know?: It took Apollo astronauts approximately three days to get to the Moon, but the New Horizons probe reached (and passed) the Moon in a speedy 8 hours 35 minutes—it helped, of course, that

Noonification: The Dark Side of Antri

Saturday, June 25, 2022

Top Tech Content sent at Noon High-impact Emerging Tech Careers Advice The Noonification: Your Daily Dose of Electrifying Tech Content at Noon, by HackerNoon Hey there, 🪐 What's happening in tech

Week in Review - The ruling against Juuling?

Saturday, June 25, 2022

TechCrunch Newsletter TechCrunch logo Week in Review logo By Henry Pickavet Saturday, June 25, 2022 Hello and welcome back to Week in Review, your one-stop spot for the biggest stories from the week.

Internet Service Provides (ISPs) Helped Hackers Infect Smartphones with Spyware

Saturday, June 25, 2022

The Hacker News Daily Updates Newsletter cover Nuance Gatekeeper - a Cloud-native Biometric Security Solution with up to 99% success rates. Authenticates legitimate persons and detects fraudsters

Startups Weekly - What do you call the opposite of the startup halo effect?

Saturday, June 25, 2022

TechCrunch Newsletter TechCrunch logo Startups Weekly logo By Natasha Mascarenhas Saturday, June 25, 2022 Welcome to Startups Weekly, a fresh human-first take on this week's startup news and trends

Does Your MacBook Need a Case?

Saturday, June 25, 2022

Read in Browser Logo for Review Geek June 25, 2022 The new Macbook Air and Macbook Pro are here, and they're probably better than ever. The Pro is just a minor refresh, to be fair, but that refresh

[Python Dependency Pitfalls] A total mess?

Saturday, June 25, 2022

Hey there, Recently I watched a Pythonista ask for advice on setting up a Python project on his work machine. This new developer had some prior experience with NodeJS and had just started to get his

[PythonistaCafe] What makes PythonistaCafe different

Saturday, June 25, 2022

Hey there, Mastering Python is *not* just about getting the books and courses to study—to be successful you also need a way to stay motivated and to grow your abilities in the long run. Many