@typescript-deploys/pr-build 5.0.0-pr-52328-9 → 5.0.0-pr-52328-29

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.
package/lib/lib.dom.d.ts CHANGED
@@ -5767,9 +5767,9 @@ interface GlobalEventHandlersEventMap {
5767
5767
  "compositionstart": CompositionEvent;
5768
5768
  "compositionupdate": CompositionEvent;
5769
5769
  "contextmenu": MouseEvent;
5770
- "copy": Event;
5770
+ "copy": ClipboardEvent;
5771
5771
  "cuechange": Event;
5772
- "cut": Event;
5772
+ "cut": ClipboardEvent;
5773
5773
  "dblclick": MouseEvent;
5774
5774
  "drag": DragEvent;
5775
5775
  "dragend": DragEvent;
@@ -5804,7 +5804,7 @@ interface GlobalEventHandlersEventMap {
5804
5804
  "mouseout": MouseEvent;
5805
5805
  "mouseover": MouseEvent;
5806
5806
  "mouseup": MouseEvent;
5807
- "paste": Event;
5807
+ "paste": ClipboardEvent;
5808
5808
  "pause": Event;
5809
5809
  "play": Event;
5810
5810
  "playing": Event;
@@ -5890,9 +5890,9 @@ interface GlobalEventHandlers {
5890
5890
  * @param ev The mouse event.
5891
5891
  */
5892
5892
  oncontextmenu: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
5893
- oncopy: ((this: GlobalEventHandlers, ev: Event) => any) | null;
5893
+ oncopy: ((this: GlobalEventHandlers, ev: ClipboardEvent) => any) | null;
5894
5894
  oncuechange: ((this: GlobalEventHandlers, ev: Event) => any) | null;
5895
- oncut: ((this: GlobalEventHandlers, ev: Event) => any) | null;
5895
+ oncut: ((this: GlobalEventHandlers, ev: ClipboardEvent) => any) | null;
5896
5896
  /**
5897
5897
  * Fires when the user double-clicks the object.
5898
5898
  * @param ev The mouse event.
@@ -6022,7 +6022,7 @@ interface GlobalEventHandlers {
6022
6022
  * @param ev The mouse event.
6023
6023
  */
6024
6024
  onmouseup: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
6025
- onpaste: ((this: GlobalEventHandlers, ev: Event) => any) | null;
6025
+ onpaste: ((this: GlobalEventHandlers, ev: ClipboardEvent) => any) | null;
6026
6026
  /**
6027
6027
  * Occurs when playback is paused.
6028
6028
  * @param ev The event.
@@ -18224,9 +18224,9 @@ declare var onclose: ((this: Window, ev: Event) => any) | null;
18224
18224
  * @param ev The mouse event.
18225
18225
  */
18226
18226
  declare var oncontextmenu: ((this: Window, ev: MouseEvent) => any) | null;
18227
- declare var oncopy: ((this: Window, ev: Event) => any) | null;
18227
+ declare var oncopy: ((this: Window, ev: ClipboardEvent) => any) | null;
18228
18228
  declare var oncuechange: ((this: Window, ev: Event) => any) | null;
18229
- declare var oncut: ((this: Window, ev: Event) => any) | null;
18229
+ declare var oncut: ((this: Window, ev: ClipboardEvent) => any) | null;
18230
18230
  /**
18231
18231
  * Fires when the user double-clicks the object.
18232
18232
  * @param ev The mouse event.
@@ -18356,7 +18356,7 @@ declare var onmouseover: ((this: Window, ev: MouseEvent) => any) | null;
18356
18356
  * @param ev The mouse event.
18357
18357
  */
18358
18358
  declare var onmouseup: ((this: Window, ev: MouseEvent) => any) | null;
18359
- declare var onpaste: ((this: Window, ev: Event) => any) | null;
18359
+ declare var onpaste: ((this: Window, ev: ClipboardEvent) => any) | null;
18360
18360
  /**
18361
18361
  * Occurs when playback is paused.
18362
18362
  * @param ev The event.
package/lib/tsc.js CHANGED
@@ -114555,16 +114555,25 @@ function createProgram(rootNamesOrOptions, _options, _host, _oldProgram, _config
114555
114555
  }
114556
114556
  }
114557
114557
  }
114558
- function verifyDeprecatedCompilerOptions() {
114558
+ function getVersionForDeprecationDiagnostics(reportInvalidIgnoreDeprecations) {
114559
114559
  const version2 = typeScriptVersion2 || versionMajorMinor;
114560
114560
  const ignoreDeprecations = options.ignoreDeprecations;
114561
114561
  if (ignoreDeprecations) {
114562
114562
  if (ignoreDeprecations === "5.0" /* v5_0 */ && (version2 === "5.0" /* v5_0 */ || version2 === "5.5" /* v5_5 */)) {
114563
114563
  return;
114564
- } else {
114564
+ } else if (reportInvalidIgnoreDeprecations) {
114565
114565
  createOptionValueDiagnostic("ignoreDeprecations", Diagnostics.Invalid_value_for_ignoreDeprecations);
114566
114566
  }
114567
114567
  }
114568
+ return version2;
114569
+ }
114570
+ function verifyDeprecatedCompilerOptions() {
114571
+ const version2 = getVersionForDeprecationDiagnostics(
114572
+ /*reportInvalidIgnoreDeprecations*/
114573
+ true
114574
+ );
114575
+ if (!version2)
114576
+ return;
114568
114577
  if (options.target === 0 /* ES3 */) {
114569
114578
  createDeprecatedDiagnosticForOption(version2, "target", "ES3");
114570
114579
  }
@@ -114608,65 +114617,64 @@ function createProgram(rootNamesOrOptions, _options, _host, _oldProgram, _config
114608
114617
  );
114609
114618
  }
