google-closure-compiler 20260927.0.0 → 20260929.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.
package/externs/es3.js CHANGED
@@ -191,24 +191,7 @@ IteratorLike.prototype.next = function(opt_value) {};
191
191
 
192
192
 
193
193
  /**
194
- * TODO(b/142881197): TReturn and TNext are not yet used for anything.
195
- * https://github.com/google/closure-compiler/issues/3489
196
- * @interface
197
- * @extends {IteratorLike<T, TReturn, TNext>}
198
- * @template T, TReturn, TNext
199
- * @see https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/The_Iterator_protocol
200
- */
201
- function Iterator() {}
202
-
203
- /**
204
- * @param {?=} opt_value
205
- * @return {!IIterableResult<T>}
206
- */
207
- Iterator.prototype.next = function(opt_value) {};
208
-
209
-
210
- /**
211
- * Use this to indicate a type is both an Iterator and an Iterable.
194
+ * Use this to indicate a type is both an IteratorLike and an Iterable.
212
195
  *
213
196
  * @interface
214
197
  * @extends {IteratorLike<T, ?, *>}
package/externs/es6.js CHANGED
@@ -29,6 +29,107 @@
29
29
  * define them together in the es3 file.
30
30
  */
31
31
 
32
+ /**
33
+ * The modern ES2024 global Iterator class.
34
+ * All built-in iterators and helper-equipped iterators inherit from this.
35
+ *
36
+ * @constructor
37
+ * @abstract
38
+ * @implements {IteratorIterable<T, TReturn, TNext>}
39
+ * @template T, TReturn, TNext
40
+ */
41
+ function Iterator() {}
42
+
43
+ /**
44
+ * @param {!Iterable<T>|!IteratorLike<T>} iterable
45
+ * @return {!Iterator<T>}
46
+ * @template T
47
+ */
48
+ Iterator.from = function(iterable) {};
49
+
50
+ /**
51
+ * @override
52
+ * @param {?=} opt_value
53
+ * @return {!IIterableResult<T>}
54
+ */
55
+ Iterator.prototype.next = function(opt_value) {};
56
+
57
+ /**
58
+ * @template U
59
+ * @param {function(T, number): U} mapperFn
60
+ * @return {!Iterator<U>}
61
+ */
62
+ Iterator.prototype.map = function(mapperFn) {};
63
+
64
+ /**
65
+ * @param {function(T, number): boolean} filtererFn
66
+ * @return {!Iterator<T>}
67
+ */
68
+ Iterator.prototype.filter = function(filtererFn) {};
69
+
70
+ /**
71
+ * @param {number} limit
72
+ * @return {!Iterator<T>}
73
+ */
74
+ Iterator.prototype.take = function(limit) {};
75
+
76
+ /**
77
+ * @param {number} limit
78
+ * @return {!Iterator<T>}
79
+ */
80
+ Iterator.prototype.drop = function(limit) {};
81
+
82
+ /**
83
+ * @template U
84
+ * @param {function(T, number): (!Iterable<U>|!IteratorLike<U>|!Iterator<U>)}
85
+ * mapperFn
86
+ * @return {!Iterator<U>}
87
+ */
88
+ Iterator.prototype.flatMap = function(mapperFn) {};
89
+
90
+ /**
91
+ * @template U
92
+ * @param {function(U, T, number): U} reducerFn
93
+ * @param {U=} initialValue
94
+ * @return {U}
95
+ */
96
+ Iterator.prototype.reduce = function(reducerFn, initialValue) {};
97
+
98
+ /**
99
+ * @return {!Array<T>}
100
+ */
101
+ Iterator.prototype.toArray = function() {};
102
+
103
+ /**
104
+ * @param {function(T, number): void} callbackFn
105
+ * @return {void}
106
+ */
107
+ Iterator.prototype.forEach = function(callbackFn) {};
108
+
109
+ /**
110
+ * @param {function(T, number): boolean} predicate
111
+ * @return {boolean}
112
+ */
113
+ Iterator.prototype.some = function(predicate) {};
114
+
115
+ /**
116
+ * @param {function(T, number): boolean} predicate
117
+ * @return {boolean}
118
+ */
119
+ Iterator.prototype.every = function(predicate) {};
120
+
121
+ /**
122
+ * @param {function(T, number): boolean} predicate
123
+ * @return {T|undefined}
124
+ */
125
+ Iterator.prototype.find = function(predicate) {};
126
+
127
+ /**
128
+ * @override
129
+ * @return {!Iterator<T>}
130
+ */
131
+ Iterator.prototype[Symbol.iterator] = function() {};
132
+
32
133
  /** @typedef {!IteratorIterable} */
33
134
  var ArrayIterator;
34
135
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "google-closure-compiler",
3
- "version": "20260927.0.0",
3
+ "version": "20260929.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": "^20260927.0.0",
44
+ "google-closure-compiler-java": "^20260929.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": "^20260927.0.0",
51
- "google-closure-compiler-linux-arm64": "^20260927.0.0",
52
- "google-closure-compiler-macos": "^20260927.0.0",
53
- "google-closure-compiler-windows": "^20260927.0.0"
50
+ "google-closure-compiler-linux": "^20260929.0.0",
51
+ "google-closure-compiler-linux-arm64": "^20260929.0.0",
52
+ "google-closure-compiler-macos": "^20260929.0.0",
53
+ "google-closure-compiler-windows": "^20260929.0.0"
54
54
  },
55
55
  "devDependencies": {
56
56
  "gulp": "^5.0.1",