google-closure-compiler 20261018.0.0 → 20261020.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
@@ -73,11 +73,6 @@ Symbol.keyFor = function(sym) {};
73
73
  */
74
74
  Symbol.asyncIterator;
75
75
 
76
- /**
77
- * @see https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Symbol/hasInstance
78
- * @const {symbol}
79
- */
80
- Symbol.hasInstance;
81
76
 
82
77
  /**
83
78
  * @see https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Symbol/isConcatSpreadable
@@ -115,36 +110,12 @@ Symbol.replace;
115
110
  */
116
111
  Symbol.search;
117
112
 
118
- /**
119
- * @see https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Symbol/species
120
- * @const {symbol}
121
- */
122
- Symbol.species;
123
-
124
113
  // /**
125
114
  // * @see https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Symbol/split
126
115
  // * @const {symbol}
127
116
  // */
128
117
  // Symbol.split;
129
118
 
130
- /**
131
- * @const {symbol}
132
- * @see https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Symbol/toPrimitive
133
- */
134
- Symbol.toPrimitive;
135
-
136
- /**
137
- * @const {symbol}
138
- * @see https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Symbol/toStringTag
139
- */
140
- Symbol.toStringTag;
141
-
142
- /**
143
- * @const {symbol}
144
- * @see https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Symbol/unscopables
145
- */
146
- Symbol.unscopables;
147
-
148
119
 
149
120
  /**
150
121
  * @record
package/externs/es6.js CHANGED
@@ -327,6 +327,74 @@ Math.f16round = function(x) {};
327
327
  */
328
328
  RegExp.escape = function(string) {};
329
329
 
330
+ // Well-known symbols
331
+
332
+ /**
333
+ * @see https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Symbol/hasInstance
334
+ * @const {symbol}
335
+ */
336
+ Symbol.hasInstance;
337
+
338
+ /**
339
+ * @see https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Symbol/species
340
+ * @const {symbol}
341
+ */
342
+ Symbol.species;
343
+
344
+ /**
345
+ * @const {symbol}
346
+ * @see https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Symbol/toPrimitive
347
+ */
348
+ Symbol.toPrimitive;
349
+
350
+ /**
351
+ * @const {symbol}
352
+ * @see https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Symbol/toStringTag
353
+ */
354
+ Symbol.toStringTag;
355
+
356
+ /**
357
+ * @const {symbol}
358
+ * @see https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Symbol/unscopables
359
+ */
360
+ Symbol.unscopables;
361
+
362
+ /**
363
+ * @param {string} hint
364
+ * @return {symbol}
365
+ * @nosideeffects
366
+ * @see https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Symbol/toPrimitive
367
+ */
368
+ Symbol.prototype[Symbol.toPrimitive] = function(hint) {};
369
+
370
+ /**
371
+ * @const {string}
372
+ * @see https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Symbol/toStringTag
373
+ */
374
+ Symbol.prototype[Symbol.toStringTag];
375
+
376
+ /**
377
+ * @param {*} value
378
+ * @return {boolean}
379
+ * @nosideeffects
380
+ * @see https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Function/Symbol.hasInstance
381
+ */
382
+ Function.prototype[Symbol.hasInstance] = function(value) {};
383
+
384
+ /**
385
+ * @param {string} hint
386
+ * @return {(string|number)}
387
+ * @nosideeffects
388
+ * @see https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date/Symbol.toPrimitive
389
+ */
390
+ Date.prototype[Symbol.toPrimitive] = function(hint) {};
391
+
392
+ /**
393
+ * @const {string}
394
+ * @see https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/JSON/Symbol.toStringTag
395
+ */
396
+ JSONType.prototype[Symbol.toStringTag];
397
+
330
398
 
331
399
  /**
332
400
  * @param {*} a
@@ -554,6 +622,12 @@ ArrayBuffer.prototype.slice = function(begin, opt_end) {};
554
622
  */
555
623
  ArrayBuffer.isView = function(arg) {};
556
624
 
625
+ /**
626
+ * @const {string}
627
+ * @see https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/ArrayBuffer/Symbol.toStringTag
628
+ */
629
+ ArrayBuffer.prototype[Symbol.toStringTag];
630
+
557
631
 
558
632
  /**
559
633
  * @constructor
@@ -590,6 +664,12 @@ SharedArrayBuffer.prototype.byteLength;
590
664
  */
591
665
  SharedArrayBuffer.prototype.slice = function(begin, end) {};
592
666
 
