google-closure-compiler 20260607.0.0 → 20260609.0.0

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.
@@ -64,6 +64,13 @@ Headers.prototype.append = function(name, value) {};
64
64
  */
65
65
  Headers.prototype.delete = function(name) {};
66
66
 
67
+ /**
68
+ * @param {function(string, string, !Headers)} callbackfn
69
+ * @param {*=} opt_thisArg
70
+ * @return {undefined}
71
+ */
72
+ Headers.prototype.forEach = function(callbackfn, opt_thisArg) {};
73
+
67
74
  /** @return {!IteratorIterable<!Array<string>>} */
68
75
  Headers.prototype.entries = function() {};
69
76
 
@@ -95,11 +102,11 @@ Headers.prototype.keys = function() {};
95
102
  */
96
103
  Headers.prototype.set = function(name, value) {};
97
104
 
98
- /** @return {!Iterator<string>} */
105
+ /** @return {!IteratorIterable<string>} */
99
106
  Headers.prototype.values = function() {};
100
107
 
101
108
  /**
102
- * @return {!Iterator<!Array<string>>}
109
+ * @return {!IteratorIterable<!Array<string>>}
103
110
  * @override
104
111
  */
105
112
  Headers.prototype[Symbol.iterator] = function() {};
@@ -6456,6 +6456,19 @@ Document.prototype.activeElement;
6456
6456
  */
6457
6457
  Document.prototype.hasFocus = function() {};
6458
6458
 
6459
+ /**
6460
+ * @record
6461
+ * @struct
6462
+ * @see https://html.spec.whatwg.org/multipage/interaction.html#focusoptions
6463
+ */
6464
+ function FocusOptions() {}
6465
+
6466
+ /** @type {boolean|undefined} */
6467
+ FocusOptions.prototype.preventScroll;
6468
+
6469
+ /** @type {boolean|undefined} */
6470
+ FocusOptions.prototype.focusVisible;
6471
+
6459
6472
  /**
6460
6473
  * @param {{preventScroll: boolean}=} options
6461
6474
  * @return {undefined}
@@ -108,7 +108,8 @@ var IntersectionObserverCallback;
108
108
  * delay: (number|undefined),
109
109
  * trackVisibility: (boolean|undefined),
110
110
  * root: (?Document|?Element|undefined),
111
- * rootMargin: (string|undefined)
111
+ * rootMargin: (string|undefined),
112
+ * scrollMargin: (string|undefined)
112
113
  * }}
113
114
  */
114
115
  var IntersectionObserverInit;
@@ -139,6 +140,9 @@ IntersectionObserver.prototype.root;
139
140
  */
140
141
  IntersectionObserver.prototype.rootMargin;
141
142
 
143
+ /** @const {string} */
144
+ IntersectionObserver.prototype.scrollMargin;
145
+
142
146
  /**
143
147
  * A list of thresholds, sorted in increasing numeric order, where each
144
148
  * threshold is a ratio of intersection area to bounding box area of an observed
@@ -48,7 +48,7 @@ var MediaKeySystemConfiguration;
48
48
 
49
49
  /**
50
50
  * @param {string} keySystem
51
- * @param {!Array<!MediaKeySystemConfiguration>} supportedConfigurations
51
+ * @param {!Array<!MediaKeySystemConfiguration>|!Iterable<!MediaKeySystemConfiguration>} supportedConfigurations
52
52
  * @return {!Promise<!MediaKeySystemAccess>}
53
53
  * @see https://w3c.github.io/encrypted-media/#navigator-extension-requestmediakeysystemaccess
54
54
  */
@@ -126,6 +126,7 @@ MediaKeys.prototype.getStatusForPolicy = function(policy) {};
126
126
 
127
127
  /**
128
128
  * @interface
129
+ * @extends {Iterable<!Array<!BufferSource|string>>}
129
130
  * @see https://w3c.github.io/encrypted-media/#mediakeystatusmap-interface
130
131
  */
131
132
  function MediaKeyStatusMap() {}
@@ -178,6 +179,11 @@ MediaKeyStatusMap.prototype.keys = function() {};
178
179
  MediaKeyStatusMap.prototype.values = function() {};
179
180
 
180
181
 
182
+ /**
183
+ * @return {!Iterator<!Array<!BufferSource|string>>}
184
+ */
185
+ MediaKeyStatusMap.prototype[Symbol.iterator] = function() {};
186
+
181
187
 
