Skip to content

Commit

Permalink
Update support schedule in READMEs (DefinitelyTyped#44402)
Browse files Browse the repository at this point in the history
  • Loading branch information
sandersn authored May 1, 2020
1 parent dfa1dc8 commit e3f5f98
Show file tree
Hide file tree
Showing 5 changed files with 17 additions and 12 deletions.
5 changes: 3 additions & 2 deletions README.cn.md
Original file line number Diff line number Diff line change
Expand Up @@ -59,9 +59,9 @@ npm install --save-dev @types/node
这通常会在 `package.json` 文件中的 `"types"``"typings"` 字段中提供,
或者可以只查找包中的任何 ".d.ts" 文件并手动将它们包含在 `/// <reference path="" />`.

#### 旧版本的 TypeScript(2.7 和更早版本)
#### 旧版本的 TypeScript(2.8 和更早版本)

Definitely Typed 仅在小于 2 年的 TypeScript 版本上测试软件包。当前已测试 2.8 及更高版本。如果您使用的是 TypeScript 2.0 到 2.7,仍然可以尝试安装 @types 软件包,大多数软件包都不使用 TypeScript 的新特性。但是不能保证它们会起作用,这是支持窗口:
Definitely Typed 仅在小于 2 年的 TypeScript 版本上测试软件包。当前已测试 2.9 及更高版本。如果您使用的是 TypeScript 2.0 到 2.8,仍然可以尝试安装 @types 软件包,大多数软件包都不使用 TypeScript 的新特性。但是不能保证它们会起作用,这是支持窗口:

Version | Released | End of Support
-- | -- | --
Expand All @@ -76,6 +76,7 @@ Version | Released | End of Support
3.6 | August 2019 | August 2021
3.7 | November 2019 | November 2021
3.8 | February 2020 | February 2022
3.9 | May 2020 | May 2022

`@types` 软件包具有它们明确支持的 TypeScript 版本的标记,因此通常可以获取早于 2 年窗口的较早版本的软件包。例如,如果运行 `npm dist-tags @types/react`,您将看到 TypeScript 2.5 可以将类型用于 [email protected],而 TypeScript 2.6 和 2.7 可以将类型用于 [email protected]

Expand Down
5 changes: 3 additions & 2 deletions README.es.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,10 +32,10 @@ Si aún no puedes encontrarlo, comprueba si el paquete ya [incluye](http://www.t
Esto es provisto usualmente en el campo `"types"` o `"typings"` en el `package.json`,
o solo busca por cualquier archivo ".d.ts" en el paquete e inclúyelo manualmente con un `/// <reference path="" />`.

#### Versiones más viejas de Typescript (2.7 y anteriores)
#### Versiones más viejas de Typescript (2.8 y anteriores)

Definitely Typed solamente prueba paquetes en versiones de TypeScript que son menores a 2 años.
Actualmente, las versiones 2.8 y posteriores están siendo probadas. Si estas usando TypeScript 2.0 a 2.7, puedes intentar instalando paquetes `@types` &mdash; la mayoría de los paquetes no usan los beneficios de Typescript más nuevos. No hay garantía de que funcionen.
Actualmente, las versiones 2.9 y posteriores están siendo probadas. Si estas usando TypeScript 2.0 a 2.8, puedes intentar instalando paquetes `@types` &mdash; la mayoría de los paquetes no usan los beneficios de Typescript más nuevos. No hay garantía de que funcionen.
Versiones soportadas:

Versión | Liberado | Fin de soporte
Expand All @@ -51,6 +51,7 @@ Versión | Liberado | Fin de soporte
3.6 | Agosto 2019 | Agosto 2021
3.7 | Noviembre 2019 | Noviembre 2021
3.8 | Febrero 2020 | Febrero 2022
3.9 | Mayo 2020 | Mayo 2022

Los paquetes `@types` tienen etiquetas para las versiones de Typescript que explícitamente soportan, usualmente puedes obtener versiones más viejas de los paquetes anteriores a 2 años.
Por ejemplo, si ejecutas `npm dist-tags @types/react`, observaras que Typescript 2.5 puede usar types para [email protected], a su vez, Typescript 2.6 y 2.7 pueden usar types para [email protected].
Expand Down
7 changes: 4 additions & 3 deletions README.ko.md
Original file line number Diff line number Diff line change
Expand Up @@ -65,11 +65,11 @@ NPM 의 "foo" 패키지에 대응되는 자료형 패키지는 "@types/foo" 입
이 경우 주로 `package.json` 파일의 `"types"``"typings"` 필드(Field)를 통해 제공되지만,
`/// <reference path="" />` 같은 주석을 사용하여 패키지 안의 ".d.ts" 파일들을 직접 가져와야 할 수도 있습니다.

#### 이전 버전 TypeScript (2.7 또는 그 이전)
#### 이전 버전 TypeScript (2.8 또는 그 이전)

Definitely Typed는 2년이 지나지 않은 TypeScript 버전만을 대상으로 패키지를 테스트합니다.
현재 버전 2.8 및 그 이상만을 테스트하고 있습니다.
TypeScript 2.0에서 2.7 버전을 사용하는 경우, 그래도 `@types` 패키지를 한번 설치해 보셔도 무방합니다. 최신 TypeScript 기능을 사용하는 패키지는 그리 많지 않으니까요.
현재 버전 2.9 및 그 이상만을 테스트하고 있습니다.
TypeScript 2.0에서 2.8 버전을 사용하는 경우, 그래도 `@types` 패키지를 한번 설치해 보셔도 무방합니다. 최신 TypeScript 기능을 사용하는 패키지는 그리 많지 않으니까요.
그러나 작동 여부를 보장하지는 못합니다.
지원 기간은 다음과 같습니다:

Expand All @@ -86,6 +86,7 @@ TypeScript 2.0에서 2.7 버전을 사용하는 경우, 그래도 `@types` 패
3.6 | 2019년 8월 | 2021년 8월
3.7 | 2019년 11월 | 2021년 11월
3.8 | 2020년 2월 | 2022년 2월
3.9 | 2020년 5월 | 2022년 5월

`@types` 패키지 안에는 패키지가 확실하게 지원하는 TypeScript 버전이 태그로 쓰여 있으므로, 2년 지원 기간이 지난 오래된 패키지도 보통 찾아보실 수 있습니다.
예를 들어, `npm dist-tags @types/react` 명령어를 입력하면 TypeScript 2.5는 [email protected]용 타입을, TypeScript 2.6 및 2.7은 [email protected]용 타입을 사용할 수 있는 것을 확인하실 수 있습니다:
Expand Down
7 changes: 4 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -65,11 +65,11 @@ If you still can't find it, check if it [bundles](http://www.typescriptlang.org/
This is usually provided in a `"types"` or `"typings"` field in the `package.json`,
or just look for any ".d.ts" files in the package and manually include them with a `/// <reference path="" />`.

#### Older versions of TypeScript (2.7 and earlier)
#### Older versions of TypeScript (2.8 and earlier)

Definitely Typed only tests packages on versions of TypeScript that are less than 2 years old.
Currently versions 2.8 and above are tested.
If you're using TypeScript 2.0 to 2.7, you can still try installing `@types` packages &mdash; the majority of packages don't use fancy new TypeScript features.
Currently versions 2.9 and above are tested.
If you're using TypeScript 2.0 to 2.8, you can still try installing `@types` packages &mdash; the majority of packages don't use fancy new TypeScript features.
But there's no guarantee that they'll work.
Here is the support window:

Expand All @@ -86,6 +86,7 @@ Version | Released | End of Support
3.6 | August 2019 | August 2021
3.7 | November 2019 | November 2021
3.8 | February 2020 | February 2022
3.9 | May 2020 | May 2022

`@types` packages have tags for versions of TypeScript that they explicitly support, so you can usually get older versions of packages that predate the 2-year window.
For example, if you run `npm dist-tags @types/react`, you'll see that TypeScript 2.5 can use types for [email protected], whereas TypeScript 2.6 and 2.7 can use types for [email protected]:
Expand Down
5 changes: 3 additions & 2 deletions README.ru.md
Original file line number Diff line number Diff line change
Expand Up @@ -71,10 +71,10 @@ npm install --save-dev @types/node
Если вы все еще не можете найти его, проверьте [включает](https://www.typescriptlang.org/docs/handbook/declaration-files/publishing.html) ли пакет собственную типизацию.
Обычно это отражается в поле `"types"` или `"typings"` файла `package.json`, или просто ищите любые файлы «.d.ts» в пакете и вручную включайте их с помощью `/// <reference path="" />`.

#### Typescript 2.7 и старее
#### Typescript 2.8 и старее

Начиная с ноября 2019 года, Definitely Typed тестирует пакеты только на версиях Typescript, которым меньше двух лет.
Если вы используете Typescript от 2.0 до 2.7, вы все равно можете попробовать установить пакеты `@types` - большинство пакетов не используют новые функции Typescript.
Если вы используете Typescript от 2.0 до 2.8, вы все равно можете попробовать установить пакеты `@types` - большинство пакетов не используют новые функции Typescript.
Но нет гарантии, что они будут работать.

График обновлений:
Expand All @@ -92,6 +92,7 @@ npm install --save-dev @types/node
3.6 | Август 2019 | Август 2021
3.7 | Ноябрь 2019 | Ноябрь 2021
3.8 | Февраль 2020 | Февраль 2022
3.9 | Май 2020 | Май 2022


Пакеты, которые существовали до ноября 2019 года, могут иметь более старые версии, которые явно помечены как совместимые с более старыми версиями Typescript; используйте тег "ts2.6" для Typescript 2.6, например.
Expand Down

0 comments on commit e3f5f98

Please sign in to comment.