Skip to content

Commit

Permalink
feat: TypeScript 5.7
Browse files Browse the repository at this point in the history
  • Loading branch information
mrgrain committed Nov 28, 2024
1 parent 523019d commit 0f58236
Show file tree
Hide file tree
Showing 18 changed files with 251 additions and 15 deletions.
3 changes: 2 additions & 1 deletion .backportrc.json

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

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.6.yml

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

2 changes: 1 addition & 1 deletion .github/workflows/auto-tag-dev.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.6.yml

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

2 changes: 1 addition & 1 deletion .github/workflows/auto-tag-releases.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.6.yml

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

3 changes: 3 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.

3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,8 @@ The current status of `jsii` compiler releases is:

| Release | Status | EOS | Comment |
| ------- | ----------- | ---------- | --------------------------------------------------------------------------------------- |
| `5.6.x` | Current | TBD | ![npm](https://img.shields.io/npm/v/jsii/v5.6-latest?label=jsii%40v5.6-latest&logo=npm) |
| `5.6.x` | Current | TBD | ![npm](https://img.shields.io/npm/v/jsii/v5.7-latest?label=jsii%40v5.7-latest&logo=npm) |
| `5.7.x` | Maintenance | 2025-07-01 | ![npm](https://img.shields.io/npm/v/jsii/v5.6-latest?label=jsii%40v5.6-latest&logo=npm) |
| `5.5.x` | Maintenance | 2025-05-15 | ![npm](https://img.shields.io/npm/v/jsii/v5.5-latest?label=jsii%40v5.5-latest&logo=npm) |
| `5.4.x` | Maintenance | 2025-02-28 | ![npm](https://img.shields.io/npm/v/jsii/v5.4-latest?label=jsii%40v5.4-latest&logo=npm) |

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,7 +2,7 @@ import { JsonFile, Project } from 'projen';
import type { ReleasesDocument } from '../src/support';

export const SUPPORT_POLICY: ReleasesDocument = {
current: '5.6',
current: '5.7',
maintenance: {
// version: End-of-support date
'5.0': new Date('2024-01-31'),
Expand All @@ -11,6 +11,7 @@ export const SUPPORT_POLICY: ReleasesDocument = {
'5.3': new Date('2024-10-15'),
'5.4': new Date('2025-02-28'),
'5.5': new Date('2025-05-15'),
'5.6': new Date('2025-07-01'),
},
};

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.

6 changes: 6 additions & 0 deletions src/tsconfig/validator.ts
Original file line number Diff line number Diff line change
Expand Up @@ -192,6 +192,12 @@ function wrapMatcher(matcher: Matcher, message: (actual: any) => string, allowed
*/
function looseEqual(a: any, b: any): boolean {
try {
// if one of the values is an object (or array), but the other isn't - never consider them the same
if ([typeof a, typeof b].filter((t) => t === 'object').length === 1) {
return false;
}
// if both values are the same object
// or if both values are loose equal
return Object.is(a, b) || a == b;
} catch {
return false;
Expand Down
4 changes: 2 additions & 2 deletions test/compiler.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ describe(Compiler, () => {
} finally {
rmSync(sourceDir, { force: true, recursive: true });
}
}, 15_000);
}, 25_000);

test('rootDir is added to assembly', () => {
const outDir = 'jsii-outdir';
Expand Down Expand Up @@ -336,7 +336,7 @@ describe(Compiler, () => {
} finally {
rmSync(sourceDir, { force: true, recursive: true });
}
}, 15_000);
}, 25_000);
});

describe('compressed assembly option', () => {
Expand Down
2 changes: 2 additions & 0 deletions test/tsconfig/helpers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -192,6 +192,8 @@ export function fcTsconfig(
isolatedDeclarations: fc.boolean(),
strictBuiltinIteratorReturn: fc.boolean(),
noUncheckedSideEffectImports: fc.boolean(),
noCheck: fc.boolean(),
rewriteRelativeImportExtensions: fc.boolean(),
};

// limit to only allowed keys
Expand Down
Loading

0 comments on commit 0f58236

Please sign in to comment.