Skip to content

Commit

Permalink
In BundleTransformer.TypeScript added support of the TypeScript versi…
Browse files Browse the repository at this point in the history
…on 4.1.3
  • Loading branch information
Taritsyn committed Dec 15, 2020
1 parent deb4c32 commit 3739cd4
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 16 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8,15 +8,14 @@
<TreatWarningsAsErrors>true</TreatWarningsAsErrors>
<NoWarn>$(NoWarn);CS1591;NU5125</NoWarn>
<GenerateDocumentationFile>true</GenerateDocumentationFile>
<Description>BundleTransformer.TypeScript contains one translator-adapter - `TypeScriptTranslator` (supports the TypeScript (http://www.typescriptlang.org) version 4.1 RTM). This adapter makes translation of TypeScript code to JS code. Also contains the `TypeScriptAssetHandler` debugging HTTP handler, which is responsible for text output of translated TypeScript asset.
<Description>BundleTransformer.TypeScript contains one translator-adapter - `TypeScriptTranslator` (supports the TypeScript (http://www.typescriptlang.org) version 4.1.3). This adapter makes translation of TypeScript code to JS code. Also contains the `TypeScriptAssetHandler` debugging HTTP handler, which is responsible for text output of translated TypeScript asset.

BundleTransformer.TypeScript does not support external modules (CommonJS, AMD, SystemJS, UMD and ES6 modules).

As a JS engine is used the JavaScript Engine Switcher library (https://github.com/Taritsyn/JavaScriptEngineSwitcher). For correct working of this module, you need to install one of the following NuGet packages: JavaScriptEngineSwitcher.Msie (only in the Chakra “Edge” JsRT mode), JavaScriptEngineSwitcher.V8 or JavaScriptEngineSwitcher.ChakraCore.</Description>
<PackageIconUrl>https://raw.githubusercontent.com/Taritsyn/BundleTransformer/master/images/icons/128/BundleTransformer_TypeScript_Logo_128x128.png</PackageIconUrl>
<PackageTags>BundleTransformer;System.Web.Optimization;IBundleTransform;ASP.NET;JavaScript;JS;Bundling;TypeScript;Translation;Translator;Compilation;Compiler</PackageTags>
<PackageReleaseNotes>1. Added support of the TypeScript version 4.1 RTM (please note: The 4.1 RTM release is also called '4.1.2');
2. In configuration settings of TypeScript translator was added one new property - `NoUncheckedIndexedAccess` (default `false`).</PackageReleaseNotes>
<PackageReleaseNotes>Added support of the TypeScript version 4.1.3.</PackageReleaseNotes>
</PropertyGroup>

<Import Project="../../build/common.props" />
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1396,7 +1396,7 @@ interface ArrayConstructor {
(arrayLength?: number): any[];
<T>(arrayLength: number): T[];
<T>(...items: T[]): T[];
isArray<T>(arg: T | {}): arg is T extends readonly any[] ? (unknown extends T ? never : readonly any[]) : any[];
isArray(arg: any): arg is any[];
readonly prototype: any[];
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
var ts;
(function (ts) {
ts.versionMajorMinor = "4.1";
ts.version = "4.1.2";
ts.version = "4.1.3";
var NativeCollections;
(function (NativeCollections) {
function tryGetNativeMap() {
Expand Down Expand Up @@ -33693,7 +33693,7 @@ var ts;
var resolved = getExternalModuleMember(root, commonJSPropertyAccess || node, dontResolveAlias);
var name = node.propertyName || node.name;
if (commonJSPropertyAccess && resolved && ts.isIdentifier(name)) {
return getPropertyOfType(getTypeOfSymbol(resolved), name.escapedText);
return resolveSymbol(getPropertyOfType(getTypeOfSymbol(resolved), name.escapedText), dontResolveAlias);
}
markSymbolOfAliasDeclarationIfTypeOnly(node, undefined, resolved, false);
return resolved;
Expand Down Expand Up @@ -48952,6 +48952,7 @@ var ts;
return errorType;
}
flowDepth++;
var sharedFlow;
while (true) {
var flags = flow.flags;
if (flags & 4096) {
Expand All @@ -48961,6 +48962,7 @@ var ts;
return sharedFlowTypes[i];
}
}
sharedFlow = flow;
}
var type = void 0;
if (flags & 16) {
Expand Down Expand Up @@ -49020,8 +49022,8 @@ var ts;
else {
type = convertAutoToAny(declaredType);
}
if (flags & 4096) {
sharedFlowNodes[sharedFlowCount] = flow;
if (sharedFlow) {
sharedFlowNodes[sharedFlowCount] = sharedFlow;
sharedFlowTypes[sharedFlowCount] = type;
sharedFlowCount++;
}
Expand Down Expand Up @@ -53359,9 +53361,9 @@ var ts;
var oldCandidatesForArgumentError = candidatesForArgumentError;
var oldCandidateForArgumentArityError = candidateForArgumentArityError;
var oldCandidateForTypeArgumentError = candidateForTypeArgumentError;
var declCount = ts.length((_a = failed.declaration) === null || _a === void 0 ? void 0 : _a.symbol.declarations);
var isOverload = declCount > 1;
var implDecl = isOverload ? ts.find(((_b = failed.declaration) === null || _b === void 0 ? void 0 : _b.symbol.declarations) || ts.emptyArray, function (d) { return ts.isFunctionLikeDeclaration(d) && ts.nodeIsPresent(d.body); }) : undefined;
var failedSignatureDeclarations = ((_b = (_a = failed.declaration) === null || _a === void 0 ? void 0 : _a.symbol) === null || _b === void 0 ? void 0 : _b.declarations) || ts.emptyArray;
var isOverload = failedSignatureDeclarations.length > 1;
var implDecl = isOverload ? ts.find(failedSignatureDeclarations, function (d) { return ts.isFunctionLikeDeclaration(d) && ts.nodeIsPresent(d.body); }) : undefined;
if (implDecl) {
var candidate = getSignatureFromDeclaration(implDecl);
var isSingleNonGenericCandidate_1 = !candidate.typeParameters;
Expand Down
7 changes: 2 additions & 5 deletions src/BundleTransformer.TypeScript/readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
===========
BundleTransformer.TypeScript contains one translator-adapter -
`TypeScriptTranslator` (supports the TypeScript (http://www.typescriptlang.org)
version 4.1 RTM). This adapter makes translation of TypeScript code to JS code.
version 4.1.3). This adapter makes translation of TypeScript code to JS code.
Also contains the `TypeScriptAssetHandler` debugging HTTP handler, which is
responsible for text output of translated TypeScript asset.

Expand All @@ -26,10 +26,7 @@
=============
RELEASE NOTES
=============
1. Added support of the TypeScript version 4.1 RTM (please note: The 4.1 RTM
release is also called '4.1.2');
2. In configuration settings of TypeScript translator was added one new
property - `NoUncheckedIndexedAccess` (default `false`).
Added support of the TypeScript version 4.1.3.

====================
POST-INSTALL ACTIONS
Expand Down

0 comments on commit 3739cd4

Please sign in to comment.