Skip to content

Commit

Permalink
feat: support TypeScript 5.1
Browse files Browse the repository at this point in the history
  • Loading branch information
JoshuaKGoldberg committed Jun 6, 2023
1 parent a2b6b2e commit c975543
Show file tree
Hide file tree
Showing 19 changed files with 3,017 additions and 15 deletions.
4 changes: 4 additions & 0 deletions .prettierignore
Expand Up @@ -17,6 +17,10 @@ packages/ast-spec/src/element/AccessorProperty/fixtures
# prettier doesn't yet support `const` modifiers for type parameters
packages/ast-spec/src/special/TSTypeParameter/fixtures

# prettier doesn't yet support JSX namespaced attributes
packages/ast-spec/src/jsx/JSXNamespacedName/fixtures/component/fixture.tsx
packages/scope-manager/tests/fixtures/jsx/namespaced-attribute.tsx

# Ignore CHANGELOG.md files to avoid issues with automated release job
CHANGELOG.md

Expand Down
2 changes: 1 addition & 1 deletion docs/maintenance/Versioning.mdx
Expand Up @@ -52,7 +52,7 @@ Support for specific Current status releases are considered periodically.

### TypeScript

> The version range of TypeScript currently supported is `>=3.3.1 <5.1.0`.
> The version range of TypeScript currently supported is `>=3.3.1 <5.2.0`.
These versions are what we test against.

Expand Down
5 changes: 2 additions & 3 deletions package.json
Expand Up @@ -68,7 +68,6 @@
"@types/is-glob": "^4.0.2",
"@types/jest": "29.4.4",
"@types/jest-specific-snapshot": "^0.5.5",
"@types/lodash": "^4.14.182",
"@types/marked": "^4.0.3",
"@types/ncp": "^2.0.5",
"@types/node": "^18.11.9",
Expand Down Expand Up @@ -112,10 +111,10 @@
"ts-node": "10.7.0",
"tslint": "^6.1.3",
"tsx": "^3.12.1",
"typescript": ">=3.3.1 <5.1.0"
"typescript": ">=3.3.1 <5.2.0"
},
"resolutions": {
"typescript": "~5.0.2",
"typescript": "~5.1.3",
"@types/node": "^18.11.9",
"@jest/create-cache-key-function": "^29",
"@jest/reporters": "^29",
Expand Down
@@ -0,0 +1,10 @@
const x = <NamespacePropComponent a:b="tight spacing" />;
const y = <NamespacePropComponent a : b="loose spacing" />;

interface NamespacePropComponentProps {
"a:b": string;
}

function NamespacePropComponent(props: NamespacePropComponentProps) {
return <div>{props["a:b"]}</div>;
}

0 comments on commit c975543

Please sign in to comment.