diff --git a/WORKSPACE b/WORKSPACE index 2335aacb34..912617f7d3 100644 --- a/WORKSPACE +++ b/WORKSPACE @@ -15,8 +15,8 @@ load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive") # Fetch rules_nodejs so we can install our npm dependencies http_archive( name = "build_bazel_rules_nodejs", - sha256 = "1db950bbd27fb2581866e307c0130983471d4c3cd49c46063a2503ca7b6770a4", - urls = ["https://github.com/bazelbuild/rules_nodejs/releases/download/0.29.0/rules_nodejs-0.29.0.tar.gz"], + sha256 = "395b7568f20822c13fc5abc65b1eced637446389181fda3a108fdd6ff2cac1e9", + urls = ["https://github.com/bazelbuild/rules_nodejs/releases/download/0.29.2/rules_nodejs-0.29.2.tar.gz"], ) # Check the bazel version and download npm dependencies diff --git a/integration/bazel/WORKSPACE b/integration/bazel/WORKSPACE index d031ac5ed3..e3007a6deb 100644 --- a/integration/bazel/WORKSPACE +++ b/integration/bazel/WORKSPACE @@ -5,8 +5,8 @@ load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive") # Fetch rules_nodejs so we can install our npm dependencies http_archive( name = "build_bazel_rules_nodejs", - sha256 = "1db950bbd27fb2581866e307c0130983471d4c3cd49c46063a2503ca7b6770a4", - urls = ["https://github.com/bazelbuild/rules_nodejs/releases/download/0.29.0/rules_nodejs-0.29.0.tar.gz"], + sha256 = "395b7568f20822c13fc5abc65b1eced637446389181fda3a108fdd6ff2cac1e9", + urls = ["https://github.com/bazelbuild/rules_nodejs/releases/download/0.29.2/rules_nodejs-0.29.2.tar.gz"], ) # Fetch sass rules for compiling sass files diff --git a/integration/side-effects/snapshots/core/esm2015.js b/integration/side-effects/snapshots/core/esm2015.js index 7e58a587f5..5f8109856a 100644 --- a/integration/side-effects/snapshots/core/esm2015.js +++ b/integration/side-effects/snapshots/core/esm2015.js @@ -1,147 +1,3 @@ -import { Subject, Subscription } from "rxjs"; +import "rxjs"; import "rxjs/operators"; - -function getGlobal() { - const __globalThis = "undefined" !== typeof globalThis && globalThis; - const __window = "undefined" !== typeof window && window; - const __self = "undefined" !== typeof self && "undefined" !== typeof WorkerGlobalScope && self instanceof WorkerGlobalScope && self; - const __global = "undefined" !== typeof global && global; - return __globalThis || __global || __window || __self; -} - -const _global = getGlobal(); - -let _symbolIterator = null; - -function getSymbolIterator() { - if (!_symbolIterator) { - const Symbol = _global["Symbol"]; - if (Symbol && Symbol.iterator) _symbolIterator = Symbol.iterator; else { - const keys = Object.getOwnPropertyNames(Map.prototype); - for (let i = 0; i < keys.length; ++i) { - const key = keys[i]; - if ("entries" !== key && "size" !== key && Map.prototype[key] === Map.prototype["entries"]) _symbolIterator = key; - } - } - } - return _symbolIterator; -} - -if ("undefined" === typeof ngI18nClosureMode) _global["ngI18nClosureMode"] = "undefined" !== typeof goog && "function" === typeof goog.getMsg; - -function flatten(list, dst) { - if (void 0 === dst) dst = list; - for (let i = 0; i < list.length; i++) { - let item = list[i]; - if (Array.isArray(item)) { - if (dst === list) dst = list.slice(0, i); - flatten(item, dst); - } else if (dst !== list) dst.push(item); - } - return dst; -} - -class EventEmitter extends Subject { - constructor(isAsync = false) { - super(); - this.__isAsync = isAsync; - } - emit(value) { - super.next(value); - } - subscribe(generatorOrNext, error, complete) { - let schedulerFn; - let errorFn = err => null; - let completeFn = () => null; - if (generatorOrNext && "object" === typeof generatorOrNext) { - schedulerFn = this.__isAsync ? value => { - setTimeout(() => generatorOrNext.next(value)); - } : value => { - generatorOrNext.next(value); - }; - if (generatorOrNext.error) errorFn = this.__isAsync ? err => { - setTimeout(() => generatorOrNext.error(err)); - } : err => { - generatorOrNext.error(err); - }; - if (generatorOrNext.complete) completeFn = this.__isAsync ? () => { - setTimeout(() => generatorOrNext.complete()); - } : () => { - generatorOrNext.complete(); - }; - } else { - schedulerFn = this.__isAsync ? value => { - setTimeout(() => generatorOrNext(value)); - } : value => { - generatorOrNext(value); - }; - if (error) errorFn = this.__isAsync ? err => { - setTimeout(() => error(err)); - } : err => { - error(err); - }; - if (complete) completeFn = this.__isAsync ? () => { - setTimeout(() => complete()); - } : () => { - complete(); - }; - } - const sink = super.subscribe(schedulerFn, errorFn, completeFn); - if (generatorOrNext instanceof Subscription) generatorOrNext.add(sink); - return sink; - } -} - -class QueryList { - constructor() { - this.dirty = true; - this._results = []; - this.changes = new EventEmitter(); - this.length = 0; - } - map(fn) { - return this._results.map(fn); - } - filter(fn) { - return this._results.filter(fn); - } - find(fn) { - return this._results.find(fn); - } - reduce(fn, init) { - return this._results.reduce(fn, init); - } - forEach(fn) { - this._results.forEach(fn); - } - some(fn) { - return this._results.some(fn); - } - toArray() { - return this._results.slice(); - } - [getSymbolIterator()]() { - return this._results[getSymbolIterator()](); - } - toString() { - return this._results.toString(); - } - reset(resultsTree) { - this._results = flatten(resultsTree); - this.dirty = false; - this.length = this._results.length; - this.last = this._results[this.length - 1]; - this.first = this._results[0]; - } - notifyOnChanges() { - this.changes.emit(this); - } - setDirty() { - this.dirty = true; - } - destroy() { - this.changes.complete(); - this.changes.unsubscribe(); - } -} diff --git a/integration/side-effects/snapshots/core/esm5.js b/integration/side-effects/snapshots/core/esm5.js index 9f82d57120..09cc6db200 100644 --- a/integration/side-effects/snapshots/core/esm5.js +++ b/integration/side-effects/snapshots/core/esm5.js @@ -3,15 +3,3 @@ import "tslib"; import "rxjs"; import "rxjs/operators"; - -function getGlobal() { - var __globalThis = "undefined" !== typeof globalThis && globalThis; - var __window = "undefined" !== typeof window && window; - var __self = "undefined" !== typeof self && "undefined" !== typeof WorkerGlobalScope && self instanceof WorkerGlobalScope && self; - var __global = "undefined" !== typeof global && global; - return __globalThis || __global || __window || __self; -} - -var _global = getGlobal(); - -if ("undefined" === typeof ngI18nClosureMode) _global["ngI18nClosureMode"] = "undefined" !== typeof goog && "function" === typeof goog.getMsg; diff --git a/modules/benchmarks/src/expanding_rows/index.html b/modules/benchmarks/src/expanding_rows/index.html index d514d50a2f..402a1fc8d8 100644 --- a/modules/benchmarks/src/expanding_rows/index.html +++ b/modules/benchmarks/src/expanding_rows/index.html @@ -14,7 +14,6 @@ loading...