From c49d10373ffaf84d08299b8d2408b942865b4860 Mon Sep 17 00:00:00 2001 From: Jeremy Elbourn Date: Tue, 26 May 2020 16:10:55 -0700 Subject: [PATCH] chore: bump version to 10.0.0-rc.0 w/ changelog (#19452) --- CHANGELOG.md | 67 +++++++++++++++++++ package.json | 2 +- tools/triage-tracker/functions/lib/index.js | 61 +++++++++++++++++ .../triage-tracker/functions/lib/index.js.map | 1 + 4 files changed, 130 insertions(+), 1 deletion(-) create mode 100644 tools/triage-tracker/functions/lib/index.js create mode 100644 tools/triage-tracker/functions/lib/index.js.map diff --git a/CHANGELOG.md b/CHANGELOG.md index 1f977c464cab..f346b679e5a4 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,70 @@ +# 10.0.0-rc.0 "wool-wind" (2020-05-26) + +### cdk + +#### Breaking changes +* `CdkDropList.start` has been removed. +* `CdkDropList.drop` has been removed. +* `CdkDropList.enter` has been removed. +* `CdkDropList.exit` has been removed. +* `CdkDropList.getItemIndex` has been removed. +* `CDK_DRAG_CONFIG_FACTORY` has been removed. +* `CdkTable.setHeaderRowDef` has been removed. Use `CdkTable.addHeaderRowDef` and `CdkTable.removeHeaderRowDef` instead. +* `CdkTable.setFooterRowDef` has been removed. Use `CdkTable.addFooterRowDef` and `CdkTable.removeFooterRowDef` instead. +* The `_platformId` parameter in the `Platform` constructor is now required. +* The `copied` event from `cdkCopyToClipboard` has been renamed to `cdkCopyToClipboardCopied`. +* The `_ngZone` parameter in the `CdkCopyToClipboard` constructor is now required. + +### material + +#### Breaking changes +* `MAT_HAMMER_OPTIONS` has been removed. +* `GestureConfig` has been removed. +* `HammerInput` has been removed. +* `HammerStatic` has been removed. +* `Recognizer` has been removed. +* `RecognizerStatic` has been removed. +* `HammerInstance` has been removed. +* `HammerManager` has been removed. +* `HammerOptions` has been removed. +* `MatButtonToggleGroupMultiple` has been removed. Use `MatButtonToggleGroup` instead. +* `MatSlideToggleDefaultOptions.disableDragValue` has been removed. +* `MatSlideToggle.dragChange` has been removed. +* The `_ngZone` and `_dir` parameters have been removed from the `MatSlideToggle` constructor. +* The `_viewportRuler` parameter in the `MatAutocompleteTrigger` constructor is now required. +* The `_location` and `_errorHandler` parameters in the `MatIcon` constructor are now required. +* The `_errorHandler` parameter in the `MatIconRegistry` constructor is now required. +* The _ngZone and _document parameters in the `MatSlider` constructor are now required. +* The `_focusMonitor` and `_elementRef` parameters in the MatSortHeader constructor are now required. +* The `_hammerLoader` parameter has been removed from the MatTooltip constructor. + +| | | +| ---------- | --------------------- | +| bug fix | **dialog:** focus recapturing not accounting for autoFocus option ([#19356](https://github.com/angular/components/issues/19356)) ([72b0219](https://github.com/angular/components/commit/72b0219)), closes [#18826](https://github.com/angular/components/issues/18826) [#19350](https://github.com/angular/components/issues/19350) | +| bug fix | **drag-drop:** error during device emulation on firefox ([#19396](https://github.com/angular/components/issues/19396)) ([d309ee2](https://github.com/angular/components/commit/d309ee2)), closes [#19385](https://github.com/angular/components/issues/19385) | +| bug fix | **drag-drop:** error when item enters from the top and last has an intermediate child ([#19361](https://github.com/angular/components/issues/19361)) ([fbd6440](https://github.com/angular/components/commit/fbd6440)), closes [#19116](https://github.com/angular/components/issues/19116) [#19359](https://github.com/angular/components/issues/19359) | +| bug fix | **ng-add:** ng add [@angular](https://github.com/angular)/material fails in library projects ([#19164](https://github.com/angular/components/issues/19164)) ([822e3e0](https://github.com/angular/components/commit/822e3e0)) | +| bug fix | **table:** incorrectly sticking multiple footer rows ([#19321](https://github.com/angular/components/issues/19321)) ([95007e5](https://github.com/angular/components/commit/95007e5)), closes [#19311](https://github.com/angular/components/issues/19311) | +| feature | **testing:** add test harness for mat-tooltip ([#19144](https://github.com/angular/components/issues/19144)) ([44accd6](https://github.com/angular/components/commit/44accd6)), closes [#16676](https://github.com/angular/components/issues/16676) | + +### google-maps + +| | | +| ---------- | --------------------- | +| bug fix | allow different anchor objects for info window ([#19378](https://github.com/angular/components/issues/19378)) ([d0ab041](https://github.com/angular/components/commit/d0ab041)) | + +### youtube-player + +#### Breaking changes +* The `platformId` parameter of the `YouTubePlayer` constructor is now required. + +### material-experimental + +| | | +| ---------- | --------------------- | +| bug fix | **mdc-slider:** remove slider theme from all-theme ([#19411](https://github.com/angular/components/issues/19411)) ([d952a22](https://github.com/angular/components/commit/d952a22)) | + + # 10.0.0-next.1 "thorium-temple" (2020-05-18) ### material diff --git a/package.json b/package.json index 532bd0b92272..f63571f46550 100644 --- a/package.json +++ b/package.json @@ -46,7 +46,7 @@ "merge": "ng-dev pr merge", "approve-api": "node ./scripts/approve-api-golden.js" }, - "version": "10.0.0-next.1", + "version": "10.0.0-rc.0", "dependencies": { "@angular/animations": "^10.0.0-rc.0", "@angular/common": "^10.0.0-rc.0", diff --git a/tools/triage-tracker/functions/lib/index.js b/tools/triage-tracker/functions/lib/index.js new file mode 100644 index 000000000000..b1a927833e20 --- /dev/null +++ b/tools/triage-tracker/functions/lib/index.js @@ -0,0 +1,61 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.logGitHubEvent = void 0; +const functions = require("firebase-functions"); +const admin = require("firebase-admin"); +const crypto = require("crypto"); +admin.initializeApp(); +exports.logGitHubEvent = functions.https.onRequest(async (req, response) => { + // GitHub webhook has a secret associated with it. We have the same secret in the Firebase + // function config. We sha1 hash that secret from config and compare it to what GitHub sent. + const signatureFromGithub = req.headers['x-hub-signature']; + const hmac = crypto.createHmac('sha1', functions.config().github.secret) + .update(req.rawBody) + .digest('hex'); + const expectedSignature = `sha1=${hmac}`; + if (signatureFromGithub !== expectedSignature) { + console.error('x-hub-signature', signatureFromGithub, 'did not match', expectedSignature); + return response.status(403).send('x-hub-signature does not match expected signature'); + } + // We only care about label events for the fix-it + if (req.body.action === 'labeled' || req.body.action === 'closed' || req.body.action === 'unlabeled') { + // Handle events differently for each repo. + switch (req.body.repository.full_name) { + case ('angular/components'): + await processComponentsEvent(req.body); + break; + } + } + return response.status(200).send(); +}); +async function processComponentsEvent(event) { + // Log ALL events in case we want extra data + await logActionToDatabase('components', { + action: event.action, + issueNumber: event.issue.number, + label: event.label.name, + user: event.sender.login, + timestamp: Date.now(), + }); + const triageLabelExp = /(P\d)|(needs clarification)|(cannot reproduce)/; + const triageLabel = event.label && triageLabelExp.test(event.label.name) ? event.label.name : ''; + if (event.action === 'closed' || (triageLabel && event.action === 'labeled')) { + return writeTriageEventToDatabase('components', { + action: event.action, + issueNumber: event.issue.number, + label: triageLabel, + user: event.sender.login, + timestamp: Date.now(), + }); + } + return Promise.resolve(); +} +async function writeTriageEventToDatabase(repo, triageData) { + // Use `set` rather than push so that we key by issue number. + return admin.database().ref(`/${repo}/${triageData.issueNumber}`).set(triageData); +} +async function logActionToDatabase(repo, triageData) { + // Use `set` rather than push so that we key by issue number. + return admin.database().ref(`/${repo}-actions/${triageData.issueNumber}`).push(triageData); +} +//# sourceMappingURL=index.js.map \ No newline at end of file diff --git a/tools/triage-tracker/functions/lib/index.js.map b/tools/triage-tracker/functions/lib/index.js.map new file mode 100644 index 000000000000..fc22ee4ae20c --- /dev/null +++ b/tools/triage-tracker/functions/lib/index.js.map @@ -0,0 +1 @@ +{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;AAAA,gDAAgD;AAChD,wCAAwC;AACxC,iCAAiC;AAEjC,KAAK,CAAC,aAAa,EAAE,CAAC;AAET,QAAA,cAAc,GAAG,SAAS,CAAC,KAAK,CAAC,SAAS,CAAC,KAAK,EAAE,GAAG,EAAE,QAAQ,EAAE,EAAE;IAC9E,0FAA0F;IAC1F,4FAA4F;IAC5F,MAAM,mBAAmB,GAAG,GAAG,CAAC,OAAO,CAAC,iBAAiB,CAAC,CAAC;IAC3D,MAAM,IAAI,GAAG,MAAM,CAAC,UAAU,CAAC,MAAM,EAAE,SAAS,CAAC,MAAM,EAAE,CAAC,MAAM,CAAC,MAAM,CAAC;SACnE,MAAM,CAAC,GAAG,CAAC,OAAO,CAAC;SACnB,MAAM,CAAC,KAAK,CAAC,CA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