ember-inspector 4.5.2 → 4.5.6

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.
Files changed (58) hide show
  1. package/.eslintrc.js +2 -2
  2. package/.github/workflows/build.yml +0 -10
  3. package/.tool-versions +1 -1
  4. package/CHANGELOG.md +53 -0
  5. package/README.md +3 -3
  6. package/app/controllers/application.js +17 -7
  7. package/app/routes/whats-new.js +10 -3
  8. package/app/templates/application.hbs +1 -1
  9. package/babel.config.js +12 -0
  10. package/dist/bookmarklet/panes-3-4-0/assets/chunk.143.270940edacdd577ffc3a.js +9 -0
  11. package/dist/{chrome/panes-3-4-0/assets/chunk.178.5b0ef53154b4f03c1ddf.js → bookmarklet/panes-3-4-0/assets/chunk.178.c1ce9d69d5e5184cb8b8.js} +3 -3
  12. package/dist/{chrome/panes-3-4-0/assets/chunk.916.cfdae71ef87e943d7ad0.js → bookmarklet/panes-3-4-0/assets/chunk.916.10195c168143dde80f98.js} +1 -1
  13. package/dist/bookmarklet/panes-3-4-0/assets/{chunk.916.cfdae71ef87e943d7ad0.js.LICENSE.txt → chunk.916.10195c168143dde80f98.js.LICENSE.txt} +0 -0
  14. package/dist/bookmarklet/panes-3-4-0/assets/ember-inspector.js +211 -188
  15. package/dist/bookmarklet/panes-3-4-0/assets/vendor.css +35 -4
  16. package/dist/bookmarklet/panes-3-4-0/assets/vendor.js +1691 -1849
  17. package/dist/bookmarklet/panes-3-4-0/ember_debug.js +7 -7
  18. package/dist/bookmarklet/panes-3-4-0/index.html +1 -2
  19. package/dist/chrome/manifest.json +1 -1
  20. package/dist/chrome/panes-3-4-0/assets/chunk.143.270940edacdd577ffc3a.js +9 -0
  21. package/dist/{firefox/panes-3-4-0/assets/chunk.178.5b0ef53154b4f03c1ddf.js → chrome/panes-3-4-0/assets/chunk.178.c1ce9d69d5e5184cb8b8.js} +3 -3
  22. package/dist/{firefox/panes-3-4-0/assets/chunk.916.cfdae71ef87e943d7ad0.js → chrome/panes-3-4-0/assets/chunk.916.10195c168143dde80f98.js} +1 -1
  23. package/dist/chrome/panes-3-4-0/assets/{chunk.916.cfdae71ef87e943d7ad0.js.LICENSE.txt → chunk.916.10195c168143dde80f98.js.LICENSE.txt} +0 -0
  24. package/dist/chrome/panes-3-4-0/assets/ember-inspector.js +211 -188
  25. package/dist/chrome/panes-3-4-0/assets/vendor.css +35 -4
  26. package/dist/chrome/panes-3-4-0/assets/vendor.js +1691 -1849
  27. package/dist/chrome/panes-3-4-0/ember_debug.js +7 -7
  28. package/dist/chrome/panes-3-4-0/index.html +1 -2
  29. package/dist/firefox/manifest.json +1 -1
  30. package/dist/firefox/panes-3-4-0/assets/chunk.143.270940edacdd577ffc3a.js +9 -0
  31. package/dist/{bookmarklet/panes-3-4-0/assets/chunk.178.5b0ef53154b4f03c1ddf.js → firefox/panes-3-4-0/assets/chunk.178.c1ce9d69d5e5184cb8b8.js} +3 -3
  32. package/dist/{websocket/assets/chunk.916.cfdae71ef87e943d7ad0.js → firefox/panes-3-4-0/assets/chunk.916.10195c168143dde80f98.js} +1 -1
  33. package/dist/firefox/panes-3-4-0/assets/{chunk.916.cfdae71ef87e943d7ad0.js.LICENSE.txt → chunk.916.10195c168143dde80f98.js.LICENSE.txt} +0 -0
  34. package/dist/firefox/panes-3-4-0/assets/ember-inspector.js +211 -188
  35. package/dist/firefox/panes-3-4-0/assets/vendor.css +35 -4
  36. package/dist/firefox/panes-3-4-0/assets/vendor.js +1691 -1849
  37. package/dist/firefox/panes-3-4-0/ember_debug.js +7 -7
  38. package/dist/firefox/panes-3-4-0/index.html +1 -2
  39. package/dist/websocket/assets/chunk.143.270940edacdd577ffc3a.js +9 -0
  40. package/dist/websocket/assets/{chunk.178.5b0ef53154b4f03c1ddf.js → chunk.178.c1ce9d69d5e5184cb8b8.js} +3 -3
  41. package/dist/{bookmarklet/panes-3-4-0/assets/chunk.916.cfdae71ef87e943d7ad0.js → websocket/assets/chunk.916.10195c168143dde80f98.js} +1 -1
  42. package/dist/websocket/assets/{chunk.916.cfdae71ef87e943d7ad0.js.LICENSE.txt → chunk.916.10195c168143dde80f98.js.LICENSE.txt} +0 -0
  43. package/dist/websocket/assets/ember-inspector.js +211 -188
  44. package/dist/websocket/assets/vendor.css +35 -4
  45. package/dist/websocket/assets/vendor.js +1691 -1849
  46. package/dist/websocket/ember_debug.js +7 -7
  47. package/dist/websocket/index.html +1 -2
  48. package/ember_debug/object-inspector.js +4 -5
  49. package/ember_debug/vendor/startup-wrapper.js +5 -0
  50. package/package.json +12 -10
  51. package/tests/acceptance/whats-new-test.js +14 -6
  52. package/tests/ember_debug/container-debug-test.js +10 -3
  53. package/tests/helpers/setup-ember-debug-test.js +3 -2
  54. package/app/modifiers/did-resize.js +0 -76
  55. package/dist/bookmarklet/panes-3-4-0/assets/chunk.143.2d97860a6e5f313b08e6.js +0 -146
  56. package/dist/chrome/panes-3-4-0/assets/chunk.143.2d97860a6e5f313b08e6.js +0 -146
  57. package/dist/firefox/panes-3-4-0/assets/chunk.143.2d97860a6e5f313b08e6.js +0 -146
  58. package/dist/websocket/assets/chunk.143.2d97860a6e5f313b08e6.js +0 -146