114610
114619
  }
114611
- function createDeprecatedDiagnosticForOption(version2, name, value, useInstead) {
114612
- if (version2 === "6.0" /* v6_0 */) {
114613
- if (useInstead) {
114614
- const details = chainDiagnosticMessages(
114615
- /*details*/
114616
- void 0,
114617
- Diagnostics.Use_0_instead,
114618
- useInstead
114619
- );
114620
- const chain = chainDiagnosticMessages(details, Diagnostics.Flag_0_is_deprecated_Please_remove_it_from_your_configuration, value || name);
114621
- createDiagnosticForOption(
114622
- /*onKey*/
114623
- !value,
114624
- name,
114625
- /*option2*/
114626
- void 0,
114627
- chain
114628
- );
114629
- } else {
114630
- createDiagnosticForOption(
114631
- /*onKey*/
114632
- !value,
114633
- name,
114634
- /*option2*/
114635
- void 0,
114636
- Diagnostics.Flag_0_is_deprecated_Please_remove_it_from_your_configuration,
114637
- value || name
114620
+ function verifyDeprecatedProjectReference(ref, parentFile, index) {
114621
+ if (ref.prepend) {
114622
+ const version2 = getVersionForDeprecationDiagnostics(
114623
+ /*reportInvalidIgnoreDeprecations*/
114624
+ false
114625
+ );
114626
+ if (version2) {
114627
+ createDeprecatedOptionForVersionDiagnostic(
114628
+ version2,
114629
+ (message, arg0, arg1, arg2) => createDiagnosticForReference(parentFile, index, message, arg0, arg1, arg2),
114630
+ "prepend"
114638
114631
  );
114639
114632
  }
114633
+ }
114634
+ }
114635
+ function createDeprecatedDiagnosticForOption(version2, name, value, useInstead) {
114636
+ return createDeprecatedOptionForVersionDiagnostic(
114637
+ version2,
114638
+ (message, arg0, arg1, arg2) => {
114639
+ if (useInstead) {
114640
+ const details = chainDiagnosticMessages(
114641
+ /*details*/
114642
+ void 0,
114643
+ Diagnostics.Use_0_instead,
114644
+ useInstead
114645
+ );
114646
+ const chain = chainDiagnosticMessages(details, message, arg0, arg1, arg2);
114647
+ createDiagnosticForOption(
114648
+ /*onKey*/
114649
+ !value,
114650
+ name,
114651
+ /*option2*/
114652
+ void 0,
114653
+ chain
114654
+ );
114655
+ } else {
114656
+ createDiagnosticForOption(
114657
+ /*onKey*/
114658
+ !value,
114659
+ name,
114660
+ /*option2*/
114661
+ void 0,
114662
+ message,
114663
+ arg0,
114664
+ arg1,
114665
+ arg2
114666
+ );
114667
+ }
114668
+ },
114669
+ name,
114670
+ value
114671
+ );
114672
+ }
114673
+ function createDeprecatedOptionForVersionDiagnostic(version2, createDiagnostic, name, value) {
114674
+ if (version2 === "6.0" /* v6_0 */) {
114675
+ createDiagnostic(Diagnostics.Flag_0_is_deprecated_Please_remove_it_from_your_configuration, value || name);
114640
114676
  } else {
114641
- if (useInstead) {
114642
- const details = chainDiagnosticMessages(
114643
- /*details*/
114644
- void 0,
114645
- Diagnostics.Use_0_instead,
114646
- useInstead
114647
- );
114648
- const chain = chainDiagnosticMessages(details, Diagnostics.Flag_0_is_deprecated_and_will_stop_functioning_in_TypeScript_1_Specify_ignoreDeprecations_Colon_2_to_silence_this_error, value || name, "5.5" /* v5_5 */, "5.0" /* v5_0 */);
114649
- createDiagnosticForOption(
114650
- /*onKey*/
114651
- !value,
114652
- name,
114653
- /*option2*/
114654
- void 0,
114655
- chain
114656
- );
114657
- } else {
114658
- createDiagnosticForOption(
114659
- /*onKey*/
114660
- !value,
114661
- name,
114662
- /*option2*/
114663
- void 0,
114664
- Diagnostics.Flag_0_is_deprecated_and_will_stop_functioning_in_TypeScript_1_Specify_ignoreDeprecations_Colon_2_to_silence_this_error,
114665
- value || name,
114666
- "5.5" /* v5_5 */,
114667
- "5.0" /* v5_0 */
114668
- );
114669
- }
114677
+ createDiagnostic(Diagnostics.Flag_0_is_deprecated_and_will_stop_functioning_in_TypeScript_1_Specify_ignoreDeprecations_Colon_2_to_silence_this_error, value || name, "5.5" /* v5_5 */, "5.0" /* v5_0 */);
114670
114678
  }
114671
114679
  }
114672
114680
  function createDiagnosticExplainingFile(file, fileProcessingReason, diagnostic, args) {
@@ -114812,6 +114820,7 @@ function createProgram(rootNamesOrOptions, _options, _host, _oldProgram, _config
114812
114820
  forEachProjectReference(projectReferences, resolvedProjectReferences, (resolvedRef, parent, index) => {
114813
114821
  const ref = (parent ? parent.commandLine.projectReferences : projectReferences)[index];
114814
114822
  const parentFile = parent && parent.sourceFile;
114823
+ verifyDeprecatedProjectReference(ref, parentFile, index);
114815
114824
  if (!resolvedRef) {
114816
114825
  createDiagnosticForReference(parentFile, index, Diagnostics.File_0_not_found, ref.path);
114817
114826
  return;
@@ -114919,15 +114928,15 @@ function createProgram(rootNamesOrOptions, _options, _host, _oldProgram, _config
114919
114928
  arg1
114920
114929
  );
114921
114930
  }
114922
- function createDiagnosticForReference(sourceFile, index, message, arg0, arg1) {
114931
+ function createDiagnosticForReference(sourceFile, index, message, arg0, arg1, arg2) {
114923
114932
  const referencesSyntax = firstDefined(
114924
114933
  getTsConfigPropArray(sourceFile || options.configFile, "references"),
114925
114934
  (property) => isArrayLiteralExpression(property.initializer) ? property.initializer : void 0
114926
114935
  );
114927
114936
  if (referencesSyntax && referencesSyntax.elements.length > index) {
114928
- programDiagnostics.add(createDiagnosticForNodeInSourceFile(sourceFile || options.configFile, referencesSyntax.elements[index], message, arg0, arg1));
114937
+ programDiagnostics.add(createDiagnosticForNodeInSourceFile(sourceFile || options.configFile, referencesSyntax.elements[index], message, arg0, arg1, arg2));
114929
114938
  } else {
114930
- programDiagnostics.add(createCompilerDiagnostic(message, arg0, arg1));
114939
+ programDiagnostics.add(createCompilerDiagnostic(message, arg0, arg1, arg2));
114931
114940
  }
114932
114941
  }
114933
114942
  function createDiagnosticForOption(onKey, option1, option2, message, arg0, arg1, arg2) {
@@ -115236,9 +115245,8 @@ function createPrependNodes(projectReferences, getCommandLine, readFile, host) {
115236
115245
  }
115237
115246
  return nodes || emptyArray;
115238
115247
  }
115239
- function resolveProjectReferencePath(hostOrRef, ref) {
115240
- const passedInRef = ref ? ref : hostOrRef;
115241
- return resolveConfigFileProjectName(passedInRef.path);
115248
+ function resolveProjectReferencePath(ref) {
115249
+ return resolveConfigFileProjectName(ref.path);
115242
115250
  }
115243
115251
  function getResolutionDiagnostic(options, { extension }, { isDeclarationFile }) {
115244
115252
  switch (extension) {