Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions packages/zone.js/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,14 @@
<a name="0.10.1"></a>
## [0.10.1](https://github.com/angular/angular/compare/zone.js-0.10.0...zone.js-0.10.1) (2019-08-02)


### Bug Fixes

* **zone.js:** don't rely on global node typings outside of node/ directory ([#31783](https://github.com/angular/angular/issues/31783)) ([5c9a896](https://github.com/angular/angular/commit/5c9a896))
* **zone.js:** should expose some other internal intefaces ([#31866](https://github.com/angular/angular/issues/31866)) ([f5c605b](https://github.com/angular/angular/commit/f5c605b))



<a name="0.10.0"></a>
# [0.10.0](https://github.com/angular/angular/compare/7b3bcc2...174770e) (2019-07-26)

Expand Down
9 changes: 6 additions & 3 deletions packages/zone.js/DEVELOPER.md
Original file line number Diff line number Diff line change
Expand Up @@ -80,16 +80,19 @@ yarn webdriver-sauce-test
Releasing
---------

- create a new tag in `angular` repo.
For example, the current version is `0.9.1`, and we want to release a new version `0.10.0`.

- create a new tag in `angular` repo. The `tag` must be `zone.js-<version>`, so in this example we need to create the tag `zone.js-0.10.0`.

```
$ TAG=<TAG>
$ TAG=zone.js-0.10.0
$ git tag $TAG
```

- create a PR to update `changelog` of zone.js
- Create PR to update `changelog` of zone.js, we need to define the previous tag which will be the current version.

```
$ export PREVIOUS_ZONE_TAG=zone.js-0.9.1
$ yarn gulp changelog:zonejs
```

Expand Down
14 changes: 10 additions & 4 deletions tools/gulp-tasks/changelog-zonejs.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,17 +7,23 @@
*/

module.exports = (gulp) => () => {
const tag = process.env.ZONE_TAG;
const tag = process.env.TAG;
const ptag = process.env.PREVIOUS_ZONE_TAG;
const conventionalChangelog = require('gulp-conventional-changelog');
// the tag of zone.js will start with `zone.js-`, such as `zone.js-0.10.0`
// we will remove the first 8 (zone.js-) chars to get the real version.
const version = tag.replace(/^zone\.js-/, '');
return gulp.src('packages/zone.js/CHANGELOG.md')
.pipe(conventionalChangelog(
{preset: 'angular'}, {
currentTag: tag,
},
{
preset: 'angular',
},
{linkCompare: true, previousTag: ptag, currentTag: tag, version: version}, {
// Ignore commits that have a different scope than `zone.js`.
extendedRegexp: true,
grep: '^[^(]+\\(zone\\.js\\)',
from: ptag,
to: tag,
}))
.pipe(gulp.dest('./packages/zone.js/'));
};