182
188
  /**
183
189
  * @interface
@@ -192,9 +192,13 @@ SourceBuffer.prototype.onupdatestart;
192
192
  * @constructor
193
193
  * @implements {EventTarget}
194
194
  * @implements {IArrayLike<!SourceBuffer>}
195
+ * @implements {Iterable<!SourceBuffer>}
195
196
  */
196
197
  function SourceBufferList() {}
197
198
 
199
+ /** @override */
200
+ SourceBufferList.prototype[Symbol.iterator] = function() {};
201
+
198
202
  /** @type {number} */
199
203
  SourceBufferList.prototype.length;
200
204
 
@@ -243,11 +243,18 @@ ReadableStream.prototype.tee = function() {};
243
243
 
244
244
  /**
245
245
  * @param {!ReadableStreamIteratorOptions=} options
246
- * @return {!AsyncIterator}
246
+ * @return {!AsyncIteratorIterable<VALUE>}
247
247
  * @see https://streams.spec.whatwg.org/#rs-asynciterator
248
248
  */
249
249
  ReadableStream.prototype[Symbol.asyncIterator] = function(options) {};
250
250
 
251
+ /**
252
+ * @param {!ReadableStreamIteratorOptions=} options
253
+ * @return {!AsyncIteratorIterable<VALUE>}
254
+ * @see https://streams.spec.whatwg.org/#rs-asynciterator
255
+ */
256
+ ReadableStream.prototype.values = function(options) {};
257
+
251
258
  /**
252
259
  * The ReadableStreamDefaultReader constructor is generally not meant to be used
253
260
  * directly; instead, a stream’s getReader() method should be used.
@@ -306,13 +313,23 @@ ReadableStreamBYOBReader.prototype.closed;
306
313
  */
307
314
  ReadableStreamBYOBReader.prototype.cancel = function(reason) {};
308
315
 
316
+ /**
317
+ * @record
318
+ * @see https://streams.spec.whatwg.org/#dictdef-readablestreambyobreaderreadoptions
319
+ */
320
+ function ReadableStreamBYOBReaderReadOptions() {}
321
+
322
+ /** @type {number|undefined} */
323
+ ReadableStreamBYOBReaderReadOptions.prototype.min;
324
+
309
325
  /**
310
326
  * @template BUFFER
311
327
  * @param {BUFFER} view
328
+ * @param {ReadableStreamBYOBReaderReadOptions=} opt_options
312
329
  * @return {!Promise<!IIterableResult<BUFFER>>}
313
330
  * @see https://streams.spec.whatwg.org/#byob-reader-read
314
331
  */
315
- ReadableStreamBYOBReader.prototype.read = function(view) {};
332
+ ReadableStreamBYOBReader.prototype.read = function(view, opt_options) {};
316
333
 
317
334
  /**
318
335
  * @return {undefined}
@@ -61,9 +61,12 @@ SVGAnimatedNumberList.prototype.animVal;
61
61
 
62
62
  /**
63
63
  * @constructor
64
+ * @implements {Iterable<!SVGLength>}
64
65
  */
65
66
  function SVGLengthList(){}
66
67
 
68
+ /** @override */
69
+ SVGLengthList.prototype[Symbol.iterator] = function() {};
67
70
 
68
71
  /**
69
72
  * @type {number}
@@ -655,9 +658,12 @@ SVGMatrix.prototype.skewY = function(angle){};
655
658
 
656
659
  /**
657
660
  * @constructor
661
+ * @implements {Iterable<!SVGNumber>}
658
662
  */
659
663
  function SVGNumberList(){}
660
664
 
665
+ /** @override */
666
+ SVGNumberList.prototype[Symbol.iterator] = function() {};
661
667
 
662
668
  /**
663
669
  * @type {number}
@@ -1946,9 +1952,12 @@ SVGPaint.prototype.setPaint = function(paintType, uri, rgbColor, iccColor){};
1946
1952
 
1947
1953
  /**
1948
1954
  * @constructor
1955
+ * @implements {Iterable<!DOMPoint>}
1949
1956
  */
1950
1957
  function SVGPointList(){}
1951
1958
 
1959
+ /** @override */
1960
+ SVGPointList.prototype[Symbol.iterator] = function() {};
1952
1961
 
1953
1962
  /**
1954
1963
  * @type {number}
@@ -2007,9 +2016,12 @@ SVGPointList.prototype.appendItem = function(item){};
2007
2016
 
2008
2017
  /**
2009
2018
  * @constructor
2019
+ * @implements {Iterable<!SVGTransform>}
2010
2020
  */
2011
2021
  function SVGTransformList(){}