package/.eslintrc.js CHANGED
@@ -2,9 +2,9 @@
2
2
 
3
3
  module.exports = {
4
4
  root: true,
5
- parser: 'babel-eslint',
5
+ parser: '@babel/eslint-parser',
6
6
  parserOptions: {
7
- ecmaVersion: 2018,
7
+ ecmaVersion: 2020,
8
8
  sourceType: 'module',
9
9
  ecmaFeatures: {
10
10
  legacyDecorators: true,
@@ -40,8 +40,6 @@ jobs:
40
40
  echo "GIT_BRANCH=${GIT_BRANCH}" >> $GITHUB_ENV
41
41
  - name: Set up Volta
42
42
  uses: volta-cli/action@v1
43
- with:
44
- node-version: 12.x
45
43
  - name: Install dependencies (yarn)
46
44
  run: yarn install
47
45
  - name: Lint (hbs)
@@ -99,8 +97,6 @@ jobs:
99
97
  uses: actions/checkout@v1
100
98
  - name: Set up Volta
101
99
  uses: volta-cli/action@v1
102
- with:
103
- node-version: 12.x
104
100
  - name: Install dependencies (yarn)
105
101
  run: yarn install
106
102
  - name: Set NO_EXTEND_PROTOTYPES
@@ -125,8 +121,6 @@ jobs:
125
121
  uses: actions/checkout@v1
126
122
  - name: Set up Volta
127
123
  uses: volta-cli/action@v1
128
- with:
129
- node-version: 12.x
130
124
  - name: Install dependencies (yarn)
131
125
  run: yarn install
132
126
  - name: Download panes
@@ -296,8 +290,6 @@ jobs:
296
290
  steps:
297
291
  - name: Set up Volta
298
292
  uses: volta-cli/action@v1
299
- with:
300
- node-version: 12.x
301
293
  - name: Install dependencies (web-ext)
302
294
  run: |
303
295
  volta install web-ext
@@ -328,8 +320,6 @@ jobs:
328
320
  steps:
329
321
  - name: Set up Volta
330
322
  uses: volta-cli/action@v1
331
- with:
332
- node-version: 12.x
333
323
  - name: Set up NPM
334
324
  run: |
335
325
  echo "//registry.npmjs.org/:_authToken=${NPM_AUTH_TOKEN}"> ~/.npmrc
package/.tool-versions CHANGED
@@ -1 +1 @@
1
- nodejs 14.16.0
1
+ nodejs 14.18.1
package/CHANGELOG.md CHANGED
@@ -1,6 +1,59 @@
1
1
  # Changelog
2
2
 
3
3
 
4
+
5
+
6
+
7
+
8
+ ## v4.5.6 (2021-12-13)
9
+
10
+ #### :house: Internal
11
+ * [#1839](https://github.com/emberjs/ember-inspector/pull/1839) Skip flaky container:types test ([@rwwagner90](https://github.com/rwwagner90))
12
+
13
+ #### Committers: 1
14
+ - Robert Wagner ([@rwwagner90](https://github.com/rwwagner90))
15
+
16
+ ## v4.5.5 (2021-12-13)
17
+
18
+ #### :bug: Bug Fix
19
+ * [#1807](https://github.com/emberjs/ember-inspector/pull/1807) bug: Find the latest entry created by lerna-changelog ([@mdeanjones](https://github.com/mdeanjones))
20
+
21
+ #### :memo: Documentation
22
+ * [#1821](https://github.com/emberjs/ember-inspector/pull/1821) docs(readme): change order of installation hints ([@derrabauke](https://github.com/derrabauke))
23
+
24
+ #### :house: Internal
25
+ * [#1833](https://github.com/emberjs/ember-inspector/pull/1833) fix issue, test destroyed the component before EmberDebugger is destr… ([@michaelbdai](https://github.com/michaelbdai))
26
+ * [#1829](https://github.com/emberjs/ember-inspector/pull/1829) Use new VC and ember-table betas ([@rwwagner90](https://github.com/rwwagner90))
27
+
28
+ #### Committers: 4
29
+ - Bing Dai ([@michaelbdai](https://github.com/michaelbdai))
30
+ - Falk Neumann ([@derrabauke](https://github.com/derrabauke))
31
+ - Michael Jones ([@mdeanjones](https://github.com/mdeanjones))
32
+ - Robert Wagner ([@rwwagner90](https://github.com/rwwagner90))
33
+
34
+ ## v4.5.4 (2021-11-23)
35
+
36
+ #### :bug: Bug Fix
37
+ * [#1814](https://github.com/emberjs/ember-inspector/pull/1814) replace `[].any` with `[].some` ([@Windvis](https://github.com/Windvis))
38
+
39
+ #### :house: Internal
40
+ * [#1804](https://github.com/emberjs/ember-inspector/pull/1804) Try to fix owner errors ([@rwwagner90](https://github.com/rwwagner90))
41
+
42
+ #### Committers: 2
43
+ - Robert Wagner ([@rwwagner90](https://github.com/rwwagner90))
44
+ - Sam Van Campenhout ([@Windvis](https://github.com/Windvis))
45
+
46
+ ## v4.5.3 (2021-11-18)
47
+
48
+ #### :bug: Bug Fix
49
+ * [#1803](https://github.com/emberjs/ember-inspector/pull/1803) Replace ember-did-resize-modifier with ember-on-resize-modifier ([@rwwagner90](https://github.com/rwwagner90))
50
+
51
+ #### :house: Internal
52
+ * [#1802](https://github.com/emberjs/ember-inspector/pull/1802) ESLint 8 support ([@rwwagner90](https://github.com/rwwagner90))
53
+
54
+ #### Committers: 1
55
+ - Robert Wagner ([@rwwagner90](https://github.com/rwwagner90))
56
+
4
57
  ## v4.5.2 (2021-11-17)
5
58
 
6
59
  #### :bug: Bug Fix
package/README.md CHANGED
@@ -13,8 +13,8 @@ OR:
13
13
 
14
14
  - Clone the repository
15
15
  - cd into the repo directory
16
- - run `yarn install`
17
16
  - run `yarn global add ember-cli`
17
+ - run `yarn install`
18
18
  - run `yarn build` to build the `dist` directory
19
19
  - Visit `chrome://extensions` in Chrome
20
20
  - Make sure `Developer mode` is checked
@@ -30,8 +30,8 @@ OR:
30
30
 
31
31
  - Clone the repository
32
32
  - cd into the repo directory
33
- - run `yarn install`
34
33
  - run `yarn global add ember-cli`
34
+ - run `yarn install`
35
35
  - run `yarn build` to build the `dist` directory
36
36
  - Visit `about:debugging` in Firefox
37
37
  - Click on 'Load Temporary Addon-on'
@@ -41,8 +41,8 @@ OR:
41
41
 
42
42
  - Clone the repository
43
43
  - cd into the repo directory
44
- - run `yarn install`
45
44
  - run `yarn global add ember-cli`
45
+ - run `yarn install`
46
46
  - run `yarn build` to build the `dist` directory
47
47
  - Visit `chrome://extensions` in Opera
48
48
  - Make sure `Developer mode` is checked
@@ -1,7 +1,7 @@
1
1
  import Controller from '@ember/controller';
2
2
  import { action, computed } from '@ember/object';
3
3
  import { equal } from '@ember/object/computed';
4
- import { schedule } from '@ember/runloop';
4
+ import { debounce, schedule } from '@ember/runloop';
5
5
  import { inject as service } from '@ember/service';
6
6
 
7
7
  export default Controller.extend({
@@ -127,16 +127,26 @@ export default Controller.extend({
127
127
  this.layoutService.updateContentHeight(this.contentElement.clientHeight);
128
128
  }),
129
129
 
130
- windowDidResize: action(function () {
130
+ _windowDidResize: action(function () {
131
131
  schedule('afterRender', () => {
132
- this.layoutService.trigger('resize', {
133
- source: 'application-controller',
134
- });
135
-
136
- this.layoutService.updateContentHeight(this.contentElement.clientHeight);
132
+ if (!this.isDestroyed && !this.isDestroying) {
133
+ this.layoutService.trigger('resize', {
134
+ source: 'application-controller',
135
+ });
136
+
137
+ if (this.contentElement) {
138
+ this.layoutService.updateContentHeight(
139
+ this.contentElement.clientHeight
140
+ );
141
+ }
142
+ }
137
143
  });
138
144
  }),
139
145
 
146
+ windowDidResize: action(function () {
147
+ debounce(this, this._windowDidResize, 250);
148
+ }),
149
+
140
150
  toggleNavCollapsed: action(function () {
141
151
  this.set('navIsCollapsed', !this.navIsCollapsed);
142
152
  schedule('afterRender', () => {
@@ -14,9 +14,16 @@ function checkStatus(response) {
14
14
  }
15
15
 
16
16
  function getLatestEntry(doc) {
17
- const regex = /^#{2} ?\[(.+)\]((?:[\s\S](?!^#{2}))+)/gm;
18
- const matches = doc.match(regex);
19
- return matches ? matches[0] : '';
17
+ const regex =
18
+ /^#{2} (?:v(\d{1,2}(?:\.\d{1,2})?(?:\.\d{1,2})?)|(?:\[v?(.+)]))/gm;
19
+ const latest = regex.exec(doc);
20
+ const previous = regex.exec(doc);
21
+
22
+ if (latest && previous) {
23
+ return doc.substring(latest.index, previous.index).trim();
24
+ }
25
+
26
+ return '';
20
27
  }
21
28
 
22
29
  export default class WhatsNewRoute extends TabRoute {
@@ -3,7 +3,7 @@
3
3
  tabindex="1"
4
4
  {{on "focusin" (fn this.setActive true)}}
5
5
  {{on "focusout" (fn this.setActive false)}}
6
- {{did-resize this.windowDidResize debounce=250}}
6
+ {{on-resize this.windowDidResize}}
7
7
  >
8
8
  {{#if this.isEmberApplication}}
9
9
  <div class="split">
@@ -0,0 +1,12 @@
1
+ /* eslint-env node */
2
+
3
+ module.exports = {
4
+ plugins: [
5
+ [
6
+ require('@babel/plugin-proposal-decorators').default,
7
+ {
8
+ legacy: true,
9
+ },
10
+ ],
11
+ ],
12
+ };
@@ -0,0 +1,9 @@
1
+ var __ember_auto_import__;(()=>{var r={779:r=>{r.exports=function(){_eai_d
2
+ var r=_eai_r
3
+ window.emberAutoImportDynamic=function(e){return 1===arguments.length?r("_eai_dyn_"+e):r("_eai_dynt_"+e)(Array.prototype.slice.call(arguments,1))},window.emberAutoImportSync=function(e){return r("_eai_sync_"+e)(Array.prototype.slice.call(arguments,1))}}()},247:function(r,e){window._eai_r=require,window._eai_d=define}},e={}
4
+ function t(_){var o=e[_]
5
+ if(void 0!==o)return o.exports
6
+ var i=e[_]={exports:{}}
7
+ return r[_].call(i.exports,i,i.exports,t),i.exports}t(247)
8
+ var _=t(779)
9
+ __ember_auto_import__=_})()
@@ -1,4 +1,4 @@
1
- var __ember_auto_import__;(()=>{var r,e={384:function(r,e){window._eai_r=require,window._eai_d=define},667:(r,e,o)=>{var i,t
1
+ var __ember_auto_import__;(()=>{var r,e={247:function(r,e){window._eai_r=require,window._eai_d=define},856:(r,e,o)=>{var i,t
2
2
  r.exports=(i=_eai_d,t=_eai_r,window.emberAutoImportDynamic=function(r){return 1===arguments.length?t("_eai_dyn_"+r):t("_eai_dynt_"+r)(Array.prototype.slice.call(arguments,1))},window.emberAutoImportSync=function(r){return t("_eai_sync_"+r)(Array.prototype.slice.call(arguments,1))},void i("qunit",[],(function(){return o(916)})))}},o={}
3
3
  function i(r){var t=o[r]
4
4
  if(void 0!==t)return t.exports
@@ -15,6 +15,6 @@ var e=(e,o)=>{var t,n,[a,_,l]=o,p=0
15
15
  if(a.some((e=>0!==r[e]))){for(t in _)i.o(_,t)&&(i.m[t]=_[t])
16
16
  if(l)var u=l(i)}for(e&&e(o);p<a.length;p++)n=a[p],i.o(r,n)&&r[n]&&r[n][0](),r[a[p]]=0
17
17
  return i.O(u)},o=globalThis.webpackChunk_ember_auto_import_=globalThis.webpackChunk_ember_auto_import_||[]
18
- o.forEach(e.bind(null,0)),o.push=e.bind(null,o.push.bind(o))})(),i.O(void 0,[916],(()=>i(384)))
19
- var t=i.O(void 0,[916],(()=>i(667)))
18
+ o.forEach(e.bind(null,0)),o.push=e.bind(null,o.push.bind(o))})(),i.O(void 0,[916],(()=>i(247)))
19
+ var t=i.O(void 0,[916],(()=>i(856)))
20
20
  t=i.O(t),__ember_auto_import__=t})()
@@ -1,4 +1,4 @@
1
- /*! For license information please see chunk.916.cfdae71ef87e943d7ad0.js.LICENSE.txt */
1
+ /*! For license information please see chunk.916.10195c168143dde80f98.js.LICENSE.txt */
2
2
  (globalThis.webpackChunk_ember_auto_import_=globalThis.webpackChunk_ember_auto_import_||[]).push([[916],{916:(e,t,n)=>{var r
3
3
  e=n.nmd(e),function(){"use strict"
4
4
  var i,o="function"==typeof o?o:function(){var e=Object.create(null),t=Object.prototype.hasOwnProperty