Skip to content

Commit 3067309

Browse files
JiaLiPassionmhevery
authored andcommitted
build(zone.js): add changelog gulptask for zone.js (#31852)
PR Close #31852
1 parent 6033446 commit 3067309

4 files changed

Lines changed: 60 additions & 2 deletions

File tree

gulpfile.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,7 @@ gulp.task('tools:build', loadTask('tools-build'));
5353
gulp.task('check-cycle', loadTask('check-cycle'));
5454
gulp.task('serve', loadTask('serve', 'default'));
5555
gulp.task('changelog', loadTask('changelog'));
56+
gulp.task('changelog:zonejs', loadTask('changelog-zonejs'));
5657
gulp.task('check-env', () => {/* this is a noop because the env test ran already above */});
5758
gulp.task('cldr:extract', loadTask('cldr', 'extract'));
5859
gulp.task('cldr:download', loadTask('cldr', 'download'));

packages/zone.js/CHANGELOG.md

Lines changed: 21 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,23 @@
1+
<a name="0.10.0"></a>
2+
# [0.10.0](https://github.com/angular/angular/compare/7b3bcc2...174770e) (2019-07-26)
3+
4+
5+
### Bug Fixes
6+
7+
* **zone.js:** __load_patch and __symbol__ should be in zone_extern for closure compiler ([#31350](https://github.com/angular/angular/issues/31350)) ([6b51ed2](https://github.com/angular/angular/commit/6b51ed2))
8+
* **zone.js:** don't fire unhandledrejection if Zone handled error ([#31718](https://github.com/angular/angular/issues/31718)) ([c7542a1](https://github.com/angular/angular/commit/c7542a1)), closes [#31701](https://github.com/angular/angular/issues/31701)
9+
* **zone.js:** don't wrap uncaught promise error. ([#31443](https://github.com/angular/angular/issues/31443)) ([2bb9a65](https://github.com/angular/angular/commit/2bb9a65)), closes [#27840](https://github.com/angular/angular/issues/27840)
10+
* **zone.js:** fix zone for Jasmine 3.3. ([#31497](https://github.com/angular/angular/issues/31497)) ([c4c340a](https://github.com/angular/angular/commit/c4c340a))
11+
* **zone.js:** handle MSPointer event correctly ([#31722](https://github.com/angular/angular/issues/31722)) ([2c402d5](https://github.com/angular/angular/commit/2c402d5)), closes [#31699](https://github.com/angular/angular/issues/31699)
12+
* **zone.js:** handle new api of electron 4 ([#31669](https://github.com/angular/angular/issues/31669)) ([a445826](https://github.com/angular/angular/commit/a445826)), closes [#31668](https://github.com/angular/angular/issues/31668)
13+
* **zone.js:** hook should set correct current zone ([#31642](https://github.com/angular/angular/issues/31642)) ([17b32b5](https://github.com/angular/angular/commit/17b32b5)), closes [#31641](https://github.com/angular/angular/issues/31641)
14+
* **zone.js:** move property patch to legacy ([#31660](https://github.com/angular/angular/issues/31660)) ([716af10](https://github.com/angular/angular/commit/716af10)), closes [#31659](https://github.com/angular/angular/issues/31659)
15+
* **zone.js:** patch shadydom ([#31717](https://github.com/angular/angular/issues/31717)) ([35a025f](https://github.com/angular/angular/commit/35a025f)), closes [#31686](https://github.com/angular/angular/issues/31686)
16+
* **zone.js:** restore definition of global ([#31453](https://github.com/angular/angular/issues/31453)) ([e6f1b04](https://github.com/angular/angular/commit/e6f1b04)), closes [/github.com/angular/zone.js/commit/71b93711806000d7788e79451478e20d6086aa8a#diff-dd469785fca8680a5b33b1e81c5cfd91R1420](https://github.com//github.com/angular/zone.js/commit/71b93711806000d7788e79451478e20d6086aa8a/issues/diff-dd469785fca8680a5b33b1e81c5cfd91R1420)
17+
* **zone.js:** should remove on symbol property after removeAllListeners ([#31644](https://github.com/angular/angular/issues/31644)) ([a182714](https://github.com/angular/angular/commit/a182714)), closes [#31643](https://github.com/angular/angular/issues/31643)
18+
* **zone.js:** update dart zone link ([#31646](https://github.com/angular/angular/issues/31646)) ([7f7033b](https://github.com/angular/angular/commit/7f7033b)), closes [#31645](https://github.com/angular/angular/issues/31645)
19+
* **zone.js:** zone-mix should import correct browser module ([#31628](https://github.com/angular/angular/issues/31628)) ([87ce4e9](https://github.com/angular/angular/commit/87ce4e9)), closes [#31626](https://github.com/angular/angular/issues/31626)
20+
121
<a name="0.9.1"></a>
222
## [0.9.1](https://github.com/angular/zone.js/compare/v0.9.0...0.9.1) (2019-04-30)
323

@@ -44,7 +64,7 @@
4464

4565
* **env:** change BLACK_LISTED_EVENTS to DISABLE_EVENTS ([9c65d25](https://github.com/angular/zone.js/commit/9c65d25))
4666

47-
### Build
67+
### Build
4868

4969
* **build:** build zone-evergreen.js in es2015, add terser minify support ([2ad936b](https://github.com/angular/zone.js/commit/2ad936b))
5070
* **build:** upgrade to pass jasmine 3.3 test ([82dfd75](https://github.com/angular/zone.js/commit/82dfd75))

packages/zone.js/DEVELOPER.md

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,10 +80,24 @@ yarn webdriver-sauce-test
8080
Releasing
8181
---------
8282

83+
- create a new tag in `angular` repo.
84+
85+
```
86+
$ TAG=<TAG>
87+
$ git tag $TAG
88+
```
89+
90+
- create a PR to update `changelog` of zone.js
91+
92+
```
93+
$ yarn gulp changelog:zonejs
94+
```
95+
96+
- deploy to npm
97+
8398
To make a `dry-run`, run the following commands.
8499
```
85100
$ VERSION=<version>
86-
$ git tag 'zone.js-$VERSION'
87101
$ yarn bazel --output_base=$(mktemp -d) run //packages/zone.js:npm_package.pack --workspace_status_command="echo BUILD_SCM_VERSION $VERSION"
88102
```
89103

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
/**
2+
* @license
3+
* Copyright Google Inc. All Rights Reserved.
4+
*
5+
* Use of this source code is governed by an MIT-style license that can be
6+
* found in the LICENSE file at https://angular.io/license
7+
*/
8+
9+
module.exports = (gulp) => () => {
10+
const tag = process.env.ZONE_TAG;
11+
const conventionalChangelog = require('gulp-conventional-changelog');
12+
return gulp.src('packages/zone.js/CHANGELOG.md')
13+
.pipe(conventionalChangelog(
14+
{preset: 'angular'}, {
15+
currentTag: tag,
16+
},
17+
{
18+
// Ignore commits that have a different scope than `zone.js`.
19+
extendedRegexp: true,
20+
grep: '^[^(]+\\(zone\\.js\\)',
21+
}))
22+
.pipe(gulp.dest('./packages/zone.js/'));
23+
};

0 commit comments

Comments
 (0)