ember-cli 4.9.1 → 4.9.2

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/CHANGELOG.md CHANGED
@@ -1,5 +1,18 @@
1
1
  # ember-cli Changelog
2
2
 
3
+ ## v4.9.2
4
+
5
+ #### Blueprint Changes
6
+
7
+ - [`ember new` diff](https://github.com/ember-cli/ember-new-output/compare/v4.9.1...v4.9.2)
8
+ - [`ember addon` diff](https://github.com/ember-cli/ember-addon-output/compare/v4.9.1...v4.9.2)
9
+
10
+ #### Changelog
11
+
12
+ - [#10108](https://github.com/ember-cli/ember-cli/pull/10108) [BUGFIX release] Correctly instantiate server watcher [@bertdeblock](https://github.com/bertdeblock)
13
+
14
+ Thank you to all who took the time to contribute!
15
+
3
16
  ## v4.9.1
4
17
 
5
18
  #### Blueprint Changes
@@ -3,7 +3,7 @@
3
3
  "logo": "https://ember-cli.com/assets/images/ember-cli-logo-small-dark.png",
4
4
  "name": "ember-cli",
5
5
  "description": "Command line tool for developing ambitious ember.js apps",
6
- "version": "4.9.1-release-99e3f883ac"
6
+ "version": "4.9.2-release-7c2cee092c"
7
7
  },
8
8
  "files": {
9
9
  "lib/broccoli/default-packager.js": {
@@ -6437,7 +6437,7 @@
6437
6437
  },
6438
6438
  {
6439
6439
  "file": "lib/tasks/serve.js",
6440
- "line": 103,
6440
+ "line": 105,
6441
6441
  "description": "Exit silently",
6442
6442
  "access": "private",
6443
6443
  "tagname": "",
@@ -3,11 +3,13 @@
3
3
  const Watcher = require('./watcher');
4
4
 
5
5
  module.exports = class ServerWatcher extends Watcher {
6
- constructor(options, build) {
7
- super(options, build);
6
+ static async build(options, build) {
7
+ let { watcher: instance } = await super.build(options, build);
8
8
 
9
- this.watcher.on('add', this.didAdd.bind(this));
10
- this.watcher.on('delete', this.didDelete.bind(this));
9
+ instance.watcher.on('add', instance.didAdd.bind(instance));
10
+ instance.watcher.on('delete', instance.didDelete.bind(instance));
11
+
12
+ return { watcher: instance };
11
13
  }
12
14
 
13
15
  constructBroccoliWatcher(options) {
@@ -69,12 +69,14 @@ class ServeTask extends Task {
69
69
  let serverRoot = './server';
70
70
  let serverWatcher = null;
71
71
  if (fs.existsSync(serverRoot)) {
72
- serverWatcher = new ServerWatcher({
73
- ui: this.ui,
74
- analytics: this.analytics,
75
- watchedDir: path.resolve(serverRoot),
76
- options,
77
- });
72
+ serverWatcher = (
73
+ await ServerWatcher.build({
74
+ ui: this.ui,
75
+ analytics: this.analytics,
76
+ watchedDir: path.resolve(serverRoot),
77
+ options,
78
+ })
79
+ ).watcher;
78
80
  }
79
81
 
80
82
  let expressServer =
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ember-cli",
3
- "version": "4.9.1",
3
+ "version": "4.9.2",
4
4
  "description": "Command line tool for developing ambitious ember.js apps",
5
5
  "keywords": [
6
6
  "app",