Skip to content

Commit

Permalink
feat: TypeScript 5.4 (#855)
Browse files Browse the repository at this point in the history
[TypeScript 5.4 has been
released](https://devblogs.microsoft.com/typescript/announcing-typescript-5-4/).
This moves jsii-compiler 5.3 into maintenance mode.

---

By submitting this pull request, I confirm that my contribution is made
under the terms of the [Apache 2.0 license].

[Apache 2.0 license]: https://www.apache.org/licenses/LICENSE-2.0

---------

Signed-off-by: Eli Polonsky <[email protected]>
Signed-off-by: github-actions <[email protected]>
Co-authored-by: Momo Kornher <[email protected]>
Co-authored-by: github-actions <[email protected]>
  • Loading branch information
3 people authored Apr 8, 2024
1 parent fabfd99 commit 9788532
Show file tree
Hide file tree
Showing 13 changed files with 248 additions and 46 deletions.
3 changes: 3 additions & 0 deletions .gitattributes

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

59 changes: 59 additions & 0 deletions .github/workflows/auto-tag-dev-v5.3.yml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

59 changes: 59 additions & 0 deletions .github/workflows/auto-tag-releases-v5.3.yml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

97 changes: 97 additions & 0 deletions .github/workflows/upgrade-maintenance-v5.3.yml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 4 additions & 0 deletions .gitignore

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion .projen/deps.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 3 additions & 0 deletions .projen/files.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 3 additions & 2 deletions .projenrc.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,13 @@ import { UpgradeDependencies } from './projenrc/upgrade-dependencies';
// See 'projenrc/support.ts' for TypeScript versions we are tracking. To add a new version:
//
// 1. Fork the current `main` to a maintenance branch:
// `git push origin main:maintenance/v5.2`
// `git push origin main:maintenance/vx.y` (x.y is the TS version that is about to be replaced by a new release)
// 2. Add a branch protection rule for the new maintenance branch
// 3. Edit `support.ts`, maintenance EOL date for the current version is 6 months from
// today, make the new version current.
// 4. Update `minNodeVersion` to the oldest LTS version of Node (i.e. dropping support for EOL versions of Node)
// 5. `npx projen`
// 6. Update the version list in the README.
// 6. Update the version list in the README (remember to remove EOS versions)
// 7. Create a PR
// 8. Perform new version steps for `jsii-rosetta`

Expand Down Expand Up @@ -239,6 +239,7 @@ project.preCompileTask.exec('ts-node build-tools/code-gen.ts', {
name: 'code-gen',
});
project.gitignore.addPatterns('/src/version.ts', '/jsii-outdir/', '/test/negatives/.*');
project.gitignore.exclude('.DS_Store');

// Exclude negatives from tsconfig and eslint...
project.tsconfigDev.addExclude('test/negatives/**/*.ts');
Expand Down
13 changes: 6 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -62,13 +62,12 @@ The applicable _Maintenance & Support policy_ can be reviewed in [SUPPORT.md](./

The current status of `jsii` compiler releases is:

| Release | Status | Comment |
| ------- | ----------- | --------------------------------------------------------------------------------------- |
| `5.3.x` | Current | ![npm](https://img.shields.io/npm/v/jsii/v5.3-latest?label=jsii%40v5.3-latest&logo=npm) |
| `5.2.x` | Maintenance | ![npm](https://img.shields.io/npm/v/jsii/v5.2-latest?label=jsii%40v5.2-latest&logo=npm) |
| `5.1.x` | Maintenance | ![npm](https://img.shields.io/npm/v/jsii/v5.1-latest?label=jsii%40v5.1-latest&logo=npm) |
| `5.0.x` | Maintenance | ![npm](https://img.shields.io/npm/v/jsii/v5.0-latest?label=jsii%40v5.0-latest&logo=npm) |
| `1.x` | Maintenance | <https://github.com/aws/jsii> |
| Release | Status | EOS | Comment |
| ------- | ----------- |------------| --------------------------------------------------------------------------------------- |
| `5.4.x` | Current | TBD | ![npm](https://img.shields.io/npm/v/jsii/v5.4-latest?label=jsii%40v5.4-latest&logo=npm) |
| `5.3.x` | Maintenance | 2024-10-07 | ![npm](https://img.shields.io/npm/v/jsii/v5.3-latest?label=jsii%40v5.3-latest&logo=npm) |
| `5.2.x` | Maintenance | 2024-06-30 | ![npm](https://img.shields.io/npm/v/jsii/v5.2-latest?label=jsii%40v5.2-latest&logo=npm) |
| `1.x` | Maintenance | 2024-10-31 | <https://github.com/aws/jsii> |

## :balance_scale: License

Expand Down
2 changes: 1 addition & 1 deletion package.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion projenrc/support.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,13 @@ import { JsonFile, Project } from 'projen';
import type { ReleasesDocument } from '../src/support';

export const SUPPORT_POLICY: ReleasesDocument = {
current: '5.3',
current: '5.4',
maintenance: {
// version: End-of-support date
'5.0': new Date('2024-01-31'),
'5.1': new Date('2024-02-28'),
'5.2': new Date('2024-06-30'),
'5.3': new Date('2024-10-15'),
},
};

Expand Down
5 changes: 3 additions & 2 deletions releases.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 9788532

Please sign in to comment.