-
Notifications
You must be signed in to change notification settings - Fork 109
Comparing changes
Open a pull request
base repository: angular/tsickle
base: v0.46.0
head repository: angular/tsickle
compare: v0.46.3
Commits on Jan 25, 2022
-
Merge pull request #1323 from angular:v0.46
PiperOrigin-RevId: 424073414
Configuration menu - View commit details
-
Copy full SHA for cf501a2 - Browse repository at this point
Copy the full SHA cf501a2View commit details
Commits on Jan 27, 2022
-
Improve tsickle release scripts.
* make sure to build before npm publish and npm pack. * use $(yarn bin) in scripts to make them less dependent on directory layout. * submit yarn.lock files for reproducible dependencies. * add a .gitignore (which was lost in some internal/external sync).
Configuration menu - View commit details
-
Copy full SHA for 29b045f - Browse repository at this point
Copy the full SHA 29b045fView commit details -
Merge pull request #1324 from angular:fixup
PiperOrigin-RevId: 424606234
Configuration menu - View commit details
-
Copy full SHA for 1802902 - Browse repository at this point
Copy the full SHA 1802902View commit details
Commits on Feb 1, 2022
-
tsickle: emit tsmes.js file in ES5 and Closure modes.
Previously, tsickle somewhat awkwardly emitted the tsmes shim only when running in "closure" mode, which it probed by inspecting whether type annotation was requested. In that mode, it'd emit `.tsmes.closure.js`, and also remove the tsmes calls from source. In ES5 mode, presumably to avoid emitting two files (?), it instead produced a `.d.ts` file, and instead of replacing the tsmes calls, it'd inline equivalent logic. This was presumably done so that in dev mode, things would still work at runtime by registering the shim module ID. This setup doesn't work though: various tools expect an actual goog.module() call to be found for the shim module ID, so these do not work with the ES5 sources. In addition, emitting a different set of files depending on contextual information, is confusing and breaks other tools that expect the same set of files in either run mode. This change: * unconditionally always emits the .tsmes.js file, and leaves it to the compiler host to write to .closure.js or .js (same as we do for all other JS files). * produces a .d.ts when the `.declaration` TS compiler option is set, equivalent to how .d.ts are produced from regular sources. * remove Generator.run(), which previously performed very different operations depending on arguments. Instead, this inlines some of the logic into the transformer function and makes explicit calls into the generator's functions. * refrains from further refactoring, though I'm leaving a TODO with some ideas. PiperOrigin-RevId: 425621974
Configuration menu - View commit details
-
Copy full SHA for b38aefc - Browse repository at this point
Copy the full SHA b38aefcView commit details
Commits on Feb 2, 2022
-
Changes
ReadonlyArray
,ReadonlySet
,ReadonlyMap
to@typedef
sPiperOrigin-RevId: 425865101
Configuration menu - View commit details
-
Copy full SHA for 888aba2 - Browse repository at this point
Copy the full SHA 888aba2View commit details
Commits on Feb 9, 2022
-
Prevent property renaming of internal TypeScript API usages
PiperOrigin-RevId: 427466150
Configuration menu - View commit details
-
Copy full SHA for e482bc9 - Browse repository at this point
Copy the full SHA e482bc9View commit details
Commits on Feb 24, 2022
-
The decls.d.ts file was generated via running Clutz over the three .js files. The bug is that the type declarations in import_from_goog.js refer to module$exports$... or module$contents$... not tsickle_reexport_from_goog_1 PiperOrigin-RevId: 430768437
Configuration menu - View commit details
-
Copy full SHA for f06e2e7 - Browse repository at this point
Copy the full SHA f06e2e7View commit details
Commits on Mar 3, 2022
-
Translate {}/unknown in constructed types to ?
PiperOrigin-RevId: 432208899
Configuration menu - View commit details
-
Copy full SHA for d863eef - Browse repository at this point
Copy the full SHA d863eefView commit details
Commits on Mar 22, 2022
-
Add support for tsMigrationExportsShimDeclareLegacyNamespace to tsick…
…le. Permits TypeScript code to generate goog.module.declareLegacyNamespace code with TSMES. PiperOrigin-RevId: 436469265
Configuration menu - View commit details
-
Copy full SHA for 878f2f7 - Browse repository at this point
Copy the full SHA 878f2f7View commit details
Commits on Mar 29, 2022
-
Fix the error message for TSMES to be more descriptive.
PiperOrigin-RevId: 437974921
Configuration menu - View commit details
-
Copy full SHA for e6cc4a8 - Browse repository at this point
Copy the full SHA e6cc4a8View commit details
Commits on Apr 4, 2022
-
Fix externs with imported symbols for .ts files
Make Tsickle collect aliases for imported symbols during externs generation, even if the source file is a ".ts" file. PiperOrigin-RevId: 439258206
Configuration menu - View commit details
-
Copy full SHA for ebf29db - Browse repository at this point
Copy the full SHA ebf29dbView commit details
Commits on Apr 5, 2022
-
Fully specifies ReadonlyArray in closure externs.
PiperOrigin-RevId: 439648356
Configuration menu - View commit details
-
Copy full SHA for 68a7640 - Browse repository at this point
Copy the full SHA 68a7640View commit details
Commits on Apr 6, 2022
-
This allow to define custom callback when processing http://go/mdn/API/Server-sent_events PiperOrigin-RevId: 439772006
Configuration menu - View commit details
-
Copy full SHA for fcfc836 - Browse repository at this point
Copy the full SHA fcfc836View commit details
Commits on Apr 7, 2022
-
Upgrade TypeScript in google3 to version 4.6.3.
This change flips the language & compiler version used for all google3 compilations to version 4.6.3. See go/ts46upgrade for more information on the upgrade. PiperOrigin-RevId: 440175297
Configuration menu - View commit details
-
Copy full SHA for cbe0662 - Browse repository at this point
Copy the full SHA cbe0662View commit details
Commits on Apr 8, 2022
-
Bump the TypeScript version to 4.6.3.
This fixes the CI build after the breakage in cbe0662, which didn't adjust the TS version. PiperOrigin-RevId: 440315859
Configuration menu - View commit details
-
Copy full SHA for 8f11720 - Browse repository at this point
Copy the full SHA 8f11720View commit details -
Improve test result legibility by setting a background color.
The symbols used to mark deletions and insertions are very subtle and hard to see in big diffs. Adding a splash of background color makes the test much more readable. The drawback is that this will likely print poorly in some environments (e.g. test results displayed in some browsers where the tool doesn't interpret console colors), but that still seems preferable to just the tiny [ ] markers. PiperOrigin-RevId: 440321079
Configuration menu - View commit details
-
Copy full SHA for 383bf44 - Browse repository at this point
Copy the full SHA 383bf44View commit details -
For externs: If we have no constructor, emit types from parent class …
…constructors if present. PiperOrigin-RevId: 440356383
Configuration menu - View commit details
-
Copy full SHA for efe8158 - Browse repository at this point
Copy the full SHA efe8158View commit details -
Upgrade a few deprecated TS compiler function calls.
PiperOrigin-RevId: 440416543
Configuration menu - View commit details
-
Copy full SHA for ee6985f - Browse repository at this point
Copy the full SHA ee6985fView commit details -
Do not generate a module.id symbol if a top-level module symbol exist…
…s in the source file. PiperOrigin-RevId: 440422774
Configuration menu - View commit details
-
Copy full SHA for 1cd5183 - Browse repository at this point
Copy the full SHA 1cd5183View commit details
Commits on Apr 11, 2022
-
Adding @wizcallback into the allowed list of annotations
PiperOrigin-RevId: 440887580
Configuration menu - View commit details
-
Copy full SHA for daf0688 - Browse repository at this point
Copy the full SHA daf0688View commit details
Commits on Apr 13, 2022
-
Update tsickle test to reflect the new TS 4.6 behavior.
TS 4.6.3 introduced a behavior change not present in TS 4.6-beta in which it adds an unused import of an enum even though the enum value is no longer referenced (microsoft/TypeScript#48124) This CL updates the tsickle test which was originally intended to demonstrate the old behavior. PiperOrigin-RevId: 441534203
Configuration menu - View commit details
-
Copy full SHA for 9d8bc76 - Browse repository at this point
Copy the full SHA 9d8bc76View commit details
Commits on Apr 14, 2022
-
Using yarn upgrade --latest --save-dev. This required some minor changes to adjust to changed interfaces.
Configuration menu - View commit details
-
Copy full SHA for 9f3c534 - Browse repository at this point
Copy the full SHA 9f3c534View commit details -
Using yarn upgrade --latest --save-dev. This required some minor changes to adjust to changed interfaces.
Configuration menu - View commit details
-
Copy full SHA for 71f28ff - Browse repository at this point
Copy the full SHA 71f28ffView commit details
Commits on Apr 20, 2022
-
Configuration menu - View commit details
-
Copy full SHA for 6183493 - Browse repository at this point
Copy the full SHA 6183493View commit details -
Merge pull request #1347 from angular:upg
PiperOrigin-RevId: 441789297
Configuration menu - View commit details
-
Copy full SHA for 857bf2a - Browse repository at this point
Copy the full SHA 857bf2aView commit details -
Avoid multiple assignments to same exports property
In certain cases, the typescript compiler produces more than one assignment to the same `exports.abc` property. Eliminate all but one of them to avoid JSC_EXPORT_REPEATED_ERROR errors in JSCompiler. PiperOrigin-RevId: 443168642
Configuration menu - View commit details
-
Copy full SHA for 45082d1 - Browse repository at this point
Copy the full SHA 45082d1View commit details
Commits on Apr 26, 2022
-
Fix some deprecated TS API usages (and other lints)
PiperOrigin-RevId: 444498976
Configuration menu - View commit details
-
Copy full SHA for 0ac1b59 - Browse repository at this point
Copy the full SHA 0ac1b59View commit details
Commits on May 4, 2022
-
Refactor remaining uses of deprecated TS APIs (and other lints)
PiperOrigin-RevId: 446443214
Configuration menu - View commit details
-
Copy full SHA for 937295d - Browse repository at this point
Copy the full SHA 937295dView commit details
Commits on May 5, 2022
-
Resolve import= aliases when printing closure types
Given code like this: import Foo from '...'; import Baz = Foo.Bar.Baz; let baz: Baz|undefined; Challenge: When printing the type for `baz`, the type checker resolves `Baz` to the local alias `Baz`. Tsickle needs to print a fully qualified name based on the requireType import, e.g. `tsickle_Foo_1.Bar.Baz`. Solution: Pass `ts.NodeBuilderFlags.UseOnlyExternalAliasing` to `typeChecker.symbolToEntityName`. Externs used to rely on the local alias for namespace imports and thus needed some fixes, too. The following solution was also considered: Resolve all aliases created by import= declarations manually and store them in the `symbolToAliasedNames` map. The flag is implemented here instead because the symbol/alias thing is a workaround in Tsickle and extending it doesn't feel like the right thing to do. PiperOrigin-RevId: 446651392
Configuration menu - View commit details
-
Copy full SHA for 0f2aceb - Browse repository at this point
Copy the full SHA 0f2acebView commit details
Commits on May 9, 2022
-
Fix performance regression caused by many fs accesses
A recent change in externs.ts caused a lot of unnecessary file system accesses, which could in certain scenarious massively slow down builds. This fixes the regression by making file system accesses only when necessary and reusing the results. PiperOrigin-RevId: 447453299
Configuration menu - View commit details
-
Copy full SHA for 260d867 - Browse repository at this point
Copy the full SHA 260d867View commit details -
Updates bazelOpts usage. replaces es5mode with devmode
PiperOrigin-RevId: 447556332
Configuration menu - View commit details
-
Copy full SHA for c0123da - Browse repository at this point
Copy the full SHA c0123daView commit details
Commits on May 11, 2022
-
Add
TemplateStringsArray
andRegExpMatchArray
to closure_externs.js.PiperOrigin-RevId: 447928946
Configuration menu - View commit details
-
Copy full SHA for 0e79979 - Browse repository at this point
Copy the full SHA 0e79979View commit details
Commits on May 16, 2022
-
Avoid adding requireType for symbols that are already imported.
This should not make a semantic difference, but saves on some potential confusion and extraneous imports. PiperOrigin-RevId: 448907766
Configuration menu - View commit details
-
Copy full SHA for fdec72d - Browse repository at this point
Copy the full SHA fdec72dView commit details
Commits on May 20, 2022
-
Annotate `readonly` class/interface properties as `@const`, so that Closure Compiler can enforce this for JavaScript dependents. PiperOrigin-RevId: 449930571
Configuration menu - View commit details
-
Copy full SHA for d841bc0 - Browse repository at this point
Copy the full SHA d841bc0View commit details
Commits on May 25, 2022
-
Flag flip tsickle to use TypeScript 4.7.2
PiperOrigin-RevId: 450901473
Configuration menu - View commit details
-
Copy full SHA for 0ef2c66 - Browse repository at this point
Copy the full SHA 0ef2c66View commit details -
Configuration menu - View commit details
-
Copy full SHA for cefb49a - Browse repository at this point
Copy the full SHA cefb49aView commit details
Commits on May 31, 2022
-
Do not track yarn.lock so that we don't have any problems with having…
… old dependencies living along while running yarn tests (#1365)
Configuration menu - View commit details
-
Copy full SHA for 7962c23 - Browse repository at this point
Copy the full SHA 7962c23View commit details
Commits on Jun 10, 2022
-
Reformat
compiler_host.ts
,tsickle_test.ts
, `fileoverview_comment……_transformer.ts` and `decorator_downlevel_transformer_test.ts` Reformat these files to match the results from our current automated format tool. This is to prevent the noise from this change obscuring a fix that is to follow. PiperOrigin-RevId: 454052498
Configuration menu - View commit details
-
Copy full SHA for 1deca99 - Browse repository at this point
Copy the full SHA 1deca99View commit details
Commits on Jun 16, 2022
-
Bump TypeScript in tsickle to 4.7.2
This was accidentally reverted in 1deca99. PiperOrigin-RevId: 455290993
Configuration menu - View commit details
-
Copy full SHA for 5ba8bdf - Browse repository at this point
Copy the full SHA 5ba8bdfView commit details -
Update TSMES JS generator to emit ES5-compatible code so it may be lo…
…aded as-is with older browsers PiperOrigin-RevId: 455463892
Configuration menu - View commit details
-
Copy full SHA for 8df7016 - Browse repository at this point
Copy the full SHA 8df7016View commit details
Commits on Jun 21, 2022
-
Allow translation of string mapping types such as Uncapitalize.
This will always result in a type of `string` regardless of the input types. PiperOrigin-RevId: 456317489
Configuration menu - View commit details
-
Copy full SHA for 0ba13ba - Browse repository at this point
Copy the full SHA 0ba13baView commit details
Commits on Jun 22, 2022
-
Add a flag
generateExtraSuppressions
to stop adding auto-generated ……suppressions to tsickle output in tests. This is in preparation to lowering the @Suppress in tsickle output. PiperOrigin-RevId: 456614217
Configuration menu - View commit details
-
Copy full SHA for e83542d - Browse repository at this point
Copy the full SHA e83542dView commit details
Commits on Jun 30, 2022
-
PiperOrigin-RevId: 458248939
Configuration menu - View commit details
-
Copy full SHA for 3285e26 - Browse repository at this point
Copy the full SHA 3285e26View commit details -
Automated rollback of commit 3285e26.
PiperOrigin-RevId: 458269645
Configuration menu - View commit details
-
Copy full SHA for 4aaf327 - Browse repository at this point
Copy the full SHA 4aaf327View commit details
Commits on Jul 1, 2022
-
Declaration merging for classes
Implement support for merging declarations of classes and namespaces. - Add a tsickle transformer that transforms namespaces that merge declarations with a class. - Allows for nested classes and enum declarations. - The inner classes and enums are hoisted out of the namespace and a type alias is added to the outer class. - Correct JSDoc type annotations are generated for the inner classes and enums. - All references to inner classes and enums must be fully qualified with the name of the outer class. - The transformer is only used for ts_library targets that have the attribute "use_declaration_merging_transformation" set to True. The default for the attribute is False. PiperOrigin-RevId: 458401650
Configuration menu - View commit details
-
Copy full SHA for b50963c - Browse repository at this point
Copy the full SHA b50963cView commit details
Commits on Jul 7, 2022
-
Configuration menu - View commit details
-
Copy full SHA for eddd2b8 - Browse repository at this point
Copy the full SHA eddd2b8View commit details
There are no files selected for viewing