667
+ /**
668
+ * @const {string}
669
+ * @see https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/SharedArrayBuffer/Symbol.toStringTag
670
+ */
671
+ SharedArrayBuffer.prototype[Symbol.toStringTag];
672
+
593
673
 
594
674
  /**
595
675
  * @typedef {!ArrayBuffer|!ArrayBufferView}
@@ -811,6 +891,12 @@ DataView.prototype.setBigInt64 = function(byteOffset, value, littleEndian) {};
811
891
  */
812
892
  DataView.prototype.setBigUint64 = function(byteOffset, value, littleEndian) {};
813
893
 
894
+ /**
895
+ * @const {string}
896
+ * @see https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/DataView/Symbol.toStringTag
897
+ */
898
+ DataView.prototype[Symbol.toStringTag];
899
+
814
900
 
815
901
  /**
816
902
  * @see https://github.com/promises-aplus/promises-spec
@@ -1085,6 +1171,12 @@ Promise.prototype.catch = function(onRejected) {};
1085
1171
  */
1086
1172
  Promise.prototype.finally = function(callback) {};
1087
1173
 
1174
+ /**
1175
+ * @const {string}
1176
+ * @see https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise/Symbol.toStringTag
1177
+ */
1178
+ Promise.prototype[Symbol.toStringTag];
1179
+
1088
1180
 
1089
1181
  /**
1090
1182
  * @see https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/of
@@ -1105,6 +1197,12 @@ Array.of = function(var_args) {};
1105
1197
  */
1106
1198
  Array.from = function(arrayLike, opt_mapFn, opt_this) {};
1107
1199
 
1200
+ /**
1201
+ * @type {!Object<string, boolean>}
1202
+ * @see https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/Symbol.unscopables
1203
+ */
1204
+ Array.prototype[Symbol.unscopables];
1205
+
1108
1206
 
1109
1207
  /**
1110
1208
  * @override
@@ -199,6 +199,12 @@ Map.prototype.values = function() {};
199
199
  */
200
200
  Map.prototype[Symbol.iterator] = function() {};
201
201
 
202
+ /**
203
+ * @const {string}
204
+ * @see https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Map/Symbol.toStringTag
205
+ */
206
+ Map.prototype[Symbol.toStringTag];
207
+
202
208
  /**
203
209
  * @constructor @struct
204
210
  * @param {Iterable<!Array<K|V>>|!Array<!Array<K|V>>=} opt_iterable
@@ -260,6 +266,12 @@ WeakMap.prototype.has = function(key) {};
260
266
  */
261
267
  WeakMap.prototype.set = function(key, value) {};
262
268
 
269
+ /**
270
+ * @const {string}
271
+ * @see https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/WeakMap/Symbol.toStringTag
272
+ */
273
+ WeakMap.prototype[Symbol.toStringTag];
274
+
263
275
  /**
264
276
  * @record
265
277
  * @template VALUE
@@ -567,6 +579,12 @@ Set.prototype.isDisjointFrom = function(other) {};
567
579
  */
568
580
  Set.prototype[Symbol.iterator] = function() {};
569
581
 
582
+ /**
583
+ * @const {string}
584
+ * @see https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Set/Symbol.toStringTag
585
+ */
586
+ Set.prototype[Symbol.toStringTag];
587
+
570
588
  /**
571
589
  * @type {number} (readonly)
572
590
  * @see https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Set/size
@@ -607,3 +625,9 @@ WeakSet.prototype.delete = function(value) {};
607
625
  * @nosideeffects
608
626
  */
609
627
  WeakSet.prototype.has = function(value) {};
628
+
629
+ /**
630
+ * @const {string}
631
+ * @see https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/WeakSet/Symbol.toStringTag
632
+ */
633
+ WeakSet.prototype[Symbol.toStringTag];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "google-closure-compiler",
3
- "version": "20261018.0.0",
3
+ "version": "20261020.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": "^20261018.0.0",
44
+ "google-closure-compiler-java": "^20261020.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": "^20261018.0.0",
51
- "google-closure-compiler-linux-arm64": "^20261018.0.0",
52
- "google-closure-compiler-macos": "^20261018.0.0",
53
- "google-closure-compiler-windows": "^20261018.0.0"
50
+ "google-closure-compiler-linux": "^20261020.0.0",
51
+ "google-closure-compiler-linux-arm64": "^20261020.0.0",
52
+ "google-closure-compiler-macos": "^20261020.0.0",
53
+ "google-closure-compiler-windows": "^20261020.0.0"
54
54
  },
55
55
  "devDependencies": {
56
56
  "gulp": "^5.0.1",