microsoft / TypeScript

TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
https://www.typescriptlang.org
Apache License 2.0
100.06k stars 12.37k forks source link

TypeScript 4.7 Iteration Plan #48027

Closed DanielRosenwasser closed 2 years ago

DanielRosenwasser commented 2 years ago

This document outlines our focused tasks for TypeScript 4.7. It minimally indicates intent to investigate tasks or contribute to an implementation. Nothing is set in stone, but we will strive to complete these tasks in a reasonable timeframe.

Date Event
TBD TypeScript 4.6 Release
April 1st Create 4.7 Beta (4.7.0) Build for Testing
April 5th TypeScript 4.7 Beta Release
May 6th Create 4.7 RC (4.7.1) Build for Testing
May 10th TypeScript 4.7 RC Release
May 20th Create 4.7 Final (4.7.2) Build for Testing
May 24th TypeScript 4.7 Final Release 🚀

Language and Compiler Features

Editor Productivity

Performance

Infrastructure

Website

vietanhtran16 commented 2 years ago

Hello, I am not sure if this is the right place for this but we got the below issue with version 4.7.0-dev.20220320 (this is automatically selected by VSCode) like the below image. We did some testing and noticed that this issue does not show up for version below 4.7.0, in our case 4.6.2 and 4.1.5 work fine. If this is not the right place for this, please let me know. Thanks

Context:

const [responseOne, responseTwo] = await Promise.all([ // it complains about the below error here
    fetch("https://something/v1", { req, timeout: 5000 }),
    fetch(
      "https://something/v2",
      { req, timeout: 5000 }
    )
  ])

image

aladdin-add commented 2 years ago

@vietanhtran16 yes, the issue is not for bug report, please file a new issue. :)

vietanhtran16 commented 2 years ago

@vietanhtran16 yes, the issue is not for bug report, please file a new issue. :)

Cool I will file a new one

DanielRosenwasser commented 2 years ago

@typescript-bot create release-4.7

typescript-bot commented 2 years ago

Heya @DanielRosenwasser, I've started to create the release-4.7 branch for you. Here's the link to my best guess at the log.

DanielRosenwasser commented 2 years ago

Looks like it's probably failing because of the Node ESM stuff which we were hoping to unflag for the beta at the least. There's also some basic bug fixes I'd like us to pull in before beta, so maybe we'll go out on April 6th instead.

DanielRosenwasser commented 2 years ago

@typescript-bot create release-4.7

typescript-bot commented 2 years ago

Heya @DanielRosenwasser, I've started to create the release-4.7 branch for you. Here's the link to my best guess at the log.

DanielRosenwasser commented 2 years ago

The feature roadmap now better-reflects what we've been able to get done for 4.7.

Jack-Works commented 2 years ago

I still want to suggest typescript to drop Node 12 in new Node ESM. Lets start from Node 14. Node 14 has TLA support.

image

Node 12 will end LTS this month.

lvelden commented 2 years ago

Hi! I've seen the 4.7-beta announcement, but it's not listed under releases and there's also no v4.7-beta tag. Are you planning on adding this?

DanielRosenwasser commented 2 years ago

Sorry, tag for 4.7 beta should be out https://github.com/microsoft/TypeScript/releases/tag/v4.7-beta

diervo commented 2 years ago

@DanielRosenwasser is there a specific tag or semantics for filing issues against this beta that will help streamline the process?

DanielRosenwasser commented 2 years ago

Just open up issues and fill out the template, maybe signal specifically whether you've found a regression or a bug in a new feature.

DanielRosenwasser commented 2 years ago

We've moved resolution-mode from import type and export type into nightly-only, so I cannot summon the bot. The bump to RC is at https://github.com/microsoft/TypeScript/pull/49007.

DanielRosenwasser commented 2 years ago

4.8 Iteration Plan is available at https://github.com/microsoft/TypeScript/issues/49074

RyanCavanaugh commented 2 years ago

@typescript-bot bump release-4.7

typescript-bot commented 2 years ago

Heya @RyanCavanaugh, I've started to update the version number on release-4.7 to 4.7.2 for you. Here's the link to my best guess at the log.

Jamesernator commented 2 years ago

Just wanted to point out one mistake in the TypeScript 4.7 RC release notes that should probably be fixed for the full release and that's that the line:

Certain global-like values like require() and process cannot be used directly.

Is actually incorrect for process, unlike require which a per-cjs-module injected thing, the process object is actually just a property of global so is usable in ESM as a global without problems.

An alternative object for the sentence could the module per-cjs-module object i.e.:

Certain global-like values like require() and module cannot be used directly.
DanielRosenwasser commented 2 years ago

Thank you for that correction!

DanielRosenwasser commented 2 years ago

TypeScript 4.7 is now out!

HolgerJeromin commented 2 years ago

Happy to test, but linked Typescript SDK has a 404 and nuget.org has a 4.7.2-rc (hu?). But npm is available :-)

ref microsoft/TypeScript#48456

DensedyGot commented 2 years ago

I installed the typescript 4.7.2 but I encountered an error

Module build failed (from ./node_modules/ts-loader/index.js): Error: Debug Failure. False expression: Non-string value passed to ts.resolveTypeReferenceDirective, likely by a wrapping package working with an outdated resolveTypeReferenceDirectives signature. This is probably not a problem in TS itself.

I'm using Node@16.15.0 and npm@8.11.0

Here are some of the packages I used @fluentui/react@8.70.0 @types/react@17.0.45 react@17.0.2 react-dom@7.0.2 @types/node@16.11.36 @typescript-eslint/eslint-plugin@4.29.0 @typescript-eslint/parser@4.29.0 eslint@7.32.0 eslint-config-standard@16.0.2 eslint-plugin-import@2.26.0 eslint-plugin-node@11.1.0 eslint-plugin-promise@5.1.0 typescript@4.7.2

DanielRosenwasser commented 2 years ago

@typescript-bot bump release-4.7

typescript-bot commented 2 years ago

Heya @DanielRosenwasser, I've started to update the version number on release-4.7 to 4.7.3 for you. Here's the link to my best guess at the log.

DanielRosenwasser commented 2 years ago

@typescript-bot bump release-4.7

typescript-bot commented 2 years ago

Heya @DanielRosenwasser, I've started to update the version number on release-4.7 to 4.7.4 for you. Here's the link to my best guess at the log.