typescript 5.1.0-dev.20230508 → 5.1.0-dev.20230510

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -54,7 +54,7 @@ var path = __toESM(require("path"));
54
54
 
55
55
  // src/compiler/corePublic.ts
56
56
  var versionMajorMinor = "5.1";
57
- var version = `${versionMajorMinor}.0-dev.20230508`;
57
+ var version = `${versionMajorMinor}.0-dev.20230510`;
58
58
 
59
59
  // src/compiler/core.ts
60
60
  var emptyArray = [];
@@ -9803,7 +9803,6 @@ function isLeftHandSideExpressionKind(kind) {
9803
9803
  case 283 /* JsxElement */:
9804
9804
  case 284 /* JsxSelfClosingElement */:
9805
9805
  case 287 /* JsxFragment */:
9806
- case 294 /* JsxNamespacedName */:
9807
9806
  case 214 /* TaggedTemplateExpression */:
9808
9807
  case 208 /* ArrayLiteralExpression */:
9809
9808
  case 216 /* ParenthesizedExpression */:
@@ -10110,6 +10109,8 @@ function tryGetTextOfPropertyName(name) {
10110
10109
  if (isStringOrNumericLiteralLike(name.expression))
10111
10110
  return escapeLeadingUnderscores(name.expression.text);
10112
10111
  return void 0;
10112
+ case 294 /* JsxNamespacedName */:
10113
+ return getEscapedTextOfJsxNamespacedName(name);
10113
10114
  default:
10114
10115
  return Debug.assertNever(name);
10115
10116
  }
@@ -10581,7 +10582,7 @@ function isDynamicName(name) {
10581
10582
  return !isStringOrNumericLiteralLike(expr) && !isSignedNumericLiteral(expr);
10582
10583
  }
10583
10584
  function getTextOfIdentifierOrLiteral(node) {
10584
- return isMemberName(node) ? idText(node) : node.text;
10585
+ return isMemberName(node) ? idText(node) : isJsxNamespacedName(node) ? getTextOfJsxNamespacedName(node) : node.text;
10585
10586
  }
10586
10587
  function nodeIsSynthesized(range) {
10587
10588
  return positionIsSynthesized(range.pos) || positionIsSynthesized(range.end);
@@ -11660,6 +11661,12 @@ function isJsxAttributeName(node) {
11660
11661
  const kind = node.kind;
11661
11662
  return kind === 80 /* Identifier */ || kind === 294 /* JsxNamespacedName */;
11662
11663
  }
11664
+ function getEscapedTextOfJsxNamespacedName(node) {
11665
+ return `${node.namespace.escapedText}:${idText(node.name)}`;
11666
+ }
11667
+ function getTextOfJsxNamespacedName(node) {
11668
+ return `${idText(node.namespace)}:${idText(node.name)}`;
11669
+ }
11663
11670
 
11664
11671
  // src/compiler/factory/baseNodeFactory.ts
11665
11672
  function createBaseNodeFactory() {
@@ -17107,6 +17114,9 @@ function isJsxClosingFragment(node) {
17107
17114
  function isJsxAttributes(node) {
17108
17115
  return node.kind === 291 /* JsxAttributes */;
17109
17116
  }
17117
+ function isJsxNamespacedName(node) {
17118
+ return node.kind === 294 /* JsxNamespacedName */;
17119
+ }
17110
17120
  function isDefaultClause(node) {
17111
17121
  return node.kind === 296 /* DefaultClause */;
17112
17122
  }
@@ -21618,7 +21628,11 @@ var Parser;
21618
21628
  }
21619
21629
  function parseJsxElementName() {
21620
21630
  const pos = getNodePos();
21621
- let expression = parseJsxTagName();
21631
+ const initialExpression = parseJsxTagName();
21632
+ if (isJsxNamespacedName(initialExpression)) {
21633
+ return initialExpression;
21634
+ }
21635
+ let expression = initialExpression;
21622
21636
  while (parseOptional(25 /* DotToken */)) {
21623
21637
  expression = finishNode(factoryCreatePropertyAccessExpression(expression, parseRightSideOfDot(
21624
21638
  /*allowIdentifierNames*/
@@ -27618,8 +27632,6 @@ function nodeModuleNameResolverWorker(features, moduleName, containingDirectory,
27618
27632
  const diagnosticState = {
27619
27633
  ...state,
27620
27634
  features: state.features & ~8 /* Exports */,
27621
- failedLookupLocations: [],
27622
- affectingLocations: [],
27623
27635
  reportDiagnostic: noop
27624
27636
  };
27625
27637
  const diagnosticResult = tryResolve(extensions & (1 /* TypeScript */ | 4 /* Declaration */), diagnosticState);
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "typescript",
3
3
  "author": "Microsoft Corp.",
4
4
  "homepage": "https://www.typescriptlang.org/",
5
- "version": "5.1.0-dev.20230508",
5
+ "version": "5.1.0-dev.20230510",
6
6
  "license": "Apache-2.0",
7
7
  "description": "TypeScript is a language for application scale JavaScript development",
8
8
  "keywords": [
@@ -110,10 +110,10 @@
110
110
  "source-map-support": false,
111
111
  "inspector": false
112
112
  },
113
- "packageManager": "npm@8.19.3",
113
+ "packageManager": "npm@8.19.4",
114
114
  "volta": {
115
- "node": "14.21.1",
116
- "npm": "8.19.3"
115
+ "node": "20.1.0",
116
+ "npm": "8.19.4"
117
117
  },
118
- "gitHead": "04d4580f4eedc036b014ef4329cffe9979da3af9"
118
+ "gitHead": "53625212d9afbf709e09aa77e667795d55a0a220"
119
119
  }