2012
2022
 
2023
+ /** @override */
2024
+ SVGTransformList.prototype[Symbol.iterator] = function() {};
2013
2025
 
2014
2026
  /**
2015
2027
  * @type {number}
@@ -2165,9 +2177,12 @@ function SVGTSpanElement(){}
2165
2177
 
2166
2178
  /**
2167
2179
  * @constructor
2180
+ * @implements {Iterable<string>}
2168
2181
  */
2169
2182
  function SVGStringList(){}
2170
2183
 
2184
+ /** @override */
2185
+ SVGStringList.prototype[Symbol.iterator] = function() {};
2171
2186
 
2172
2187
  /**
2173
2188
  * @type {number}
@@ -5073,6 +5088,18 @@ SVGMarkerElement.SVG_MARKER_ORIENT_ANGLE;
5073
5088
  */
5074
5089
  SVGMarkerElement.prototype.SVG_MARKER_ORIENT_ANGLE;
5075
5090
 
5091
+ /**
5092
+ * @const
5093
+ * @type {number}
5094
+ */
5095
+ SVGMarkerElement.SVG_MARKER_ORIENT_AUTO_START_REVERSE;
5096
+
5097
+ /**
5098
+ * @const
5099
+ * @type {number}
5100
+ */
5101
+ SVGMarkerElement.prototype.SVG_MARKER_ORIENT_AUTO_START_REVERSE;
5102
+
5076
5103
 
5077
5104
  /**
5078
5105
  * @type {!SVGAnimatedLength}
@@ -8394,12 +8421,28 @@ SVGRectElement.prototype.getPresentationAttribute = function(opt_name){};
8394
8421
  */
8395
8422
  function SVGAElement(){}
8396
8423
 
8424
+ /** @type {string} */
8425
+ SVGAElement.prototype.download;
8426
+
8427
+ /** @type {string} */
8428
+ SVGAElement.prototype.hreflang;
8429
+
8430
+ /** @type {string} */
8431
+ SVGAElement.prototype.ping;
8432
+
8433
+ /** @type {string} */
8434
+ SVGAElement.prototype.referrerPolicy;
8435
+
8436
+ /** @type {string} */
8437
+ SVGAElement.prototype.rel;
8397
8438
 
8398
8439
  /**
8399
8440
  * @type {!SVGAnimatedString}
8400
8441
  */
8401
8442
  SVGAElement.prototype.target;
8402
8443
 
8444
+ /** @type {string} */
8445
+ SVGAElement.prototype.type;
8403
8446
 
8404
8447
  /**
8405
8448
  * @type {!SVGAnimatedBoolean}
@@ -8552,6 +8595,21 @@ SVGElementInstanceList.prototype.item = function(opt_index){};
8552
8595
  */
8553
8596
  function SVGElement(){}
8554
8597
 
8598
+ /** @type {boolean} */
8599
+ SVGElement.prototype.autofocus;
8600
+
8601
+ /**
8602
+ * Dataset collection.
8603
+ * @const {!DOMStringMap}
8604
+ */
8605
+ SVGElement.prototype.dataset;
8606
+
8607
+ /**
8608
+ * Cryptographic nonce used by Content Security Policy.
8609
+ * @type {string}
8610
+ */
8611
+ SVGElement.prototype.nonce;
8612
+
8555
8613
  /**
8556
8614
  * @type {string}
8557
8615
  */
@@ -160,9 +160,11 @@ BaseAudioContext.prototype.createOscillator = function() {};
160
160
  /**
161
161
  * @param {!Float32Array} real
162
162
  * @param {!Float32Array} imag
163
+ * @param {!PeriodicWaveConstraints=} opt_constraints
163
164
  * @return {!PeriodicWave}
164
165
  */
165
- BaseAudioContext.prototype.createPeriodicWave = function(real, imag) {};
166
+ BaseAudioContext.prototype.createPeriodicWave = function(
167
+ real, imag, opt_constraints) {};
166
168
 
167
169
  /**
168
170
  * @return {!Promise<void>}
@@ -189,8 +191,8 @@ BaseAudioContext.prototype.onstatechange;
189
191
  BaseAudioContext.prototype.createAudioWorker = function(scriptURL) {};
190
192
 
191
193
  /**
192
- * @param {!IArrayLike<number>} feedforward
193
- * @param {!IArrayLike<number>} feedback
194
+ * @param {!Iterable<number>} feedforward
195
+ * @param {!Iterable<number>} feedback
194
196
  * @return {!IIRFilterNode}
195
197
  */
196
198
  BaseAudioContext.prototype.createIIRFilter = function(feedforward, feedback) {};
@@ -425,22 +427,16 @@ function AudioParam() {}
425
427
  AudioParam.prototype.value;
426
428
 
427
429
  /**
428
- * @type {string}
430
+ * @type {!AutomationRate}
429
431
  * See https://www.w3.org/TR/webaudio/#dom-audioparam-automationrate for valid
430
432
  * values.
431
433
  */
432
434
  AudioParam.prototype.automationRate;
433
435
 
434
- /**
435
- * @deprecated
436
- * @type {number}
437
- */
436
+ /** @type {number} */
438
437
  AudioParam.prototype.maxValue;
439
438
 
440
- /**
441
- * @deprecated
442
- * @type {number}
443
- */
439
+ /** @type {number} */
444
440
  AudioParam.prototype.minValue;
445
441
 
446
442
  /** @type {number} */
@@ -498,7 +494,7 @@ AudioParam.prototype.setTargetValueAtTime = function(
498
494
  target, startTime, timeConstant) {};
499
495
 
500
496
  /**
501
- * @param {!Float32Array} values
497
+ * @param {!Float32Array|!Iterable<number>} values
502
498
  * @param {number} startTime
503
499
  * @param {number} duration
504
500
  * @return {!AudioParam}
@@ -520,6 +516,13 @@ AudioParam.prototype.cancelScheduledValues = function(startTime) {};
520
516
  */
521
517
  AudioParam.prototype.cancelAndHoldAtTime = function(cancelTime) {};
522
518
 
519
+ /**
520
+ * @interface
521
+ * @extends {ReadonlyMap<string, !AudioParam>}
522
+ * @see https://webaudio.github.io/web-audio-api/#AudioParamMap
523
+ */
524
+ function AudioParamMap() {}
525
+
523
526
  /**
524
527
  * @constructor
525
528
  * @extends {AudioParam}
@@ -1807,3 +1810,10 @@ AudioParamDescriptor.prototype.minValue;
1807
1810
 
1808
1811
  /** @type {string} */
1809
1812
  AudioParamDescriptor.prototype.name;
1813
+
1814
+ /**
1815
+ * @typedef {string}
1816
+ * @see https://www.w3.org/TR/webaudio/#enumdef-automationrate
1817
+ * Valid values: "a-rate", "k-rate"
1818
+ */
1819
+ var AutomationRate;
@@ -78,6 +78,11 @@ DOMStringList.prototype.contains = function(str) {};
78
78
  */
79
79
  DOMStringList.prototype.item = function(index) {};
80
80
 
81
+ /**
82
+ * @return {!IteratorIterable<string>}
83
+ */
84
+ DOMStringList.prototype[Symbol.iterator] = function() {};
85
+
81
86
  /**
82
87
  * @constructor
83
88
  * @implements {IArrayLike<!DOMImplementation>}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "google-closure-compiler",
3
- "version": "20260607.0.0",
3
+ "version": "20260609.0.0",
4
4
  "description": "Check, compile, optimize and compress Javascript with Closure-Compiler",
5
5
  "type": "module",
6
6
  "repository": {
@@ -41,16 +41,16 @@
41
41
  "homepage": "https://developers.google.com/closure/compiler/",
42
42
  "dependencies": {
43
43
  "chalk": "^2.0.0 || ^3.0.0 || ^4.0.0 || ^5.0.0 <5.6.1 || ^5.6.2 >5.6.1",
44
- "google-closure-compiler-java": "^20260607.0.0",
44
+ "google-closure-compiler-java": "^20260609.0.0",
45
45
  "minimist": "^1.0.0",
46
46
  "vinyl": "^3.0.1",
47
47
  "vinyl-sourcemaps-apply": "^0.2.0"
48
48
  },
49
49
  "optionalDependencies": {
50
- "google-closure-compiler-linux": "^20260607.0.0",
51
- "google-closure-compiler-linux-arm64": "^20260607.0.0",
52
- "google-closure-compiler-macos": "^20260607.0.0",
53
- "google-closure-compiler-windows": "^20260607.0.0"
50
+ "google-closure-compiler-linux": "^20260609.0.0",
51
+ "google-closure-compiler-linux-arm64": "^20260609.0.0",
52
+ "google-closure-compiler-macos": "^20260609.0.0",
53
+ "google-closure-compiler-windows": "^20260609.0.0"
54
54
  },
55
55
  "devDependencies": {
56
56
  "gulp": "^5.0.1",